commit
Installation
SKILL.md
Commit
When to use
- The current work is ready to record in git
- The diff is understood and intentionally scoped
Process
- Inspect
git status,git diff, andgit diff --cached. - Read recent commit messages so the new commit fits the repo.
- If there is nothing worth committing, stop.
- Stage only the intended files. Never stage secrets.
- Use the user's message if provided. Otherwise write a Conventional Commit message:
- Format:
type(scope): subject - Common types:
feat,fix,refactor,test,docs,chore - Keep the subject short, specific, and in imperative mood
- Use the body for why the change exists, important context, and migrations or follow-up work
- Good examples:
feat(auth): add GitHub OAuth login,fix(api): handle empty embedding results
- Format:
- Create the commit and report the hash and message.
Verification
- The staged changes match the intended scope
- The commit exists
git statusconfirms the expected result
Rules
- If the change breaks a contract or requires migration, note it clearly in the commit message body.
- If there is nothing to commit or the diff is not understood, stop.
- Prefer staging specific files over broad adds.
- Do not commit
.env, credentials, or keys. - The subject should say what changed. The body should explain why.
Related skills
More from owainlewis/blueprint
tdd
Use test-first development for behavioral changes. Write a failing test, make it pass, then simplify.
95debug
Debug systematically: observe, hypothesize, test, fix, verify.
91refactor
Refactor code to simplify it without changing behavior.
91plan
Break a project, phase, spec, or rough request into discrete tasks that can be stored in a task management system and delegated to AI agents.
91review
Review a spec or concrete code changes and report evidence-backed bugs, regressions, and risks.
90spec
Write the requested implementation spec to a file, tailor detail to the task, and pause for human review.
89