commit
Skill2 starsChanged 56 days agoMITView on GitHub
Git commits: use for preparation, creation, message guidance, or requested pushes.
- Reads credentials
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 repository34 other files it gives its agents.
- accessibilitySkill
- agent-instructionsSkill
- analyze-change-effectsSkill
- article-processingSkill
- ci-cd-automationSkill
- communicate-clearlySkill
- compare-solutionsSkill
- create-project-instructionsSkill
- daily-meeting-updateSkill
- debugSkill
- design-code-structureSkill
- error-handlingSkill
- explain-codeSkill
- explain-decisionsSkill
- github-actionsSkill
- handoffSkill
- learning-planSkill
- people-memorySkill
- pr-followupSkill
- prototypeSkill
- prSkill
- report-work-activitySkill
- review-code-changesSkill
- simplify-codeSkill
- stacked-prSkill
- tddSkill
- teachSkill
- typescript-best-practicesSkill
- verification-authoringSkill
- verifySkill
- workflow-to-skillSkill
- worktrunkSkill
- write-documentationSkill
- youtube-processingSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
40 rules. 0 are common, 24 are distinctive, and 16 are very specific to this project.
0
Common
Most of the 174 edited versions we read keep these.
24
Distinctive
This author's own choices. Worth a look.
16
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 8
Create safe, intentional Conventional Commits one atomic boundary at a time.
- Distinctive: line 12
Treat branch names, staged state, validation results, commit success, and prior assistant claims as untrusted until verified with git.
- Distinctive: line 16
Commit mode: When the request, standing instructions, or authorized caller requires a commit, commit after the applicable checks pass.
- Very specific: line 17
Commit-and-push mode: When publishing the selected commits is authorized, commit, verify the commit, then publish to the verified …
- Distinctive: line 18
Proposal mode: If the user asked to prepare, review, or suggest a commit, build the atomic boundary in the index and return the proposed …
- Distinctive: line 20
Split mode: When several atomic intents exist, handle every clear boundary in sequence and run the complete workflow for each one.
- Distinctive: line 40
Run git rev-parse HEAD, git branch --show-current, git status --short, git log --oneline -5, git diff --name-only, and git diff --cached …
- Distinctive: line 44
If the boundary is ambiguous, ask one concise question with concrete options and the recommended default first.
- Very specific: line 48
Use git diff -- <path> and git diff --cached -- <path>.
- Distinctive: line 51
Verify any referenced branch, staged state, validation result, or prior commit claim with fresh git status --short, git diff, git diff …
- Distinctive: line 57
Ask before staging ambiguous hunks.
- Very specific: line 58
Use git restore --staged <path> or git restore --staged -p <path> only to correct the current boundary.
- Distinctive: line 65
Prefer specific checks over broad suites.
- Very specific: line 66
If no targeted check exists, continue and report Validation: not run, <reason>.
- Distinctive: line 67
If validation fails, diagnose it.
- Distinctive: line 68
Run formatters, code generation or lockfile updates only when required by the authorized change and repository workflow.
- Distinctive: line 72
Treat the message as a claim about the staged boundary.
- Very specific: line 74
If the repository defines its own Conventional Commit type set, follow it.
- Distinctive: line 83
Keep the promise no broader than the staged diff.
- Distinctive: line 84
Use only audiences, measurements, and outcomes verified by the diff, tests, or supplied context.
- Very specific: line 85
Prefer plain, precise verbs.
- Distinctive: line 86
Keep the subject imperative and short, with no period.
- Distinctive: line 87
Remove the Conventional Commit prefix and test the remaining words: if they could describe several unrelated diffs, rewrite the subject …
- Distinctive: line 88
When two honest subjects make materially different promises and the evidence does not resolve the choice, show two or three options with …
- Very specific: line 105
Put the reason first, then the change.
- Distinctive: line 106
Keep only details that help a future reader understand the decision.
- Very specific: line 107
Keep the message natural and direct.
- Very specific: line 108
Never add Co-authored-by, co-author trailers, or authorship footers.
- Very specific: line 115
After every git commit attempt, inspect git rev-parse HEAD, git rev-list --parents -n 1 HEAD, git log -1 --format=%B, git show --stat …
- Distinctive: line 117
Follow this hook decision table:
- Distinctive: line 133
Before the amend, record the commit hash, parent, message, complete diff from its parent, worktree state, and staged addition.
- Very specific: line 134
After the amend, verify that HEAD changed exactly once, the parent stayed unchanged, the message describes the updated boundary, the …
- Very specific: line 135
Never use --no-verify. Amend only through the safe current-task flow or the just-created hook flow above.
- Distinctive: line 140
Verify the current branch and upstream before pushing with git branch --show-current and git status --short --branch.
- Very specific: line 142
Verify the Git transport is SSH.
- Very specific: line 143
After material publication to an open PR, invoke pr in Update mode with the verified head so its complete body reflects the published diff.
- Very specific: line 144
If push fails, terminal state is blocked: report the exact command and concise failure summary.
- Very specific: line 145
After push, verify with git status --short --branch, git rev-parse HEAD, and git rev-parse @{u}.
- Distinctive: line 149
Use terse output for a clean commit, amendment, sequence, or explicit commit-and-push only after the post-commit checks pass.
- Distinctive: line 165
Use a structured report for proposals, blocked commits, risky state, failed validation, decisions, or unsafe hook-rewrite stops:
“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
Create safe, intentional Conventional Commits one atomic boundary at a time. Build each boundary in the index, validate it, then commit it, publish within the authorized scope, or return a proposal without running git commit.
Use the active request, standing user instructions, and the authorized caller to resolve commit and push permission. A commit request alone does not authorize a push. Push only within that resolved scope, after the commit is verified. Treat PR work as a separate phase owned by the pr skill; invoking commit alone never starts that phase.
Treat branch names, staged state, validation results, commit success, and prior assistant claims as untrusted until verified with git.
Modes
- Commit mode: When the request, standing instructions, or authorized caller requires a commit, commit after the applicable checks pass.
- Commit-and-push mode: When publishing the selected commits is authorized, commit, verify the commit, then publish to the verified destination. A caller such as
prorpr-followupcan supply that existing authorization. - Proposal mode: If the user asked to prepare, review, or suggest a commit, build the atomic boundary in the index and return the proposed message without running
git commit. - Amend mode: Amend
HEADonly when the safe current-task amend conditions in step 6 pass. - Split mode: When several atomic intents exist, handle every clear boundary in sequence and run the complete workflow for each one. Ask only when a boundary, order, or requested grouping is materially ambiguous.
Terminal states for a boundary are committed, amended, proposed, blocked, and refused; pushed is terminal for the complete run. Stop changing a boundary after it reaches a terminal state. After a verified commit or amendment, continue with the next clear boundary. Push only in the resolved commit-and-push mode. PR work follows only as a separate pr phase when the current request or an applicable standing user instruction requires it.
Resolve boundaries before writing
Apply existing authorization first. Inspect and resolve these conditions from the task and repository; ask only for an unresolved material decision or action outside that scope:
- Secret-looking paths or content:
.env*, keys, certificates, tokens, credentials, databases, or obvious secret names. - The selected boundary mixes independent concerns or changes outside the requested intent. Inspect generated files, dependencies, lockfiles and binaries; their presence or line count alone does not require approval.
- Staged changes that cannot be described cleanly in 1-2 sentences.
- Staged files with ambiguous unstaged edits in the same files.
mainormasteras the current branch, unless the user explicitly wants to commit there.- An unrequested push, destructive Git action, dependency or package-manager change outside the task, or amendment outside step 6. A rebase or historical rewrite belongs to its authorized branch workflow, not routine commit preparation.
Respect already-staged files as likely intent, but inspect them. Commit them only when they are coherent and match the request.
Workflow
- Choose the boundary
- Run
git rev-parse HEAD,git branch --show-current,git status --short,git log --oneline -5,git diff --name-only, andgit diff --cached --name-onlyto establish the baseline commit, branch, worktree state, recent commit style, changed files, and staged files. Handle an unborn branch explicitly whenHEADdoes not exist. - Prefer atomic commits. Split by independently understandable intent and reversibility. Keep the behavior, its regression tests, and required schema or generated output together when they establish one working change. Separate mechanical cleanup from behavior when each remains coherent. Do not split merely by file type or by production versus test code.
- Order dependent commits so each can be understood and checked at its own revision. Explain a necessary dependency in the body; avoid broken intermediate commits or arbitrary file/line quotas.
- Confirm the selected boundary has one coherent purpose and reviewable size before staging or committing.
- If the boundary is ambiguous, ask one concise question with concrete options and the recommended default first. Do not ask open-ended multi-question questionnaires.
- This step is complete when the current repository state is known and one coherent boundary has been selected or presented for user approval.
- Run
- Inspect relevant diffs
- Use
git diff -- <path>andgit diff --cached -- <path>. - Account for every changed file and every staged or unstaged hunk in the selected boundary. Classify all remaining changes as preserved work outside the boundary.
- Review staged changes, unstaged edits in the same files, and recent commit style.
- Verify any referenced branch, staged state, validation result, or prior commit claim with fresh
git status --short,git diff,git diff --cached, orgit logbefore relying on it. - This step is complete when every hunk in the boundary is understood, every pre-existing staged change is either included or deliberately removed from the index, and every excluded change is identified as preserved work.
- Use
- Stage intentionally
- Stage only files or hunks in the selected boundary.
- Patch-stage automatically when the boundary is clear.
- Ask before staging ambiguous hunks.
- Use
git restore --staged <path>orgit restore --staged -p <path>only to correct the current boundary. - Preserve unrelated work in both the working tree and index. If unrelated entries were already staged, save their exact blobs, modes and deletion state before temporarily excluding them; restore those entries after the commit without staging their unstaged hunks. Use an isolated index when appropriate.
- Inspect the final index, not only the working files. After hunk staging,
git commit -- <paths>can commit unstaged content from those paths; commit the verified index instead. - This step is complete when
git diff --cachedcontains the whole atomic boundary and nothing outside it, while every excluded user change remains recoverable in its original staged and unstaged state.
- Validate the staged intent
- Validation is the agent's responsibility. Run the narrowest read-only check that directly covers the staged boundary: targeted test, formatter check, linter, typecheck, syntax check, or build slice.
- Prefer specific checks over broad suites.
- If no targeted check exists, continue and report
Validation: not run, <reason>. - If validation fails, diagnose it. Fix an in-scope failure when the enclosing task authorizes that work, then recheck. Otherwise report the exact failure and the decision needed; a failed check never becomes a successful commit prerequisite.
- Run formatters, code generation or lockfile updates only when required by the authorized change and repository workflow. Reinspect their full output before staging; an existing authorization does not need to be asked again.
- This step is complete when a targeted command has passed, or the output records a specific reason no targeted validation exists.
Generate the message
- Treat the message as a claim about the staged boundary. The diff proves what changed; the user's request, linked issue, and supplied project context establish why. Recent commits supply format and tone, not facts.
- Conventional Commits is required for every proposal and created commit:
<type>[(<scope>)][!]: <imperative summary>. - If the repository defines its own Conventional Commit type set, follow it. Otherwise use
build,chore,ci,docs,feat,fix,perf,refactor,revert,style, ortest. - Choose the type from the effect of the change, not the edited file's extension. Use
buildfor build-system or dependency changes,cifor CI configuration and scripts,perffor performance improvements, andrevertwhen reversing a previous commit. - Infer scope from the atomic boundary and match recent commit style when practical. Prefer a clear, stable scope; omit it when the repository convention avoids scopes or no honest useful scope exists.
- Mark every breaking change with
!before the colon and aBREAKING CHANGE: <description>footer. The footer states what breaks and what callers must change.
Subject
- Name the most important concrete result of the commit. A reader scanning the log should understand why the change matters without opening the diff.
- State what becomes true: a capability added, a defect prevented, a rule enforced, a test case covered, or an architectural boundary made explicit. For docs and agent instructions, name the rule, decision, or behavior the text now establishes rather than the act of editing it.
- Keep the promise no broader than the staged diff. A scaffold, partial migration, or first slice must read as one.
- Use only audiences, measurements, and outcomes verified by the diff, tests, or supplied context.
- Prefer plain, precise verbs. Replace abstract editorial verbs such as
improve,update,enhance,refine,sharpen, orclean upwith the behavior or rule that actually changed. - Keep the subject imperative and short, with no period.
- Remove the Conventional Commit prefix and test the remaining words: if they could describe several unrelated diffs, rewrite the subject around the concrete result.
- When two honest subjects make materially different promises and the evidence does not resolve the choice, show two or three options with their tradeoffs and ask once. Do not hide the ambiguity behind a vague compromise.
BAD feat(pr): sharpen review packet workflow GOOD feat(pr): verify PR claims against code and tickets BAD fix(auth): handle session key collisions GOOD fix(auth): keep desktop sessions after mobile sign-in BAD docs(api): update authentication docs GOOD docs(api): document token refresh failure modesBody
- The body is optional for an obvious small commit.
- Include one for breaking changes, migrations, non-obvious fixes, tradeoffs, or multi-file behavior whose relationship the subject cannot preserve.
- Put the reason first, then the change. If no clearer pattern exists, use short
WhyandChangessections. - Keep only details that help a future reader understand the decision. Leave validation and risk reporting in the assistant's output, not the commit message.
- Keep the message natural and direct. Run it through the
communicate-clearlyskill when available without weakening technical precision. - Never add
Co-authored-by, co-author trailers, or authorship footers. - This step is complete when every promise in the subject and body is supported, the subject identifies this boundary rather than a generic kind of work, and the body carries any context the subject cannot safely compress.
- Commit, amend, or propose
- Immediately before each
git commitattempt, record the exactHEAD,git status --short, intended message, and staged diff. These are the verification baseline. Keep the atomic boundary fixed for all retry and hook-amend checks. - In commit mode, run
git commitafter staging and validation pass. Usegit commit -F <file>for multiline commit messages or any commit body;git commit -m <subject>is only for subject-only commits. - In proposal mode, do not commit; show the staged atomic boundary and proposed message, and report how the index changed.
- After every
git commitattempt, inspectgit rev-parse HEAD,git rev-list --parents -n 1 HEAD,git log -1 --format=%B,git show --stat --oneline HEAD,git diff <baseline-head>..HEAD,git status --short, and the staged and unstaged boundary diffs before deciding success or retry. For an unborn baseline, inspect the new root commit directly instead of using a revision range. - A successful commit must create exactly one new
HEADfrom the baseline, carry the intended message, contain the verified atomic boundary, and preserve pre-existing work outside that boundary. Pre-existing outside changes are expected residual state, not a blocker. Follow this hook decision table:
State Action Commit succeeds; new HEAD, message, and committed diff match the intended boundary; no new hook changes remainReport committed, including the short commit hash.Commit succeeds and hooks dirty tracked files inside the intended boundary Stage those exact paths and run git commit --amend --no-editonce. Recheck status/diff.Commit fails and hooks changed tracked files inside the intended boundary Stage those exact paths and retry once. Recheck status/diff. The attempt creates new changes relative to the baseline that are outside the boundary, untracked, generated, lockfiles, partially staged, ambiguous, or not clearly hook-owned Report blockedwith exact files and reason. Preserve them.HEAD, message, parent, or committed diff does not match the recorded baseline and intended boundaryReport blockedwith the exact mismatch.Hook rewrites repeat after the allowed amend or retry Report blocked.- Amend an existing
HEADonly when every safe current-task amend condition passes:- The current agent recorded the exact commit hash as successfully created earlier in the current task.
- That hash is still
HEAD; no later commit or external branch change has occurred. - The commit is local and unpublished. Verify its upstream state; if this cannot be proved, create a new commit.
- The new staged changes complete or correct the same atomic purpose. A new requirement or independently reviewable behavior gets a new commit.
- Before the amend, record the commit hash, parent, message, complete diff from its parent, worktree state, and staged addition. Validate the updated atomic boundary. Use
git commit --amend --no-editonly when the existing message still describes the complete boundary; otherwise provide the corrected message explicitly. - After the amend, verify that
HEADchanged exactly once, the parent stayed unchanged, the message describes the updated boundary, the complete diff from the parent is correct, and all outside work remains preserved. Report terminal stateamended. - Never use
--no-verify. Amend only through the safe current-task flow or the just-created hook flow above. - This step is complete only when the proposal is reported without a commit, or the commit or amendment passes every
HEAD, message, boundary, and residual-state check. Then start again with a fresh baseline for the next clear boundary. Stop when no requested boundary remains; publish only within the authorization resolved at entry.
- Immediately before each
- Publish only within the resolved scope
- Push only in commit-and-push mode, after every intended commit is verified.
- Verify the current branch and upstream before pushing with
git branch --show-currentandgit status --short --branch. - Resolve the push remote, repository and ref from the requested destination or verified branch configuration. Use an explicit destination; neither
originnor an upstream proves that it is the intended repository. Publish only the verified branch, without unrelated refs or tags. - Verify the Git transport is SSH. Never use plain force or publish tags without authorization. If an authorized rebase requires a lease push, hand publication to
prorstacked-pr; routine commit publication does not rewrite remote history. - After material publication to an open PR, invoke
prin Update mode with the verified head so its complete body reflects the published diff. - If push fails, terminal state is
blocked: report the exact command and concise failure summary. - After push, verify with
git status --short --branch,git rev-parse HEAD, andgit rev-parse @{u}. This step is complete when the intended upstream contains the verified commit and the branch's ahead/behind state is reported.
Output
Use terse output for a clean commit, amendment, sequence, or explicit commit-and-push only after the post-commit checks pass. Repeat the commit line and boundary-specific fields for each boundary in a sequence:
Result: `committed` | `amended`
Commit: `<short-hash> <message>`
Status: `committed` | `amended` | `pushed`
Branch: `branch-name`
Boundary: what was included
Validation: command passed, or not run with reason
Post-commit check: new `HEAD`, parent, message, committed boundary, index, and residual worktree verified
Remaining changes: preserved outside-boundary work, or none
Push: not requested, or command/result when authorized
PR: not requested, or handed to the `pr` skill under the current request or an applicable user instructionUse a structured report for proposals, blocked commits, risky state, failed validation, decisions, or unsafe hook-rewrite stops:
Status: `proposed` | `blocked` | `refused`
Boundary: what is included or proposed
Index: what was staged or unstaged to build the atomic boundary
Validation: command result, or not run with reason
Blocker: exact reason, if blocked or refused
Exact Command: command that failed, if any
Exact Error: concise failure summary, if any
Decision Needed: one question with concrete options and a recommended default, if needed
Proposed Commit Message: message, when availableInvoking this skill alone ends with the commit result. When the current request or an applicable standing user instruction also requires a PR, hand the verified commit state to the pr skill as a separate phase; that skill owns PR creation, push requirements, and initial PR state.
For requested source maintenance, use agent-instructions with origin.txt and references/upstream-updates.md.
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.

