commit-sequence
Skill12 starsChanged 2 months agoApache-2.0View on GitHub
Split a large AccessFlow working tree into a sequence of logical, individually-reviewable commits — proposing the groups, confirming each with the user, then staging and committing. Knows which file sets must never be split apart (an engine version bump and its connector pin, a DTO constraint and its form rule). Trigger when the user says "commit these changes", "split this into commits", "commit sequence", or has a large diff and asks to land it.
In this repository8 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- website/llms.txtllms.txt
- add-engineSkill
- dev-stackSkill
- impl-gh-issueSkill
- parallel-agentsSkill
- prep-gh-releaseSkill
- review-gh-prSkill
The file
Files
commit-sequence
When to use
A working tree with several unrelated or separable changes. If everything is one change, just commit it — this skill exists to avoid the 40-file "misc" commit nobody can review.
Procedure
1. Read the tree
git status --short
git diff --stat
git diff --cached --statNote anything untracked that you did not create — never sweep those in. Ask, or leave them.
2. Propose groups
Present a numbered list: group name, conventional-commit subject, and the files. Then stop and let the user adjust before anything is staged.
3. Group by change, not by directory
AccessFlow's real logical units cut across the tree:
| Unit | Files that belong together |
| A backend feature | the module's api/ + internal/ + its tests + its migration (+ .sql.conf) + messages.properties + the six locales |
| An engine change | engines/<id>/** and connectors/<id>/connector.json — never split: a version bump without the re-pinned SHA fails CI and leaves the catalog pointing at a jar whose hash does not match |
| A frontend feature | src/api/<domain>.ts + the page/components + en.json + the six locales + e2e/tests/<flow>.spec.ts (+ the regenerated help-corpus/ when it touches en.json, Sidebar.tsx or reviewHubTabs.ts — the corpus derives its menu vocabulary from those, #925) |
| A validation change | the backend DTO constraint and the mirroring Form.Item rule — the parity rule makes these one commit by definition |
| A website change | website/**.html + sitemap.xml + the regenerated help-corpus/ (+ frontend/src/config/docs.ts when anchors moved) |
| A config knob | the *Properties record + application.yml + the docs/09-deployment.md row |
4. Never split these
- An engine
pom.xmlversion bump from itsconnectors/<id>/connector.jsonpin. - A migration from its
.sql.confsidecar. - An i18n key from its six translations.
- A backend constraint from its frontend rule.
Splitting any of these leaves an intermediate commit that fails CI — which breaks bisect.
5. Commit each group
Stage explicitly by path (never git add -A), then commit with a heredoc so the body survives:
git add <explicit paths>
git commit -F - <<'MSG'
<type>(<scope>): <imperative subject, <= 72 chars>
<body: what changed and WHY. The diff shows what; the body explains the
reasoning, the constraint, or the measurement behind it.>
MSGTypes: feat, fix, refactor, test, docs, build, chore, perf.
Subject in imperative mood, ≤ 72 chars, no trailing period.
6. Report
List each commit's hash and subject, then git status --short to show what is deliberately left.
Anti-patterns
git add -A/git add .→ sweeps insettings.local.json, stray untracked dirs, and other people's work-in-progress. The pre-commit hook blocks some of it; explicit paths prevent all of it.--no-verify→ the hooks are the point.- Amending or force-pushing a pushed commit without being asked.
- Committing someone else's untracked files — if you did not create it, leave it.
- A subject that restates the diff ("update DiscoveryController.java") → say what changed and why.
- Splitting for its own sake → three commits that must land together are one commit.
- Committing on
main→ cut a{feature,fix,chore}/AF-<n>-<slug>branch first.
Interaction with the hooks
.claude/hooks/pre-commit-check.sh fires on each git commit and warns on exactly the
"must land together" rules above — a missing locale translation, an engine pin left behind, a
website edit without its sitemap bump. Treat a warning as a signal that your grouping is wrong,
not as noise to push past.
Acceptance checklist
- Every group is independently reviewable and independently green.
- No group leaves CI failing at that commit (bisect stays useful).
- Nothing untracked-and-not-yours was staged.
- Each subject is imperative and ≤ 72 chars; each body says why.
- The final
git status --shortwas shown, and anything left behind was called out.
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.

