octobot/OKF/ARCHITECTURE.md
Lukasz Boryn 4a112e864d refactor(okf): move specs/ to blueprints/ and ferries/; supersede spec term
refactor(okf): OKF/specs/ becomes flat OKF/blueprints/ (NNN files only); ferry
dirs move to OKF/ferries/<topic>/ so numbering and status greps need no exclusions
docs(okf): INDEX.md gains Blueprints (NNN — title — status) and Ferries
(<topic> — n/m resolved → MAP.md) sections; decisions stay in MAP.md only
docs(okf): CONTEXT.md supersedes spec with blueprint and records the
Contract section; loop pages updated for renamed skills
2026-07-20 00:41:15 +02:00

1.8 KiB

octobot — architecture

Module map

One module per skill category; the interface of each skill is its frontmatter description (routing) plus its SKILL.md body (procedure).

  • loop (skills/loop/) — the metaharness spine: write-OKF (knowledge), architect (plan). Blueprint, ferry, weave, steer land per ROADMAP.md.
  • engineering (skills/engineering/) — practice skills: bdd, diagnose, review axes (review-angles, nuke-review, winnow), sieve, vocabulary (design-codebase, model-domain), style-r, dev-* runners, write-readme*.
  • productivity (skills/productivity/) — session mechanics: commit-atomic-jj, handoff, grill-me, caveman, spawn-cavecrew, conjure-a-skill.
  • scaffold (skills/scaffold/) — project generators: build-py-project, build-r-package, build-r-analysis, containerize-project, add-docker-secrets.

Main flows

  1. The loop — write-OKF → architect → blueprint → ferry → weave → review+verify → commit-atomic-jj; OKF refreshed after weave (skills/loop/, diagram in README.md).
  2. Skill discovery — Claude Code scans ~/.claude/skills/ one level deep; per-skill symlinks point into skills/<category>/<name>/ (README.md §Install).
  3. Post-green review — bdd "After green" hands to the review axes, fixes land red-test-first (skills/engineering/bdd/SKILL.md).

Seams

  • Skill frontmatter — disable-model-invocation flips a skill between description-routed and name-only invocation.
  • Progressive disclosure — SKILL.md bodies point to topic-named sibling files; swapping a sibling changes behaviour without touching the router (skills/productivity/conjure-a-skill/PRINCIPLES.md).
  • Cross-links — skills reference each other by relative path; category moves are renames across these links (grep before moving).