coding
SKILL.md
Coding
Principles
Write code that is:
- Legible — small modules, explicit names, no magic. Another agent should understand any file without reading the whole codebase.
- Replaceable — clear interfaces and contracts. Any module should be deletable and rewritable from its signature alone, without touching neighbors.
- Verifiable — types, tests, and mechanical checks. If you can't prove it works without reading every line, it's not done.
Workflow
- Reuse first. Before creating a new file, type, or utility: search for existing ones by name (
Globfor filenames,Grepfor type/function names). Read only signatures, not full implementations. If a match exists, import it. - Scope. Confirm scope, constraints, and acceptance criteria.
- Read. Read only necessary code paths.
- Write modular code. Small functions, typed interfaces, explicit state. No god files, no global mutable state, no stringly-typed returns.
- Self-review. Check your output against the hard rules and smell signals below. Fix violations before presenting.
- Verify. Add or update tests when behavior changes. Types should catch contract violations at boundaries.
- Summarize. Changes, validations, remaining risks.