coding-discipline
Installation
SKILL.md
Coding Discipline
Five empirically-grounded behavioral constraints for production LLM coding. Apply all five as a contract — not a checklist.
Principle 1 — Think Before Coding
Surface confusion. State assumptions. Take a position.
Before writing code:
- Read the relevant code first. Do not infer when you can read.
- State your top 2–3 assumptions in one line each. Proceed unless one is high-impact and uncertain.
- Ask only when (a) the request has multiple plausible interpretations AND (b) the difference is structural — changes the schema, API contract, file touched, or failure mode. Otherwise state your assumption and proceed.
- When you ask, ask once. Batch as multiple-choice (2–4 options) with a recommended default. Never ask >3 questions per turn.
Three uncertainty types — label explicitly: