/engineering-workflow:git-conventionsfrom engineering-workflow
Standardize how a repository records change: Conventional Commits messages, branch names, pull request titles and descriptions, merge and squash messages, changelogs, and version bumps, with enforcement via commitlint, git hooks, and CI. Use this skill whenever writing a commit message, naming a branch, opening or describing a pull request, merging, cutting a release, setting up a new repository, or adding commit or PR standards to an existing one, even when the user does not name the standard. Grounded in the configuration management processes of ISO/IEC/IEEE 12207 and ISO 10007, with Conventional Commits 1.0.0, Semantic Versioning, and Keep a Changelog as the operational layer.
Ships in engineering-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.
Read when SKILL.md points to them.
One standard for every repository, installed from this folder. It has two layers, and the distinction matters when someone asks why a rule exists:
references/standards-mapping.md maps every rule below to its basis:
explicit requirement, process alignment, or this standard's own
choice. Never claim an ISO or IEEE document mandates the message
grammar; it does not.
Install mode: a repository adopts the standard. Follow the install flow at the end of this file; it copies assets, wires enforcement, and verifies the chain rejects bad input before counting as done.
Daily mode: writing commits, branches, and pull requests inside a
repository that already follows the standard. The rules below are
the whole contract; the repository's own commitlint config and CM
plan (docs/configuration.md) override this file where they differ.
Grammar: type(scope)!: description, then an optional body, then
optional footers. The header is the unit everything else keys on:
PR titles, squash results, and changelog entries all reuse it.
| Type | Use for | Bump |
|---|---|---|
| feat | a new feature | minor |
| fix | a bug fix | patch |
| docs | documentation only | none |
| style | formatting, no code meaning change | none |
| refactor | code change that neither fixes nor adds | patch |
| perf | performance improvement | patch |
| test | adding or fixing tests | none |
| build | build system or external dependencies (incl. deps) | none |
| ci | CI configuration and scripts | none |
| chore | maintenance that is none of the above | none |
| revert | reverting an earlier commit | patch |
Only feat and fix are mandated by the Conventional Commits spec; the
rest are the config-conventional enum, adopted here as one set.
Projects may add a type (for example deps) by recording it in the
repo's CM plan and commitlint config at the same time, never in one
place only.
Optional, but validated when present. A scope names the component
the change touches, in lowercase, taken from the repo's allowed list
in its commitlint config (scope-enum). Inventing a new scope is a
CM plan change: add it to the plan and the config together. A change
spanning several components either omits the scope or splits into
one commit per component; it never lists two scopes.
git log --oneline,
GitHub lists, and changelog lines unreadably wrapped nowhere).Footers are git trailers, one per line, after a blank line:
Refs: #123 links the issue or requirement the change serves.
Closes: #123 when the change completes it. Traceability is the
point (ISO/IEC/IEEE 29148 information-item discipline); a change
with no link states why in the body instead.! after the
type or scope, and a BREAKING CHANGE: footer describing what
breaks and the migration path. The footer token is uppercase;
BREAKING-CHANGE is its only synonym.Co-authored-by: Name <email> credits a second author.
Signed-off-by: appears only in repositories whose CM plan
requires a DCO sign-off.revert, a description naming the reverted
change, and a Refs: footer listing the reverted commit SHAs.
The baseline changes only through recorded changes, including
reversals (12207 change tracking).Invalid examples, with the rule each breaks:
Fixed the bug. — no type, past tense, trailing full stop.feat(AUTH): Add login — scope and description not lowercase,
description not imperative.feat: add login and fix session timeout and update deps — three
changes in one commit; header over 72.chore: update stuff — description names nothing a changelog
reader or a future revert could key on.Default model: GitHub Flow on a protected trunk. Branches are
short-lived and named <type>/<slug>, where the type comes from the
same enum as commit types and the slug is lowercase kebab-case
naming the change, with the scope as its first segment when one
applies: feat/auth-retry-budget, fix/session-timeout. A ticket
segment may follow the type: feat/123-retry-budget.
Rules: no personal-name branches, no wip or date-only names, no
long-lived branches beyond the trunk unless the repo's CM plan names
them (a develop branch, release branches) with their merge
targets. Bot namespaces (dependabot/, release-please--) are
exempt from the pattern and are never renamed by hand.
A pull request is the change record for its change: request, evaluation, disposition, approval, in one place (the 12207 CM lifecycle). Four consequences:
Refs: #<PR number> or the linked issue, so commits, reviews,
changelog entries, and status records key on one identifier.assets/pull_request_template.md, in the
canonical section order: Summary, Changes, Type of change, How was
this tested, Checklist. The change-request fields the CM process
names are folded into that structure: impact and risk and rollback
inside Changes, the type ticked against the title's type, the
reviewer's disposition recorded at the checklist.
Descriptions stay neutral: no internal labels,
codenames, or design-document references an outside reader cannot
resolve.Emergency or non-conforming changes use the variance path: merge under the repo's emergency rule, then record the variance (what was skipped, why, who approved, what follow-up restores conformance) in the PR description before closing it. A variance is a record, not a habit; repeated variances on the same rule mean the rule or the process changes, in the open.
Squash merge is the default. The landed commit's subject is the PR title; its body is the PR's what-and-why summary plus the change ID. Branch commits inside the PR are working notes and do not survive into the trunk, which is why the PR title and description carry the standard's full weight.
Repository settings that make this real (full list in
assets/settings-checklist.md): squash merging allowed, default
squash message format set to PR title, auto-delete head branches on,
branch protection on the trunk requiring the title check and a
review. Without the default-format setting, a validated title still
lands with a body assembled from raw branch commits.
Merge messages never contain an em dash. Where a repository uses
merge commits instead of squash, the merge subject follows the same
header grammar with type merge recorded in the CM plan as a local
type addition, or the platform default with the PR number kept.
Version numbers are SemVer, derived from the change types since the last release: any breaking change bumps major, feat bumps minor, fix, perf, refactor, and revert bump patch, the rest bump nothing. Pre-1.0, breaking changes bump minor and features bump patch, and the CM plan records when the repo leaves pre-1.0 rules.
The changelog is the human-readable face of configuration status accounting: what changed, in which version, when. Format is Keep a Changelog (Added, Changed, Deprecated, Removed, Fixed, Security under Unreleased and per-version sections), dates in ISO 8601 (YYYY-MM-DD). Type mapping: feat to Added, fix to Fixed, perf and refactor to Changed, revert to Removed or Fixed by what it undid; docs, style, test, build, ci, and chore stay out unless they change something a user can observe.
Default tool: git-cliff with assets/cliff.toml, generating the
changelog from commit headers and footers. Alternative:
release-please (assets in assets/release-please/) for repos that
prefer a standing release PR. A repo picks exactly one path at
install time and records the choice in its CM plan; hand-keeping the
changelog is acceptable only in repos with no release automation,
and the seed file is assets/CHANGELOG.seed.md.
A release closes with three records:
vX.Y.Z) on the audited tree, and the changelog section
for that version.assets/release-manifest.md filled in): the
components and versions in the release, per 12207 release
control's requirement to identify the elements in a release.assets/status-accounting.md filled
in): changes proposed, approved, merged, and reverted in the
period, generated from PR and commit data.Before tagging, run the configuration audit
(assets/audit-checklist.md): tag tree, changelog section, version
fields in package files, and manifest must agree. A mismatch stops
the release; the audit is a step, not a suggestion (ISO 10007 audit
discipline).
Guidance fails quietly; the chain makes the standard mechanical. Four links, all shipped as assets:
commitlint.config.mjs extends config-conventional with the
house overrides: the type enum, header max length 72, subject
case and full-stop rules, and the repo's scope enum.references/hook-managers.md covers husky and pre-commit
variants.assets/commitlint-ci.yml), catching what local hooks missed
or bypassed.assets/pr-title-check.yml), configured with the repo's types
and scopes; validateSingleCommit matches the repo's merge
policy.Bypass policy: --no-verify and LEFTHOOK=0 exist for a broken
hook, never for a message someone does not want to rewrite. CI
re-checks everything regardless, and anything that reached the
trunk through a bypass plus an emergency goes through the variance
path above.
Bot alignment is part of the chain: Dependabot's commit prefix is
configured so its commits parse as build(deps) and group or skip
in the changelog as intended; the title check ignores bot labels
and bot branch namespaces are exempt from branch rules.
assets/cm-plan.md to
docs/configuration.md (or the repo's docs location): model,
scope enum, merge authority, changelog path, local type
additions, tailoring decisions..github/pull_request_template.md,
commit.template to .gitmessage and set it with
git config commit.template .gitmessage, the commitlint config,
lefthook.yml, the two CI workflows, and the changelog tooling
for the chosen path. Seed CHANGELOG.md if none exists.references/hook-managers.md, run lefthook install.assets/settings-checklist.md in the GitHub UI: merge
methods, squash default format, branch protection, auto-delete.assets/CHANGELOG.seed.md (opens in a new tab)assets/audit-checklist.md (opens in a new tab)assets/cliff.toml (opens in a new tab)assets/cm-plan.md (opens in a new tab)assets/commit.template (opens in a new tab)assets/commitlint-ci.yml (opens in a new tab)assets/commitlint.config.mjs (opens in a new tab)assets/lefthook.yml (opens in a new tab)assets/pr-title-check.yml (opens in a new tab)assets/pull_request_template.md (opens in a new tab)assets/release-manifest.md (opens in a new tab)assets/release-please/release-please-config.json (opens in a new tab)assets/release-please/release-please.yml (opens in a new tab)assets/settings-checklist.md (opens in a new tab)assets/status-accounting.md (opens in a new tab)evals/evals.json (opens in a new tab)licenses/ATTRIBUTION.md (opens in a new tab)references/changelog-paths.md (opens in a new tab)references/commitlint-rules.md (opens in a new tab)references/hook-managers.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub frzxw/supercharger --plugin engineering-workflow20 skills in this plugin
/brainstormingYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation)./diagnosing-superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness./