# commit-work

Organizes working tree edits into separate logical commits and drafts clean messages following Conventional Commits standards.

- skill · `type=skill` · Claude Code · 76 installs
- Author: davila7
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/productivity/commit-work
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/skills/commit-work

## What it 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.

## Install

### Claude Code (native platform)

1. **claude-code-templates**
```bash
npx claude-code-templates@latest --skill productivity/commit-work
```

2. **Skills CLI (Vercel)**
```bash
npx skills add davila7/claude-code-templates --skill commit-work -a claude-code
```

3. **Manually: put the files in place**
- File: `~/.claude/skills/commit-work/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/commit-work/

### Codex

**Manually: put the files in place**
- File: `.agents/skills/commit-work/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

**Manually: put the files in place**
- File: `.cursor/skills/commit-work/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install davila7/claude-code-templates commit-work
```

2. **Manually: put the files in place**
- File: `.github/skills/commit-work/SKILL.md`

### Gemini CLI

**Platform CLI**
```bash
gemini skills install https://github.com/davila7/claude-code-templates --path cli-tool/components/skills/productivity/commit-work
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/commit-work/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/productivity/commit-work

## When to use it
- 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
- 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

## Similar
- [triage](https://affpapa.org/en/nevibecode/skills/triage.md) — skill · 990453 installs
- [code-review](https://affpapa.org/en/nevibecode/skills/code-review.md) — skill · 789521 installs
- [implement](https://affpapa.org/en/nevibecode/skills/implement.md) — skill · 774700 installs
- [git-guardrails-claude-code](https://affpapa.org/en/nevibecode/skills/git-guardrails-claude-code.md) — skill · 499069 installs
- [setup-pre-commit](https://affpapa.org/en/nevibecode/skills/setup-pre-commit.md) — skill · 489289 installs
- [scaffold-exercises](https://affpapa.org/en/nevibecode/skills/scaffold-exercises.md) — skill · 480196 installs

From the same set: [davila7/claude-code-templates](https://affpapa.org/en/nevibecode/by/davila7/claude-code-templates.md) — 804 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
