/engineering-advanced-skills:commit-craft [repo path | diff file | commit range]from engineering-advanced-skills
Splits mixed working-tree changes into clean, reviewable commits with Conventional Commits messages, blocking staged secrets and .env files before they are committed.
Ships in engineering-advanced-skills. 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.
Read when SKILL.md points to them; scripts run unread.
Portability: 3 stdlib Python scripts that call
gitread-only. No network. The scripts never stage, commit or push. You do, one group at a time, after the gate passes.
Agents leave large mixed diffs: a feature, a reformat, a dependency bump and a
stray .env, all in one tree. Committed as one blob, that diff cannot be
reviewed, reverted or bisected. This skill turns it into a series where each
commit is one logical change, builds on its own, holds no secrets and says why.
# 1 - Plan: which commits, in which order, staged how?
python scripts/commit_planner.py # working tree vs HEAD, untracked included
# 2 - For each group: stage exactly its files, then gate what is staged
git add -- <files of group N> # or git add -p for MIXED_FORMATTING files
python scripts/secret_gate.py # blocks before the commit exists
# 3 - Write the message, lint it, commit
python scripts/message_linter.py -m "<message>" --staged && git commit -m "<message>"
# 4 - Before push: the whole series, and proof every commit builds
python scripts/message_linter.py --range @{upstream}..HEAD
git rebase -x "<test command>" @{upstream}
Step 1 groups files: manifest with lockfile, pure moves, whitespace-only
files, each module's changes with their tests, then docs and CI. It holds back
.env, keys and tfstate (exit 4), flags files that mix formatting with real
hunks, and flags a move whose callers' import edits sit in another group, since
that commit would not build. It never picks feat vs fix: decide from what the change does.
Step 2 scans only the added lines of what is staged: provider-shaped
tokens, high-entropy values assigned to key/secret/token/password, sensitive
files and conflict markers. Output is redacted. A false positive is waived in
.commit-craft-allow by fingerprint or path, with a reason.
Step 3 blocks vague subjects ("fix", "update"), subjects over 72 characters, no blank line after the subject, and a change of 40+ lines or 4+ files with no body. It enforces Conventional Commits only if the repo already uses them.
Step 4 also blocks fixup!/squash!/WIP commits and warns on duplicates and
revert pairs. Install assets/hooks/ to run steps 2 to 4 on every commit and push.
git add -A or git add . on a mixed tree. Stage each group by name or by hunk.--no-verify, never waive a real secret.references/secret_response.md).| Script | Role | Exit codes |
|---|---|---|
scripts/commit_planner.py | Groups, order, staging commands, MOVE/MIXED/SIZE flags | 0 one commit · 2 split · 3 bad input · 4 secrets file held back |
scripts/secret_gate.py | Staged or range scan for credentials, sensitive files, conflict markers | 0 · 2 warnings · 3 · 4 blocked |
scripts/message_linter.py | One message (-m, --message-file) or a series (--range) | 0 · 2 warnings · 3 · 4 blocked |
All support --help, --sample and --output json.
references/commit_series_design.md: split, order and verify, with sources (7)references/message_discipline.md: subject, why-body, breaking changes, trailers (7)references/secret_response.md: what the gate catches, its limits, and the leak response order (7)assets/hooks/: pre-commit, commit-msg, pre-pushassets/commit-craft-allow.example: waiver formatassets/series_checklist.md: pre-push sign-offassets/commit-craft-allow.example (opens in a new tab)assets/hooks/commit-msg (opens in a new tab)assets/hooks/pre-commit (opens in a new tab)assets/hooks/pre-push (opens in a new tab)assets/series_checklist.md (opens in a new tab)references/commit_series_design.md (opens in a new tab)references/message_discipline.md (opens in a new tab)references/secret_response.md (opens in a new tab)scripts/commit_planner.py (opens in a new tab)scripts/message_linter.py (opens in a new tab)scripts/secret_gate.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
50 skills in this plugin
/agent-designerDesign multi-agent systems (supervisor, swarm, pipeline) and tool schemas; find bottlenecks in run logs. Use whenever agents split work or a run is slow or costly. Not for Claude Code workflow files (workflow-builder)./agent-regression-evalsUse before shipping any agent, prompt, model or tool change, or when a pass-rate drop needs a verdict. Runs repeated trials, gates candidate vs baseline with paired statistics in regression_gate.py, checks tool-call trajectories and finds flaky cases./agent-run-forensicsUse when asked why an agent did something, what a past session or run changed, whether tests really passed, or to verify a session summary. Answers from the recorded transcript, not memory, with trace_finder.py, trace_timeline.py and claim_checker.py./agent-workflow-designerUse when architecting a multi-step LLM or agent pipeline, choosing single vs multi-agent, or fixing context bloat and broken handoffs. Scaffolds the pattern, handoff contracts and failure handling with workflow_scaffolder.py./api-design-reviewerUse for any PR or spec that adds or changes REST endpoints, before approving it. Lints conventions with api_linter.py, detects breaking changes with breaking_change_detector.py and scores the design with api_scorecard.py./api-test-suite-builderUse when asked to write API, integration or contract tests for REST endpoints. Builds the suite from the routes: happy paths, auth, validation errors and edge cases per endpoint.2 plugins in one repository ship this exact skill · first indexed Nov 3, 2026
npx claudepluginhub alirezarezvani/claude-skills --plugin engineering-advanced-skillsOther plugins' skills for the same job