coding-rules
Skill51 starsChanged 9 days agoMITView on GitHub
Applies repository-aware rules for maintainable implementation, contracts, errors, and refactoring. Use when writing or modifying code.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- shinpr/codex-workflowstheir own version, first seen Nov 3, 2026
- bmcszk/agent-skillstheir own version, first seen Oct 13, 2026
- jam7/ai-dev-gatestheir own version, first seen Aug 23, 2026
- hukusuke1007/agent-skillstheir own version, first seen Apr 10, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- shinpr/codex-workflows★ 39same name
- hukusuke1007/agent-skills★ 8same name
- bmcszk/agent-skills★ 2same name
- jam7/ai-dev-gates★ 0same name
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 repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ai-development-guideSkill
- documentation-criteriaSkill
- implementation-approachSkill
- integration-e2e-testingSkill
- metacognitionSkill
- testingSkill
- testing-strategySkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 13 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈13
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Use the repository's formatter, linter, type system, naming conventions, and representative code patterns.
- Distinctive: line 19
Keep unrelated cleanup and optional hardening outside the change.
- Distinctive: line 20
Remove unused code encountered inside the changed responsibility when evidence shows no current consumer remains.
- Distinctive: line 25
Keep one coherent responsibility per function or module.
- Distinctive: line 26
Use the language's idiomatic parameter and data-shape conventions.
- Distinctive: line 29
Prefer simple control flow.
- Distinctive: line 35
Avoid logging the same error at every layer.
- Distinctive: line 36
Keep secrets, credentials, and unnecessary personal data out of logs and messages.
- Distinctive: line 37
Add fallback behavior only when a current requirement defines the degraded result.
- Distinctive: line 42
Keep comments timeless and remove obsolete or commented-out code.
- Distinctive: line 43
Update documentation when an affected consumer would otherwise act on stale information.
- Distinctive: line 55
Use resource-lifecycle and data-structure patterns appropriate to the language and repository.
- Distinctive: line 56
Add caching, concurrency, batching, or monitoring only when a current requirement or measured problem justifies it.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Development Rules
Language and Repository Rules
Use the repository's formatter, linter, type system, naming conventions, and representative code patterns. Read a language reference only when it applies:
- TypeScript: references/typescript.md
Repository contracts and accepted design decisions take precedence over generic style preferences.
Minimal Change
- Implement the requested outcome through existing mechanisms where sufficient.
- Keep unrelated cleanup and optional hardening outside the change.
- Remove unused code encountered inside the changed responsibility when evidence shows no current consumer remains.
- Introduce an abstraction only when current callers share responsibility and change pressure.
Functions and Interfaces
- Keep one coherent responsibility per function or module.
- Use the language's idiomatic parameter and data-shape conventions.
- Make external dependencies and side effects visible at the appropriate boundary.
- Preserve public and shared contracts unless the requirements change them.
- Prefer simple control flow; refactor complexity when it obscures behavior or error handling.
Error Handling
- Preserve actionable error context across boundaries.
- Convert errors only where the receiving layer needs a different contract.
- Avoid logging the same error at every layer.
- Keep secrets, credentials, and unnecessary personal data out of logs and messages.
- Add fallback behavior only when a current requirement defines the degraded result.
Comments and Documentation
- Explain non-obvious intent, constraints, or trade-offs.
- Keep comments timeless and remove obsolete or commented-out code.
- Update documentation when an affected consumer would otherwise act on stale information.
Refactoring
- Confirm the observable behavior and focused proof.
- Make the smallest coherent structural change.
- Run affected verification.
- Continue only when another current problem remains.
Performance and Resources
- Measure a demonstrated bottleneck before optimizing.
- Use resource-lifecycle and data-structure patterns appropriate to the language and repository.
- Add caching, concurrency, batching, or monitoring only when a current requirement or measured problem justifies it.
Completion Check
- The implementation follows representative repository patterns or documents a necessary deviation.
- Added structure has a current consumer and purpose.
- Errors remain observable without duplicative logging or silent fallback.
- Applicable repository checks pass.
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.

