octobot/skills/loop/write-OKF/agents-md-hook.md
Lukasz Boryn 07afbe8473 feat(write-OKF): conform OKF contract to Google OKF v0.1 spec
feat(write-OKF): require type frontmatter on every page; okf_version in
index; conformance block + page-type vocabulary in okf-layout.md
feat(write-OKF): rename INDEX.md to reserved lowercase index.md across
templates and cross-referencing skills
feat(blueprint): add type: Blueprint to blueprint-format frontmatter
feat(ferry): add type: Ferry Map / Decision to decision-format
docs(write-OKF): cite Google OKF v0.1 spec alongside Karpathy and
LangChain OpenWiki in the layout contract
2026-07-20 00:51:43 +02:00

1.7 KiB

AGENTS.md hook block

Insert verbatim (create AGENTS.md if absent; append if it exists — never overwrite existing prose). <project> substituted from SUMMARY.md.

## Knowledge — read before you code

This project keeps an agent-first wiki at [`OKF/`](OKF/index.md)
(open-knowledge-format). Before extending or modifying <project>:

1. Read [`OKF/index.md`](OKF/index.md), then the pages it flags for your
   task — at minimum `SUMMARY.md`; `ARCHITECTURE.md` before structural
   work.
2. Use the canonical vocabulary from [`OKF/CONTEXT.md`](OKF/CONTEXT.md)
   in code, tests, and commit messages. Don't coin synonyms.
3. Non-trivial changes start from a blueprint in `OKF/blueprints/` — write one
   (blueprint skill) before implementing; cite its number in the commit.
4. Learned something that contradicts the wiki? Update the wiki in the
   same change (supersede, don't delete) or append to
   `OKF/LEARNINGS.md`.

## Behavioral guardrails

- State assumptions explicitly; name the simpler approach you are
  rejecting; surface tradeoffs. Push back when warranted — if something
  is unclear, stop and ask rather than guess.
- Do exactly what the task requires, nothing more. No speculative
  abstractions, no drive-by refactors.
- A green test suite is a claim, not a proof — verify against the
  blueprint's stated check before calling work done.

Rules

  • The guardrails section is the octobot-house Karpathy distillation — keep it verbatim so every scaffolded project carries the same contract.
  • If the target repo already has an AGENTS.md knowledge section, merge by hand and show the diff; never duplicate the block.
  • CLAUDE.md-only repos: offer a one-line CLAUDE.md pointer to AGENTS.md instead of duplicating the block there.