commit
Skill0 starsChanged 2 months agoMITView on GitHub
spec-flow SHIP step: conventional-commit + push + surface the merge/pull-request link, VCS-agnostic (GitHub + GitLab), with a base-branch guard. Branch creation is owned by the lifecycle commands (/sf:ingest, /sf:bug, /sf:change) via the engine's branch-ensure; this skill commits on the current work branch and refuses to commit on the configured base branch. Invoke ONLY in spec-flow context — explicitly as /sf:commit, or from the /sf:phase ship step. Do NOT auto-trigger on a bare "commit"/"commit push" request — that is the user's own commit workflow, not this skill.
- Commits and pushes
193 other projects use a version of this.
Adopted by
Most recently taken up by
- microsoft/vscodetheir own version, first seen Nov 12, 2026
- morodomi/dev-crewtheir own version, first seen Oct 5, 2026
- Magnus-Gille/claude-skillstheir own version, first seen Oct 5, 2026
- Kangentic/kangentictheir own version, first seen Oct 5, 2026
- Integralist/agent-skillstheir own version, first seen Oct 4, 2026
- tam159/next-roletheir own version, first seen Oct 4, 2026
Used with
Projects with it also use create-branch, review-r 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.
SentrySkillcreate-branch
Create a git branch following Sentry naming conventions. Use when asked to "create a branch", "new branch", "start a branch", "make a branch", "switch to a new branch", or when starting new work on the default branch.
Also in 4 projects that use this
luischanciSkillreview-r
Run the R code review protocol on R scripts. Checks code quality, reproducibility, domain correctness, and professional standards. Produces a report without editing files.
Also in 3 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
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
AWSSkillissue
Implement a GitHub issue end-to-end — branch, code, test, docs, and commit.
Also in 9 projects that use this
luischanciSkillvalidate-bib
Validate bibliography entries against citations in all manuscript files. Find missing entries and unused references.
Also in 3 projects that use this
- +2 more from luischanci
Other versions193 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 193
- microsoft/vscode★ 196ksame name
- ToolJet/ToolJet★ 41ksame name
- openai/symphony★ 28ksame name
- EverMind-AI/EverOS★ 13ksame name
- GetStream/Vision-Agents★ 8.1ksame name
- parcadei/Continuous-Claude-v3★ 3.9ksame name
- Windy3f3f3f3f/claude-code-from-scratch★ 2.7ksame name
- NeoLabHQ/context-engineering-kit★ 1.7ksame name
- pedrohcgs/claude-code-my-workflow★ 1.6ksame name
- bubblelabai/BubbleLab★ 1.1ksame name
183 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 repository2 other files it gives its agents.
- manual-testSkill
- srs-to-sdSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 1 is distinctive, and 5 are very specific to this project.
0
Common
Most of the 174 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 52
If .spec-flow/config.json exists, read its branching block (mode, base).
- Very specific: line 54
If branching.mode is not off and the current branch equals branching.base (e.g.
- Very specific: line 59
If mode: off, or there is no .spec-flow/ (non-spec-flow repo), or already on a work branch → proceed normally.
- Distinctive: line 69
Read git diff --cached to understand intent.
- Very specific: line 71
If something staged looks unrelated, you MAY git restore --staged <file> to drop it (working-tree change stays intact).
- Very specific: line 131
Add Push: origin/{branch} and the MR/PR link when pushed.
“Common” is measured: kept by at least 6 in 10 of the 174 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 — conventional commit + push (spec-flow)
Turn the staged diff into a clean conventional commit, push, and surface the MR/PR link.
This skill is convention only — no personal style, no stack assumptions. Branch policy
lives in .spec-flow/config.json → branching and is created by the lifecycle commands, not here.
Multi-repo: this skill operates on the current working directory's git repo only. When config.repos is set (one SD across sibling service repos), the caller runs this skill once per repo with staged changes — cd into each repo first. branch-ensure has already created the same feat/<feature> branch in each, so each invocation commits + pushes + surfaces one PR for that service; collect the PR links together.
Modes
| Invocation | Behavior |
commit | Commit staged changes on the current branch |
commit push | Commit + push + surface MR/PR link |
Process
Step 1 — Gather context (run in parallel)
git status --short
git diff --cached --stat
git diff --stat
git log --oneline -5
git rev-parse --abbrev-ref HEADCollect: current branch, staged files (git diff --cached --name-only), unstaged/untracked
(informational), and the repo's recent commit style.
Step 2 — Base-branch guard (spec-flow)
If .spec-flow/config.json exists, read its branching block (mode, base).
- If
branching.modeis notoffand the current branch equalsbranching.base(e.g.main): STOP. Do not commit. Tell the user:You're on the base branch
<base>. spec-flow creates the work branch at/sf:ingest(per SD),/sf:bug, or/sf:change— run the relevant one first, then re-run commit. (Or setbranching.mode: "off"in.spec-flow/config.jsonto allow commits on<base>.) - If
mode: off, or there is no.spec-flow/(non-spec-flow repo), or already on a work branch → proceed normally.
Branch creation is the engine's job (branch-ensure, called by the lifecycle commands) — a single
source of truth for naming. This skill never runs git checkout -b.
Step 3 — Scan staged changes
Work from the staged set only. Never git add — the user decides what enters the index.
- Read
git diff --cachedto understand intent. - Nothing staged → stop (see Edge Cases).
- If something staged looks unrelated, you MAY
git restore --staged <file>to drop it (working-tree change stays intact). Never add new files.
Step 4 — Detect type and scope (language-agnostic, from staged diff)
Type (first match wins):
| Type | When |
feat | New files / new capability / new endpoint, command, or public function |
fix | Corrects wrong behavior, error handling, or an incorrect value |
refactor | Rename / move / restructure with no behavior change |
chore | Build files, dependencies, config, generated artifacts, formatting |
docs | Only docs / comments (.md, doc-comments) changed |
test | Only test files changed (any *test* / *spec* path the repo uses) |
Scope: the primary module/feature affected, derived from the common directory or filename
of the staged files (e.g. auth, bug, snapshot, init). Omit scope if changes span many
unrelated areas.
Step 5 — Commit (staged only)
{type}({scope}): {subject}
{body — only when multiple distinct changes or non-obvious}Rules: subject imperative, ≤72 chars, no trailing period; body bullets only when needed;
match the repo's existing style from Step 1. Plain text only — no emoji.
git commit -m "$(cat <<'EOF'
{type}({scope}): {subject}
{optional body}
EOF
)"Step 6 — Push + surface MR/PR (push mode)
git push -u origin "$(git rev-parse --abbrev-ref HEAD)"(-u on first push sets upstream; later pushes can be plain git push.) Then surface the review link,
VCS-agnostic:
- GitLab: the push output prints a
remote: ... merge_requests/new?...URL — report it. - GitHub: report the compare URL from the push output, or run
gh pr createif the user wants the PR opened. (Ask before runningghif approval is required in this environment.)
Step 7 — Report
Branch: {current-branch}
Commit: {short-hash} — {subject}
Files: {count} changedAdd Push: origin/{branch} and the MR/PR link when pushed. Always list unstaged/untracked files
left out, so the user knows what wasn't committed.
Edge Cases
- Nothing staged → stop: "No staged changes.
git add <files>then re-run." List unstaged/untracked. Do NOT auto-stage. - On base branch with
mode != off→ refuse (Step 2). Point to lifecycle commands. - Unstaged files alongside staged → commit only staged; list the rest in the report.
- Amend → only if the user explicitly asks, and never amend an already-pushed commit.
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.

