coding-standards

Installation
SKILL.md

coding-standards — Universal coding standards

Purpose

The universal, stack-agnostic trunk of coding standards. It applies when implementing, reviewing or refactoring in any language. It contributes rules; the consumer writes the code.

Stack- or concern-specific rules can come from other skills when they are available (see "What is NOT here").

Knowledge

General principles

  • SOLID — Single Responsibility, Open/Closed, Liskov, Interface Segregation, Dependency Inversion.
  • Fail fast — validate and return at the top of the method (early returns); avoid deep nesting.
  • Descriptive names — code self-documents. Comments explain the why, never the what. A comment that repeats the code gets deleted. TODO for incomplete code.
  • The code file is not the home of design documentation — architecture, rationale, usage guides and change narratives do not belong in a header block or a running commentary inside the source. Keep in the file only what a reader of that file needs to understand it; the rest belongs in the repository's own documentation. Where that documentation lives and how it is named is the repository's or the workflow harness' call, not this skill's.
  • Small methods — one responsibility per function.
  • Composition over inheritance.
  • Never silence errors — an unhandled error propagates; never catch it to return a mock/empty value.
Installs
4
First Seen
Sep 29, 2026