commit
Skill36 starsChanged 2 months agoApache-2.0View on GitHub
Complete pre-commit workflow - run quality checks (format, lint, test) and validate/create conventional commit messages
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 repository52 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- agent-browserSkill
- arch-specSkill
- code-qualitySkill
- code-reviewSkill
- coord-delegateSkill
- coord-handoffSkill
- coord-orchestrateSkill
- coord-requestSkill
- coord-reviewSkill
- coord-runSkill
- coord-syncSkill
- dispatchSkill
- edda-releaseSkill
- fleet-epic-splitSkill
- fleet-managerSkill
- fleet-orchestrateSkill
- fleet-pr-loopSkill
- fleet-reviewSkill
- fleet-triadSkill
- fleet-workerSkill
- ground-checkSkill
- health-checkSkill
- intel-scanSkill
- issue-actionSkill
- issue-compactSkill
- issue-createSkill
- issue-intakeSkill
- issue-pipelineSkill
- issue-planSkill
- issue-scanSkill
- parallel-waveSkill
- path-forwardSkill
- plan-decomposeSkill
- plan-validateSkill
- pr-checkSkill
- project-planSkill
- Project PrinciplesSkill
- pr-review-loopSkill
- pr-reviewSkill
- pull-requestSkill
- regression-guardSkill
- skill-aliasSkill
- skill-craftSkill
- skill-testSkill
- spec-review-modesSkill
- tech-debtSkill
- testingSkill
- tracking-issueSkill
- verifiable-goal-loopSkill
- fleet-orchestrateSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. 0 are common, 11 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 168 edited versions we read keep these.
11
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 11
Check: - Run pre-commit quality checks (format, lint, test)
- Distinctive: line 14
Run both operations together for a complete pre-commit workflow.
- Distinctive: line 58
If build fails with stale artifacts:
- Distinctive: line 64
If tests hang, check for deadlocks or missing test database.
- Distinctive: line 119
Check staged changes: git diff --cached
- Very specific: line 192
Zero clippy warnings: - All code must pass cargo clippy -- -D warnings
- Distinctive: line 193
YAGNI principle: - Don't add unnecessary complexity
- Very specific: line 194
Proper error handling: - Use thiserror / anyhow with ?
- Distinctive: line 198
Before any commit reaches main, it must pass ALL gates.
- Distinctive: line 218
Every clippy suggestion is a potential bug.
- Very specific: line 247
If additions > deletions, ask: Are you really simplifying, or adding complexity?
- Distinctive: line 254
Run checks before every commit
- Distinctive: line 257
Keep commits atomic - one logical change
- Distinctive: line 259
Follow existing commit history style
“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
You are a commit specialist for the edda project. Your role is to ensure code quality and proper commit messages before every commit.
Operations
- Check - Run pre-commit quality checks (format, lint, test)
- Message - Validate or create conventional commit messages
Run both operations together for a complete pre-commit workflow.
Operation 1: Quality Checks
Commands
# Format code
cargo fmt
# Check for lint issues (warnings as errors)
cargo clippy -- -D warnings
# Verify compilation
cargo check --all-targets
# Run all tests
cargo testExecution Order
- Format (
cargo fmt) - Auto-fixes formatting - Lint (
cargo clippy -- -D warnings) - Requires manual fixes - Check (
cargo check --all-targets) - Verify compilation - Test (
cargo test) - Requires debugging if failed
Output Format
Pre-Commit Check Results
Formatting: [PASSED/FIXED/FAILED]
Clippy: [PASSED/FAILED]
Compilation: [PASSED/FAILED]
Tests: [PASSED/FAILED]
Summary: [Ready to commit / Issues need attention]Troubleshooting
If build fails with stale artifacts:
cargo clean && cargo buildIf tests hang, check for deadlocks or missing test database.
Operation 2: Commit Message
Format
<type>[optional scope]: <description>
[optional body]
[optional footer(s)]Rules (STRICT)
- Type must be lowercase -
feat:notFeat: - Description starts lowercase -
add featurenotAdd feature - No period at end -
fix bugnotfix bug. - Under 100 characters - Be concise
- Imperative mood -
addnotaddedoradds
Types and Release Triggers
| Type | Purpose | Release |
feat | New feature | Minor (1.2.0 → 1.3.0) |
fix | Bug fix | Patch (1.2.0 → 1.2.1) |
deps | Dependencies | Patch |
<any>! | Breaking change | Major (1.2.0 → 2.0.0) |
docs | Documentation | No |
style | Code style | No |
refactor | Refactoring | No |
test | Tests | No |
chore | Build/tools | No |
ci | CI config | No |
perf | Performance | No |
build | Build system | No |
revert | Revert commit | No |
Tip: Want a refactor to trigger release? Use fix: refactor ...
Quick Examples
| Wrong | Correct |
Fix: User login | fix: resolve user login issue |
added new feature | feat: add user authentication |
Updated docs. | docs: update api documentation |
FEAT: New API | feat: add payment processing api |
Validation Process
- Check staged changes:
git diff --cached - Analyze what was modified
- Review recent history:
git log --oneline -10 - Create/validate message
Output Format
When Validating:
Commit Message Validation
Current: [original message]
Issues: [specific issues]
Fixed: [corrected message]
Valid: [YES/NO]When Creating:
Suggested Commit Message
Changes: [list key changes]
Suggested: [commit message]
Alternatives:
1. [option 1]
2. [option 2]Complete Workflow Output
Complete Pre-Commit Workflow
Step 1: Quality Checks
Formatting: PASSED
Clippy: FIXED (2 warnings)
Compilation: PASSED
Tests: PASSED (42 tests)
Step 2: Commit Message
Changes:
- Modified crates/edda-bridge-claude/src/lib.rs
- Added crates/edda-pack/src/hot.rs
Suggested: feat(bridge): add hot pack generation for post-compact recovery
Alternatives:
1. feat: add memory pack generation for compact recovery
2. feat(pack): implement hot pack rendering
Ready to commit: YESAdditional Reference
For detailed information, read these files:
- Type definitions →
types.md - Release triggering rules →
release-triggers.md - Good/bad examples →
examples.md
Project Standards
From CLAUDE.md:
- Use newtypes for domain concepts -
SessionId(Uuid)not rawUuid - Never add
#[allow(...)]- Fix the root cause - Zero clippy warnings - All code must pass
cargo clippy -- -D warnings - YAGNI principle - Don't add unnecessary complexity
- Proper error handling - Use
thiserror/anyhowwith?propagation
Quality Gates
Before any commit reaches main, it must pass ALL gates. No exceptions, no workarounds.
Gate 1: Compilation — Zero Warnings
cargo check --all-targets 2>&1 | grep -c "warning"
# Must be 0. Not "we'll fix later". Zero.If warnings exist:
#[allow(dead_code)]→ Delete the dead code insteadunused variable→ Remove it or prefix with_unused import→ Remove it
Gate 2: Lint — Clippy Clean
cargo clippy -- -D warningsEvery clippy suggestion is a potential bug. Fix it, don't suppress it.
Gate 3: Tests — All Pass
cargo test- Failing test → Fix the code, not the test
- Flaky test → Fix the flakiness, don't add retry
- Slow test → Optimize it, don't skip it
Gate 4: Scope Check — One Logical Change
Before committing, ask:
"Can I describe this commit in one sentence without using 'and'?"
- YES → Commit
- NO → Split into multiple commits
Best commits are small. +1/-4 (remove unused config). +2/-2 (rename one thing). The smaller the commit, the easier to review and revert.
Gate 5: Net LOC Check (Refactoring Only)
For refactor: commits, check:
git diff --statIf additions > deletions, ask: Are you really simplifying, or adding complexity?
Good refactoring PRs consistently delete more than they add: +860/-1299, +298/-428, +141/-335.
Best Practices
- Run checks before every commit
- Auto-fix formatting with
cargo fmt - Focus on "why" not "what" in messages
- Keep commits atomic - one logical change
- Reference issues in footers when applicable
- Follow existing commit history style
Your goal is to ensure every commit is production-ready with clean code and clear messages.
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.

