About commit
A skill for creating Git commits that follow Conventional Commits. It guides developers through reviewing changes, choosing a type and scope, and writing concise subjects and explanatory bodies.
Key features
- 01Conventional Commit types and format
- 02Subject and body writing guidelines
- 03Optional scope and breaking-change notation
- 04Staged-change review workflow
Use cases
- 01Formatting a feature or bug-fix commit
- 02Describing a breaking change in a commit
- 03Reviewing staged files before committing
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ nweii/ agent-stuff --skill commitAfter installing, type/commitin Claude Code to confirm it loaded.
Details
From the project READMECommit
Create well-formatted git commits following Conventional Commits.
Format
<type>[optional scope]: <description>
[optional body]
[optional footer(s)]
Types
feat: New featurefix: Bug fixdocs: Documentation onlystyle: Formatting, missing semi-colons, etc. (no code change)refactor: Code change that neither fixes a bug nor adds a featureperf: Performance improvementtest: Adding missing testschore: Maintenance tasks (build process, dependencies, etc.)
Guidelines
- Subject line: Imperative mood ("add", not "added"); aim for ≤50 characters.
- Body: Wrap at 72; explain what and why, not how.
- Scope: Optional, indicates section of codebase (e.g.,
feat(auth):). - Breaking changes: Add
!after type/scope (e.g.,feat!:) and explain in footer.
Process
- Review staged changes (
git diff --staged) and outstandinggit status. - Stage files explicitly when there's any chance
git add -Awould sweep in secrets or unrelated work. - Pick the type and scope that fit.
- Write a concise subject; add a body when the change isn't self-explanatory.
Examples
feat(auth): add OAuth2 login support
Implements Google and GitHub OAuth providers.
Closes #123
fix: resolve race condition in data fetcher
The previous implementation could return stale data
when multiple requests were in flight.
chore: update dependencies to latest versions
Comments
Markdown supported