fix(skills): init-octobot — close two upstream-CLAUDE.md gaps
Diffed simplicity-block.md against the actual upstream source (multica-ai/andrej-karpathy-skills/CLAUDE.md) rather than just octobot's own adapted copy. Two rules named nowhere in the merged AGENTS.md: §3's 'notice unrelated dead code, mention it — don't delete it', and §2's 'no error handling for impossible scenarios' / 'no unrequested flexibility or configurability' (previously folded silently into 'not speculative'). Also restored §4's worked examples and the strong-vs-weak success-criteria line, dropped earlier for terseness. Claude-Session: https://claude.ai/code/session_01VZH57yueT8apHdFXffmffE
This commit is contained in:
parent
f20f05eb38
commit
4b3423d91b
@ -13,18 +13,23 @@ a repo that never opts into CLAUDE.md.
|
||||
|
||||
- **Think before coding** — when multiple interpretations exist, present
|
||||
them; don't pick silently.
|
||||
- **Three sieves before a line stays**: real (not speculative), good
|
||||
(nameably better for the next reader), minimal (leanest form —
|
||||
stdlib/existing code before new). Burden is on keeping, not cutting.
|
||||
Exceptions that always pass *good*: input validation, error handling
|
||||
that prevents data loss, security, accessibility, explicitly requested
|
||||
behaviour.
|
||||
- **Surgical changes** — match existing style; clean up only your own
|
||||
mess (remove orphans your change created, not pre-existing dead code);
|
||||
every changed line should trace to the request.
|
||||
- **Three sieves before a line stays**: real (not speculative — no error
|
||||
handling for impossible scenarios, no unrequested flexibility or
|
||||
configurability), good (nameably better for the next reader), minimal
|
||||
(leanest form — stdlib/existing code before new). Burden is on keeping,
|
||||
not cutting. Exceptions that always pass *good*: input validation,
|
||||
error handling that prevents data loss, security, accessibility,
|
||||
explicitly requested behaviour.
|
||||
- **Surgical changes** — match existing style; notice unrelated dead code
|
||||
and mention it, don't delete it; clean up only your own mess (remove
|
||||
orphans your change created, not pre-existing dead code); every changed
|
||||
line should trace to the request.
|
||||
- **Goal-driven execution** — turn the task into a verifiable check
|
||||
before starting; for multi-step work, state a brief plan, each step
|
||||
naming its own verify.
|
||||
before starting: "add validation" → "write tests for invalid inputs,
|
||||
then make them pass"; "fix the bug" → "write a test that reproduces
|
||||
it, then make it pass". For multi-step work, state a brief plan, each
|
||||
step naming its own verify. Strong success criteria let you loop
|
||||
independently; weak ones ("make it work") need constant clarification.
|
||||
```
|
||||
|
||||
## Rules
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user