commit
Skill43 starsChanged 9 months agoMITView on GitHub
Use this skill when the user wants to commit staged changes. This skill checks linting, then formatting (matching CI order), runs tests, generates a commit message, and commits the changes. Invoke when the user says things like "commit my changes", "commit this", "create a commit", or "/commit".
187 other projects use a version of this.
Adopted by
Most recently taken up by
- Kindness-Kismet/Stellibertytheir own version, first seen Nov 29, 2026
- DGouron/review-flowtheir own version, first seen Nov 29, 2026
- cyberkaida/reverse-engineering-assistanttheir own version, first seen Nov 29, 2026
- elirantutia/vibeyardtheir own version, first seen Nov 29, 2026
- thoughtbot/the-processtheir own version, first seen Nov 29, 2026
- PaulRBerg/agent-skillstheir own version, first seen Nov 28, 2026
Used with
Projects with it also use act-on-feedback, generate-run-commands 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.
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 4 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 4 projects that use this
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
MindgamesSkillbranch
Use when a user asks to create a new local git branch and start issue work (for example, "create branch" or "start working on issue XYZ"). Use this for issue-based branch naming in the `type/scope-short-description` pattern and for always syncing local `main` from `origin/main` before creating the new branch, creating the local tracking `main` branch first when needed.
Also in 9 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
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
Other versions187 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 187
- microsoft/vscode★ 196ksame name
- TryGhost/Ghost★ 56ksame name
- ShareX/ShareX★ 41ksame name
- ToolJet/ToolJet★ 41ksame name
- openai/symphony★ 27ksame name
- ryoppippi/ccusage★ 20ksame name
- ccusage/ccusage★ 19ksame name
- windmill-labs/windmill★ 19ksame name
- EverMind-AI/EverMemOS★ 14ksame name
- EverMind-AI/EverOS★ 14ksame name
177 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.
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
The file
Show its rules and text
We split this skill into the rules it gives an agent
32 rules. 0 are common, 29 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 166 edited versions we read keep these.
29
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
If there are no staged changes, inform the user and stop.
- Very specific: line 23
Run the linting check first (matches CI order in .github/workflows/ci.yml):
- Distinctive: line 32
Ask if they want you to auto-fix what can be auto-fixed
- Very specific: line 33
If yes, run: uv run --frozen ruff check .
- Distinctive: line 34
If there are remaining errors that cannot be auto-fixed:
- Distinctive: line 36
STOP the commit process
- Distinctive: line 38
If all errors were auto-fixed:
- Distinctive: line 47
Run the formatting check (after linting, matches CI order):
- Distinctive: line 56
Ask if they want you to auto-fix the formatting issues
- Distinctive: line 67
IMPORTANT: If any auto-fixes were applied in Steps 2 or 3, re-run both checks to ensure consistency:
- Distinctive: line 76
If no auto-fixes were applied, skip this step.
- Distinctive: line 80
Run the unit tests (excluding integration tests):
- Distinctive: line 88
STOP the commit process immediately
- Distinctive: line 95
Do NOT proceed with the commit
- Distinctive: line 104
Run git diff --cached to see the actual code changes
- Distinctive: line 105
Run git diff --cached --stat to see which files changed
- Distinctive: line 106
Check recent commit history for style: git log --oneline -10
- Distinctive: line 111
Use imperative mood ("Add feature" not "Added feature")
- Distinctive: line 113
No period at the end
- Distinctive: line 117
Footer: Always include the co-author line
- Distinctive: line 132
Ask if they want to proceed with this message or modify it
- Distinctive: line 133
If they want to modify, let them provide changes
- Distinctive: line 134
Create the commit using a HEREDOC for proper formatting:
- Distinctive: line 147
After committing, run git status to confirm success
- Distinctive: line 152
NEVER skip any of the quality checks (format, lint, test)
- Very specific: line 153
NEVER use --no-verify or similar flags to bypass hooks
- Distinctive: line 154
NEVER commit if tests are failing
- Distinctive: line 155
ALWAYS include the Co-Authored-By footer
- Distinctive: line 156
If the user wants to commit despite failures, politely decline and explain why quality gates matter
- Distinctive: line 157
If tests are slow, inform the user they're running but don't skip them
- Distinctive: line 161
If any step fails unexpectedly (not due to code quality issues):
- Distinctive: line 164
Do not attempt to work around the error by skipping checks
“Common” is measured: kept by at least 6 in 10 of the 166 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 Skill
You are a commit assistant that ensures code quality before committing changes. Follow these steps in order, stopping if any step fails.
Step 1: Check for Staged Changes
First, verify there are staged changes to commit:
git diff --cached --statIf there are no staged changes, inform the user and stop. Suggest they stage changes with git add.
Step 2: Check Linting
Run the linting check first (matches CI order in .github/workflows/ci.yml):
uv run --frozen ruff check .If linting check fails:
- Inform the user about the linting errors
- Ask if they want you to auto-fix what can be auto-fixed
- If yes, run:
uv run --frozen ruff check . --fix - If there are remaining errors that cannot be auto-fixed:
- Show the errors clearly to the user
- STOP the commit process
- Explain what needs to be manually fixed
- If all errors were auto-fixed:
- Stage the fixes by running
git addonly on the files that were fixed - Continue to the next step
- Stage the fixes by running
If linting check passes:
Continue to the next step.
Step 3: Check Code Formatting
Run the formatting check (after linting, matches CI order):
uv run --frozen ruff format --check .If formatting check fails:
- Inform the user that formatting issues were found
- Ask if they want you to auto-fix the formatting issues
- If yes, run:
uv run --frozen ruff format . - Show the user what files were reformatted
- Stage the formatting fixes by running
git addonly on the files that were reformatted - Continue to the next step
If formatting check passes:
Continue to the next step.
Step 4: Re-verify After Auto-fixes
IMPORTANT: If any auto-fixes were applied in Steps 2 or 3, re-run both checks to ensure consistency:
uv run --frozen ruff check .
uv run --frozen ruff format --check .This prevents commits that pass locally but fail CI (e.g., lint fixes that introduce formatting issues). If either check fails after auto-fixes, STOP and inform the user that manual intervention is needed.
If no auto-fixes were applied, skip this step.
Step 5: Run Tests
Run the unit tests (excluding integration tests):
uv run --frozen pytest tests/ -v --tb=short -m "not integration" 2>&1If tests fail:
- STOP the commit process immediately
- Show the test failures clearly to the user
- Point out:
- Which test file(s) failed
- The specific test function(s) that failed
- The error message and traceback
- Suggest what might need to be fixed
- Do NOT proceed with the commit
If tests pass:
Continue to the next step.
Step 6: Generate Commit Message
Analyze the staged changes to generate an appropriate commit message:
- Run
git diff --cachedto see the actual code changes - Run
git diff --cached --statto see which files changed - Check recent commit history for style:
git log --oneline -10
Generate a commit message following these guidelines:
- First line: Concise summary (50 chars or less if possible, max 72)
- Use imperative mood ("Add feature" not "Added feature")
- Capitalize the first letter
- No period at the end
- Body (if needed): Explain the "why" not the "what"
- Wrap at 72 characters
- Separate from subject with a blank line
- Footer: Always include the co-author line
Types of changes to identify:
Add- New feature or fileFix- Bug fixUpdate- Enhancement to existing featureRefactor- Code restructuring without behavior changeRemove- Deleting code or featuresDocs- Documentation onlyTest- Adding or updating testsChore- Maintenance tasks
Step 7: Confirm and Commit
- Show the user the proposed commit message
- Ask if they want to proceed with this message or modify it
- If they want to modify, let them provide changes
- Create the commit using a HEREDOC for proper formatting:
git commit -m "$(cat <<'EOF'
<commit subject line>
<optional body>
Co-Authored-By: Claude <noreply@anthropic.com>
EOF
)"- After committing, run
git statusto confirm success - Show the user the commit hash and summary
Important Notes
- NEVER skip any of the quality checks (format, lint, test)
- NEVER use
--no-verifyor similar flags to bypass hooks - NEVER commit if tests are failing
- ALWAYS include the Co-Authored-By footer
- If the user wants to commit despite failures, politely decline and explain why quality gates matter
- If tests are slow, inform the user they're running but don't skip them
Error Recovery
If any step fails unexpectedly (not due to code quality issues):
- Show the error to the user
- Suggest potential fixes
- Do not attempt to work around the error by skipping checks
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.

