/craftsman:commit-craftfrom craftsman
Enforces conventions for atomic git commits, imperative message format, branch naming (<type>/<kebab-summary>), and PR hygiene to keep history navigable, bisectable, and safe to ship.
Ships in craftsman. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Version-control history is documentation that outlives every summary. A commit is read far more often than it's written — during review, bisects, blame, and reverts months later. Sloppy history turns those into archaeology; disciplined history makes them a one-line answer.
Core principle: every commit should be a single, reversible, explainable unit of change.
Any time work reaches git: staging a commit, cutting a branch, or opening a PR. Skip it only for throwaway experiments you never intend to keep. It does not depend on any other plugin being installed.
main/
master and the user hasn't said otherwise, branch first (see naming below), then commit.--no-verify, --no-gpg-sign, or skip hooks unless the user explicitly asks. A
failing hook is a signal to fix, not to bypass.Atomic. One logical change per commit. Don't mix a refactor with a feature, or a formatting
sweep with a bug fix — a reviewer (and a future git revert) should be able to take or drop the
change as a whole. Split unrelated work into separate commits.
Message format:
<imperative subject, ~50 chars, no trailing period>
<body: wrap ~72 chars. Explain WHY the change is needed and what it
affects — the diff already shows what changed. Reference issues/PRs.>
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Co-Authored-By: Claude Opus 4.8 <[email protected]> trailer.Never commit: secrets, credentials, .env files, generated/build artifacts, large binaries, or
anything already ignored. If git status shows something that should be ignored, fix .gitignore
first — don't commit it "just this once."
Name branches <type>/<short-kebab-summary>, using the same type vocabulary as commits/PRs:
feat/ — new capability · fix/ — bug fix · chore/ — tooling, deps, configdocs/ — documentation · refactor/ — behavior-preserving restructureExamples: feat/search-filters, fix/quiz-empty-wordlist, chore/pin-actions-sha.
--force-with-lease
over --force, and only when the user has agreed.Small and focused beats large and sweeping — easier to review, safer to revert.
Title: same imperative style as a commit subject.
Body: what changed and why, how it was tested/verified, and links to any issue it closes
(Closes #123). End the PR body with:
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Green before merge: the most recent CI run on the branch must pass. Don't merge red, and don't disable a check to go green.
Reference PRs/issues as full markdown links, never a bare #123.
| Thought | Reality |
|---|---|
| "I finished the change, so I'll just commit it" | Completing work isn't permission to commit. Ask first. |
| "I'll bundle these three unrelated fixes into one commit" | That's not atomic — split them so each can be reverted alone. |
| "The subject says it all, skip the body" | Fine only if why is obvious. If it isn't, the body is where it belongs. |
| "I'm on main but it's a tiny change" | Branch first. Size doesn't change the rule. |
"The hook is failing, I'll add --no-verify" | The hook caught something. Fix it, don't bypass it. |
| "I'll force-push to clean up the shared branch" | You may clobber someone's work. --force-with-lease, and only with agreement. |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
7 skills in this plugin
/caveats-and-statusUse when about to report any nontrivial task as complete — requires closing with a Caveats & status section stating what was verified, what was assumed, and what's unresolved./environment-memoryUse before retrying any command, tool, or approach that failed once, and immediately after discovering any OS/shell/tool-specific quirk — checks and updates a stable cross-project quirks file so failed approaches are never silently repeated./graphify-recurring-bugsUse during root-cause investigation of any bug in a project that has graphify-out/graph.json — surfaces related code before grepping, flags likely duplicates of existing KNOWN_ISSUES.md entries before filing a new one, and when a match lands on a resolved entry surfaces its recorded fix so a known-good fix can be reused. No-op in any project without a built graph./ideation-firstUse before planning a new feature or greenfield refactor whose requirements aren't yet pinned down — clarifies intent through a few questions and ends with a short scope brief the planner can build on./logging-tradeoffsUse when a deliberate shortcut is taken during a fix or feature, when investigating a bug that might already be logged, or when closing out an entry after a proper fix lands./smallest-change-firstUse before writing any new code, function, file, or dependency — walks a decision ladder that prefers reuse over new code, and requires asking before adding anything beyond the literal request.npx claudepluginhub ccplugins/awesome-claude-code-plugins --plugin craftsmanOther plugins' skills for the same job