← ClaudeAtlas

write-codelisted

Code change: the smallest diff that meets the goal, each line traced to it and each step proved by a run. Use when you write, edit or delete code for a task, including a fix or a refactor.
crsmithdev/aleph · ★ 0 · Code & Development · score 62
Install: claude install-skill crsmithdev/aleph
Adapted from karpathy-guidelines (github.com/multica-ai/andrej-karpathy-skills @2c60614, MIT per its frontmatter) and Matt Pocock's `codebase-design` (github.com/mattpocock/skills @4ae2317). # Code change Make a **surgical** change: the fewest lines that meet the goal, and every changed line traces to it. The five steps run in order; the rules apply during step 3. ## Steps 1. **Turn the goal into checks.** Before the first edit, plan the steps, each with the run that proves it: ``` 1. <step> → verify: <command> shows <result> 2. <step> → verify: <command> shows <result> ``` "Fix the bug" becomes "a test that fails on the bug, then passes". "Add validation" becomes "tests for the invalid inputs, then make them pass". "Refactor X" becomes "the same tests pass before and after". Done when every step has a `verify:` that a command can show; step 3 runs each one. 2. **Settle each reading.** Where the goal reads two ways and the readings lead to different code, take the reading you would recommend and record it: in the `defaults` field when your brief defines one, else in your summary. Where a simpler approach than the one the goal names meets the goal, take it and say why. Done when each ambiguity you found has a recorded choice. 3. **Make the change** under the rules below. Done when each `verify:` from step 1 shows its result in a run after your last edit. 4. **Trace the diff.** Read `git diff` against the base line by line. Done when each changed line tr