From f20f05eb38c5c164079db87234f87a6a8ccabd94 Mon Sep 17 00:00:00 2001 From: Lukasz Boryn Date: Wed, 23 Sep 2026 11:26:22 +0200 Subject: [PATCH] =?UTF-8?q?fix(skills):=20init-octobot=20=E2=80=94=20subst?= =?UTF-8?q?itute=20=20everywhere,=20dedupe=20simplicity=20block?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Dry run surfaced two bugs: the Knowledge block's placeholder was never substituted outside the OKF templates, and the new Simplicity & rigor section restated three of Behavioral guardrails' bullets instead of adding only their delta — real duplication, not essence-merging. Rewrote simplicity-block.md as a union-minus-overlap of CLAUDE.md §1-4 against agents-md-hook.md, verified no information lost by checking every CLAUDE.md §1-4 claim resolves in one of the two sections. Claude-Session: https://claude.ai/code/session_01VZH57yueT8apHdFXffmffE --- skills/scaffold/init-octobot/SKILL.md | 9 +++++--- .../scaffold/init-octobot/simplicity-block.md | 22 ++++++++++++------- 2 files changed, 20 insertions(+), 11 deletions(-) diff --git a/skills/scaffold/init-octobot/SKILL.md b/skills/scaffold/init-octobot/SKILL.md index 4d9e430..6986438 100644 --- a/skills/scaffold/init-octobot/SKILL.md +++ b/skills/scaffold/init-octobot/SKILL.md @@ -44,12 +44,15 @@ that a silent sub-step would bypass. migration/hook-wiring steps are permanently skipped, not full population. 3. **AGENTS.md** — create, assembling in order (never duplicate the - source prose into this repo's copy — insert each block verbatim): + source prose into this repo's copy — insert each block verbatim, + substituting `` with the repo's directory name in every + block, not just the OKF templates): 1. Knowledge + Behavioral guardrails, from write-OKF's [`agents-md-hook.md`](../../loop/write-OKF/agents-md-hook.md). 2. Simplicity & rigor, from - [`simplicity-block.md`](simplicity-block.md) (CLAUDE.md §1–4, - distilled). + [`simplicity-block.md`](simplicity-block.md) — CLAUDE.md §1–4's + union-minus-overlap with the hook block above; no information + lost, nothing restated. 3. `## Repo conventions — `, from [`AGENTS.md.tpl`](AGENTS.md.tpl) — empty repo: leave the fill-in-later placeholder. Non-empty: turn each confirmed diff --git a/skills/scaffold/init-octobot/simplicity-block.md b/skills/scaffold/init-octobot/simplicity-block.md index f84e685..fc3bf84 100644 --- a/skills/scaffold/init-octobot/simplicity-block.md +++ b/skills/scaffold/init-octobot/simplicity-block.md @@ -3,22 +3,28 @@ 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). -Distills CLAUDE.md sections 1–4 to the same terse, always-loaded register -as the guardrails block above it — the full essay stays in CLAUDE.md for -projects that opt into it. +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** — state assumptions, name the simpler approach - you're rejecting, ask when unclear rather than guessing. +- **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. -- **Surgical changes** — touch only what the task requires; don't - refactor, reformat, or "improve" adjacent code; match existing style. + 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. - **Goal-driven execution** — turn the task into a verifiable check - before starting, then loop against that check instead of "looks done". + before starting; for multi-step work, state a brief plan, each step + naming its own verify. ``` ## Rules