commit
Skill107 starsChanged 9 months agoMITView on GitHub
Stage the current changes and create a git commit with a properly formatted English message. Use whenever the user asks to commit, save, or check in their work. Picks a Conventional-Commits-style prefix (fix:, feat:, refactor:, docs:, test:, chore:, style:, perf:) based on the actual diff, keeps the first line a concise summary, and adds a bullet list of details only when the change touches several things.
- Reads credentials
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 repository48 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- create-pull-requestSkill
- create-release-branchSkill
- create-release-notesSkill
- handle-pr-reviewSkill
- qlty-checkSkill
- record-code-review-feedbackSkill
- record-spec-feedbackSkill
- recreate-test-dbSkill
- redmine-playwright-loginSkill
- regression-checkSkill
- rubocopSkill
- speckit-agent-context-updateSkill
- speckit-analyzeSkill
- speckit-branch-convention-configureSkill
- speckit-branch-convention-renameSkill
- speckit-branch-convention-validateSkill
- speckit-checklistSkill
- speckit-clarifySkill
- speckit-constitutionSkill
- speckit-convergeSkill
- speckit-git-commitSkill
- speckit-git-featureSkill
- speckit-git-initializeSkill
- speckit-git-remoteSkill
- speckit-git-validateSkill
- speckit-implementSkill
- speckit-planSkill
- speckit-review-codeSkill
- speckit-review-commentsSkill
- speckit-review-errorsSkill
- speckit-review-runSkill
- speckit-review-simplifySkill
- speckit-review-testsSkill
- speckit-review-typesSkill
- speckit-specifySkill
- speckit-tasksSkill
- speckit-taskstoissuesSkill
- speckit-token-budget-compactSkill
- speckit-token-budget-conciseSkill
- speckit-token-budget-scopeSkill
- speckit-token-budget-usageSkill
- speckit-wiki-ingestSkill
- speckit-wiki-initSkill
- speckit-wiki-lintSkill
- speckit-wiki-querySkill
- speckit-wiki-statusSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. 0 are common, 12 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 168 edited versions we read keep these.
12
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
- Distinctive: line 19
Consider any additional context from the user input (e.g.
- Distinctive: line 34
Before committing, look at the staged file list once more:
- Very specific: line 35
If anything looks like a secret or credential (.env, *.pem, credentials.json, API keys, etc.), unstage it and warn the user instead of …
- Distinctive: line 36
If some staged files clearly belong to unrelated, separate work (not what the user is asking to commit right now), leave them out and …
- Distinctive: line 40
Look at the diff and classify the change into a prefix:
- Distinctive: line 53
If a change spans multiple categories, pick the one that reflects the primary intent.
- Very specific: line 60
If the change touches several things: leave a blank line after line 1, then a short bullet list (- ...), one line per notable change.
- Very specific: line 76
Do not add a Co-Authored-By line or any other reference to Claude/AI assistance — this project's convention explicitly excludes that from …
- Distinctive: line 80
Use a heredoc so multi-line messages are formatted correctly:
- Very specific: line 92
Always create a new commit — never --amend an existing one unless the user explicitly asks for it.
- Distinctive: line 96
Run git status after the commit and report the resulting commit (short hash + first line) to the user.
- Distinctive: line 100
Never push — this skill only commits locally.
- Very specific: line 101
Never use --no-verify to skip hooks.
- Distinctive: line 102
Write commit messages in plain English regardless of the conversation language.
- Distinctive: line 106
If there is nothing staged and nothing to stage (clean working tree), tell the user there is nothing to commit — do not create an empty …
- Distinctive: line 107
If a pre-commit hook fails, fix the underlying issue, re-stage, and create a new commit — do not amend the previous one (the failed commit …
- Distinctive: line 108
If secrets or clearly unrelated files are detected among the changes, stop and confirm with the user before including them.
“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
Stage the outstanding changes and create a single git commit with an English message that follows this project's format.
User Input
$ARGUMENTSConsider any additional context from the user input (e.g. "only commit the tool changes", "this is a bug fix") before proceeding.
Procedure
Step 1: Survey the Changes
Run in parallel:
git status— see tracked and untracked filesgit diffandgit diff --staged— see the actual content changesgit log --oneline -10— match the repository's existing commit message tone
Step 2: Stage the Changes
Stage the modified and new files that belong to this piece of work (git add <files>, or git add -A when everything in the working tree is part of the same change).
Before committing, look at the staged file list once more:
- If anything looks like a secret or credential (
.env,*.pem,credentials.json, API keys, etc.), unstage it and warn the user instead of committing it silently. - If some staged files clearly belong to unrelated, separate work (not what the user is asking to commit right now), leave them out and mention it to the user.
Step 3: Determine the Commit Type
Look at the diff and classify the change into a prefix:
| Prefix | When to use |
fix: | Bug fix |
feat: | New feature or capability |
refactor: | Restructuring without behavior change |
docs: | Documentation only (README, YARD, locale text) |
test: | Test-only changes |
chore: | Tooling, dependencies, config, housekeeping |
style: | Formatting/whitespace only, no logic change |
perf: | Performance improvement |
If a change spans multiple categories, pick the one that reflects the primary intent.
Step 4: Write the Commit Message
Format:
- Line 1:
<prefix>: <concise summary of the overall change>— English, imperative mood, no trailing period. - If the change is small (one focused fix, a single file, a short diff): stop at line 1. No body needed.
- If the change touches several things: leave a blank line after line 1, then a short bullet list (
- ...), one line per notable change. Keep bullets brief — what changed, not how.
Example (small change):
fix: correct nil check in issue summary cache lookupExample (larger change):
feat: add vector model profile support to settings
- add use_vector_model_profile and vector_model_profile_id columns
- update settings UI to select a dedicated vector model profile
- fall back to the default model profile when unsetDo not add a Co-Authored-By line or any other reference to Claude/AI assistance — this project's convention explicitly excludes that from commit messages.
Step 5: Commit
Use a heredoc so multi-line messages are formatted correctly:
git commit -m "$(cat <<'EOF'
<prefix>: <summary>
- <detail 1>
- <detail 2>
EOF
)"Always create a new commit — never --amend an existing one unless the user explicitly asks for it.
Step 6: Confirm
Run git status after the commit and report the resulting commit (short hash + first line) to the user. Do not push.
Notes
- Never push — this skill only commits locally.
- Never use
--no-verifyto skip hooks. - Write commit messages in plain English regardless of the conversation language.
Error Handling
- If there is nothing staged and nothing to stage (clean working tree), tell the user there is nothing to commit — do not create an empty commit.
- If a pre-commit hook fails, fix the underlying issue, re-stage, and create a new commit — do not amend the previous one (the failed commit never happened).
- If secrets or clearly unrelated files are detected among the changes, stop and confirm with the user before including them.
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.

