Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
madebymlai avatar

Coding Standards

  • 1 installs
  • Updated July 3, 2026
  • madebymlai/dustcastle

coding-standards is an agent skill that produces a CODING_STANDARDS.md catalog of checkable naming, control-flow, and error-handling conventions for diff review.

About

coding-standards is a Dustcastle style-catalog skill that turns abstract “write clean code” advice into reviewer-checkable bullets suitable for agentic and human review. It is aimed at teams who want one authoritative CODING_STANDARDS.md derived from a small set of battle-tested patterns: domain-aligned naming, guard clauses instead of deep nesting, consistent abstraction levels inside functions, and observable error handling. Each entry states when to apply the rule so an agent can cite the right pattern during review without improvising style religion. You invoke it when bootstrapping standards for a new repo or when tightening review prompts before CI or merge bots. Complexity sits at intermediate because applying the catalog assumes readers already ship code and can refactor toward the documented shapes. It complements generic linters by encoding team philosophy in prose reviewers can enforce on every change.

  • Destinations documented conventions into CODING_STANDARDS.md at repo root
  • Ubiquitous-language naming rule with explicit anti-patterns (mgr, tmp, process())
  • Guard clauses paired with Fail Fast at function level
  • Single Level of Abstraction rule for readable function outlines
  • No Silent Error Swallowing—every catch must log, re-raise, or surface failure

Coding Standards by the numbers

  • 1 all-time installs (skills.sh)
  • Ranked #982 of 1,352 Code Review & Quality skills by installs in the Skillselion catalog
  • Data as of Jul 7, 2026 (Skillselion catalog sync)
npx skills add https://github.com/madebymlai/dustcastle --skill coding-standards

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1
Last updatedJuly 3, 2026
Repositorymadebymlai/dustcastle

What it does

Author a repo-root CODING_STANDARDS.md style catalog so humans and agents review diffs against named, checkable conventions.

Who is it for?

Best when you're formalizing review criteria before scaling AI-assisted code review or onboarding contributors.

Skip if: Repos that only need formatter/linter configs with zero narrative standards, or greenfield projects where domain language is still undefined.

When should I use this skill?

You need a concrete, reviewer-oriented style catalog written to CODING_STANDARDS.md at the repository root.

What you get

You get a root-level CODING_STANDARDS.md whose pick-when guidance anchors consistent PR feedback and agent review checklists.

  • CODING_STANDARDS.md at repo root with naming, control-flow, and error-handling sections
  • Pick-when guidance blocks reviewers can reference in PR comments

By the numbers

  • Four convention categories documented: Naming, Control Flow, Error Handling, plus pick-when selectors per rule

Files

SKILL.mdMarkdownGitHub ↗

<purpose> A coding standards writer. Probe the codebase, propose standards one menu at a time, let the user accept or reject each, then write the accepted set to the project's coding-standards file. That file is read by the code-review agent and enforced only during review — zero token cost during implementation. </purpose>

<rules>

  • All user interaction via direct questions — one catalog section at a time.
  • Accumulate accepted items in memory; write the file only at the end.
  • Explain what you found in the codebase before each recommendation.
  • Recommend, don't gatekeep: surface the full menu, flag the items the code argues for, but let the user pick freely (including items you didn't flag, and skipping ones you did).
  • Standards are imperative one-liners a reviewer can check against a diff — not aspirations.

</rules>

<phase name="locate"> The target file is CODING_STANDARDS.md at the repo root.

Then look at the target file:

  • If it exists — read it. Treat its current standards as already-decided: do not re-propose them. The session is then an update — you are adding to (or, if the user asks, revising) the existing set.
  • If it is missing — this is a fresh write; you will create it at the end.

Tell the user the path you'll write and whether you're creating or updating. </phase>

Catalogs

Read both for the full menu. Each item carries a one-line definition and a > Pick when: signal describing the code smell it addresses.

  • catalogs/STYLE.md — control flow, error handling, duplication
  • catalogs/TESTING.md — structure, scope, assertions, reliability

<phase name="present"> Show the user each catalog's items, grouped by section, with the name and its one-line definition. Skip any item already present in the target file (from the locate phase). Keep it scannable — the user is choosing from a menu, not reading an essay. </phase>

<phase name="recommend"> Probe the codebase before recommending. Use the codebase-memory MCP tools first (get_architecture, search_code, search_graph), and read any linter/formatter configs (eslint, prettier, ruff, clippy, etc.). Flag the catalog items whose > Pick when: signal matches evidence you actually found — and say what evidence. Do not hide the items you didn't flag. </phase>

<phase name="select"> The user picks which standards they want. They may pick items you didn't recommend, or skip ones you did. Confirm the final set before writing. </phase>

<phase name="write"> Write the selected standards to the target file from the locate phase, grouped by the same section headers as the catalogs, each as an imperative one-liner. When updating an existing file, merge the new items under their sections without disturbing what's already there. When creating, create CODING_STANDARDS.md at the repo root. Do not include the > Pick when: signals or source links — only the imperative rules the reviewer enforces. </phase>

<phase name="summary"> Report what was written: the OS detected, the path, whether it was created or updated, and the list of standards grouped by section. Note that the review agent picks the file up automatically on the next review. </phase>

Related skills

How it compares

Use to codify human-reviewable conventions in markdown, not as a substitute for ESLint, RuboCop, or automated formatters.

FAQ

Who is coding-standards for?

Developers and tiny teams who want agents and reviewers to enforce the same explicit style catalog during pull requests.

When should I use coding-standards?

During ship/review when drafting or updating CODING_STANDARDS.md, and during build/docs when establishing conventions before the first major merge train.

Is coding-standards safe to install?

The skill is documentation-oriented with no required shell or secrets; confirm trust via the Security Audits panel on this page like any catalog skill.

Code Review & Qualityfrontendbackendtesting

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.