coding-standards
Skill54 starsChanged 7 months agoMITView on GitHub
Use when reviewing code quality, asking whether a refactor or design is good, looking for code smells, or evaluating architecture tradeoffs. Identifies shallow interfaces, invalid state models, unclear boundaries, hidden effects, weak failure contracts, over-mocking, over-abstraction, compatibility glue, and clean-looking code that preserves bad models.
67 other projects use a version of this.
Adopted by
Most recently taken up by
- Lukk17/agent-standardstheir own version, first seen Oct 5, 2026
- jesse-merhi/skillstheir own version, first seen Oct 4, 2026
- shinpr/ai-coding-project-boilerplatetheir own version, first seen Oct 3, 2026
- vospr/context-engineering-templatetheir own version, first seen Oct 1, 2026
- DoKu67/claude-code-skilstheir own version, first seen Sep 29, 2026
- nnkogift/personal-skillstheir own version, first seen Sep 27, 2026
Used with
Projects with it also use springboot-security, configure-ecc 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.
FaisalAlqarniSkillspringboot-security
Spring Security best practices for authn/authz, validation, CSRF, secrets, headers, rate limiting, and dependency security in Java Spring Boot services.
Also in 9 projects that use this
saxon-ySkillconfigure-ecc
Interactive installer for Everything Claude Code — guides users through selecting and installing skills and rules to user-level or project-level directories, verifies paths, and optionally optimizes installed files.
Also in 5 projects that use this
joneqianSkillcontinuous-learning-v2
Instinct-based learning system that observes sessions via hooks, creates atomic instincts with confidence scoring, and evolves them into skills/commands/agents.
Also in 11 projects that use this
FaisalAlqarniSkillspringboot-tdd
Test-driven development for Spring Boot using JUnit 5, Mockito, MockMvc, Testcontainers, and JaCoCo. Use when adding features, fixing bugs, or refactoring.
Also in 7 projects that use this
Microsoft AzureSkilliterative-retrieval
Max-3-cycle protocol for agent sub-tasks with WHY context and coordinator validation. Use when spawning sub-agents to complete scoped work.
Also in 13 projects that use this
InfopibeSkilldeployment-patterns
Deployment workflows, CI/CD pipeline patterns, Docker containerization, health checks, rollback strategies, and production readiness checklists for web applications.
Also in 10 projects that use this
- +3 more from FaisalAlqarni
Other versions67 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 67
- WorldFlowAI/everything-claude-code★ 4ksame name
- xu-xiang/everything-claude-code-zh★ 2ksame name
- dmmulroy/skills★ 428same name
- loulanyue/awesome-claude-notes★ 272same name
- shinpr/ai-coding-project-boilerplate★ 231same name
- cloudnative-co/claude-code-starter-kit★ 151same name
- tpavanipradeep/everything-claude-code★ 134same name
- templetongroup/radiant★ 113same name
- hellangleZ/burn-in-cceverywhere-ralph★ 112same name
- TheBeardedBearSAS/claude-craft★ 106same name
57 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 repository26 other files it gives its agents.
- AGENTS.mdAGENTS.md
- coolify-composeSkill
- crafting-effective-readmesSkill
- diataxisSkill
- english-pleaseSkill
- feature-planning-artifactsSkill
- frontend-design-principlesSkill
- grug-brained-devSkill
- html-artifactsSkill
- improveSkill
- improving-promptsSkill
- jjSkill
- reducing-entropySkill
- researching-codebasesSkill
- roadmapSkill
- roadmap-to-improve-plansSkill
- rustSkill
- salsaSkill
- skill-authoringSkill
- strategic-roadmapSkill
- svelte5Skill
- sveltekitSkill
- writing-cli-skillsSkill
- writing-error-messagesSkill
- writing-plansSkill
- writingSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 8 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 56 edited versions we read keep these.
8
Distinctive
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 22
Make valid states and transitions explicit: Prefer states, variants, lifecycle rules, and transition points over boolean blindness, …
- Distinctive: line 23
Shape deep modules: Put cohesive behavior behind low-burden interfaces at real seams.
- Distinctive: line 43
Do not hard-pivot from one dogma to its opposite.
- Distinctive: line 56
“The old shape might still be used.”: Check for a real user, data, or public-contract obligation.
- Distinctive: line 61
Understand the local code first: Follow existing conventions when they communicate the model.
- Distinctive: line 63
Find the caller burden: Ask what a caller or future maintainer must remember that the code could make explicit or enforce.
- Distinctive: line 64
Choose the smallest honest shape: Do not simplify by lying; do not model so much that the truth becomes harder to see.
- Distinctive: line 65
Verify the claim: Use project-native tests and checks that prove the behavior or contract the change depends on.
“Common” is measured: kept by at least 6 in 10 of the 56 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
Coding Standards
“Thus, programs must be written for people to read, and only incidentally for machines to execute.”
— Abelson and Sussman, Structure and Interpretation of Computer Programs
“In this connection it might be worth-while to point out that the purpose of abstracting is not to be vague, but to create a new semantic level in which one can be absolutely precise.”
— Edsger W. Dijkstra, “The Humble Programmer”
Good code solves a real problem through a model people can understand, use, change, and repair. It tells the truth at the right grain: concepts named where they matter, valid states made clear, boundaries translated, consequences visible, failures classified, behavior verified, and unnecessary structure deleted.
Borrow design pressure, not ecosystem ceremony: impossible states and explicit failure/effect boundaries from Rust; domain modules and algebraic modeling from ML traditions; anti-corruption boundaries from integration-heavy systems. Translate the idea into the host language's native tools.
Core Tenets
- Code communicates a model. Names, types, modules, tests, and interfaces should reveal what is true in the domain and what must not happen.
- Represent meaning at the right grain. Make important distinctions explicit; do not turn every primitive, parser detail, or storage artifact into domain vocabulary.
- Make valid states and transitions explicit. Prefer states, variants, lifecycle rules, and transition points over boolean blindness, nullable phases, and hidden ordering requirements.
- Shape deep modules. Put cohesive behavior behind low-burden interfaces at real seams; a shallow wrapper mostly gives the same work another name.
- Translate at boundaries. External, persisted, framework-shaped, protocol-shaped, or runtime-hop data should be mapped into the internal model before it reaches core logic.
- Make consequences legible. IO, mutation, time, network, async work, authority, retries, resource cost, and other effects should be visible where they affect reasoning.
- Handle errors as part of the design. Expected failures belong in contracts; defects and operational causes need different recovery, reporting, and diagnostics.
- Verify the real claim. Tests and checks should prove behavior, invariants, transitions, boundaries, and failure modes through real seams, not private choreography.
- Delete what does not carry meaning. Collapse speculative generality, indirection mazes, stale shapes, duplicate concepts, and test-only surfaces unless they protect a real obligation.
Non-negotiables
These are not style preferences. Treat them as design failures unless the surrounding code has a real constraint that explains them.
- Raw boundary data flows through core logic after being “validated.”
- Illegal states are normal representable values.
- Private parsing, storage, optimization, or test scaffolding becomes public vocabulary.
- A pass-through wrapper is presented as architecture.
- Consequential effects, authority, or expected failures are hidden from callers.
- Tests prove mocks, spies, or helper choreography instead of observable behavior.
Tradeoffs
Do not hard-pivot from one dogma to its opposite. Every design accepts costs; choose the smallest honest shape with the information available.
Rejected Framings
Reject these when they avoid modeling the real problem.
- “The value was already validated earlier.” Parse or translate at the boundary, pass the refined value inward, and make later code hard to call with the wrong shape.
- “This is just the API/DB/framework shape.” Boundary shapes can be used at the edge; they should not become the internal model by accident.
- “The existing code throws, so this can throw too.” Preserve unsafe failure contracts only when compatibility requires it; new local logic should distinguish expected failures from defects.
- “This wrapper clarifies responsibilities.” A wrapper earns its keep only when it hides complexity, owns policy or sequencing, protects an invariant, or translates across a real seam.
- “This distinction exists in the source format.” A distinction can be real and still be an implementation detail. Expose it only when callers need it.
- “This interface gives us future flexibility.” A seam is real when behavior varies, a boundary translates, or tests substitute through an intentional seam.
- “Mocks make this isolated.” Module mocks often isolate the wrong thing. Replace behavior through real seams and verify observable outcomes.
- “The old shape might still be used.” Check for a real user, data, or public-contract obligation. If the contract is intentionally changing, move to the end-state shape.
- “A lint/type/test suppression fixes it.” Suppressions need a narrow reason and a safety invariant; otherwise they hide contracts.
How to Apply
- Understand the local code first. Follow existing conventions when they communicate the model; change them deliberately when they preserve the wrong model.
- Classify the concern. Domain model, state, module, boundary, effect, error, verification, complexity, or maintainability.
- Find the caller burden. Ask what a caller or future maintainer must remember that the code could make explicit or enforce.
- Choose the smallest honest shape. Do not simplify by lying; do not model so much that the truth becomes harder to see.
- Verify the claim. Use project-native tests and checks that prove the behavior or contract the change depends on.
- Remove obsolete scaffolding. Once the real obligation is understood, keep the requirement and delete the leftover shape.
A review finding is ready only when it names the concrete code shape, the caller or maintainer burden, the standard it violates, and the smallest honest change. Drop findings that do not have code evidence or a real cost.
Reference Map
For nontrivial reviews or design advice, load only the reference files that match the concern below. Do not read every reference by default, and do not treat this root summary as the full standard.
| Concern | Read |
| Shared terms need clarification | references/vocabulary.md |
| Domain distinctions, granularity, identity, or implementation details leaking into the model | references/domain-modeling.md |
| Flags, nullable lifecycle fields, invalid combinations, transitions, loops, or authority | references/state.md |
| Deep modules, module roles, seams, dependency shape, resource ownership, or pass-through wrappers | references/modules.md |
| Raw API/DB/framework/provider shapes, parsing, DTOs, source-of-truth conflicts, or trust changes | references/boundaries.md |
| IO, mutation, authority, async/background work, retries, idempotency, or hidden consequences | references/effects.md |
| Expected failures, defects, operational failures, diagnostics, or human-facing failure facts | references/error-handling.md |
| Behavior tests, brittle mocks, characterization tests, evidence, or weak verification | references/verification.md |
| Overengineering, over-modeling, indirection mazes, speculative generality, or reasoning-cost smells | references/complexity.md |
| Contracts, internal freedom, Chesterton's fence, refactoring, compatibility obligations, or clean end-state changes | references/maintainability.md |
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.

