commit
Skill4 starsChanged 7 months agoMITView on GitHub
Session-scoped commit of uncommitted changes. Stages relevant files, drafts a commit message from the diff, and commits immediately unless the request is genuinely ambiguous. Push is a separate action and only happens when the user explicitly asks, such as "commit and push". Use when user says "commit", "commit this", "commit changes", or "commit and push".
- Reads credentials
194 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 versions194 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 194
- 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
184 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 repository61 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/ai-workspace-projections.mdcCursor rule
- .cursor/rules/mcp-tool-configs.mdcCursor rule
- .cursor/rules/node-typescript.mdcCursor rule
- .cursor/rules/runstore-listruns-cache.mdcCursor rule
- .cursor/rules/worker-posture.mdcCursor rule
- .cursor/rules/worker-safety.mdcCursor rule
- await-pr-checksSkill
- create-agentSkill
- create-issueSkill
- create-mcpSkill
- create-planSkill
- create-prSkill
- create-ruleSkill
- create-skillSkill
- create-test-planSkill
- implement-planSkill
- load-contextSkill
- mergeprepSkill
- orchestrate-create-planSkill
- orchestrate-create-test-planSkill
- orchestrate-implement-planSkill
- orchestrate-resolve-pr-commentsSkill
- orchestrate-reviewSkill
- publish-releaseSkill
- resolve-conflictsSkill
- resolve-issue-commentsSkill
- resolve-pr-commentsSkill
- resolve-review-findingsSkill
- review-prSkill
- reviewSkill
- run-test-planSkill
- setup-worktreeSkill
- update-contextSkill
- await-pr-checksSkill
- commitSkill
- create-agentSkill
- create-issueSkill
- create-mcpSkill
- create-planSkill
- create-prSkill
- create-ruleSkill
- create-skillSkill
- create-test-planSkill
- implement-planSkill
- load-contextSkill
- orchestrate-create-planSkill
- orchestrate-create-test-planSkill
- orchestrate-implement-planSkill
- orchestrate-resolve-pr-commentsSkill
- orchestrate-reviewSkill
- publish-releaseSkill
- resolve-conflictsSkill
- resolve-issue-commentsSkill
- resolve-pr-commentsSkill
- review-prSkill
- reviewSkill
- run-test-planSkill
- setup-worktreeSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. 0 are common, 16 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 175 edited versions we read keep these.
16
Distinctive
This author's own choices. Worth a look.
2
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 10
Read AGENTS.md first for repository-wide git safety rules.
- Distinctive: line 22
If no changes: report "Nothing to commit" and stop.
- Distinctive: line 33
Only stop to ask the user if there is a real ambiguity:
- Distinctive: line 38
If the scope is clear, do not ask for confirmation before committing.
- Distinctive: line 42
Read the staged diff to understand what changed:
- Distinctive: line 67
When the user asked to commit, treat that as the authorization to commit.
- Distinctive: line 70
Create the commit with the drafted message.
- Distinctive: line 73
Do not pause for a second approval prompt unless the user explicitly asked to review the message first.
- Distinctive: line 77
Commit and push are separate actions.
- Very specific: line 79
If the user asked only for /commit, stop after the commit.
- Distinctive: line 80
If the user explicitly asked to push as part of the same request, such as "commit and push", push the current branch after the commit …
- Distinctive: line 81
Do not ask for an extra confirmation before pushing when the request already explicitly included push.
- Distinctive: line 82
If the branch has no upstream yet, push with upstream tracking.
- Distinctive: line 88
No Co-Authored-By trailer.
- Distinctive: line 90
Commit means commit. Once the user asks to commit, do it without a second confirmation unless the scope is genuinely ambiguous.
- Distinctive: line 93
Never force-push, amend, or rebase.
- Very specific: line 94
Never commit secrets. Skip .env, credentials, auth.json, and API keys.
- Distinctive: line 95
Only ask when needed. Ask about untracked files only when it is genuinely unclear whether they belong in the commit.
“Common” is measured: kept by at least 6 in 10 of the 175 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 (Session-Scoped)
Commit uncommitted working tree changes from the current session. Stage only relevant files, draft a concise commit message from the diff, and commit without asking for a second confirmation when the user has already asked to commit. Push is separate and only happens on an explicit request.
Read AGENTS.md first for repository-wide git safety rules.
Instructions
Step 1: Assess Changes
git status
git diff --stat
git diff HEAD --statIf no changes: report "Nothing to commit" and stop.
Step 2: Stage Files
- Review modified, staged, and untracked files that appear related to the current request.
- Durable workflow artifacts in
plans/{branch-name}/are related when they were produced or updated by the current work. Include resolution maps, implementation plans, test plans/results, and review artifacts when the user asks to commit/push that work unless explicitly excluded.
- Durable workflow artifacts in
- Skip files that are clearly unrelated:
package-lock.jsonunless the user explicitly changed packages.claude/worktrees/internal files- credential files such as
.env,auth.json, and API keys
- Stage with specific file paths. Never use
git add -Aorgit add .. - Only stop to ask the user if there is a real ambiguity:
- untracked files might or might not belong in the commit
- unrelated user changes are mixed into the same file and cannot be safely separated
- the user requested a commit but there is no sensible scope to commit
If the scope is clear, do not ask for confirmation before committing.
Step 3: Draft Commit Message
Read the staged diff to understand what changed:
git diff --cachedDraft a commit message:
- Subject line: imperative mood, under 72 chars, describes the why more than the what
- Body if needed: short bullet points for multiple changes
- No Co-Authored-By trailer
- Include the issue number if the current branch starts with a number, such as
#428
Format:
{type}: {subject} (#{issue})
- {change 1}
- {change 2}Types: feat, fix, refactor, docs, test, chore
Step 4: Commit Immediately
When the user asked to commit, treat that as the authorization to commit.
- Stage the selected files.
- Create the commit with the drafted message.
- Report the commit hash, commit message, and short stat.
Do not pause for a second approval prompt unless the user explicitly asked to review the message first.
Step 5: Push Only On Explicit Request
Commit and push are separate actions.
- If the user asked only for
/commit, stop after the commit. - If the user explicitly asked to push as part of the same request, such as "commit and push", push the current branch after the commit succeeds.
- Do not ask for an extra confirmation before pushing when the request already explicitly included push.
- If the branch has no upstream yet, push with upstream tracking.
Report whether the action stopped at commit or also pushed to the remote.
Critical Rules
- No Co-Authored-By trailer. This is the user's commit.
- Session-scoped only. Commit what belongs to the current request and do not amend previous commits.
- Commit means commit. Once the user asks to commit, do it without a second confirmation unless the scope is genuinely ambiguous.
- Push is separate. Never push unless the user explicitly asked for it in the same request.
- Explicit push means push. If the request says "commit and push", do both without asking again.
- Never force-push, amend, or rebase. Create new commits only.
- Never commit secrets. Skip
.env, credentials,auth.json, and API keys. - Only ask when needed. Ask about untracked files only when it is genuinely unclear whether they belong in the commit.
- Respect hook failures. If pre-commit hooks fail, report the error and let the user decide. Do not retry with
--no-verify.
Checklist
- Reviewed the working tree and confirmed there was something to commit
- Staged only the files that belong in the commit scope
- Skipped secrets and clearly unrelated files
- Drafted a concise commit message from the actual diff
- Committed immediately when the user asked to commit and the scope was clear
- Pushed only if the user explicitly asked to push
Reference
AGENTS.md-- repository-wide git safety rules
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.

