octobot/skills/scaffold/init-octobot/simplicity-block.md
Lukasz Boryn 4b3423d91b 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
2026-09-23 12:52:42 +02:00

42 lines
2.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# AGENTS.md simplicity block
Insert verbatim into the target `AGENTS.md`, after the Knowledge and
Behavioral guardrails sections from
[write-OKF's `agents-md-hook.md`](../../loop/write-OKF/agents-md-hook.md).
Each bullet below carries only what that hook block does **not** already
say — CLAUDE.md §1–4 in full still holds every claim; this is the
union minus the overlap, not a restatement, so nothing is lost even for
a repo that never opts into CLAUDE.md.
```markdown
## Simplicity & rigor
- **Think before coding** — when multiple interpretations exist, present
them; don't pick silently.
- **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: "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
- Keep this block verbatim across scaffolded projects — same source
(`CLAUDE.md` §1–4, adapted from
<https://github.com/multica-ai/andrej-karpathy-skills>) every time.
- If the target repo already has an AGENTS.md with an equivalent section,
merge by hand and show the diff; never duplicate.