Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Analyze code changes to prepare conventional commit message and commit to a new branch.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-07 | ✗→✓ | ▲ Improved | 15% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -34% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 329% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 101% | 0% |
| case-06 | ✗→✓ | ▲ Improved | 60% | 0% |
Run this skill when asked to commit code changes, create a commit message, or push changes to a new branch.
Ask the user the following question:
Kindly let me know:
1. Branch Name: What should I name the new branch? (name of the branch)If the user has already provided the answer upfront, skip the question and use the provided value.
bashgit checkout -b <BRANCH_NAME>
bashpre-commit run -a
If the command fails, try again only one more time. If it fails again, report the output to the user and stop. Do not continue until the user resolves any failures.
bashterraform fmt -recursive
bashgit add .
Before proceeding, list the staged files and check for potentially sensitive files (e.g. .env, *.pem, *.key, *credentials*, *secret*, *token*, *password*):
bashgit diff --cached --name-only
If any staged file matches a sensitive pattern, pause and ask the user to confirm whether it should be included in the commit. Do not proceed until confirmed.
And then analyze the code changes in each staged file with the following command:
bashgit diff --cached -- <FILE_PATH>
Then based on all the code changes, determine the appropriate conventional commit type, compose a single one-liner commit message, and commit the changes with the following command:
bashgit commit -m "<TYPE>: <COMMIT_MESSAGE>"
<COMMIT_MESSAGE> must be capitalized.| Type | When to use | |---|---| | feat | A new feature | | fix | A bug fix | | docs | Documentation only changes | | style | Formatting changes that do not affect code meaning | | refactor | Code change that neither fixes a bug nor adds a feature | | perf | Code change that improves performance | | test | Adding or correcting tests | | chore | Build process or auxiliary tool changes | | ci | Changes to CI configuration files and scripts | | build | Changes that affect the build system or external dependencies |
bashgit push origin $(git rev-parse --abbrev-ref HEAD) --set-upstream
main or master directly — always create a new branch.pre-commit run -a fails, try again only one more time. If it fails again, stop and report the errors before proceeding.\n or multi-line -m flags.Other measured skills in the registry, with their headline benchmark lift.