commit
Skill0 starsChanged 56 days agoUnlicenseView on GitHub
Smart git commit workflow — analyzes staged (or unstaged) diffs, catches red flags (secrets, debug code, large binaries, .env files), generates conventional commit messages, and commits.
- 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 repository9 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- context-jokeSkill
- gh-pr-consider-commentsSkill
- gh-pr-reviewSkill
- grill-meSkill
- grill-projSkill
- init2Skill
- knowledge-interviewSkill
- pull-requestSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. 0 are common, 17 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 168 edited versions we read keep these.
17
Distinctive
This author's own choices. Worth a look.
1
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 16
If there IS staged content, use that diff and proceed.
- Distinctive: line 17
If there is NO staged content, run git diff to see unstaged changes.
- Distinctive: line 18
If unstaged changes exist in a single logical area (one file, or a few closely related files), stage them all with git add and proceed.
- Distinctive: line 20
If unstaged changes span multiple unrelated areas, list the changed files grouped by likely concern and ask the user which files to include.
- Distinctive: line 22
If there are no changes at all (staged or unstaged), tell the user there's nothing to commit and stop.
- Distinctive: line 26
Read through the full diff output.
- Distinctive: line 41
If ANY red flags were found:
- Distinctive: line 44
Stop: Do not generate a commit message.
- Distinctive: line 45
Ask the user to confirm they want to proceed, or fix the issues first.
- Distinctive: line 47
Only continue to Step 4 after the user explicitly says to proceed.
- Distinctive: line 49
If no red flags, go straight to Step 4.
- Distinctive: line 53
Use Conventional Commits format:
- Very specific: line 118
Run git commit -m "<message>" immediately.
- Distinctive: line 125
After committing, show the user the short log entry (git log --oneline -1) so they can see the result.
- Distinctive: line 131
NEVER mention Claude, AI, or any AI tool in commit messages.
- Distinctive: line 133
If a change touches more than 10 files, consider splitting into multiple commits.
- Distinctive: line 134
Don't commit generated files, build artifacts, or debug code.
- Distinctive: line 135
Don't commit .env files, secrets, or credentials.
“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 Authoring
Workflow
Step 1: Read
Run git diff --staged first.
- If there IS staged content, use that diff and proceed.
- If there is NO staged content, run
git diffto see unstaged changes.- If unstaged changes exist in a single logical area (one file, or a few closely related files), stage them all with
git addand proceed. - If unstaged changes span multiple unrelated areas, list the changed files grouped by likely concern and ask the user which files to include. Stage only the confirmed files, then proceed.
- If there are no changes at all (staged or unstaged), tell the user there's nothing to commit and stop.
- If unstaged changes exist in a single logical area (one file, or a few closely related files), stage them all with
Step 2: Analyze
Read through the full diff output. Determine:
- What changed and why — understand the intent behind the change (new feature, bug fix, refactor, etc.)
- Scope — how many files are affected, which area of the codebase
- Red flags — scan for every one of these:
- Secrets or credentials (API keys, tokens, passwords, private keys, connection strings)
.envfiles or other config files that typically contain secrets- Debug code left behind (
console.log,console.debug,console.warnused for debugging,debuggerstatements,print()statements that look like debug output,binding.pry,byebug,pdb.set_trace) - Large binary files (images, videos, compiled artifacts, archives)
- Generated or vendored files (lock files are fine;
dist/,build/,node_modules/,.min.jsare not) - New
TODOorFIXMEcomments being added (additions only — existing ones in context lines are fine)
Step 3: Blockers
If ANY red flags were found:
- List each red flag clearly — file, line, what was found, why it's a concern.
- Stop. Do not generate a commit message. Do not commit.
- Ask the user to confirm they want to proceed, or fix the issues first.
Only continue to Step 4 after the user explicitly says to proceed.
If no red flags, go straight to Step 4.
Step 4: Draft
Use Conventional Commits format:
<type>(<scope>): <description>Type — choose the most accurate:
feat— new feature or capabilityfix— bug fixrefactor— restructuring without behavior changetest— adding or updating testsdocs— documentation onlychore— maintenance, dependencies, toolingperf— performance improvementci— CI/CD pipeline changesstyle— formatting, whitespace, linting (no logic change)build— build system or external dependency changes
Scope — derive from the primary area of change. Use the module name, directory, component, or feature area.
Examples: auth, api, cli, db, config, deps. Omit scope only if the change is truly cross-cutting.
Description rules:
- Imperative mood ("add", "fix", "update" — not "added", "fixes", "updated")
- Lowercase first letter
- No trailing period
- Under 72 characters total for the first line
Body — include only when the change is complex enough to warrant explanation. Use concise bullet points covering what changed and why. Keep it short; the diff tells the full story.
Footer — if the conversation mentions a ticket or issue number (e.g., JIRA-123, #456, PROJ-789), include it as
Refs: <ticket>. Only include references that were actually mentioned — never fabricate them.
Authorship — never mention Claude, Anthropic, AI, LLM, "generated", "auto-generated", or any AI tooling anywhere in the commit message. The commit should read as if a human developer wrote it, because a human developer is responsible for it.
Examples:
Single-file bug fix:
fix(auth): prevent token refresh race conditionMulti-file feature with body:
feat(api): add pagination to list endpoints
- Add cursor-based pagination to /users and /projects
- Include total count in response headers
- Default page size of 50, max 200Dependency update:
chore(deps): upgrade express to 4.19.2Step 5: Commit
Run git commit -m "<message>" immediately. Do not ask the user to confirm the message — they invoked this command
because they want a commit, not a review. If the message has a body, use multiple -m flags:
git commit -m "<subject line>" -m "<body>"After committing, show the user the short log entry (git log --oneline -1) so they can see the result.
Conventions
Rules
- NEVER mention Claude, AI, or any AI tool in commit messages.
- Each commit should be atomic — one logical change that leaves the codebase in a working state.
- If a change touches more than 10 files, consider splitting into multiple commits.
- Don't commit generated files, build artifacts, or debug code.
- Don't commit .env files, secrets, or credentials.
Format
<type>(<scope>): <description>
[optional body]
[optional footer]- type: feat, fix, refactor, test, docs, chore, perf, ci, style, build
- scope: the primary area of change (module name, feature area)
- description: imperative mood, lowercase, no period, under 72 chars
- body: concise bullet points on what and why (not how), when the change is complex enough to warrant it
- footer: reference issue/ticket numbers if relevant
Examples
Good:
feat(auth): add password reset flow
fix(api): handle null response from payment provider
refactor(users): extract email validation to shared util
test(checkout): add edge cases for expired discount codes
Bad:
Updated files
fix bug
feat: Add New User Authentication Flow Using OAuth2
refactor(users): refactored user service to extract email validation
into a shared utility function
fix(api): fixed the bug where payment provider returns null (AI-generated)Atomicity
A good commit should be:
- Reviewable in isolation — a reviewer can understand it without context from other commits
- Reversible cleanly — reverting it doesn't break other things
- Describable in under 72 characters — if you can't, it's doing too much
Guards
- REFUSE to commit if .env, credentials, secrets, or API keys are staged
- WARN if committing generated/build files (dist/, build/, node_modules/)
- WARN if commit is unusually large (more than 10 files) — suggest splitting
- WARN if tests are failing in the affected area (flag it, don't block)
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.

