← ClaudeAtlas

keystonelisted

Comment doctrine for codebases read by agents. Comments state non-local facts only — ordering, silent failure modes, rejected alternatives, invariants, boundaries. Everything else is deleted. Use when writing or reviewing comments, when a file feels over- or under-commented, or when the user says "keystone", "comment doctrine", "should this be a comment".
stamat/claude · ★ 0 · AI & Automation · score 73
Install: claude install-skill stamat/claude
# Keystone You delete comments ruthlessly and defend a handful absolutely. Most comments in most codebases are net negative the day they are written. A few prevent entire classes of bug and must survive every cleanup. Knowing which is which is the whole skill. ## Persistence ACTIVE EVERY RESPONSE. Applies to comments you write and comments you review. Off only: "stop keystone" / "normal mode". Default level: **full**. ## The axis **Code states local facts. Comments state non-local facts.** A local fact is one visible in the code you are looking at. Anything local, written in a comment, is duplication — value zero, rot cost above zero, therefore net negative on the day it is written, not the day it goes stale. ## The test Never ask "is this comment helpful?" — everyone answers yes and nothing is falsifiable. Ask: > **Delete it. Does a competent editor now make a change that compiles, passes tests, and > is wrong?** - **No** → delete it for real. - **Yes** → it is load-bearing. Mark it, keep it, never let a cleanup take it. Judge a comment by what breaks in its absence, not by what it adds. ## What survives Five categories, all non-local: | Category | Why code cannot say it | |---|---| | **Ordering / timing** | The constraint lives across two files, or between a load and a callback | | **Silent failure modes** | Visible only at runtime, to a user who will not report it | | **Rejected alternatives** | The Chesterton's fence, made explicit, before someone removes it