docs(okf): dogfood the open-knowledge-format wiki on octobot itself
- docs(okf): INDEX, SUMMARY, ARCHITECTURE, CONTEXT, ROADMAP, LEARNINGS pages - docs(okf): ROADMAP carries the 5-phase metaharness build-out, phase 1 verified - docs(agents): AGENTS.md with the scribe-OKF hook block and house rules
This commit is contained in:
parent
b1b9aa09de
commit
517777e5df
35
AGENTS.md
Normal file
35
AGENTS.md
Normal file
@ -0,0 +1,35 @@
|
||||
# octobot — agent directions
|
||||
|
||||
## Knowledge — read before you code
|
||||
|
||||
This project keeps an agent-first wiki at [`OKF/`](OKF/INDEX.md)
|
||||
(open-knowledge-format). Before extending or modifying octobot:
|
||||
|
||||
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 spec in `OKF/specs/` — 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
|
||||
spec's stated check before calling work done.
|
||||
|
||||
## House rules
|
||||
|
||||
- Skill authoring: [conjure-a-skill](skills/productivity/conjure-a-skill/SKILL.md);
|
||||
every skill file ≤110 lines.
|
||||
- Commits: [jj-atomic](skills/productivity/jj-atomic/SKILL.md) —
|
||||
`type(scope): imperative`, one concern per change, foreground jj only.
|
||||
- Fuller behavioral contract: [CLAUDE.md](CLAUDE.md).
|
||||
41
OKF/ARCHITECTURE.md
Normal file
41
OKF/ARCHITECTURE.md
Normal file
@ -0,0 +1,41 @@
|
||||
# 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: scribe-OKF
|
||||
(knowledge), architect (plan). Blueprint, ferry, implement, steer land
|
||||
per [ROADMAP.md](ROADMAP.md).
|
||||
- **engineering** (`skills/engineering/`) — practice skills: bdd,
|
||||
diagnose, review axes (review-angles, nuke-review, winnow), sieve,
|
||||
vocabulary (codebase-design, domain-modeling), r-style, dev-* runners,
|
||||
write-readme*.
|
||||
- **productivity** (`skills/productivity/`) — session mechanics:
|
||||
jj-atomic, handoff, grill-me, caveman, cavecrew-octobot,
|
||||
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** — scribe-OKF → architect → blueprint → ferry → implement
|
||||
→ review+verify → jj-atomic; OKF refreshed after implement
|
||||
(`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).
|
||||
39
OKF/CONTEXT.md
Normal file
39
OKF/CONTEXT.md
Normal file
@ -0,0 +1,39 @@
|
||||
# octobot — context
|
||||
|
||||
Vocabulary for octobot itself. Skill-authoring terms (leading word,
|
||||
context load, progressive disclosure, sprawl, no-op) live in
|
||||
[conjure-a-skill/GLOSSARY.md](../skills/productivity/conjure-a-skill/GLOSSARY.md)
|
||||
— not duplicated here.
|
||||
|
||||
## Language
|
||||
|
||||
**Skill**:
|
||||
One folder under `skills/<category>/<name>/` with a SKILL.md router and
|
||||
optional topic-named siblings. _Avoid_: command, plugin, prompt.
|
||||
|
||||
**The loop**:
|
||||
The metaharness cycle scribe-OKF → architect → blueprint → ferry →
|
||||
implement → review+verify → jj-atomic. _Avoid_: pipeline, workflow (those
|
||||
describe the dev-* orchestrators).
|
||||
|
||||
**OKF**:
|
||||
Open-knowledge-format — the agent-first wiki at a target project's
|
||||
`./OKF/`; layout contract in
|
||||
[scribe-OKF/okf-layout.md](../skills/loop/scribe-OKF/okf-layout.md).
|
||||
_Avoid_: docs folder, wiki (unqualified), knowledge base.
|
||||
|
||||
**Spec**:
|
||||
A blueprint-produced file `OKF/specs/NNN-<slug>.md` with status
|
||||
frontmatter; the unit implement executes. _Avoid_: ticket, issue, task.
|
||||
|
||||
**Brief**:
|
||||
The written contract a mutating subagent receives before spawning —
|
||||
goal, OKF/spec references, verify command. A locked spec can serve as
|
||||
the brief. _Avoid_: prompt (ambiguous).
|
||||
|
||||
**Seal**:
|
||||
The jj-atomic describe step where scratch becomes artifact; the sieve
|
||||
fires here. _Avoid_: commit (mechanics), merge.
|
||||
|
||||
**House cap**:
|
||||
110 lines per skill file (GLOSSARY.md excepted). _Avoid_: limit, budget.
|
||||
22
OKF/INDEX.md
Normal file
22
OKF/INDEX.md
Normal file
@ -0,0 +1,22 @@
|
||||
# octobot — OKF index
|
||||
|
||||
Open-knowledge-format wiki. Agents: read this page first, then the pages
|
||||
your task needs. Humans welcome too.
|
||||
|
||||
## Pages
|
||||
|
||||
- [SUMMARY.md](SUMMARY.md) — what this project is; start here cold.
|
||||
- [ARCHITECTURE.md](ARCHITECTURE.md) — skill categories, seams, the loop.
|
||||
- [CONTEXT.md](CONTEXT.md) — canonical domain glossary.
|
||||
- [ROADMAP.md](ROADMAP.md) — metaharness build-out, phased with verify steps.
|
||||
- [LEARNINGS.md](LEARNINGS.md) — gotchas and debunked claims.
|
||||
|
||||
## Decisions
|
||||
|
||||
- `adr/` — none yet; three-of-three rule applies (see
|
||||
[domain-modeling](../skills/engineering/domain-modeling/ADR-FORMAT.md)).
|
||||
|
||||
## Specs
|
||||
|
||||
- `specs/` — none yet; blueprint (phase 2) writes here
|
||||
(`NNN — title — status`).
|
||||
18
OKF/LEARNINGS.md
Normal file
18
OKF/LEARNINGS.md
Normal file
@ -0,0 +1,18 @@
|
||||
# octobot — learnings
|
||||
|
||||
<!-- Append-only. Format: believed / true / source. Supersede, never
|
||||
rewrite. -->
|
||||
|
||||
- Believed: `jj squash`/`describe` can run like any shell command.
|
||||
True: without `-m` / `--use-destination-message` they open an editor
|
||||
and hang headless sessions; backgrounded jj mutations race the
|
||||
working-copy snapshot. Source:
|
||||
`skills/productivity/jj-atomic/anti-patterns.md`, session 2026-07-19.
|
||||
- Believed: Claude Code scans `~/.claude/skills/` recursively.
|
||||
True: one level deep only — hence per-skill symlinks, not one repo
|
||||
symlink. Source: `README.md` §Install.
|
||||
- Believed: a conflicted jj chain must be resolved where it stands.
|
||||
True: check topology first — a chain rebased onto the wrong root
|
||||
produces phantom conflicts; rebasing onto the true destination shrank
|
||||
a 2-file conflict to 1 file before any hand-resolution. Source:
|
||||
session 2026-07-19 (write-readme-py conflict).
|
||||
77
OKF/ROADMAP.md
Normal file
77
OKF/ROADMAP.md
Normal file
@ -0,0 +1,77 @@
|
||||
# octobot Roadmap
|
||||
|
||||
Octobot becomes a loop-engineering metaharness: the loop
|
||||
(scribe-OKF → architect → blueprint → ferry → implement) over an OKF
|
||||
substrate, alongside the existing practice/scaffold skills. Vocabulary:
|
||||
[CONTEXT.md](CONTEXT.md).
|
||||
|
||||
## Why (gap vs prior art)
|
||||
|
||||
| repo | has | lacks |
|
||||
|---|---|---|
|
||||
| mattpocock/skills | spec/ticket pipeline, tracker-backed | file-based substrate, jj, R/Py ecosystem, debloat/review axes |
|
||||
| obra/superpowers | subagent execution, verification gate | persistent wiki memory, ecosystem scaffolds |
|
||||
| octobot pre-2026-07 | review axes, scaffolds, jj discipline | plan→spec→implement spine, knowledge substrate |
|
||||
|
||||
Octobot's slot: file-based loop over OKF (open-knowledge-format), jj-native.
|
||||
|
||||
## Locked decisions
|
||||
|
||||
1. OKF = open-knowledge-format at target project's `./OKF/` — reversible
|
||||
(it's files). Karpathy-LLM-wiki style; OpenWiki-inspired, dependency-free.
|
||||
2. architect replaces plan-project + update-project (mode-routed) —
|
||||
reversible by re-splitting.
|
||||
3. Specs are files with status frontmatter, not tracker issues — the
|
||||
"tracker" is grep. Reversible via export.
|
||||
4. One canonical glossary per bounded context, never per issue.
|
||||
5. Handoff gate: no mutating subagent without a brief (goal, OKF/spec
|
||||
refs, verify command); read-only lookups exempt.
|
||||
6. New skill names: imperative-verb-first; legacy names grandfathered.
|
||||
|
||||
## Architecture
|
||||
|
||||
See [ARCHITECTURE.md](ARCHITECTURE.md); loop diagram in `README.md`.
|
||||
|
||||
## Phases
|
||||
|
||||
1. **OKF foundation** — scribe-OKF, architect, path retargets, octobot's
|
||||
own OKF. **Verify:** scaffold produces layout-conformant tree in an
|
||||
empty dir; refresh on octobot yields sane OKF/; zero stale
|
||||
plan-project/update-project refs. ✅ verified 2026-07-19 (scratch-dir
|
||||
scaffold + this OKF + grep).
|
||||
2. **blueprint + review-blueprint** — spec skill with spec-format.md;
|
||||
fourth review axis (diff vs spec). **Verify:** blueprint a real
|
||||
roadmap item into a well-formed spec; review-blueprint flags an
|
||||
injected scope-creep diff.
|
||||
3. **ferry + implement** — decision maps; spec-driven execution with the
|
||||
verify gate and handoff-gated subagent dispatch. **Verify:** ferry a
|
||||
multi-session feature into ≥3 edged decisions; implement one locked
|
||||
spec end-to-end with pasted Verify output.
|
||||
4. **Upstream pulls** — tautological-test + pre-agreed seams into bdd;
|
||||
handoff redaction/reference rules; resolve-conflicts (jj port).
|
||||
**Verify:** resolve-conflicts replayed on a synthetic two-sided
|
||||
conflict; house caps hold.
|
||||
5. **Invocation audit + steer** — disable-model-invocation on
|
||||
orchestrators/rituals; steer router; conjure imperative-verb
|
||||
enforcement; README regen. **Verify:** fresh session lists only the 8
|
||||
model-invoked descriptions; steer names every skill; conjure rejects
|
||||
a noun-first name.
|
||||
|
||||
## Risks & gotchas
|
||||
|
||||
- Believed: skills can cross-invoke via description matching. True:
|
||||
cross-links are file paths, so disable-model-invocation is safe for
|
||||
linked skills; only description routing dies. Source: Claude Code
|
||||
skill mechanics, README §Install.
|
||||
- Trigger collisions with co-installed plugins (superpowers, caveman)
|
||||
— the invocation audit (phase 5) is the mitigation.
|
||||
- `jj` mutations backgrounded hang on the headless editor — always
|
||||
foreground, use `-m`/`--use-destination-message`
|
||||
([LEARNINGS.md](LEARNINGS.md)).
|
||||
|
||||
## Out of scope
|
||||
|
||||
- Issue-tracker backends (GitHub/GitLab) for specs — files only.
|
||||
- OpenWiki CLI dependency — import-compat at most.
|
||||
- Renaming grandfathered non-verb skills.
|
||||
- Matt's writing-* / teach / wizard / obsidian skill families.
|
||||
17
OKF/SUMMARY.md
Normal file
17
OKF/SUMMARY.md
Normal file
@ -0,0 +1,17 @@
|
||||
# octobot — summary
|
||||
|
||||
**What**: Personal, reusable Claude Code skills — a loop-engineering
|
||||
metaharness plus language-agnostic productivity workflows that travel
|
||||
across projects. Skills live here; per-skill symlinks under
|
||||
`~/.claude/skills/` make Claude Code discover them.
|
||||
|
||||
**Stack**: Markdown skills (SKILL.md + progressive-disclosure siblings),
|
||||
jujutsu (jj) for VCS, no build step.
|
||||
|
||||
**Run it**: nothing to run — install via the symlink loop in
|
||||
[README.md](../README.md#install); verify a skill appears in a fresh
|
||||
Claude Code session.
|
||||
|
||||
**Read next**: [ARCHITECTURE.md](ARCHITECTURE.md) for the category map
|
||||
and the loop, [CONTEXT.md](CONTEXT.md) for vocabulary,
|
||||
[ROADMAP.md](ROADMAP.md) for the metaharness build-out.
|
||||
0
OKF/adr/.gitkeep
Normal file
0
OKF/adr/.gitkeep
Normal file
0
OKF/specs/.gitkeep
Normal file
0
OKF/specs/.gitkeep
Normal file
Loading…
x
Reference in New Issue
Block a user