commit-curation
Curate repository changes into coherent commits by inspecting exact diffs, separating unrelated work, preserving authorship/context, validating staged state…
by Dadmin88★ 52 GitHub stars
Install commit-curation in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
Commit Curation
Use when a working tree contains one or more completed changes that need to become reviewable, recoverable Git commits.
Procedure
- Inspect branch, HEAD, worktrees, status, staged/unstaged/untracked paths, and relevant diffs before staging anything. Identify changes owned by other work and preserve them.
- Group changes by one coherent outcome or dependency. Files may belong in the same commit when they are required to make one change correct and understandable; split changes that can be reviewed/reverted independently.
- Review generated, lockfile, vendor, schema, migration, or asset changes carefully so automatic output does not hide unrelated modifications.
- Stage exact intended paths or hunks using the safest available mechanism. Avoid broad
git add .or equivalent when unrelated work is present or the set of reviewed files is known. - Inspect the staged diff and staged file list after staging. The index, not the working tree, is the content that will become the commit.
- Run or verify the validation appropriate to the staged result. If validation depends on unstaged changes, make that dependency explicit rather than pretending the commit is independently proven.
- Write a commit message that describes the resulting behavior or repository state. Use project conventions and include rationale/body only when it adds durable context.
- Create the commit, then verify the new commit's diff/tree and remaining working-tree state. Confirm unrelated modifications remain untouched.
- For multi-commit series, review the sequence as a reader would encounter it. Each commit should build sensibly on its parents without relying on later commits for basic validity unless the project deliberately accepts that style.
Decision rules
- Commit boundaries are review/recovery boundaries, not arbitrary file-count limits.
- Do not rewrite, squash, or attribute another contributor's work without authority.
- A clean working tree is not a reason to combine unrelated changes.
- The staged diff is the source of truth for what is about to be committed.
- Never discard uncommitted work merely to make commit curation easier.
Quality gate
The commit is ready when its staged content has been reviewed exactly, unrelated work is excluded and preserved, the change is coherent and appropriately validated, the message describes the resulting change, and post-commit repository state matches the intended split.
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the commit-curation skill do?
Curate repository changes into coherent commits by inspecting exact diffs, separating unrelated work, preserving authorship/context, validating staged state, and writing messages that describe the resulting repository change.
How do I install the commit-curation skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the commit-curation skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…