commit
Skill10 starsChanged 30 days agoApache-2.0View on GitHub
Use when a commit message has to be written or a commit issued — the Conventional Commits type, subject, body, staging, a subject that is too long, or the `Release-Level` trailer. A freehand message misses the 50/72 limit and the rule that a consumer-facing `.md` is `feat`/`fix`, never `docs`/`chore`. It never stands in for /flow on a development request.
188 other projects use a version of this.
Adopted by
Most recently taken up by
- daledesilva/obsidian_inktheir own version, first seen Nov 9, 2026
- thoughtbot/rails-consultanttheir own version, first seen Nov 8, 2026
- pedrohcgs/claude-code-my-workflowtheir own version, first seen Nov 8, 2026
- jisuzzzz/haechitheir own version, first seen Nov 8, 2026
- dirien/yet-another-agent-harnesstheir own version, first seen Nov 8, 2026
- denysdovhan/skillstheir own version, first seen Nov 8, 2026
Used with
Projects with it also use validate-plan, act-on-feedback and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
shawn-dumasSkillvalidate-plan
Validate an orchestration plan after pre-flight certification. Runs adversarial review, deep review (verify prompt data against codebase), and PoC gate for risky approaches. Auto-invoked by orchestrate-* skills at Step 8.
Also in 5 projects that use this
MicrosoftSkillact-on-feedback
Act on user feedback attached to the current session. Use when the user submits feedback on the session's changes via the Submit Feedback button.
Also in 3 projects that use this
decocmsSkilladd-mcp-tools
Guide for adding new MCP tools with consistent patterns for schemas, tool definitions, registry updates, and Better Auth integration
Also in 3 projects that use this
MicrosoftSkillgenerate-run-commands
Generate or modify run commands for the current session. Use when the user wants to set up or update run commands that appear in the session's Run button.
Also in 3 projects that use this
mitsuhikoSkilloebb-scotty
Austrian rail travel planner (ÖBB Scotty). Use when planning train journeys in Austria, checking departures/arrivals at stations, or looking for service disruptions. Covers ÖBB trains, S-Bahn, regional trains, and connections to neighboring countries.
Also in 3 projects that use this
mitsuhikoSkillpi-share
Load and parse session transcripts from shittycodingagent.ai/buildwithpi.ai/buildwithpi.com/pi.dev (pi-share) URLs. Fetches gists, decodes embedded session data, and extracts conversation history.
Also in 3 projects that use this
Other versions188 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 188
- microsoft/vscode★ 195ksame name
- TryGhost/Ghost★ 56ksame name
- ToolJet/ToolJet★ 41ksame name
- ShareX/ShareX★ 41ksame name
- openai/symphony★ 27ksame name
- ccusage/ccusage★ 19ksame name
- ryoppippi/ccusage★ 19ksame name
- windmill-labs/windmill★ 18ksame name
- EverMind-AI/EverMemOS★ 14ksame name
- EverMind-AI/EverOS★ 14ksame name
178 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository21 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- design-apiSkill
- design-architectureSkill
- design-erdSkill
- design-sdsSkill
- design-srsSkill
- design-tableSkill
- doc-syncSkill
- flow-initSkill
- flowSkill
- flow-uninstallSkill
- harness-authoringSkill
- harness-deploymentsSkill
- harness-initSkill
- harness-insightSkill
- integrationSkill
- performanceSkill
- playwright-scaffoldSkill
- prose-reviewSkill
- release-commitSkill
- wiki-initSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.
0
Common
Most of the 168 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 38
No config, no slot, or no such file → no host guide, which is a normal answer, not a failure: commit-discipline.md alone then governs.
- Distinctive: line 139
One commit, one subject: If the staged set needs two subjects, it is two commits.
“Common” is measured: kept by at least 6 in 10 of the 168 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Commit — author and issue one commit
Source of truth: commit-discipline.md owns the
message format, the type-to-version table, and the language rule. Nothing injects it — read it
before Step 1. This skill does not restate it; it is the procedure that applies it to one
concrete commit.
Input
- $ARGUMENTS — the tier, a hint at what changed, and on a staging promotion the bump
level (
major/minor/patch) that/release-commitasked the user for. The level arrives here or not at all: nothing on disk carries it,.flow/bump.donebeing an empty marker. Everything else is derivable — with no arguments, readgit statusand the diff.
Host commit guide (optional, and it wins on stack facts)
flow-config.commit_guide names the host's own commit/versioning document — /harness-init
generates one at docs/operations/commit-versioning-guide.md. When that file exists, read it
and take its project-specific facts over this skill's generic ones: the scope vocabulary
this repo uses in practice, its 0.x policy, and whether its release tool reads the
Release-Level trailer or derives the bump from the commits itself. Its remaining subject —
which files carry the version, how the changelog is filtered — belongs to the release CI, not
to writing a commit.
guide=$(python3 -c "import pathlib,yaml
p = pathlib.Path('.claude/harness-tier/config/flow-config.yaml')
print((yaml.safe_load(p.read_text(encoding='utf-8')) or {}).get('commit_guide', '') if p.exists() else '')" 2>/dev/null)
if [ -n "$guide" ] && [ -f "$guide" ]; then cat "$guide"; else echo "no host guide"; fiNo config, no slot, or no such file → no host guide, which is a normal answer, not a
failure: commit-discipline.md alone then governs. The if is what makes it one — a && chain
exits 1 on the common no-config path and reads as a broken step. The host guide never
relaxes the format either way: the 50/72 rule and the type table stay as written there.
Step 1 — Stage only what this commit is about
git status --shortStage the affected paths by name. Never git add -A or git add . — one unrelated file swept
in makes the subject a lie about the diff, and the gate reads the same staged set you do.
.claude/harness-tier/.flow/ is gitignored evidence; it never belongs in a commit.
A commit finishing an open merge has nothing to select here: git merge --no-ff --no-commit
already staged the whole merged set, git add only adds to that, and git refuses a
git commit <pathspec> mid-merge. Add only what a gate demanded on top — a rebuilt graph.yaml.
Step 2 — Pick the type
The type-to-version table in commit-discipline.md decides. Two traps cost a release when
missed:
- A consumer-facing
.mdchange isfeatorfix, neverdocs.docsandchoredo not bump the version, so they never propagate to a consumer. Only developer-only docs staydocs. - A squash merge carries the highest-priority type among the commits it bundles.
Step 3 — Draft
type(scope): description, a blank line, - bullets one sentence each, a blank line, footers.
Scope comes from the host guide's vocabulary when it has one, otherwise the module or area the
diff touches. The body says what and why; the commit is the history entry, so it carries no
account of earlier rounds of the same work.
Step 4 — Verify, then issue
One block: a heredoc cannot survive into a second one, and a check the agent runs after
committing is a check that changed nothing. On a staging promotion the Release-Level trailer
of Step 5 goes into this heredoc, below a blank line — this step issues the commit, so a
trailer left for the step after it lands nowhere.
msg=$(cat <<'EOF'
<type>(<scope>): <subject, replacing this whole heredoc>
- <what changed, and the reason it had to>
EOF
)
python3 -c 'import sys
t = sys.argv[1].splitlines()
sub = t[0] if t else ""
merge = sub.startswith("Merge")
bad = ["the heredoc is still the template"] if not t or "<" in sub else []
bad += [f"subject is {len(sub)} chars > 50"] if len(sub) > 50 and not merge else []
bad += [f"line {n} is {len(x)} chars > 72" for n, x in enumerate(t[1:], 2) if len(x) > 72]
if bad:
sys.exit("REWRITE — " + "; ".join(bad))' "$msg" && printf '%s
' "$msg" | git -C . commit -F -Three things block here, all in the one block on purpose. A template subject still carrying
< aborts — left runnable it would pass the length check, satisfy gitlint, and land as a real
commit. Over 50 means rewrite the subject, and a non-ASCII character counts as one, which is what
Python's len already measures. One subject is exempt: a title beginning with capital Merge,
the only form gitlint reads as a merge and the only one it drops the type and 50-char checks
for (promotion.md Merge commit messages) — a promotion merge
title carrying its source branch runs past 50 routinely. The template < check and the 72-char
body limit still bind it. And -C keeps the worktree
inside the command rather than in prose beside it: a bare git commit after a separate cd can
leave the gate checking the main repo, since --classify reads the git -C the command
carries. Write that path literally — . for the main repo, the worktree's own path
when the work lives in one. A shell variable in the flag's own place is the
trap: the hook is handed the command before the shell expands it, and
the gate's invocation grammar needs the token after git to start with -. A variable that
supplies the flag itself is not one, so the command reads as something that is not a commit
and every gate behind it is skipped without a word. A variable used as a
flag's argument is fine — it is the flag that has to be literal.
The commit prompt itself is deliberately left unapproved — it is the mechanical backstop behind the tier gate.
Step 5 — Promotion commits only: the Release-Level trailer
A staging promotion on a host whose release workflow reads the trailer ends with a blank line
and Release-Level: <choice>, the choice taken from $ARGUMENTS: auto, continue,
patch, minor or major. Write it whatever the choice, auto included — an absent trailer
runs as auto too, but only a written one records that the level was asked. Spell it exactly:
any other value, an empty one, two different ones, or continue with no pending rc fails the
release run rather than falling back to a derived bump.
continue cuts the next rc of the pending series (1.1.0-rc.2 → 1.1.0-rc.3); a forced
level on a re-promotion bumps the base again and skips X.Y.Z as a stable release
(promotion.md Staging). /release-commit passes no level where
the workflow reads no trailer, and then the commit takes none. A production commit never
takes a level; the finalize step is deterministic.
Guardrails
- Never
--no-verify. A blocked commit is the gate working. Read its reason and satisfy it; bypassing it is what the gate exists to prevent. - One commit, one subject. If the staged set needs two subjects, it is two commits.
- This skill never issues the merge. The Merge strategy belongs to
/flowfor the day-to-day rows and to/release-commitfor a promotion, several of them hook-enforced. A promotion reaches Step 4 with its merge already open (--no-ff --no-commit), so the commit issued there is what writes that merge commit — do not abort it to write a plain one. - Never spell a CI-skip marker in the message. GitHub reads
[skip ci]anywhere in the pushed head commit's message, body included, and creates no workflow run for that push: every CI layer is off for the change, and the absence of a run reports as nothing at all. A message that has to discuss one names it in prose — "a skip-ci marker".
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

