/ceh-git-workflow:commitfrom ceh-git-workflow
Load this skill when making a git commit or writing its message: Conventional Commits type and scope, subject line, body, and footers for breaking changes and issue references.
Ships in ceh-git-workflow. 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.
Every commit is one logical change with a Conventional Commits message:
<type>(<scope>): <short summary>
[optional body — explain why, not what]
[optional footer — breaking changes, issue refs]
Stage one logical change: git add <files>.
Single-line message (subject only):
git commit -m "<type>(<scope>): <short summary>"
Multi-line (body or footer needed) — write the message to a temp file and commit with -F,
then delete the file:
# Write the message to msg.txt:
# <type>(<scope>): <short summary>
#
# <body — explain why, not what>
#
# <footer — BREAKING CHANGE or Closes #NNN>
git commit -F msg.txt && rm msg.txt
Never build a multi-line message with an inline shell heredoc or a PowerShell @'...'@
here-string: the temp-file path avoids all shell quoting and behaves identically in PowerShell
and Bash.
feat, fix, refactor (no behavior change), perf, test, docs, style (formatting only),
build, ci, chore (anything not covered above), revert (body: Reverts <sha>).
The optional (<scope>) names the area of the codebase touched — a module, package, or
component (auth, orders, api). Pick the narrowest noun that covers the change. Omit the
parentheses entirely for repo-wide changes (chore: bump all dev dependencies). Keep it
lowercase and consistent with scopes already used in the log (git log --oneline).
- bullets for multiple points. Separate it from the subject with one blank line.BREAKING CHANGE: footer with migration notes (or a ! after the
type/scope: feat(api)!: ...).Closes #123 (auto-closes on merge) or Refs #456 (links only) in footer.attribution.commit line the session's Git
instructions supply, verbatim. Never substitute a literal from this skill or from memory. If no
line is supplied, or the setting is false or empty, omit it.When .agents_workspace/ is a git repo of its own and the turn wrote files there, commit them in
that repo before the turn ends: git -C .agents_workspace add <your files>, then a commit whose
subject names what was written (docs(plan): add the export plan), whose body says why, and which
ends with the attribution line. Stage only the files this turn wrote. The plugin's Stop hook
commits whatever is left under a generic chore(workspace): sync ... subject, which says nothing
about the change.
bad: fixed bug # not imperative, no type/scope, vague
good: fix(orders): reject cancel on shipped orders
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub cheneeheng/ceh-claude-code-library --plugin ceh-git-workflow8 skills in this plugin
/address-review-commentsLoad this skill when acting on review feedback left on your change: verify each comment, fix what holds, push back with evidence on what does not, reply to every thread. Trigger on "address these review comments", "fix the review feedback", "the reviewer said"./pull-requestLoad this skill when a branch is heading into main: open a PR, "merge it", "land this", or before you run `gh pr create` or `gh pr merge` yourself. Covers the PR body, pre-merge gate, merge, and cleanup. Not for shipping a version (use ceh-git-workflow:release)./releaseLoad this skill when shipping a version: bump, changelog, land it, tag, publish the GitHub release. Trigger on "cut a release", "bump the version", "tag a release", "hotfix", or a version field changing in a project manifest. Not for a branch with no version (use ceh-git-workflow:pull-request)./update-changelogLoad this skill when updating CHANGELOG.md or writing release notes, as a versioned section or an Unreleased entry in Keep a Changelog format. Trigger on "update the changelog", "write release notes", "log this under unreleased", "what changed since the last release"./update-readmeLoad this skill when a change alters how someone installs, runs, or configures the project (a new feature, command, setup step, dependency, environment variable, or public API) and README.md must catch up. Trigger on "update the readme", "document this feature". Not for bug fixes or refactors./write-code-reviewLoad this skill when reviewing a diff before it lands, a pull request or your own unmerged branch: review order, blocking versus advisory comments, the verdict, and the saved review file. Trigger on "review this PR", "review my branch". Not for finding defects (use the built-in /code-review).