Git commit
Stages files, analyzes the diff, and commits with a conventional commit message. Use this skill whenever the user wants to commit, says things like "commit this", "make a commit" or "ship it".From its SKILL.md
npx -y skills add aayushbtw/skills --skill git-commitAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
3.3 KB, 777 tokens by cl100k_base, as published. Nobody here has run it
Git Commit
Workflow
IMPORTANT: Follow these steps in order. Do not skip or reorder unless a step explicitly says to.
-
Check what is staged and what isn't:
git status --short- If nothing to commit at all, stop and tell the user.
- If nothing is staged → run
git add -Ato stage everything.
-
Read the staged diff and analyze per the Splitting commits rules:
git diff --cached- If there is one group → proceed to step 3.
- If there are multiple groups → tell the user how many commits will be made, then unstage everything and stage only the first group's files:
git reset HEAD git add <file1> <file2> ...
-
Generate a commit message per the Commit message rules and commit:
git commit -m "<generated message>"If unstaged changes remain, repeat from step 1.
Guidelines
Commit message
- Format:
<type>(<scope>): <description>where type is one of:feat: A new capability or behavior the project didn't have before (renaming, restyling, or reorganizing existing features is NOT feat)fix: Correcting broken or incorrect behaviordocs: Changes to documentation onlyrefactor: Restructuring code without changing behavior (includes restyling/layout changes that don't add new functionality)perf: Performance improvementschore: Routine upkeep (e.g. versions, lockfiles, renaming, linting, formatting)test: Adding or updating testsci: Changes to CI/CD pipelines or workflow filesrevert: Undoing a previous commit
- Scope: ALWAYS include in parentheses (e.g.
feat(auth):) - Description: Present tense imperative, no period, ≤50 chars
- Breaking changes: Add
!after type/scope (e.g.feat!(scope):) - No generic messages: Never use "update code", "fix bug", "changes"
- No attribution: Never add
Co-Authored-Bytrailers or footers - Examples:
- feat(auth): add OAuth2 login flow
- fix(api): handle null response from payment gateway
- docs(readme): add setup instructions
- refactor(db): extract query builder into separate module
- chore(deps): bump express to v5
- chore(lint): apply prettier formatting
- perf(search): add index on users.email column
- test(auth): add unit tests for token refresh
- ci(deploy): add staging environment workflow
- feat!(api): change response format to JSON:API
Splitting commits
- Atomic commits: Each commit must contain only related changes that serve a single purpose
- Split large changes: If changes touch different concerns, different types (feat vs fix vs refactor), different file categories (source vs docs), or are large enough that breaking them down aids review
Git safety
- No bypassing hooks: Never use
--no-verifyor--force - No config changes: Never modify git config
- Sensitive files: Never stage
.env, credentials, or private keys - Pre-commit failures: Stop and report the error — do not attempt to fix or bypass it
- Empty staging: If nothing is staged after
git add, stop and tell the user
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.