Dry run surfaced two bugs: the Knowledge block's <project> 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
5.0 KiB
5.0 KiB
name, description, disable-model-invocation
| name | description | disable-model-invocation |
|---|---|---|
| init-octobot | Bootstrap octobot's framework files (AGENTS.md, optional CLAUDE.md, a bare OKF/, README.md) into any repo — greenfield or ongoing — that never ran octobot before. | true |
init-octobot
Fixes the "octobot dropped into a repo with no ROADMAP, no OKF, no
AGENTS.md, no CLAUDE.md" gap. Writes everything itself — never chains to
another user-invoked skill mid-run, since write-OKF, /chart, and
write-readme each gate their own writes on explicit user confirmation
that a silent sub-step would bypass.
When to use
- User says "init octobot", "/init-octobot", "bootstrap octobot here", "set up octobot in this repo".
- A repo has none of
AGENTS.md,OKF/,OKF/ROADMAP.mdand the user wants octobot's framework in place.
Process
- Scan — run
scripts/repo-scan <repo-root>. Two line kinds:LEGACY <path>—CONTEXT.md,docs/Roadmap.md, ordocs/adrexists at root.CONVENTION <bullet> — <path>— a language/lint/test signal.
- OKF/ROADMAP.md:
- Any
LEGACYline → skipOKF/andROADMAP.mdentirely. Tell the user to run/write-OKF(offers the migration these files need) then/chart(produces a real roadmap). Do not scaffold in this branch — write-OKF's Scaffold-only migration step never fires onceOKF/already exists, so pre-creating it here would forfeit that path. - No
LEGACYline → materializeOKF/index.mdandOKF/ROADMAP.mdfrom write-OKF's owntemplates/index.md.tplandtemplates/ROADMAP.md.tplverbatim (<project>substituted) — reuse, don't reinvent. Both stay all-TODO, so/chart's "absent or all-TODO → Greenfield" mode detection still fires correctly later.OKF/now exists, so a future/write-OKFrun takes Refresh mode — its rescan step (page plan viaokf-scan, sorted against the still-emptyindex.md) is built to reconcile exactly this bare state; only the Scaffold-only migration/hook-wiring steps are permanently skipped, not full population.
- Any
- AGENTS.md — create, assembling in order (never duplicate the
source prose into this repo's copy — insert each block verbatim,
substituting
<project>with the repo's directory name in every block, not just the OKF templates):- Knowledge + Behavioral guardrails, from write-OKF's
agents-md-hook.md. - Simplicity & rigor, from
simplicity-block.md— CLAUDE.md §1–4's union-minus-overlap with the hook block above; no information lost, nothing restated. ## Repo conventions — <dir-name>, fromAGENTS.md.tpl— empty repo: leave the fill-in-later placeholder. Non-empty: turn each confirmedCONVENTIONline into one short bullet; anything needing more than one line goes toOKF/decisions/instead, linked from the bullet (skip if step 2 skippedOKF/).
- Confirm every
CONVENTIONbullet with the user before writing — the scan proposes, it doesn't decide.
- Knowledge + Behavioral guardrails, from write-OKF's
- CLAUDE.md — ask first; only write it if the user opts in, from
CLAUDE.md.tpl(a pointer to AGENTS.md, never a duplicate of its content). - README.md — absent → write
README.md.tpl's minimal placeholder. Present → skip untouched; a stub over real content is a regression, not a convenience. - Existing AGENTS.md/CLAUDE.md in the target repo — propose a merge reshaping the existing prose into the step-3/4 structure; show the diff; write only after the user confirms.
- Close out — list what was written and skipped, and suggest next
steps:
/write-OKF,/chart,/write-readme— whichever apply.
Output / done criteria
- Every file in Process is either written (diff shown) or explicitly skipped with a stated reason.
- No
CONVENTIONbullet lands unconfirmed; no existing file is overwritten without a shown diff and a yes. - Nothing committed — hand to
/commit-atomic-jj(feat(init): bootstrap octobot framework files, orchore(init):if the repo takes chore-scoped infra commits).
Guardrails
- Never invoke write-OKF,
/chart, or write-readme as a sub-step — point the user at them instead. - Never fabricate a
CONVENTIONbullet without arepo-scanline behind it. - Never overwrite an existing README.md, AGENTS.md, or CLAUDE.md without a shown diff and explicit confirmation.
- Never scaffold
OKF/orROADMAP.mdwhen aLEGACYline fired.
See also
/write-OKF— full OKF scaffold/refresh, legacy migration, AGENTS.md hook-wiring on a repo with no priorOKF/./chart— writes realOKF/ROADMAP.mdcontent./write-readme— full README generation by ecosystem detection./commit-atomic-jj— the commit step this skill hands off to.