commit-work — Claude Code skill: what it does, how to install
Organizes working tree edits into separate logical commits and drafts clean messages following Conventional Commits standards.
npx claude-code-templates@latest --skill productivity/commit-workWhat commit-work does
The skill enforces a structured staging workflow. Claude inspects uncommitted work using git status and raw diffs. It isolates unrelated edits into dedicated chunks. Patch staging isolates mixed files with git add -p.
Before saving, the workflow checks indexed changes with git diff --cached to catch leaked credentials and stray log lines. Conventional Commits formatting is strictly required here, which clashes with repos using freeform messages. The cycle ends by running a quick lint or test check on the newly staged code.
What it helps with
- split tangled modifications across files into separate patch commits
- generate structured messages following the Conventional Commits specification
- exclude leaked API keys and debugging lines before committing
- verify staged units with rapid local test runs
Example prompts for the agent
- Review the current diff and split changes into smaller commits
- Stage the bugfix hunks and craft a Conventional Commit message
- Inspect uncommitted files and clean up accidental debug logs before committing
How to install commit-work
1claude-code-templates
npx claude-code-templates@latest --skill productivity/commit-work2Skills CLI (Vercel)
npx skills add davila7/claude-code-templates --skill commit-work -a claude-code3Manually: put the files in place
~/.claude/skills/commit-work/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/commit-work/
Manually: put the files in place
.agents/skills/commit-work/SKILL.mdFor all projects use ~/.agents/skills/
Manually: put the files in place
.cursor/skills/commit-work/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install davila7/claude-code-templates commit-work2Manually: put the files in place
.github/skills/commit-work/SKILL.mdPlatform CLI
gemini skills install https://github.com/davila7/claude-code-templates --path cli-tool/components/skills/productivity/commit-workManually: put the files in place
.devin/skills/commit-work/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about commit-work
How to install commit-work in Claude Code?
Run npx claude-code-templates@latest --skill productivity/commit-work in your terminal. You can also place the configuration directly into ~/.claude/skills/commit-work/SKILL.md.
What does the commit-work skill do?
It guides the assistant through staging changes in small increments, catching secrets, and formatting commit titles cleanly.
Can I use custom commit message formats with commit-work?
The workflow strictly mandates Conventional Commits, meaning custom freeform titles will conflict with its built-in rules.