agentleFS
augments-labsaugments-labs/sdlc-skills/skills/design/coding-standards/SKILL.md

coding-standards

Skill1 starsChanged 4 months agoMITView on GitHub

Settles the conventions agents and humans both follow in a project: domain vocabulary, naming, patterns to reach for, and things to never do. Use when a project needs its conventions settled, once per project or when they have drifted, or when the user asks for a style guide or house rules, says the codebase is inconsistent, or asks how something should be named. Skip when clear standards already exist and are followed, and skip proving the code correct.

67 other projects use a version of this.

Adopted by

Most recently taken up by

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.
  • FaisalAlqarniSkill

    springboot-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-ySkill

    configure-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

  • joneqianSkill

    continuous-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

  • FaisalAlqarniSkill

    springboot-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 AzureSkill

    iterative-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

  • InfopibeSkill

    deployment-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

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 56 edited versions we read keep these.

  • 3

    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
  1. Distinctive:

    Skip: if the project already has clear standards that are actually followed.

    line 13
  2. Distinctive:

    No contract → derive terms from the domain evidence you can see.

    line 23
  3. Distinctive:

    Write the hard nevers. Keep the list short.

    line 28
  4. Very specific:

    Write the immutable section to .sdlc-skills/designs/{{YYYY-MM-DD}}-{{topic}}.md or the user-set path, preserving approved sections around …

    line 46
  5. Very specific:

    Ask through the harness's user-input action when one exists, else print this block.

    line 64

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Coding Standards

Set the conventions once so every contributor — human or agent — writes code that reads like one author. The highest-leverage standard is shared vocabulary: name things from the domain, consistently, so the same concept is never two words.

When to use

  • Starting a project, or when conventions have drifted and the code reads like several authors.
  • Skip if the project already has clear standards that are actually followed.

Step 1: Fix the vocabulary and the patterns

Open assets/standards-template.md before starting; each step fills its section. Read references/standards-example.md when the first draft is written and needs comparing against a filled example.

  1. Approved data-model or domain contract exists → take its concepts and terms. Decide only representation, casing, abbreviations, drift enforcement. Never their meaning, never a rename. Dispute about what a concept is → data-model.
  2. No contract → derive terms from the domain evidence you can see.
  3. Ban a generic label wherever a domain term exists. Keep the glossary current.
  4. Name the one way this project does each: error handling, validation, async, dependency injection, testing seams. One short example each.
  5. Write the hard nevers. Keep the list short.

Step 2: Assign enforcement

  1. Per rule: statically detectable → a formatter, linter, type or static check, or repository check that fails. Vocabulary, architecture, judgement → a named review rubric and a named owner.
  2. Set each check's strictness deliberately. Warning budget zero. Never leave a permissive default.
  3. Point to the exemplar. Run its checks and rubric now. Greenfield with none → name the first artifact and owner; adoption stays pending. Never fabricate a path.
  4. Name which project instruction wins on conflict and who approves an exception. Each exception: scope, reason, expiry, compensating check.
  5. Name the drift-review cadence or trigger and who updates the standard.

Step 3: Write and present

  1. Write the immutable section to .sdlc-skills/designs/{{YYYY-MM-DD}}-{{topic}}.md or the user-set path, preserving approved sections around it.
  2. Present:

    Coding standards {{path}} — version {{identity (per template)}}
    Vocabulary: {{n}} terms  Patterns: {{n}}  Nevers: {{n}}
    Enforcement: {{n}} automated, {{n}} review  Exemplar gate: {{result}}
    
    1. Approve
    2. Request changes
    3. Reject
    4. Cancel
    
    Recommendation: {{option}} — {{one sentence}}.

    Ask through the harness's user-input action when one exists, else print this block; end the turn; clarifying-intent owns what closes it.

  3. On option 1, claim adoption only after enforcement and the exemplar gate run. Record in force / suspended / superseded externally with fresh evidence.

Gotchas

  • An exception granted with no expiry never comes back for review. The carve-out becomes a second, permanent convention living alongside the one it was supposed to be an exception to.
  • Enforcement usually checks new or changed code, not a one-time sweep of everything already there, so banning a generic label going forward can leave every existing occurrence exactly as inconsistent as before.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.