git status --shortfirst; scope to files from current task or explicit user request.- Leave unrelated dirty files alone unless user explicitly asks for a whole-tree commit.
- Mixed tree: inspect diffs before staging; keep staged set one semantic change.
- Stage by purpose, not
git add ., unless whole task one coherent change. - Default one scoped conventional commit when task cohesive. Split only for clearly separate semantic groups. Optimize for reviewability.
- Multiple commits: prefer order
feat,fix,test,docs,refactor,chore. - Short scoped conventional messages; match what changed.
- Each commit minimal, reviewable, one change type.
- Between groups:
git status -sb; confirm next commit has only intended files. - Ask before staging unrelated user changes, unfamiliar generated churn, or ambiguous dirty tree that makes ownership ambiguous.
Commit
Stage + commit changes in semantic + reviewablegroups. Use when user wants to commit changes, organize commits, or clean up a branch before pushing.
Commit by BjornMelin · e0de6ba
npx skillmds@latest add bjornmelin/commit File contents
---name: commitdescription: Stage + commit changes in semantic + reviewablegroups. Use when user wants to commit changes, organize commits, or clean up a branch before pushing.---1. `git status --short` first; scope to files from current task or explicit user request.2. Leave unrelated dirty files alone unless user explicitly asks for a whole-tree commit.3. Mixed tree: inspect diffs before staging; keep staged set one semantic change.4. Stage by purpose, not `git add .`, unless whole task one coherent change.5. Default one scoped conventional commit when task cohesive. Split only for clearly separate semantic groups. Optimize for reviewability.6. Multiple commits: prefer order `feat`, `fix`, `test`, `docs`, `refactor`, `chore`.7. Short scoped conventional messages; match what changed.8. Each commit minimal, reviewable, one change type.9. Between groups: `git status -sb`; confirm next commit has only intended files.10. Ask before staging unrelated user changes, unfamiliar generated churn, or ambiguous dirty tree that makes ownership ambiguous.
BjornMelin/dev-skills/tree/main/skills/commit commit e0de6ba70d
Frequently asked questions
Run npx skillmds@latest add bjornmelin/commit in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Stage + commit changes in semantic + reviewablegroups. Use when user wants to commit changes, organize commits, or clean up a branch before pushing. It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
BjornMelin (@bjornmelin) published this skill. Their other Agent Skills are listed on their SkillMD profile.