smart-commit
Skill9 starsChanged 3 months agoMITView on GitHub
Quality gates + conventional commits. Run tests, lint, and typecheck before committing. Format the commit message as a conventional commit. Blocks on failure.
- Reads credentials
12 other projects use a version of this.
Adopted by
Most recently taken up by
- rohitg00/pro-workflowtheir own version, first seen Sep 29, 2026
- sd0xdev/sd0x-harnesstheir own version, first seen Sep 26, 2026
- themusecatcher/ai-coding-kittheir own version, first seen Sep 15, 2026
- ricardo-lobo/claude-codetheir own version, first seen Jun 5, 2026
- conectlens/lenserfighttheir own version, first seen May 28, 2026
- jackjin1997/ClawForgetheir own version, first seen May 25, 2026
Other versions12 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 12
- rohitg00/pro-workflow★ 2.9ksame name
- sd0xdev/sd0x-harness★ 191same name
- claude-world/director-mode-lite★ 80same name
- conectlens/lenserfight★ 18same name
- jackjin1997/ClawForge★ 13same name
- AlanSyue/my-skills★ 2same name
- jindalAnuj/publish-skills★ 2same name
- ricardo-lobo/claude-code★ 1same name
- RockaRhymeLLC/claude-code-skills★ 1same name
- sitharaj88/claude-skills★ 1same name
2 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 repository109 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/agents.mdAGENTS.md
- agent/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- router/CLAUDE.mdCLAUDE.md
- .agents/skills/llms.txtllms.txt
- agent-harnessSkill
- auto-fixSkill
- brain-dumpSkill
- industrial-brutalist-uiSkill
- changelog-enforcerSkill
- checkpoint-strategySkill
- context-primeSkill
- cooldown-resumeSkill
- council-reviewSkill
- data-quality-auditSkill
- debug-tracerSkill
- dependency-auditSkill
- deslopSkill
- docs-syncSkill
- duplicate-threadSkill
- email-triageSkill
- fabric-patternsSkill
- feature-flagSkill
- git-hygieneSkill
- graphifySkill
- implementation-plannerSkill
- insightsSkill
- issue-resolverSkill
- learn-ruleSkill
- local-ai-querySkill
- lr-schedule-advisorSkill
- minimalist-uiSkill
- modularity-reviewSkill
- full-output-enforcementSkill
- parallel-agentsSkill
- parallel-worktreesSkill
- prompt-librarySkill
- prompt-transparencySkill
- pro-workflowSkill
- redesign-existing-projectsSkill
- release-readinessSkill
- replay-learningsSkill
- repo-memory-updaterSkill
- repowise-intelligenceSkill
- researchSkill
- resource-panelSkill
- risky-module-reviewSkill
- sandboxed-execSkill
- scope-guardSkill
- self-improveSkill
- session-handoffSkill
- skill-composerSkill
- high-end-visual-designSkill
- stitch-design-tasteSkill
- system-prompt-auditSkill
- task-alive-updatesSkill
- task-scoperSkill
- design-taste-frontendSkill
- test-first-executorSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
2
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
- Very specific: line 22
Use this skill every time you are ready to commit code.
- Very specific: line 35
If the diff is empty and this is a code change (not chore/test/docs), update docs/changelog.md under ## [Unreleased] before continuing.
- Distinctive: line 44
Block on failure: Do not commit with failing tests.
- Distinctive: line 56
If any secrets are detected: stop immediately, do not commit.
“Common” is measured: kept by at least 6 in 10 of the 10 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
Skill: smart-commit
When to Use
Use this skill every time you are ready to commit code. It replaces ad-hoc
git add && git commit with a structured quality gate sequence.
Instructions
Step 1 — Confirm changelog is updated
git diff docs/changelog.mdIf the diff is empty and this is a code change (not chore/test/docs), update
docs/changelog.md under ## [Unreleased] before continuing.
Step 2 — Run tests
pytest -xBlock on failure. Do not commit with failing tests. Fix the failure first.
Step 3 — Check for obvious issues
# Syntax check staged Python files
git diff --staged --name-only | grep '\.py$' | xargs python -m py_compile
# Confirm no secrets in staged files
git diff --staged | grep -iE '(SECRET_KEY\s*=\s*["\x27][^"\x27]{8}|password\s*=\s*["\x27][^"\x27]{4}|api_key\s*=\s*["\x27]sk-)'If any secrets are detected: stop immediately, do not commit.
Step 4 — Stage your changes
git status # review what changed
git diff --staged # confirm what's staged
git add <specific files> # stage by name, not -AStep 5 — Write a conventional commit message
Format: <type>(<scope>): <short description>
| Type | When to Use |
feat | New feature visible to users |
fix | Bug fix |
refactor | Code change with no behaviour change |
test | Adding or updating tests |
docs | Documentation only |
chore | Tooling, config, dependencies |
ci | CI/CD changes |
style | Formatting, whitespace (no logic change) |
perf | Performance improvement |
security | Security fix or hardening |
Examples:
feat(router): add task classification for long-context requests
fix(auth): reject tokens with empty bearer string
refactor(agent): extract planner prompt into prompts.py
security(key_store): hash keys before comparisonStep 6 — Commit
git commit -m "$(cat <<'EOF'
feat(scope): description here
- Additional context if needed
- Reference issue if applicable
https://claude.ai/code/session_<id>
EOF
)"Step 7 — Verify
git log --oneline -3 # confirm commit appeared
git status # confirm working tree is cleanAcceptance Checks
docs/changelog.mdupdated (or commit is chore/test/docs/ci/style exempt)pytest -xpassed- No secrets in staged diff
- Specific files staged (not
git add -A) - Conventional commit message used
git logconfirms commit
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.

