From agent-harness
Write commit messages and structure commits — imperative first line, when to add a body, issue references, and grouping so no file spans two commits. Use when creating a git commit after review has cleared, when asked to draft, propose, or preview a commit message or a commit grouping for approval, or when asked how to split/group changes.
How this skill is triggered — by the user, by Claude, or both
Slash command
/agent-harness:commitThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- First line: imperative, concise, states the effect of the change.
agent-harness.md §2's omission gate,
decided from the change you just made — not by re-scanning the diff: can you
name in one clause a why the subject plus diff can't show — a non-obvious
grouping, a removal/rename reason, a breaking change, a migration note, or a
linked issue? No → subject-only. Yes → that clause is the body. Motivation
the subject already implies (e.g., that a new capability was previously
absent) is not such a why. If a body runs to bullets, each fact lives in
one place and none restates the file list from git show --stat.git status --porcelain / git diff --name-status); it costs almost
nothing and is the drift detector. Escalate to a full git diff <ref> /
git show <ref> only when a staleness trigger fires: the cheap check shows
files you didn't touch, a system-reminder reports the file was modified by
the user or a linter/hook, you're describing work you didn't author this
session or that predates a context compaction, or you're on a
rebase/squash/amend where history differs from memory.This skill owns commits end to end — both proposing them for approval and
executing them — and that ownership is exclusive: commit grouping and
messaging never belong to planning or implementation, and are never decided ad
hoc before this skill is invoked. Proposing or previewing how to group or
split commits is itself part of this skill, not only writing the final
message: invoke it for any request to commit, draft, propose, preview, or
group commits — not just the literal word "commit". Running git add/git commit is the final step: never run them until the developer approves the
drafted proposal, per this environment's git safety boundaries.
Creates structured, bite-sized implementation plans from specs or requirements before writing code. Useful for breaking down multi-step tasks into testable steps with file structure and task boundaries.
npx claudepluginhub cosmoscalibur/agent-harness --plugin agent-harness