feat(skills): rename skills to verb-first names; adopt blueprint vocabulary
feat(skills): rename scribe-OKF>write-OKF, implement>weave, domain-modeling>model-domain, codebase-design>design-codebase, caveman>talk-caveman, background-work>harden-background-work, dev-python>develop-python, dev-r>develop-r, r-style>style-r, handoff>write-handoff, cavecrew-octobot>spawn-cavecrew, jj-atomic>commit-atomic-jj; bdd stays as the single grandfathered name docs(skills): sweep spec>blueprint across skill prose; spec-format.md becomes blueprint-format.md; internal Spec section becomes Contract; commit citations now read implements blueprint NNN docs(blueprint): numbering starts at 001 when OKF/blueprints/ is empty docs(conjure): 110-line cap applies to SKILL.md only; siblings uncapped fix(containerize): read an existing build-dev recipe and surface semantic mismatch instead of trusting the name
This commit is contained in:
parent
4a112e864d
commit
ded5759973
@ -62,7 +62,7 @@ re-routes via description matching — explicit, observable, debuggable.
|
||||
4. **Validate** — end at `just validate --changed`; interpret its errors.
|
||||
5. **Hand off** — name the next skill (or declare done) and stop.
|
||||
|
||||
## Frontmatter spec (matches GitHub's docs)
|
||||
## Frontmatter blueprint (matches GitHub's docs)
|
||||
|
||||
| Field | Requirement | Notes |
|
||||
|---|---|---|
|
||||
|
||||
@ -13,7 +13,7 @@ description: Drive implementation with a strict red-green-refactor loop where ev
|
||||
change, side effect) — pure refactors are out of scope.
|
||||
|
||||
## Vocabulary
|
||||
Before step 1, anchor on [../codebase-design/SKILL.md](../codebase-design/SKILL.md) —
|
||||
Before step 1, anchor on [../design-codebase/SKILL.md](../design-codebase/SKILL.md) —
|
||||
module, interface, seam, adapter, depth, leverage, locality.
|
||||
|
||||
## Language references
|
||||
@ -48,7 +48,7 @@ module, interface, seam, adapter, depth, leverage, locality.
|
||||
- Write down the **seams under test** and confirm them with the user
|
||||
before any test exists — no test at an unconfirmed seam. Up-front
|
||||
agreement puts effort on critical paths, not every edge. Inside
|
||||
[implement](../../loop/implement/SKILL.md), the spec's *Seams touched*
|
||||
[weave](../../loop/weave/SKILL.md), the blueprint's *Seams touched*
|
||||
pre-answers this — reuse it.
|
||||
|
||||
### 1. Red — one scenario at a time
|
||||
@ -90,7 +90,7 @@ caller ordering, stale data, or the shape the real producer emits (see
|
||||
[anti-patterns.md](anti-patterns.md) *"Fixtures that don't match what the
|
||||
producer emits"*). After the loop is green, **budget a review pass** across
|
||||
four axes: correctness ([`../review-angles/SKILL.md`](../review-angles/SKILL.md)),
|
||||
spec fidelity ([`../review-blueprint/SKILL.md`](../review-blueprint/SKILL.md)),
|
||||
blueprint fidelity ([`../review-blueprint/SKILL.md`](../review-blueprint/SKILL.md)),
|
||||
structural quality ([`../nuke-review/SKILL.md`](../nuke-review/SKILL.md)),
|
||||
mechanical debloat ([`../winnow/SKILL.md`](../winnow/SKILL.md)). Refute
|
||||
each finding ([refute.md](../review-angles/refute.md)); fix red-test-first.
|
||||
@ -107,4 +107,4 @@ first run, tautological tests, refactoring while red, dropped scenarios.
|
||||
## See also
|
||||
- [../diagnose/SKILL.md](../diagnose/SKILL.md) — chasing an existing bug?
|
||||
Run `/diagnose` first; phase 5 hands back here for the regression test.
|
||||
- [../domain-modeling/SKILL.md](../domain-modeling/SKILL.md) — run before step 0 so scenarios use canonical `CONTEXT.md` vocabulary.
|
||||
- [../model-domain/SKILL.md](../model-domain/SKILL.md) — run before step 0 so scenarios use canonical `CONTEXT.md` vocabulary.
|
||||
|
||||
@ -35,8 +35,8 @@ assert config == load_config() # snapshot derived by the code itself
|
||||
```
|
||||
|
||||
Expected values come from an **independent source of truth**: a
|
||||
known-good literal, a worked example done by hand, the spec's stated
|
||||
semantics (`OKF/specs/NNN`). If you can't produce the expectation without
|
||||
known-good literal, a worked example done by hand, the blueprint's stated
|
||||
semantics (`OKF/blueprints/NNN`). If you can't produce the expectation without
|
||||
running the code under test, you don't have a test yet. (Adapted from
|
||||
mattpocock/skills tdd.)
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
# Deep modules in R
|
||||
|
||||
Vocabulary and principles in [`../codebase-design/SKILL.md`](../codebase-design/SKILL.md).
|
||||
Vocabulary and principles in [`../design-codebase/SKILL.md`](../design-codebase/SKILL.md).
|
||||
This file shows what deep / shallow look like with `box::use` — the R lever
|
||||
for controlling the interface.
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
# Interface design for testability (Python)
|
||||
|
||||
Vocabulary lives in [`../codebase-design/SKILL.md`](../codebase-design/SKILL.md) —
|
||||
Vocabulary lives in [`../design-codebase/SKILL.md`](../design-codebase/SKILL.md) —
|
||||
module, interface, seam, adapter, depth. This file is the Python-flavored leaf.
|
||||
|
||||
Rules to apply before writing the test, not after. A deep module is the goal;
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
# Interface design for testability (R)
|
||||
|
||||
Vocabulary lives in [`../codebase-design/SKILL.md`](../codebase-design/SKILL.md) —
|
||||
Vocabulary lives in [`../design-codebase/SKILL.md`](../design-codebase/SKILL.md) —
|
||||
module, interface, seam, adapter. This file is the R-flavored leaf.
|
||||
|
||||
Three rules. Apply them before writing the test, not after.
|
||||
|
||||
> Snippets below show only the function bodies; the `box::use(...)`
|
||||
> prologue is omitted for clarity. Real files start with one — see
|
||||
> [`../r-style/box.md`](../r-style/box.md).
|
||||
> [`../style-r/box.md`](../style-r/box.md).
|
||||
|
||||
## 1. Dependency injection — pass clients, don't construct them
|
||||
|
||||
|
||||
@ -43,7 +43,7 @@ class EntrezClient:
|
||||
```
|
||||
|
||||
```python
|
||||
# in tests — spec'd mock of the façade, or a fake
|
||||
# in tests — blueprint'd mock of the façade, or a fake
|
||||
client = Mock(spec_set=EntrezClient)
|
||||
client.fetch_summary.return_value = {"name": "TP53"}
|
||||
assert annotate(["7157"], entrez=client)[0].name == "TP53"
|
||||
@ -98,7 +98,7 @@ asserted by *state* survives refactors that call-count assertions break.
|
||||
- **Hand-rolled `module.attr = fake`** without teardown — leaks into
|
||||
later tests; use `monkeypatch`, which undoes itself.
|
||||
- **Mocking `pandas.read_sql` / cursors** — wrap data access in an owned
|
||||
repository class; fake or spec-mock the wrapper.
|
||||
repository class; fake or blueprint-mock the wrapper.
|
||||
|
||||
## The single-sentence test
|
||||
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
|
||||
> Snippets below show only the function bodies; the `box::use(...)`
|
||||
> prologue is omitted for clarity. Real files start with one — see
|
||||
> [`../r-style/box.md`](../r-style/box.md).
|
||||
> [`../style-r/box.md`](../style-r/box.md).
|
||||
|
||||
## Seams you may mock
|
||||
|
||||
|
||||
@ -46,7 +46,7 @@ Two modules that always travel together, each exporting one thin function?
|
||||
Merge them. A module that exports eight helpers users always call in the
|
||||
same order? Deepen — collapse them behind one entry point. See
|
||||
[`deep-modules-r.md`](deep-modules-r.md) for the R shape, and
|
||||
[`../codebase-design/DEEPENING.md`](../codebase-design/DEEPENING.md) for the
|
||||
[`../design-codebase/DEEPENING.md`](../design-codebase/DEEPENING.md) for the
|
||||
dependency-aware strategy (replace, don't layer — old tests on the shallow
|
||||
modules become waste once the deepened interface has its own tests).
|
||||
|
||||
|
||||
@ -19,7 +19,7 @@ inside pytest, fixtures become Given steps), never behave.
|
||||
## Test-file conventions
|
||||
|
||||
- Files: `tests/test_<module>.py`; functions: `test_<behavior>` — the name
|
||||
reads like a spec line, not mechanics.
|
||||
reads like a blueprint line, not mechanics.
|
||||
- Layout: tests outside `src/` (the `/build-py-project` scaffold already
|
||||
does this); pytest docs strongly suggest src layout + `importlib` mode.
|
||||
- Every test carries its scenario as the docstring:
|
||||
|
||||
@ -66,7 +66,7 @@ below are concrete instances of these rules in R.
|
||||
- **One logical assertion per `it`.** Multiple `expect_*()` calls are fine
|
||||
if they describe one outcome (e.g. a returned data.frame's class *and*
|
||||
its columns); two unrelated outcomes belong in two `it` blocks.
|
||||
- **The test name reads like a spec line.** A reader who sees only the
|
||||
- **The test name reads like a blueprint line.** A reader who sees only the
|
||||
`describe` + `it` titles understands the contract.
|
||||
|
||||
### Bad tests (anti-patterns)
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
name: codebase-design
|
||||
name: design-codebase
|
||||
description: Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.
|
||||
---
|
||||
|
||||
# codebase-design
|
||||
# design-codebase
|
||||
|
||||
Design **deep modules**: a lot of behaviour behind a small interface, placed
|
||||
at a clean seam, testable through that interface. The aim is leverage for
|
||||
@ -1,22 +1,22 @@
|
||||
---
|
||||
name: dev-python
|
||||
name: develop-python
|
||||
description: Orchestrate the full Python dev loop: implement, lint, typecheck, test (bdd), commit.
|
||||
disable-model-invocation: true
|
||||
---
|
||||
|
||||
# dev-python
|
||||
# develop-python
|
||||
|
||||
Workflow for `build-py-project`-shaped repos (uv + Docker + justfile).
|
||||
Each phase must pass before the next. Do not advance silently.
|
||||
|
||||
## When to use
|
||||
- User says "run the python workflow", "full dev loop", "/dev-python".
|
||||
- User says "run the python workflow", "full dev loop", "/develop-python".
|
||||
- A fresh feature or fix needs the complete loop, not a single skill.
|
||||
|
||||
## When NOT to use
|
||||
- Single-task work: a bug fix → `/diagnose` + `/bdd` directly.
|
||||
- Writing tests for an already-implemented behaviour → `/bdd` only.
|
||||
- Committing a single change → `/jj-atomic` only.
|
||||
- Committing a single change → `/commit-atomic-jj` only.
|
||||
|
||||
## Phases
|
||||
|
||||
@ -62,7 +62,7 @@ The full suite must be green before commit. New edge case found mid-loop
|
||||
→ add as the next scenario, don't skip.
|
||||
|
||||
### 5. Commit
|
||||
Hand to [`/jj-atomic`](../../productivity/jj-atomic/SKILL.md). The fix
|
||||
Hand to [`/commit-atomic-jj`](../../productivity/commit-atomic-jj/SKILL.md). The fix
|
||||
+ the regression test land in the **same** atomic change.
|
||||
|
||||
## Reference: justfile commands
|
||||
@ -84,7 +84,7 @@ Hand to [`/jj-atomic`](../../productivity/jj-atomic/SKILL.md). The fix
|
||||
Python siblings `tests-py.md`, `mocking-py.md`, `interface-design-py.md`,
|
||||
`docstrings-py.md`.
|
||||
- [`../diagnose/SKILL.md`](../diagnose/SKILL.md) — six-phase bug hunt.
|
||||
- [`../../productivity/jj-atomic/SKILL.md`](../../productivity/jj-atomic/SKILL.md)
|
||||
- [`../../productivity/commit-atomic-jj/SKILL.md`](../../productivity/commit-atomic-jj/SKILL.md)
|
||||
— commit discipline.
|
||||
- [`../../scaffold/build-py-project/SKILL.md`](../../scaffold/build-py-project/SKILL.md)
|
||||
— sets up the project this workflow assumes.
|
||||
@ -1,10 +1,10 @@
|
||||
---
|
||||
name: dev-r
|
||||
name: develop-r
|
||||
description: Orchestrate the full R dev loop; auto-detects package (DESCRIPTION) vs analysis (_targets.R).
|
||||
disable-model-invocation: true
|
||||
---
|
||||
|
||||
# dev-r
|
||||
# develop-r
|
||||
|
||||
Workflow for R repos. Detects project type from filesystem markers:
|
||||
|
||||
@ -15,13 +15,13 @@ Workflow for R repos. Detects project type from filesystem markers:
|
||||
| both | ambiguous | ask the user |
|
||||
| neither | refuse | suggest [`/build-r-package`](../../scaffold/build-r-package/SKILL.md) or [`/build-r-analysis`](../../scaffold/build-r-analysis/SKILL.md) |
|
||||
|
||||
Apply [`/r-style`](../r-style/SKILL.md) at every implementation step.
|
||||
Apply [`/style-r`](../style-r/SKILL.md) at every implementation step.
|
||||
|
||||
## When NOT to use
|
||||
- Single-task work: bug fix → `/diagnose` + `/bdd` directly.
|
||||
- Writing tests → `/bdd` only.
|
||||
- Reviewing R style of one file → `/r-style` only.
|
||||
- Committing → `/jj-atomic` only.
|
||||
- Reviewing R style of one file → `/style-r` only.
|
||||
- Committing → `/commit-atomic-jj` only.
|
||||
|
||||
## Phase 0 — Frame (both loops)
|
||||
|
||||
@ -48,8 +48,8 @@ or [`/grill-with-docs`](../grill-with-docs/SKILL.md) (anchors to
|
||||
`deep-modules-r.md`, `refactoring-r.md`, `anti-patterns.md`).
|
||||
- [`../diagnose/SKILL.md`](../diagnose/SKILL.md) — six-phase bug hunt
|
||||
with R-flavored siblings.
|
||||
- [`../r-style/SKILL.md`](../r-style/SKILL.md) — coding standards.
|
||||
- [`../../productivity/jj-atomic/SKILL.md`](../../productivity/jj-atomic/SKILL.md).
|
||||
- [`../style-r/SKILL.md`](../style-r/SKILL.md) — coding standards.
|
||||
- [`../../productivity/commit-atomic-jj/SKILL.md`](../../productivity/commit-atomic-jj/SKILL.md).
|
||||
- [`../../scaffold/build-r-package/SKILL.md`](../../scaffold/build-r-package/SKILL.md)
|
||||
and
|
||||
[`../../scaffold/build-r-analysis/SKILL.md`](../../scaffold/build-r-analysis/SKILL.md)
|
||||
@ -1,13 +1,13 @@
|
||||
# dev-r — R-analysis loop
|
||||
# develop-r — R-analysis loop
|
||||
|
||||
Detected by the presence of `_targets.R` at the repo root. Apply
|
||||
[`../r-style/SKILL.md`](../r-style/SKILL.md) at every implementation step.
|
||||
[`../style-r/SKILL.md`](../style-r/SKILL.md) at every implementation step.
|
||||
|
||||
## 1. Implement
|
||||
|
||||
- Functions in `R/functions/` as box modules.
|
||||
- Pipeline steps in `R/pipeline/` as box modules.
|
||||
- All code under [`/r-style`](../r-style/SKILL.md).
|
||||
- All code under [`/style-r`](../style-r/SKILL.md).
|
||||
|
||||
## 2. Lint & style
|
||||
|
||||
@ -43,4 +43,4 @@ just render # quarto render reports/
|
||||
|
||||
## 6. Commit
|
||||
|
||||
Hand to [`/jj-atomic`](../../productivity/jj-atomic/SKILL.md).
|
||||
Hand to [`/commit-atomic-jj`](../../productivity/commit-atomic-jj/SKILL.md).
|
||||
@ -1,11 +1,11 @@
|
||||
# dev-r — R-package loop
|
||||
# develop-r — R-package loop
|
||||
|
||||
Detected by the presence of `DESCRIPTION` at the repo root. Apply
|
||||
[`../r-style/SKILL.md`](../r-style/SKILL.md) at every implementation step.
|
||||
[`../style-r/SKILL.md`](../style-r/SKILL.md) at every implementation step.
|
||||
|
||||
## 1. Implement
|
||||
|
||||
- Code in `R/`, following [`/r-style`](../r-style/SKILL.md) (box, native
|
||||
- Code in `R/`, following [`/style-r`](../style-r/SKILL.md) (box, native
|
||||
pipe, `\(x)`, snake_case).
|
||||
- Add/update roxygen2 docs on every exported function.
|
||||
|
||||
@ -47,4 +47,4 @@ All notes, warnings, and errors resolved before commit.
|
||||
|
||||
## 6. Commit
|
||||
|
||||
Hand to [`/jj-atomic`](../../productivity/jj-atomic/SKILL.md).
|
||||
Hand to [`/commit-atomic-jj`](../../productivity/commit-atomic-jj/SKILL.md).
|
||||
@ -95,6 +95,6 @@ Then ask: **what would have prevented this bug?**
|
||||
- [../bdd/SKILL.md](../bdd/SKILL.md) — phase 5 is a bdd cycle.
|
||||
- [../bdd/refactoring-r.md](../bdd/refactoring-r.md) — file
|
||||
architectural follow-ups here.
|
||||
- [../codebase-design/SKILL.md](../codebase-design/SKILL.md) — definition of **seam** (Phase 5's "no correct seam" finding).
|
||||
- [../domain-modeling/SKILL.md](../domain-modeling/SKILL.md) — phase 3
|
||||
- [../design-codebase/SKILL.md](../design-codebase/SKILL.md) — definition of **seam** (Phase 5's "no correct seam" finding).
|
||||
- [../model-domain/SKILL.md](../model-domain/SKILL.md) — phase 3
|
||||
hypothesis names should use canonical terms from `CONTEXT.md`.
|
||||
|
||||
@ -7,7 +7,7 @@ disable-model-invocation: true
|
||||
# grill-with-docs
|
||||
|
||||
User-invoked router. Run [grill-me](../../productivity/grill-me/SKILL.md)
|
||||
(the Socratic interview) **using** [domain-modeling](../domain-modeling/SKILL.md)
|
||||
(the Socratic interview) **using** [model-domain](../model-domain/SKILL.md)
|
||||
(the active glossary / ADR discipline) — interview the user about the
|
||||
plan, and update `OKF/CONTEXT.md` and `OKF/adr/` as terms and decisions
|
||||
crystallise.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
name: background-work
|
||||
description: Hard-won rules for writing a service with a background thread, a change-trigger loop, or a shared resource behind a lock — the failure modes unit tests never exercise (silent thread death, swallowed signals, locks held across network calls, busy-loop triggers, answering before the data exists). Use when the user says "background-work", "daemon thread", "background loop", "trigger loop", "change detector", "watcher", "shared lock", or is about to write any long-lived loop / lock / readiness surface.
|
||||
name: harden-background-work
|
||||
description: Hard-won rules for writing a service with a background thread, a change-trigger loop, or a shared resource behind a lock — the failure modes unit tests never exercise (silent thread death, swallowed signals, locks held across network calls, busy-loop triggers, answering before the data exists). Use when the user says "harden-background-work", "daemon thread", "background loop", "trigger loop", "change detector", "watcher", "shared lock", or is about to write any long-lived loop / lock / readiness surface.
|
||||
---
|
||||
|
||||
# background-work
|
||||
# harden-background-work
|
||||
|
||||
## When to use
|
||||
- About to write a **daemon thread**, a **change-trigger loop**, a
|
||||
@ -76,4 +76,4 @@ All three must hold. If any one is missing, skip the ADR.
|
||||
---
|
||||
|
||||
_Format adapted from
|
||||
<https://github.com/mattpocock/skills/blob/main/skills/engineering/domain-modeling/ADR-FORMAT.md>._
|
||||
<https://github.com/mattpocock/skills/blob/main/skills/engineering/model-domain/ADR-FORMAT.md>._
|
||||
@ -36,7 +36,7 @@ _Avoid_: Client, buyer, account.
|
||||
Only the former.
|
||||
- **Group under subheadings** when natural clusters emerge. Flat list is
|
||||
fine for single-cluster contexts.
|
||||
- **No implementation details.** `CONTEXT.md` is a glossary, not a spec,
|
||||
- **No implementation details.** `CONTEXT.md` is a glossary, not a blueprint,
|
||||
not a scratchpad, not a decision log.
|
||||
|
||||
## Single vs multi-context repos
|
||||
@ -70,7 +70,7 @@ Decision rule:
|
||||
is resolved. Switch to multi-context only on observing ≥ 2 obvious
|
||||
sub-roots *and* a second term that clearly belongs to one of them.
|
||||
- Split by bounded context only — never per issue; issue-local terms
|
||||
stay in their `OKF/specs/` entry until they recur.
|
||||
stay in their `OKF/blueprints/` entry until they recur.
|
||||
|
||||
When multiple contexts exist, infer which one the current topic relates
|
||||
to. If unclear, ask.
|
||||
@ -78,4 +78,4 @@ to. If unclear, ask.
|
||||
---
|
||||
|
||||
_Format adapted from
|
||||
<https://github.com/mattpocock/skills/blob/main/skills/engineering/domain-modeling/CONTEXT-FORMAT.md>._
|
||||
<https://github.com/mattpocock/skills/blob/main/skills/engineering/model-domain/CONTEXT-FORMAT.md>._
|
||||
@ -1,12 +1,12 @@
|
||||
---
|
||||
name: domain-modeling
|
||||
description: Actively build and sharpen a project's domain model — challenge fuzzy terms, propose canonical names, update CONTEXT.md inline as terms resolve, and offer ADRs only on the three-of-three rule. Use when the user says "domain model", "/domain-modeling", "pin down vocabulary", "canonical name for X", "is my language right", "what should this term be", "record this as an ADR", or another skill needs to maintain the domain model.
|
||||
name: model-domain
|
||||
description: Actively build and sharpen a project's domain model — challenge fuzzy terms, propose canonical names, update CONTEXT.md inline as terms resolve, and offer ADRs only on the three-of-three rule. Use when the user says "domain model", "/model-domain", "pin down vocabulary", "canonical name for X", "is my language right", "what should this term be", "record this as an ADR", or another skill needs to maintain the domain model.
|
||||
---
|
||||
|
||||
# domain-modeling
|
||||
# model-domain
|
||||
|
||||
## When to use
|
||||
- User says "domain model", "/domain-modeling", "pin down vocabulary",
|
||||
- User says "domain model", "/model-domain", "pin down vocabulary",
|
||||
"canonical name", "is my language right", "what should this term be",
|
||||
"record an ADR".
|
||||
- A non-trivial design conversation is *changing* the model — proposing
|
||||
@ -45,7 +45,7 @@ habit any skill can do; that's not this skill.
|
||||
## File layout the skill expects
|
||||
|
||||
```
|
||||
OKF/ # open-knowledge-format wiki (see scribe-OKF)
|
||||
OKF/ # open-knowledge-format wiki (see write-OKF)
|
||||
├── CONTEXT.md # single-context default — THE canonical glossary
|
||||
├── context/ # multi-context mode: one <subroot>.md per
|
||||
│ └── <subroot>.md # bounded context, indexed from OKF/INDEX.md
|
||||
@ -55,7 +55,7 @@ OKF/ # open-knowledge-format wiki (see scribe-OKF)
|
||||
|
||||
Create files **lazily** — only when there's a real first thing to write.
|
||||
No `OKF/CONTEXT.md` yet? Create it when the first term is resolved (run
|
||||
[scribe-OKF](../../loop/scribe-OKF/SKILL.md) scaffold if `OKF/` itself is
|
||||
[write-OKF](../../loop/write-OKF/SKILL.md) scaffold if `OKF/` itself is
|
||||
missing). No `OKF/adr/`? Create it when the first ADR is needed. Confirm
|
||||
the *first* write to any new file in the repo before proceeding. A legacy
|
||||
root `CONTEXT.md` or `docs/adr/` → offer to migrate into `OKF/`.
|
||||
@ -66,7 +66,7 @@ observing **≥ 2 obvious sub-roots** (e.g. `R/ingest/`, `R/analysis/`;
|
||||
belonging to one of them — then propose `OKF/context/<subroot>.md` files
|
||||
indexed from `OKF/INDEX.md`. **The split axis is the bounded context
|
||||
(stable), never the issue (transient)** — issue-local terms live in their
|
||||
`OKF/specs/` entry until they recur, then get promoted here.
|
||||
`OKF/blueprints/` entry until they recur, then get promoted here.
|
||||
|
||||
## Language references — R
|
||||
|
||||
@ -78,7 +78,7 @@ indexed from `OKF/INDEX.md`. **The split axis is the bounded context
|
||||
- **Never** record general programming concepts in `CONTEXT.md` (timeouts,
|
||||
utility patterns, language idioms). Only domain-specific terms.
|
||||
- **Never** write implementation details into `CONTEXT.md`. It's a
|
||||
glossary, not a spec.
|
||||
glossary, not a blueprint.
|
||||
- **Never** open an ADR unless all three of {hard to reverse, surprising
|
||||
without context, real trade-off} are true. When in doubt, don't.
|
||||
- **Never** create an `OKF/CONTEXT.md` / `OKF/adr/` in the repo without
|
||||
@ -87,9 +87,9 @@ indexed from `OKF/INDEX.md`. **The split axis is the bounded context
|
||||
bounded context, full stop.
|
||||
|
||||
## See also
|
||||
- [../codebase-design/SKILL.md](../codebase-design/SKILL.md) — sibling
|
||||
vocabulary skill. **domain-modeling** pins terms for the *problem domain*
|
||||
(CONTEXT.md, glossary); **codebase-design** pins terms for the *solution
|
||||
- [../design-codebase/SKILL.md](../design-codebase/SKILL.md) — sibling
|
||||
vocabulary skill. **model-domain** pins terms for the *problem domain*
|
||||
(CONTEXT.md, glossary); **design-codebase** pins terms for the *solution
|
||||
structure* (module, interface, seam, adapter).
|
||||
- [../grill-with-docs/SKILL.md](../grill-with-docs/SKILL.md) — the
|
||||
user-invoked router that pairs this skill with a Socratic interview.
|
||||
@ -1,6 +1,6 @@
|
||||
# Worked example — R / bookdown / targets
|
||||
|
||||
Transcript of a `/domain-modeling` session in a targets-pipeline repo; ends with the `CONTEXT.md` skeleton it produces.
|
||||
Transcript of a `/model-domain` session in a targets-pipeline repo; ends with the `CONTEXT.md` skeleton it produces.
|
||||
|
||||
## The conflict: "target"
|
||||
|
||||
@ -102,6 +102,6 @@ Don't approve because behaviour is correct. Each is a presumptive blocker unless
|
||||
## See also
|
||||
- [`../review-angles/SKILL.md`](../review-angles/SKILL.md) — the *correctness* axis: stale refs, TOCTOU, ordering, durability.
|
||||
- [`../winnow/SKILL.md`](../winnow/SKILL.md) — the *mechanical debloat* axis: single-tag findings, `net: -N lines` scoreboard. Pairs naturally — nuke-review judges shape; winnow clears chaff.
|
||||
- [`../codebase-design/SKILL.md`](../codebase-design/SKILL.md) — the vocabulary nuke-review applies (deep modules, seams, leverage, locality).
|
||||
- [`../../productivity/cavecrew-octobot/SKILL.md`](../../productivity/cavecrew-octobot/SKILL.md) — how to spawn `caveman:cavecrew-reviewer` to *execute* this axis on a diff.
|
||||
- [`../review-blueprint/SKILL.md`](../review-blueprint/SKILL.md) — the *spec-fidelity* axis (diff vs OKF/specs/NNN).
|
||||
- [`../design-codebase/SKILL.md`](../design-codebase/SKILL.md) — the vocabulary nuke-review applies (deep modules, seams, leverage, locality).
|
||||
- [`../../productivity/spawn-cavecrew/SKILL.md`](../../productivity/spawn-cavecrew/SKILL.md) — how to spawn `caveman:cavecrew-reviewer` to *execute* this axis on a diff.
|
||||
- [`../review-blueprint/SKILL.md`](../review-blueprint/SKILL.md) — the *blueprint-fidelity* axis (diff vs OKF/blueprints/NNN).
|
||||
|
||||
@ -68,8 +68,8 @@ angle is worth more than a green suite.
|
||||
## See also
|
||||
- [`../bdd/SKILL.md`](../bdd/SKILL.md) — the green pass these angles
|
||||
sit *after*; fixes land as new red-first scenarios here.
|
||||
- [`../background-work/SKILL.md`](../background-work/SKILL.md) — the threading
|
||||
- [`../harden-background-work/SKILL.md`](../harden-background-work/SKILL.md) — the threading
|
||||
/ lock / readiness angles, split out because they share a setup.
|
||||
- [`../nuke-review/SKILL.md`](../nuke-review/SKILL.md) — the *structural-quality* review axis (code-judo). Different axis from these angles' correctness focus.
|
||||
- [`../winnow/SKILL.md`](../winnow/SKILL.md) — the *mechanical debloat* axis (what to delete). Different again.
|
||||
- [`../review-blueprint/SKILL.md`](../review-blueprint/SKILL.md) — the *spec-fidelity* axis: diff vs what was asked (OKF/specs/NNN).
|
||||
- [`../review-blueprint/SKILL.md`](../review-blueprint/SKILL.md) — the *blueprint-fidelity* axis: diff vs what was asked (OKF/blueprints/NNN).
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
---
|
||||
name: review-blueprint
|
||||
description: Review a diff against its originating spec (OKF/specs/NNN) — everything asked implemented, nothing beyond scope, Verify actually run with pasted output. The fourth review axis and implement's done-gate. Use when the user says "review against the spec", "review-blueprint", "does this match the spec", or implement reaches its done-gate.
|
||||
description: Review a diff against its originating blueprint (OKF/blueprints/NNN) — everything asked implemented, nothing beyond scope, Verify actually run with pasted output. The fourth review axis and weave's done-gate. Use when the user says "review against the blueprint", "review-blueprint", "does this match the blueprint", or weave reaches its done-gate.
|
||||
---
|
||||
|
||||
# review-blueprint
|
||||
|
||||
The **spec axis** — the other three axes
|
||||
The **blueprint axis** — the other three axes
|
||||
([review-angles](../review-angles/SKILL.md) correctness,
|
||||
[nuke-review](../nuke-review/SKILL.md) structure,
|
||||
[winnow](../winnow/SKILL.md) debloat) judge the code on its own terms;
|
||||
@ -13,31 +13,31 @@ this one judges it against *what was asked*. Adapted from Matt Pocock's
|
||||
code-review Spec axis + obra/superpowers' verification-before-completion.
|
||||
|
||||
## When to use
|
||||
- [implement](../../loop/implement/SKILL.md) reaches its done-gate.
|
||||
- User says "review against the spec", "does this match the spec".
|
||||
- Any post-green review pass where an `OKF/specs/NNN` exists for the diff.
|
||||
- [weave](../../loop/weave/SKILL.md) reaches its done-gate.
|
||||
- User says "review against the blueprint", "does this match the blueprint".
|
||||
- Any post-green review pass where an `OKF/blueprints/NNN` exists for the diff.
|
||||
|
||||
## Inputs
|
||||
- The diff (`jj diff`, or `jj diff -r <rev>` for a sealed change).
|
||||
- The spec: commit message citation (`spec NNN`), user-named, or the
|
||||
only `locked` spec touching these files. **Ambiguous → ask; none →
|
||||
report "no spec available" and stop. Never review against an imagined
|
||||
spec.**
|
||||
- The blueprint: commit message citation (`blueprint NNN`), user-named, or the
|
||||
only `locked` blueprint touching these files. **Ambiguous → ask; none →
|
||||
report "no blueprint available" and stop. Never review against an imagined
|
||||
blueprint.**
|
||||
|
||||
## The three questions
|
||||
1. **Complete?** Every behaviour in *Spec* present in the diff. Missing
|
||||
→ finding per omission, citing the spec line.
|
||||
2. **Contained?** Nothing in the diff beyond *Spec* + necessary
|
||||
1. **Complete?** Every behaviour in *Contract* present in the diff. Missing
|
||||
→ finding per omission, citing the blueprint line.
|
||||
2. **Contained?** Nothing in the diff beyond *Contract* + necessary
|
||||
plumbing. Anything matching *Out of scope* → finding. Changes past
|
||||
the *Seams touched* list → finding (scope leak, even if benign).
|
||||
3. **Verified?** Run the spec's *Verify* command yourself — **paste the
|
||||
3. **Verified?** Run the blueprint's *Verify* command yourself — **paste the
|
||||
output**. No output, no pass: "it should pass" is the exact failure
|
||||
this axis exists to catch. Verify red → blocking finding.
|
||||
|
||||
## Output
|
||||
```
|
||||
spec NNN — <title>
|
||||
COMPLETE: ✓ | ✗ <missing behaviours, spec-line cites>
|
||||
blueprint NNN — <title>
|
||||
COMPLETE: ✓ | ✗ <missing behaviours, blueprint-line cites>
|
||||
CONTAINED: ✓ | ✗ <scope leaks, out-of-scope hits>
|
||||
VERIFIED: ✓ | ✗ — <verify command>
|
||||
<pasted output, trimmed to the verdict lines>
|
||||
@ -49,19 +49,19 @@ emitting ([refute.md](../review-angles/refute.md)).
|
||||
## Guardrails
|
||||
- **Never** pass on a prose claim of verification — output or it
|
||||
didn't happen.
|
||||
- **Never** fabricate a spec for spec-less work — say so and hand to
|
||||
- **Never** fabricate a blueprint for blueprint-less work — say so and hand to
|
||||
the other three axes.
|
||||
- **Never** widen review into correctness/structure here — single axis,
|
||||
like winnow. Point findings at the right sibling instead.
|
||||
- A diff that *improves* on the spec still fails **Contained** — the
|
||||
spec gets superseded first ([blueprint](../../loop/blueprint/SKILL.md)),
|
||||
- A diff that *improves* on the blueprint still fails **Contained** — the
|
||||
blueprint gets superseded first ([blueprint](../../loop/blueprint/SKILL.md)),
|
||||
then the diff lands.
|
||||
|
||||
## See also
|
||||
- [../review-angles/SKILL.md](../review-angles/SKILL.md),
|
||||
[../nuke-review/SKILL.md](../nuke-review/SKILL.md),
|
||||
[../winnow/SKILL.md](../winnow/SKILL.md) — the other three axes.
|
||||
- [../../loop/implement/SKILL.md](../../loop/implement/SKILL.md) — runs
|
||||
- [../../loop/weave/SKILL.md](../../loop/weave/SKILL.md) — runs
|
||||
this axis as its done-gate.
|
||||
- [../../productivity/cavecrew-octobot/SKILL.md](../../productivity/cavecrew-octobot/SKILL.md)
|
||||
- [../../productivity/spawn-cavecrew/SKILL.md](../../productivity/spawn-cavecrew/SKILL.md)
|
||||
— spawn it as a subagent pass.
|
||||
|
||||
@ -80,10 +80,10 @@ describe`), not per keystroke — otherwise it fights iteration.
|
||||
## See also
|
||||
- [`../winnow/SKILL.md`](../winnow/SKILL.md) — the mechanical after-the-fact
|
||||
audit. The sieve judges entry; winnow clears the field.
|
||||
- [`../codebase-design/SKILL.md`](../codebase-design/SKILL.md) — *Minimal*
|
||||
- [`../design-codebase/SKILL.md`](../design-codebase/SKILL.md) — *Minimal*
|
||||
invokes **depth** intuition. The leanest form that works tends to be the
|
||||
deepest: small interface, large implementation hidden behind it.
|
||||
- [`../../productivity/jj-atomic/SKILL.md`](../../productivity/jj-atomic/SKILL.md)
|
||||
- [`../../productivity/commit-atomic-jj/SKILL.md`](../../productivity/commit-atomic-jj/SKILL.md)
|
||||
— the seal where the sieve fires.
|
||||
- [`../grill-with-docs/SKILL.md`](../grill-with-docs/SKILL.md)
|
||||
— Socratic siblings; grill the requirement, then sieve the code.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
name: r-style
|
||||
name: style-r
|
||||
description: Project R coding standards — Tidyverse style, `box::use` for imports (no `library()` / `source()`), `purrr::chuck`/`pluck` instead of `$`/`[[`, `purrr::map`/`walk` instead of `for`, and `dtplyr` for large data.table work. Use when the user writes or edits R code, asks "is this R idiomatic", "review my R style", "use box", "use dtplyr", or opens an .R / .Rmd file and asks for help.
|
||||
---
|
||||
|
||||
# r-style
|
||||
# style-r
|
||||
|
||||
## When to use
|
||||
- Writing or editing R (`.R` / `.Rmd`) in a project that follows the
|
||||
@ -57,6 +57,6 @@ file under review.
|
||||
- [../diagnose/feedback-loops-r.md](../diagnose/feedback-loops-r.md) —
|
||||
worked example #1 (in-place mutation) is the canonical `dtplyr` /
|
||||
`data.table::copy()` failure mode.
|
||||
- [../../productivity/jj-atomic/SKILL.md](../../productivity/jj-atomic/SKILL.md)
|
||||
- [../../productivity/commit-atomic-jj/SKILL.md](../../productivity/commit-atomic-jj/SKILL.md)
|
||||
— when a style refactor changes more than one file, it's an atomic
|
||||
commit of its own.
|
||||
@ -194,4 +194,4 @@ still strongly recommended.
|
||||
The skill states the rules. The tools enforce them. Don't run tooling
|
||||
inside the edit you're being asked to review — that conflates style
|
||||
changes with logic changes (anti-atomic — see
|
||||
[`../../productivity/jj-atomic/SKILL.md`](../../productivity/jj-atomic/SKILL.md)).
|
||||
[`../../productivity/commit-atomic-jj/SKILL.md`](../../productivity/commit-atomic-jj/SKILL.md)).
|
||||
@ -78,7 +78,7 @@ it sharp.
|
||||
- [`../sieve/SKILL.md`](../sieve/SKILL.md) — the judgment gate. Sieve decides
|
||||
what earns its place; winnow mechanically clears what doesn't.
|
||||
- [`../nuke-review/SKILL.md`](../nuke-review/SKILL.md) — *structural-quality* review (code-judo). Pairs naturally — nuke-review judges shape; winnow clears chaff.
|
||||
- [`../codebase-design/SKILL.md`](../codebase-design/SKILL.md) — the
|
||||
- [`../design-codebase/SKILL.md`](../design-codebase/SKILL.md) — the
|
||||
**deletion test** formalised: if removing a module makes complexity
|
||||
vanish, it was a pass-through; if it reappears across N callers, it earned
|
||||
its keep. The `delete` and `yagni` tags are this test mechanised.
|
||||
@ -86,4 +86,4 @@ it sharp.
|
||||
architectural follow-ups a winnow surfaces; don't auto-cut them mid-pass.
|
||||
- [`../review-angles/SKILL.md`](../review-angles/SKILL.md) — the *correctness*
|
||||
axis winnow deliberately does not touch.
|
||||
- [`../review-blueprint/SKILL.md`](../review-blueprint/SKILL.md) — the *spec-fidelity* axis winnow also does not touch.
|
||||
- [`../review-blueprint/SKILL.md`](../review-blueprint/SKILL.md) — the *blueprint-fidelity* axis winnow also does not touch.
|
||||
|
||||
@ -58,7 +58,7 @@ disable-model-invocation: true
|
||||
> match `project.optional-dependencies`; the License block defaults to
|
||||
> Apache 2.0 wording only when `project.license` says so. Drop a
|
||||
> `assets/<name>.png` if you want the logo to render. When satisfied,
|
||||
> describe with [`/jj-atomic`](../../productivity/jj-atomic/SKILL.md)."
|
||||
> describe with [`/commit-atomic-jj`](../../productivity/commit-atomic-jj/SKILL.md)."
|
||||
|
||||
## Guardrails
|
||||
- **Never** invent dependency versions, recipe descriptions, author
|
||||
@ -79,5 +79,5 @@ disable-model-invocation: true
|
||||
Saduko reference and parameterised.
|
||||
- [`../../scaffold/build-py-project/SKILL.md`](../../scaffold/build-py-project/SKILL.md)
|
||||
— produces the `pyproject.toml` + `justfile` this skill reads.
|
||||
- [`../dev-python/SKILL.md`](../dev-python/SKILL.md) — the workflow
|
||||
- [`../develop-python/SKILL.md`](../develop-python/SKILL.md) — the workflow
|
||||
whose `just check` commands this README documents.
|
||||
|
||||
@ -63,7 +63,7 @@ disable-model-invocation: true
|
||||
|
||||
6. **Stop. Do not commit.** Tell the user:
|
||||
> "Review with `jj diff`. Check that the Installation and Usage blocks
|
||||
> match how you actually run this. Describe with `/jj-atomic` when
|
||||
> match how you actually run this. Describe with `/commit-atomic-jj` when
|
||||
> satisfied."
|
||||
|
||||
## Guardrails
|
||||
@ -77,5 +77,5 @@ disable-model-invocation: true
|
||||
worked python example and `readme-py.template.md` this skill generalizes.
|
||||
- [`../../scaffold/containerize-project/SKILL.md`](../../scaffold/containerize-project/SKILL.md)
|
||||
— same marker-file ecosystem detection.
|
||||
- [`../../productivity/jj-atomic/SKILL.md`](../../productivity/jj-atomic/SKILL.md)
|
||||
- [`../../productivity/commit-atomic-jj/SKILL.md`](../../productivity/commit-atomic-jj/SKILL.md)
|
||||
— the commit step this skill hands off to.
|
||||
|
||||
@ -18,7 +18,7 @@ Owns `OKF/ROADMAP.md`. Planning only, never implementation.
|
||||
## Mode detection
|
||||
| State | Mode |
|
||||
|---|---|
|
||||
| no `./OKF/` | run [scribe-OKF](../scribe-OKF/SKILL.md) scaffold first |
|
||||
| no `./OKF/` | run [write-OKF](../write-OKF/SKILL.md) scaffold first |
|
||||
| `OKF/ROADMAP.md` absent or all-TODO | **Greenfield** → [greenfield.md](greenfield.md) |
|
||||
| `OKF/ROADMAP.md` has real content | **Revision** → [revise.md](revise.md) |
|
||||
| code exists but user wants plan-vs-code stress-test only | hand to [grill-with-docs](../../engineering/grill-with-docs/SKILL.md) |
|
||||
@ -41,12 +41,12 @@ fill the missing sections as deltas, don't restart.
|
||||
## Shared rules (both modes)
|
||||
- **One question per message** during any grilling; wait for the answer.
|
||||
- **Vocabulary sync**: one resolved term → one inline `OKF/CONTEXT.md`
|
||||
edit, per [domain-modeling](../../engineering/domain-modeling/SKILL.md).
|
||||
edit, per [model-domain](../../engineering/model-domain/SKILL.md).
|
||||
Roadmap and glossary must use identical canonical terms.
|
||||
- **ADRs** only by the three-of-three rule (hard to reverse ∧ surprising
|
||||
∧ real trade-off). Default no.
|
||||
- Roadmap phases feed [blueprint](../blueprint/SKILL.md) — write phases
|
||||
concrete enough that a spec can trace to them.
|
||||
concrete enough that a blueprint can trace to them.
|
||||
|
||||
## Output / done criteria
|
||||
- `OKF/ROADMAP.md` matches the skeleton; every phase has a verify step;
|
||||
@ -64,9 +64,9 @@ fill the missing sections as deltas, don't restart.
|
||||
|
||||
## See also
|
||||
- [greenfield.md](greenfield.md) / [revise.md](revise.md) — the loops.
|
||||
- [../scribe-OKF/SKILL.md](../scribe-OKF/SKILL.md) — scaffolds the OKF
|
||||
- [../write-OKF/SKILL.md](../write-OKF/SKILL.md) — scaffolds the OKF
|
||||
this skill writes into.
|
||||
- [../blueprint/SKILL.md](../blueprint/SKILL.md) — decomposes roadmap
|
||||
phases into specs.
|
||||
phases into blueprints.
|
||||
- [../../productivity/grill-me/SKILL.md](../../productivity/grill-me/SKILL.md)
|
||||
— the interview engine.
|
||||
|
||||
@ -31,7 +31,7 @@ For a project with no real roadmap yet. Formerly `plan-project`.
|
||||
`OKF/CONTEXT.md` edit (confirm the first write).
|
||||
6. **Write `OKF/ROADMAP.md`** when answers stop moving decisions, using
|
||||
the skeleton in [SKILL.md](SKILL.md). If `OKF/` is missing, run
|
||||
[scribe-OKF](../scribe-OKF/SKILL.md) scaffold first.
|
||||
[write-OKF](../write-OKF/SKILL.md) scaffold first.
|
||||
7. **Hand forward**: name the Phase-0 items ready for
|
||||
[blueprint](../blueprint/SKILL.md), and the scaffold skill
|
||||
([build-py-project](../../scaffold/build-py-project/SKILL.md) /
|
||||
|
||||
@ -24,8 +24,8 @@ For a roadmap that exists and reality that moved. Formerly
|
||||
Decisions are append-only history, not a wiki page.
|
||||
- Scope change → move items between *Phases* and *Out of scope*
|
||||
explicitly, never delete.
|
||||
- Spec implemented ([implement](../implement/SKILL.md) hand-back) →
|
||||
tick the phase item citing the spec number.
|
||||
- Blueprint implemented ([weave](../weave/SKILL.md) hand-back) →
|
||||
tick the phase item citing the blueprint number.
|
||||
4. **Sync vocabulary.** New or shifted terms → one inline
|
||||
`OKF/CONTEXT.md` edit each. Roadmap and glossary keep matching
|
||||
exactly.
|
||||
|
||||
@ -1,52 +1,53 @@
|
||||
---
|
||||
name: blueprint
|
||||
description: Synthesize the current conversation or a roadmap phase into a justified, verifiable spec at OKF/specs/NNN-<slug>.md — the unit that implement executes. No interview, pure synthesis.
|
||||
description: Synthesize the current conversation or a roadmap phase into a justified, verifiable blueprint at OKF/blueprints/NNN-<slug>.md — the unit that weave executes. No interview, pure synthesis.
|
||||
disable-model-invocation: true
|
||||
---
|
||||
|
||||
# blueprint
|
||||
|
||||
Matt Pocock's to-spec, file-based. Turns *already-discussed* work into a
|
||||
spec with justification. The interview happened upstream
|
||||
Matt Pocock's to-blueprint, file-based. Turns *already-discussed* work into a
|
||||
blueprint with justification. The interview happened upstream
|
||||
([grill-me](../../productivity/grill-me/SKILL.md) /
|
||||
[architect](../architect/SKILL.md)); blueprint only crystallises.
|
||||
|
||||
## When to use
|
||||
- User says "blueprint", "/blueprint", "write the spec", "spec this out".
|
||||
- User says "blueprint", "/blueprint", "write the blueprint", "blueprint this out".
|
||||
- An [architect](../architect/SKILL.md) roadmap phase is ready to
|
||||
decompose into implementable units.
|
||||
- A [ferry](../ferry/SKILL.md) decision resolved and needs its spec(s).
|
||||
- A [ferry](../ferry/SKILL.md) decision resolved and needs its blueprint(s).
|
||||
|
||||
## Process
|
||||
1. **Locate the source** — the conversation, a named roadmap phase, or a
|
||||
resolved ferry decision. No source → stop; run grill-me/architect
|
||||
first. Never invent requirements.
|
||||
2. **Number it** — `NNN` = highest existing in `OKF/specs/` + 1
|
||||
(`grep -ho '^[0-9]\{3\}' <(ls OKF/specs/) | sort -n | tail -1`).
|
||||
3. **Write `OKF/specs/NNN-<slug>.md`** per
|
||||
[spec-format.md](spec-format.md). Status starts `draft`.
|
||||
2. **Number it** — `NNN` = highest existing in `OKF/blueprints/` + 1
|
||||
(`grep -ho '^[0-9]\{3\}' <(ls OKF/blueprints/) | sort -n | tail -1`);
|
||||
directory empty or absent → start at `001`.
|
||||
3. **Write `OKF/blueprints/NNN-<slug>.md`** per
|
||||
[blueprint-format.md](blueprint-format.md). Status starts `draft`.
|
||||
- *Justification* traces to a roadmap phase, ferry decision, or a
|
||||
stated user need — by reference, not restatement.
|
||||
- *Seams touched* lists the interfaces tests will run against —
|
||||
[bdd](../../engineering/bdd/SKILL.md) consumes this as its
|
||||
pre-agreed seam list.
|
||||
- *Verify* is a runnable command or observable check — implement's
|
||||
- *Verify* is a runnable command or observable check — weave's
|
||||
done-gate runs exactly this.
|
||||
4. **Show the spec**; iterate. On explicit user yes → flip status to
|
||||
4. **Show the blueprint**; iterate. On explicit user yes → flip status to
|
||||
`locked`. No yes, no lock.
|
||||
5. **Index it** — add `NNN — <title> — <status>` to `OKF/INDEX.md`
|
||||
Specs section.
|
||||
6. **Seal** via [jj-atomic](../../productivity/jj-atomic/SKILL.md):
|
||||
`docs(spec): add NNN <slug>`.
|
||||
Blueprints section.
|
||||
6. **Seal** via [commit-atomic-jj](../../productivity/commit-atomic-jj/SKILL.md):
|
||||
`docs(blueprint): add NNN <slug>`.
|
||||
|
||||
## Status discipline
|
||||
`draft → locked → implemented`, or `→ superseded-by-NNN` from any state.
|
||||
Never backwards; never edit a locked spec's Spec section — supersede
|
||||
Never backwards; never edit a locked blueprint's Contract section — supersede
|
||||
with a new number instead. The "tracker" is
|
||||
`grep -r "^status:" OKF/specs/`.
|
||||
`grep -r "^status:" OKF/blueprints/`.
|
||||
|
||||
## Output / done criteria
|
||||
- Spec exists, matches spec-format.md, indexed in INDEX.md.
|
||||
- Blueprint exists, matches blueprint-format.md, indexed in INDEX.md.
|
||||
- Justification traces to a real source; Verify is runnable.
|
||||
- Locked only on explicit user approval.
|
||||
|
||||
@ -54,14 +55,14 @@ with a new number instead. The "tracker" is
|
||||
- **Never** interview here — synthesis only.
|
||||
- **Never** lock without a user yes.
|
||||
- **Never** write implementation code or tests — that's
|
||||
[implement](../implement/SKILL.md).
|
||||
- **Never** restate OKF content in the spec — reference pages by path.
|
||||
- One spec = one implementable unit; too big to verify in one
|
||||
implement run → split, or send to [ferry](../ferry/SKILL.md).
|
||||
[weave](../weave/SKILL.md).
|
||||
- **Never** restate OKF content in the blueprint — reference pages by path.
|
||||
- One blueprint = one implementable unit; too big to verify in one
|
||||
weave run → split, or send to [ferry](../ferry/SKILL.md).
|
||||
|
||||
## See also
|
||||
- [spec-format.md](spec-format.md) — the format contract.
|
||||
- [blueprint-format.md](blueprint-format.md) — the format contract.
|
||||
- [../../engineering/review-blueprint/SKILL.md](../../engineering/review-blueprint/SKILL.md)
|
||||
— reviews a diff *against* a spec.
|
||||
- [../architect/SKILL.md](../architect/SKILL.md) — phases feed specs;
|
||||
implemented specs tick phases.
|
||||
— reviews a diff *against* a blueprint.
|
||||
- [../architect/SKILL.md](../architect/SKILL.md) — phases feed blueprints;
|
||||
implemented blueprints tick phases.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
# Spec format — OKF/specs/NNN-<slug>.md
|
||||
# Blueprint format — OKF/blueprints/NNN-<slug>.md
|
||||
|
||||
```markdown
|
||||
---
|
||||
status: draft | locked | implemented | superseded-by-NNN
|
||||
traces-to: ROADMAP.md phase N | ferry-<topic>/D-<n> | user request <date>
|
||||
traces-to: ROADMAP.md phase N | ferries/<topic>/D-<n> | user request <date>
|
||||
---
|
||||
|
||||
# NNN — <imperative title, completes "this change will…">
|
||||
@ -13,7 +13,7 @@ traces-to: ROADMAP.md phase N | ferry-<topic>/D-<n> | user request <date>
|
||||
ferry decision, or user need. If sieve-relevant: which Real need this
|
||||
answers.>
|
||||
|
||||
## Spec
|
||||
## Contract
|
||||
<Observable behaviour, exact semantics. What the change does — inputs,
|
||||
outputs, states, error modes. Canonical vocabulary from OKF/CONTEXT.md
|
||||
only. No implementation prescriptions unless they ARE the requirement.>
|
||||
@ -24,8 +24,8 @@ bdd's pre-agreed seam list; review-blueprint checks nothing leaked past
|
||||
them.>
|
||||
|
||||
## Verify
|
||||
<ONE runnable command or observable check that proves the spec is met.
|
||||
implement pastes its output before flipping status. "Tests pass" is not
|
||||
<ONE runnable command or observable check that proves the blueprint is met.
|
||||
weave pastes its output before flipping status. "Tests pass" is not
|
||||
a Verify; `just test` on a named suite is.>
|
||||
|
||||
## Out of scope
|
||||
@ -35,12 +35,12 @@ up in the diff.>
|
||||
|
||||
## Rules
|
||||
|
||||
- Title is imperative — a spec names a change, not a state.
|
||||
- `traces-to` is mandatory; a spec that traces to nothing fails
|
||||
- Title is imperative — a blueprint names a change, not a state.
|
||||
- `traces-to` is mandatory; a blueprint that traces to nothing fails
|
||||
[sieve](../../engineering/sieve/SKILL.md)'s Real test by definition.
|
||||
- Locked spec's Spec/Verify sections are immutable — supersede, don't
|
||||
- Locked blueprint's Contract/Verify sections are immutable — supersede, don't
|
||||
edit. Justification may gain references; status may advance.
|
||||
- A spec grows into `NNN-<slug>/` (spec.md + notes) when one file won't
|
||||
hold it — the format above moves to `spec.md` unchanged.
|
||||
- A blueprint grows into `NNN-<slug>/` (blueprint.md + notes) when one file won't
|
||||
hold it — the format above moves to `blueprint.md` unchanged.
|
||||
- Issue-local vocabulary lives here until it recurs; then promote to
|
||||
`OKF/CONTEXT.md` (domain-modeling's recurrence rule).
|
||||
`OKF/CONTEXT.md` (model-domain's recurrence rule).
|
||||
@ -1,6 +1,6 @@
|
||||
---
|
||||
name: ferry
|
||||
description: Carry work too big for one session across the gap — map it as a directory of small decision files with blocking edges under OKF/specs/ferry-<topic>/, then resolve one decision per sitting until the way is clear.
|
||||
description: Carry work too big for one session across the gap — map it as a directory of small decision files with blocking edges under OKF/ferries/<topic>/, then resolve one decision per sitting until the way is clear.
|
||||
disable-model-invocation: true
|
||||
---
|
||||
|
||||
@ -15,16 +15,16 @@ directory is what crosses the session boundary.
|
||||
- User says "ferry", "/ferry", "this is too big for one session",
|
||||
"map this feature out".
|
||||
- An [architect](../architect/SKILL.md) phase or
|
||||
[blueprint](../blueprint/SKILL.md) attempt turns out too large to spec
|
||||
[blueprint](../blueprint/SKILL.md) attempt turns out too large to blueprint
|
||||
as one implementable unit.
|
||||
- A [handoff](../../productivity/handoff/SKILL.md) is looming on a
|
||||
- A [write-handoff](../../productivity/write-handoff/SKILL.md) is looming on a
|
||||
half-decided design — ferry the open questions instead of prose-dumping
|
||||
them.
|
||||
|
||||
## Process
|
||||
1. **Name the destination** — one sentence: what "the way is clear"
|
||||
means (all decisions resolved → specs exist → implement can run).
|
||||
2. **Create `OKF/specs/ferry-<topic>/`** with `MAP.md`: destination
|
||||
means (all decisions resolved → blueprints exist → weave can run).
|
||||
2. **Create `OKF/ferries/<topic>/`** with `MAP.md`: destination
|
||||
sentence + decision list (`D-1 — title — status — blocked-by`).
|
||||
3. **Write decision files** `D-<n>-<slug>.md` per
|
||||
[decision-format.md](decision-format.md). Small: one genuine
|
||||
@ -36,9 +36,9 @@ directory is what crosses the session boundary.
|
||||
Record resolution + rationale in the file; flip status.
|
||||
5. **Crystallise as you go**: a resolved decision that unlocks
|
||||
implementable work → hand to [blueprint](../blueprint/SKILL.md);
|
||||
the spec's `traces-to` cites `ferry-<topic>/D-<n>`. Resolved terms →
|
||||
`OKF/CONTEXT.md` per domain-modeling.
|
||||
6. **Arrive**: every decision resolved → update `MAP.md` with the spec
|
||||
the blueprint's `traces-to` cites `ferries/<topic>/D-<n>`. Resolved terms →
|
||||
`OKF/CONTEXT.md` per model-domain.
|
||||
6. **Arrive**: every decision resolved → update `MAP.md` with the blueprint
|
||||
numbers produced; the ferry directory stays as the decision record
|
||||
(supersede, don't delete).
|
||||
|
||||
@ -46,13 +46,13 @@ directory is what crosses the session boundary.
|
||||
End of sitting → `MAP.md` *is* the handoff for this work: next session
|
||||
reads MAP.md, picks the next unblocked decision. Don't duplicate ferry
|
||||
state into HANDOFF.md — reference the directory
|
||||
([handoff](../../productivity/handoff/SKILL.md) rule).
|
||||
([write-handoff](../../productivity/write-handoff/SKILL.md) rule).
|
||||
|
||||
## Output / done criteria
|
||||
- `MAP.md` lists every decision with status and edges; no cycles.
|
||||
- Each sitting resolves ≥1 decision or records why it's blocked on the
|
||||
user/world.
|
||||
- Every resolved decision has rationale; every spawned spec traces back.
|
||||
- Every resolved decision has rationale; every spawned blueprint traces back.
|
||||
|
||||
## Guardrails
|
||||
- **Never** resolve a decision whose `blocked-by` set has open members.
|
||||
@ -67,4 +67,4 @@ state into HANDOFF.md — reference the directory
|
||||
- [../blueprint/SKILL.md](../blueprint/SKILL.md) — downstream of every
|
||||
resolution.
|
||||
- [../architect/SKILL.md](../architect/SKILL.md) — phases too big to
|
||||
spec directly get ferried.
|
||||
blueprint directly get ferried.
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
# Ferry decision format
|
||||
|
||||
## MAP.md — `OKF/specs/ferry-<topic>/MAP.md`
|
||||
## MAP.md — `OKF/ferries/<topic>/MAP.md`
|
||||
|
||||
```markdown
|
||||
# ferry — <topic>
|
||||
|
||||
Destination: <one sentence — what "the way is clear" means>.
|
||||
|
||||
| id | decision | status | blocked-by | spec |
|
||||
| id | decision | status | blocked-by | blueprint |
|
||||
|---|---|---|---|---|
|
||||
| D-1 | <title> | open | — | |
|
||||
| D-2 | <title> | open | D-1 | |
|
||||
@ -45,5 +45,5 @@ Append-only — a changed mind is a new decision superseding this one.>
|
||||
- `blocked-by` edges must be acyclic — check when adding, not when stuck.
|
||||
- Status flips only with a filled Resolution; Resolution never edited
|
||||
after — supersede with a new decision instead.
|
||||
- The `spec` column in MAP.md fills as [blueprint](../blueprint/SKILL.md)
|
||||
crystallises resolutions into `OKF/specs/NNN`.
|
||||
- The `blueprint` column in MAP.md fills as [blueprint](../blueprint/SKILL.md)
|
||||
crystallises resolutions into `OKF/blueprints/NNN`.
|
||||
|
||||
@ -1,76 +0,0 @@
|
||||
---
|
||||
name: implement
|
||||
description: Execute one locked spec from OKF/specs — bdd loop at the spec's seams, four-axis review, run the spec's Verify with pasted output, seal citing the spec, flip its status. The loop closer.
|
||||
disable-model-invocation: true
|
||||
---
|
||||
|
||||
# implement
|
||||
|
||||
Executes exactly **one `locked` spec**. Matt Pocock's implement ×
|
||||
superpowers' subagent-driven-development, jj-native.
|
||||
|
||||
## When to use
|
||||
- User says "implement", "/implement", "implement spec NNN", "execute
|
||||
the spec".
|
||||
- A [blueprint](../blueprint/SKILL.md) spec just locked and the user
|
||||
says go.
|
||||
|
||||
## Preconditions (check, don't assume)
|
||||
- The spec exists and `status: locked` — `draft` → back to blueprint for
|
||||
the user's lock; none named → list locked specs, ask which.
|
||||
- `OKF/INDEX.md` read; the OKF pages the spec references read.
|
||||
|
||||
## Process
|
||||
1. **Frame** — restate the spec's Spec section in one sentence; list its
|
||||
Seams touched as the pre-agreed test surfaces. Mismatch with what you
|
||||
find on disk → stop, surface it (spec may need superseding).
|
||||
2. **Build** — hand to [bdd](../../engineering/bdd/SKILL.md): scenarios
|
||||
from the Spec section, tests only at the listed seams, red→green one
|
||||
scenario at a time.
|
||||
3. **Review** — the four axes as warranted:
|
||||
[review-angles](../../engineering/review-angles/SKILL.md) always;
|
||||
[nuke-review](../../engineering/nuke-review/SKILL.md) /
|
||||
[winnow](../../engineering/winnow/SKILL.md) for non-trivial diffs;
|
||||
[review-blueprint](../../engineering/review-blueprint/SKILL.md)
|
||||
**always** — it is the done-gate.
|
||||
4. **Done-gate** — run the spec's Verify command; **paste the output**.
|
||||
Red or missing output → not done; keep working or report blocked.
|
||||
"Should pass" never passes.
|
||||
5. **Seal** — [jj-atomic](../../productivity/jj-atomic/SKILL.md); the
|
||||
message body cites `spec NNN`. Fix + regression test in the same
|
||||
change.
|
||||
6. **Close the loop** — flip spec status to `implemented`; update its
|
||||
INDEX.md line; tick the roadmap item via
|
||||
[architect](../architect/SKILL.md) revise mode; wiki-worthy learnings
|
||||
→ `OKF/LEARNINGS.md` ([scribe-OKF](../scribe-OKF/SKILL.md) refresh if
|
||||
pages went stale).
|
||||
|
||||
## Subagent dispatch — the handoff gate
|
||||
Mutating subagents (`caveman:cavecrew-builder`, any implementer) spawn
|
||||
**only with a brief**: goal, spec/OKF references (by path, not
|
||||
restated), constraints, and the verify command for *their* slice. The
|
||||
locked spec is the default brief. Read-only lookups
|
||||
(`cavecrew-investigator`) are exempt. See
|
||||
[cavecrew-octobot](../../productivity/cavecrew-octobot/SKILL.md).
|
||||
|
||||
## Output / done criteria
|
||||
- Spec's Verify output pasted and green; four-axis findings resolved or
|
||||
explicitly waived by the user.
|
||||
- Change sealed citing the spec; status flipped; roadmap ticked.
|
||||
|
||||
## Guardrails
|
||||
- **Never** implement a draft or superseded spec.
|
||||
- **Never** exceed the spec — an improvement idea goes through
|
||||
blueprint (supersede) first; review-blueprint will flag it anyway.
|
||||
- **Never** flip status without the pasted Verify output.
|
||||
- **Never** spawn a mutating subagent without a brief.
|
||||
- One spec per run — the next spec is a fresh implement.
|
||||
|
||||
## See also
|
||||
- [../blueprint/SKILL.md](../blueprint/SKILL.md) — upstream; owns spec
|
||||
status semantics.
|
||||
- [../../engineering/review-blueprint/SKILL.md](../../engineering/review-blueprint/SKILL.md)
|
||||
— the done-gate axis.
|
||||
- [../../engineering/diagnose/SKILL.md](../../engineering/diagnose/SKILL.md)
|
||||
— a bug found mid-implement that isn't this spec's scope gets its own
|
||||
loop.
|
||||
@ -13,16 +13,16 @@ just read the table.
|
||||
## The loop (the metaharness spine)
|
||||
|
||||
```
|
||||
scribe-OKF → architect → blueprint → ferry → implement → review+verify → jj-atomic
|
||||
write-OKF → architect → blueprint → ferry → weave → review+verify → commit-atomic-jj
|
||||
```
|
||||
|
||||
| Situation | Skill |
|
||||
|---|---|
|
||||
| project has no `OKF/` knowledge folder, or wiki is stale | `/scribe-OKF` |
|
||||
| project has no `OKF/` knowledge folder, or wiki is stale | `/write-OKF` |
|
||||
| starting a project / roadmap needs creating or revising | `/architect` |
|
||||
| discussed work needs a justified, verifiable spec | `/blueprint` |
|
||||
| discussed work needs a justified, verifiable blueprint | `/blueprint` |
|
||||
| feature too big for one session — map decisions | `/ferry` |
|
||||
| a locked spec is ready to execute | `/implement` |
|
||||
| a locked blueprint is ready to execute | `/weave` |
|
||||
|
||||
## By situation
|
||||
|
||||
@ -33,29 +33,29 @@ scribe-OKF → architect → blueprint → ferry → implement → review+verify
|
||||
| build test-first (fires on "tdd"/"bdd" too) | `/bdd` |
|
||||
| non-obvious bug, flake, regression, perf issue | `/diagnose` |
|
||||
| jj conflict markers on screen | `/resolve-conflicts` |
|
||||
| committing; splitting mixed changes | `/jj-atomic` |
|
||||
| committing; splitting mixed changes | `/commit-atomic-jj` |
|
||||
| post-green review — correctness angles | `/review-angles` |
|
||||
| post-green review — diff vs its spec | `/review-blueprint` |
|
||||
| post-green review — diff vs its blueprint | `/review-blueprint` |
|
||||
| harsh structural review, code-judo | `/nuke-review` |
|
||||
| what can we delete (scoreboard) | `/winnow` |
|
||||
| should this exist at all (Real/Good/Minimal) | `/sieve` |
|
||||
| daemon threads, watchers, locks, readiness | `/background-work` |
|
||||
| module/interface/seam design vocabulary | `/codebase-design` |
|
||||
| domain terms fuzzy; glossary/ADR work | `/domain-modeling` |
|
||||
| spawning cavecrew subagents; builder needs a brief | `/cavecrew-octobot` |
|
||||
| session ending on unfinished work | `/handoff` |
|
||||
| daemon threads, watchers, locks, readiness | `/harden-background-work` |
|
||||
| module/interface/seam design vocabulary | `/design-codebase` |
|
||||
| domain terms fuzzy; glossary/ADR work | `/model-domain` |
|
||||
| spawning cavecrew subagents; builder needs a brief | `/spawn-cavecrew` |
|
||||
| session ending on unfinished work | `/write-handoff` |
|
||||
| new Python / R package / R analysis project | `/build-py-project` `/build-r-package` `/build-r-analysis` |
|
||||
| add Docker to an existing project | `/containerize-project` |
|
||||
| credentials into a container safely | `/add-docker-secrets` |
|
||||
| full-loop language workflows (explicit ask only) | `/dev-python` `/dev-r` |
|
||||
| full-loop language workflows (explicit ask only) | `/develop-python` `/develop-r` |
|
||||
| README generation | `/write-readme` (`-py` variant for Python) |
|
||||
| R style/idiom questions | `/r-style` |
|
||||
| R style/idiom questions | `/style-r` |
|
||||
| Copilot skills for another repo | `/add-copilot-project-skill` |
|
||||
| terse replies for the session | `/caveman` |
|
||||
| terse replies for the session | `/talk-caveman` |
|
||||
| author a new octobot skill | `/conjure-a-skill` |
|
||||
|
||||
## Rules of thumb
|
||||
- Knowledge before plan, plan before spec, spec before code — enter the
|
||||
- Knowledge before plan, plan before blueprint, blueprint before code — enter the
|
||||
loop as far upstream as the situation allows.
|
||||
- One skill at a time; each names its own hand-offs.
|
||||
- New skill added to octobot → add its row here
|
||||
|
||||
76
skills/loop/weave/SKILL.md
Normal file
76
skills/loop/weave/SKILL.md
Normal file
@ -0,0 +1,76 @@
|
||||
---
|
||||
name: weave
|
||||
description: Execute one locked blueprint from OKF/blueprints — bdd loop at the blueprint's seams, four-axis review, run the blueprint's Verify with pasted output, seal citing the blueprint, flip its status. The loop closer.
|
||||
disable-model-invocation: true
|
||||
---
|
||||
|
||||
# weave
|
||||
|
||||
Executes exactly **one `locked` blueprint**. Matt Pocock's implement ×
|
||||
superpowers' subagent-driven-development, jj-native.
|
||||
|
||||
## When to use
|
||||
- User says "weave", "/weave", "implement blueprint NNN", "execute
|
||||
the blueprint".
|
||||
- A [blueprint](../blueprint/SKILL.md) blueprint just locked and the user
|
||||
says go.
|
||||
|
||||
## Preconditions (check, don't assume)
|
||||
- The blueprint exists and `status: locked` — `draft` → back to blueprint for
|
||||
the user's lock; none named → list locked blueprints, ask which.
|
||||
- `OKF/INDEX.md` read; the OKF pages the blueprint references read.
|
||||
|
||||
## Process
|
||||
1. **Frame** — restate the blueprint's Contract section in one sentence; list its
|
||||
Seams touched as the pre-agreed test surfaces. Mismatch with what you
|
||||
find on disk → stop, surface it (blueprint may need superseding).
|
||||
2. **Build** — hand to [bdd](../../engineering/bdd/SKILL.md): scenarios
|
||||
from the Contract section, tests only at the listed seams, red→green one
|
||||
scenario at a time.
|
||||
3. **Review** — the four axes as warranted:
|
||||
[review-angles](../../engineering/review-angles/SKILL.md) always;
|
||||
[nuke-review](../../engineering/nuke-review/SKILL.md) /
|
||||
[winnow](../../engineering/winnow/SKILL.md) for non-trivial diffs;
|
||||
[review-blueprint](../../engineering/review-blueprint/SKILL.md)
|
||||
**always** — it is the done-gate.
|
||||
4. **Done-gate** — run the blueprint's Verify command; **paste the output**.
|
||||
Red or missing output → not done; keep working or report blocked.
|
||||
"Should pass" never passes.
|
||||
5. **Seal** — [commit-atomic-jj](../../productivity/commit-atomic-jj/SKILL.md); the
|
||||
message body cites `blueprint NNN`. Fix + regression test in the same
|
||||
change.
|
||||
6. **Close the loop** — flip blueprint status to `implemented`; update its
|
||||
INDEX.md line; tick the roadmap item via
|
||||
[architect](../architect/SKILL.md) revise mode; wiki-worthy learnings
|
||||
→ `OKF/LEARNINGS.md` ([write-OKF](../write-OKF/SKILL.md) refresh if
|
||||
pages went stale).
|
||||
|
||||
## Subagent dispatch — the handoff gate
|
||||
Mutating subagents (`caveman:cavecrew-builder`, any implementer) spawn
|
||||
**only with a brief**: goal, blueprint/OKF references (by path, not
|
||||
restated), constraints, and the verify command for *their* slice. The
|
||||
locked blueprint is the default brief. Read-only lookups
|
||||
(`cavecrew-investigator`) are exempt. See
|
||||
[spawn-cavecrew](../../productivity/spawn-cavecrew/SKILL.md).
|
||||
|
||||
## Output / done criteria
|
||||
- Blueprint's Verify output pasted and green; four-axis findings resolved or
|
||||
explicitly waived by the user.
|
||||
- Change sealed citing the blueprint; status flipped; roadmap ticked.
|
||||
|
||||
## Guardrails
|
||||
- **Never** implement a draft or superseded blueprint.
|
||||
- **Never** exceed the blueprint — an improvement idea goes through
|
||||
blueprint (supersede) first; review-blueprint will flag it anyway.
|
||||
- **Never** flip status without the pasted Verify output.
|
||||
- **Never** spawn a mutating subagent without a brief.
|
||||
- One blueprint per run — the next blueprint is a fresh weave.
|
||||
|
||||
## See also
|
||||
- [../blueprint/SKILL.md](../blueprint/SKILL.md) — upstream; owns blueprint
|
||||
status semantics.
|
||||
- [../../engineering/review-blueprint/SKILL.md](../../engineering/review-blueprint/SKILL.md)
|
||||
— the done-gate axis.
|
||||
- [../../engineering/diagnose/SKILL.md](../../engineering/diagnose/SKILL.md)
|
||||
— a bug found mid-weave that isn't this blueprint's scope gets its own
|
||||
loop.
|
||||
@ -1,20 +1,20 @@
|
||||
---
|
||||
name: scribe-OKF
|
||||
name: write-OKF
|
||||
description: Scaffold or refresh a project's OKF (open-knowledge-format) wiki — the agent-first knowledge folder at ./OKF/ that AGENTS.md points every agent at before it touches code.
|
||||
disable-model-invocation: true
|
||||
---
|
||||
|
||||
# scribe-OKF
|
||||
# write-OKF
|
||||
|
||||
The OKF is a Karpathy-LLM-wiki-style knowledge substrate: dense synthesis,
|
||||
not raw dumps; agents read it *before* code; every page inspectable,
|
||||
versioned, agent-maintained. Layout contract: [okf-layout.md](okf-layout.md).
|
||||
|
||||
## When to use
|
||||
- User says "scribe OKF", "/scribe-OKF", "set up the knowledge folder",
|
||||
- User says "scribe OKF", "/write-OKF", "set up the knowledge folder",
|
||||
"refresh the wiki".
|
||||
- Another loop skill ([architect](../architect/SKILL.md),
|
||||
[implement](../implement/SKILL.md)) requires an `OKF/` that is absent
|
||||
[weave](../weave/SKILL.md)) requires an `OKF/` that is absent
|
||||
or stale.
|
||||
|
||||
## Mode detection
|
||||
@ -32,7 +32,7 @@ versioned, agent-maintained. Layout contract: [okf-layout.md](okf-layout.md).
|
||||
3. Fill only what is *derivable from disk right now*: SUMMARY from an
|
||||
existing README, ARCHITECTURE bones from the directory tree and
|
||||
manifests, ROADMAP/CONTEXT stay TODO until
|
||||
[architect](../architect/SKILL.md) / domain-modeling produce them.
|
||||
[architect](../architect/SKILL.md) / model-domain produce them.
|
||||
4. Wire `AGENTS.md`: insert the block from
|
||||
[agents-md-hook.md](agents-md-hook.md) (create the file if absent;
|
||||
append if it exists — never overwrite prose).
|
||||
@ -49,8 +49,9 @@ versioned, agent-maintained. Layout contract: [okf-layout.md](okf-layout.md).
|
||||
[architect/revise.md](../architect/revise.md) discipline.
|
||||
4. Every ARCHITECTURE.md claim must be **traceable to a file** — cite
|
||||
`path` (or `path:line`) inline. A claim you can't cite doesn't go in.
|
||||
5. Keep `INDEX.md` complete: every page and every `specs/` entry listed,
|
||||
one line each.
|
||||
5. Keep `INDEX.md` complete: every page and every `blueprints/` entry
|
||||
listed, one line each (`NNN — title — status`); every ferry one line
|
||||
(`<topic> — n/m resolved → MAP.md`) — decisions stay in MAP.md only.
|
||||
|
||||
## Output / done criteria
|
||||
- `OKF/` matches [okf-layout.md](okf-layout.md); `INDEX.md` links every
|
||||
@ -61,7 +62,7 @@ versioned, agent-maintained. Layout contract: [okf-layout.md](okf-layout.md).
|
||||
- Refresh: every edit traces to a named delta (commit, file, or session
|
||||
fact); superseded claims remain visible.
|
||||
- Nothing committed — hand to
|
||||
[jj-atomic](../../productivity/jj-atomic/SKILL.md)
|
||||
[commit-atomic-jj](../../productivity/commit-atomic-jj/SKILL.md)
|
||||
(`docs(okf): ...`).
|
||||
|
||||
## Guardrails
|
||||
@ -75,6 +76,6 @@ versioned, agent-maintained. Layout contract: [okf-layout.md](okf-layout.md).
|
||||
|
||||
## See also
|
||||
- [../architect/SKILL.md](../architect/SKILL.md) — writes ROADMAP.md.
|
||||
- [../blueprint/SKILL.md](../blueprint/SKILL.md) — writes specs/.
|
||||
- [../../engineering/domain-modeling/SKILL.md](../../engineering/domain-modeling/SKILL.md)
|
||||
- [../blueprint/SKILL.md](../blueprint/SKILL.md) — writes blueprints/.
|
||||
- [../../engineering/model-domain/SKILL.md](../../engineering/model-domain/SKILL.md)
|
||||
— owns CONTEXT.md content; scribe only places it.
|
||||
@ -14,7 +14,7 @@ This project keeps an agent-first wiki at [`OKF/`](OKF/INDEX.md)
|
||||
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
|
||||
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
|
||||
@ -28,7 +28,7 @@ This project keeps an agent-first wiki at [`OKF/`](OKF/INDEX.md)
|
||||
- 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.
|
||||
blueprint's stated check before calling work done.
|
||||
```
|
||||
|
||||
## Rules
|
||||
@ -9,39 +9,44 @@ format-compatible in spirit, dependency-free in practice.
|
||||
OKF/
|
||||
├── INDEX.md # map of the wiki — the ONE file AGENTS.md points at
|
||||
├── SUMMARY.md # what the project is, for an agent landing cold
|
||||
├── ARCHITECTURE.md # modules, seams, main flows — codebase-design vocab
|
||||
├── CONTEXT.md # canonical domain glossary (domain-modeling owns content)
|
||||
├── ARCHITECTURE.md # modules, seams, main flows — design-codebase vocab
|
||||
├── CONTEXT.md # canonical domain glossary (model-domain owns content)
|
||||
├── context/ # only in multi-context repos: <subroot>.md per
|
||||
│ # bounded context, indexed from INDEX.md
|
||||
├── ROADMAP.md # phased plan — architect owns content
|
||||
├── adr/ # 0001-<slug>.md — three-of-three rule (domain-modeling)
|
||||
├── specs/ # NNN-<slug>.md blueprints; ferry-<topic>/ decision maps
|
||||
├── adr/ # 0001-<slug>.md — three-of-three rule (model-domain)
|
||||
├── blueprints/ # NNN-<slug>.md only — flat, grep-able namespace
|
||||
├── ferries/ # <topic>/ — MAP.md + D-<n>-<slug>.md decision files
|
||||
└── LEARNINGS.md # debunked claims, gotchas — append-only, sourced
|
||||
```
|
||||
|
||||
## Page contracts (one line each in INDEX.md)
|
||||
|
||||
- **INDEX.md** — every existing page + spec, one line + hook each. No
|
||||
- **INDEX.md** — every existing page + blueprint, one line + hook each. No
|
||||
content of its own beyond the map.
|
||||
- **SUMMARY.md** — ≤1 screen: what it is, who for, how run, where to start
|
||||
reading. The cold-start page.
|
||||
- **ARCHITECTURE.md** — module map with seams; every claim cites a file
|
||||
path. Uses codebase-design vocabulary (module, interface, seam, adapter).
|
||||
- **CONTEXT.md** — glossary per domain-modeling's CONTEXT-FORMAT.md.
|
||||
path. Uses design-codebase vocabulary (module, interface, seam, adapter).
|
||||
- **CONTEXT.md** — glossary per model-domain's CONTEXT-FORMAT.md.
|
||||
**One canonical glossary per bounded context — never per issue.**
|
||||
Issue-local terms live in their spec until they recur.
|
||||
Issue-local terms live in their blueprint until they recur.
|
||||
- **ROADMAP.md** — architect's skeleton (locked decisions, phases with
|
||||
verify steps, risks, out-of-scope).
|
||||
- **specs/** — blueprint output; status lives in frontmatter, so the
|
||||
"tracker" is `grep -r "^status:" OKF/specs/`.
|
||||
- **blueprints/** — blueprint output; status lives in frontmatter, so the
|
||||
"tracker" is `grep -r "^status:" OKF/blueprints/`. INDEX lists one line
|
||||
per blueprint: `NNN — title — status`.
|
||||
- **ferries/** — one directory per ferry; MAP.md is the per-ferry index.
|
||||
INDEX lists one line per ferry: `<topic> — n/m resolved → MAP.md`;
|
||||
decisions are never listed in INDEX (single source: MAP.md).
|
||||
- **LEARNINGS.md** — what was believed / what is true / source. Never
|
||||
edited retroactively, only appended or superseded.
|
||||
|
||||
## Rules
|
||||
|
||||
- Durable knowledge only — no session state, no high-frequency logs
|
||||
(that's [handoff](../../productivity/handoff/SKILL.md) territory).
|
||||
(that's [write-handoff](../../productivity/write-handoff/SKILL.md) territory).
|
||||
- One fact, one home; cross-link with relative paths.
|
||||
- Every page ≤110 lines; grow by splitting + indexing, not by scrolling.
|
||||
- Specs may grow from `NNN-<slug>.md` into `NNN-<slug>/` directories
|
||||
(spec.md + notes) — the glossary never moves in there.
|
||||
- Blueprints may grow from `NNN-<slug>.md` into `NNN-<slug>/` directories
|
||||
(blueprint.md + notes) — the glossary never moves in there.
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
name: jj-atomic
|
||||
name: commit-atomic-jj
|
||||
description: Atomic-commit discipline with jujutsu — read every diff line before describing, split mixed changes with `jj split`, write semantic commit messages (`type(scope): imperative phrase completing "this change will…"`), and update docs / docstrings / READMEs in the same change as the code. Use when the user says "commit", "jj describe", "split this change", "atomic commit", "what's the commit message", or is about to seal a working copy that touches more than one logical concern.
|
||||
---
|
||||
|
||||
# jj-atomic
|
||||
# commit-atomic-jj
|
||||
|
||||
## When to use
|
||||
- User says "commit", "jj describe", "atomic commit", "split this
|
||||
@ -27,7 +27,7 @@ description: Atomic-commit discipline with jujutsu — read every diff line befo
|
||||
- If the diff touches two areas (a bug fix and a refactor; two
|
||||
unrelated features), **`jj split`** before describing.
|
||||
- Style refactors are their own change — they shouldn't share a commit
|
||||
with logic changes (see [`../../engineering/r-style/tidyverse.md`](../../engineering/r-style/tidyverse.md#tooling)).
|
||||
with logic changes (see [`../../engineering/style-r/tidyverse.md`](../../engineering/style-r/tidyverse.md#tooling)).
|
||||
- Test additions for an existing feature are their own change unless
|
||||
they accompany a new behaviour landing in the same diff.
|
||||
|
||||
@ -51,9 +51,9 @@ If the project uses a ticket prefix (e.g. `DRAKE-42`, `JIRA-101`,
|
||||
|
||||
If the project has no ticket convention, omit. Don't invent a prefix.
|
||||
|
||||
### 5. Spec citations
|
||||
A change executing an `OKF/specs/NNN` spec ([implement](../../loop/implement/SKILL.md))
|
||||
cites it in the body: `implements spec NNN`. Readers trace the diff to
|
||||
### 5. Blueprint citations
|
||||
A change executing an `OKF/blueprints/NNN` blueprint ([weave](../../loop/weave/SKILL.md))
|
||||
cites it in the body: `implements blueprint NNN`. Readers trace the diff to
|
||||
its justification without leaving the log.
|
||||
|
||||
### 6. Docs travel with the code
|
||||
@ -95,11 +95,11 @@ deferred to the next commit, skipping `jj new` after describe.
|
||||
## See also
|
||||
- [examples.md](examples.md) — a real before/after where a working copy is
|
||||
split into two atomic commits with proper messages.
|
||||
- [`../../engineering/r-style/SKILL.md`](../../engineering/r-style/SKILL.md)
|
||||
- [`../../engineering/style-r/SKILL.md`](../../engineering/style-r/SKILL.md)
|
||||
— style refactors are their own atomic change.
|
||||
- [`../../engineering/bdd/SKILL.md`](../../engineering/bdd/SKILL.md)
|
||||
— the regression test for a bug fix lands in the *same* atomic change
|
||||
as the fix.
|
||||
- [`../../engineering/diagnose/SKILL.md`](../../engineering/diagnose/SKILL.md)
|
||||
— phase-6 post-mortem commit message names the confirmed hypothesis.
|
||||
- [`../../engineering/dev-python/SKILL.md`](../../engineering/dev-python/SKILL.md) / [`../../engineering/dev-r/SKILL.md`](../../engineering/dev-r/SKILL.md) — workflow orchestrators that hand off here for the commit phase.
|
||||
- [`../../engineering/develop-python/SKILL.md`](../../engineering/develop-python/SKILL.md) / [`../../engineering/develop-r/SKILL.md`](../../engineering/develop-r/SKILL.md) — workflow orchestrators that hand off here for the commit phase.
|
||||
@ -1,4 +1,4 @@
|
||||
# jj-atomic anti-patterns
|
||||
# commit-atomic-jj anti-patterns
|
||||
|
||||
## `jj describe` before `jj diff`
|
||||
|
||||
@ -61,7 +61,7 @@ concept's definition, rules, and caveats under one heading.
|
||||
another skill must reach it.
|
||||
- **By sequence** — split a run of **steps** when **post-completion steps**
|
||||
tempt the agent to rush the current one (**premature completion**).
|
||||
- **By the octobot 110-line cap** — when a file exceeds 110 lines, split.
|
||||
- **By the octobot 110-line cap** — when `SKILL.md` exceeds 110 lines, split reference into topic-named siblings.
|
||||
House enforcement of **sprawl**. `GLOSSARY.md` is the documented exception.
|
||||
|
||||
## Pruning
|
||||
|
||||
@ -32,9 +32,8 @@ Full vocabulary: [GLOSSARY.md](GLOSSARY.md). Design playbook: [PRINCIPLES.md](PR
|
||||
`engineering`, `scaffold`)
|
||||
- name **must** open with an imperative verb (`build-py-project`,
|
||||
`steer`). Test: prefix with "please" — still a command? No → reject.
|
||||
No new-skill exceptions; legacy non-verb names (bdd, jj-atomic,
|
||||
r-style, caveman, sieve, handoff, …) are grandfathered, not
|
||||
precedent.
|
||||
No new-skill exceptions; `bdd` is the single grandfathered non-verb
|
||||
name (initialism, trigger muscle memory), not precedent.
|
||||
- **invocation**: default `disable-model-invocation: true` + a
|
||||
[`steer`](../../loop/steer/SKILL.md) row; model-invoked only when
|
||||
the agent must fire it from natural mid-work phrasing (then the
|
||||
@ -53,19 +52,19 @@ Full vocabulary: [GLOSSARY.md](GLOSSARY.md). Design playbook: [PRINCIPLES.md](PR
|
||||
verb** — a noun-first name fails review outright
|
||||
- `description:` ≤ 1024 chars; "Use when" triggers only if
|
||||
model-invoked (user-invoked descriptions are one human-facing line)
|
||||
- **every file ≤ 110 lines** — octobot's house cap on **sprawl**. If
|
||||
SKILL.md is too long, use **progressive disclosure**: push
|
||||
**reference** into **topic-named siblings** (`tests-r.md`,
|
||||
`mocking-r.md`, `feedback-loops-r.md`, `anti-patterns.md`,
|
||||
`examples.md`). One topic per file, named for the topic. `GLOSSARY.md`
|
||||
is the documented exception (flat dictionary; splitting breaks lookup).
|
||||
- **`SKILL.md` ≤ 110 lines** — octobot's house cap on **sprawl**. If it
|
||||
grows past that, use **progressive disclosure**: push **reference**
|
||||
into **topic-named siblings** (`tests-r.md`, `mocking-r.md`,
|
||||
`feedback-loops-r.md`, `anti-patterns.md`, `examples.md`). One topic
|
||||
per file, named for the topic. Siblings carry no hard cap — they load
|
||||
on demand — but keep one topic per file.
|
||||
- no time-sensitive content
|
||||
- every line passes the **no-op** test (PRINCIPLES.md §pruning)
|
||||
5. **Link** — Claude Code only scans one level deep under
|
||||
`~/.claude/skills/`, so create a per-skill symlink:
|
||||
`ln -s ~/code/octobot/skills/<category>/<name> ~/.claude/skills/<name>`
|
||||
6. **Commit** — from the octobot repo, following the `type(scope):
|
||||
imperative` format from [`../jj-atomic/SKILL.md`](../jj-atomic/SKILL.md):
|
||||
imperative` format from [`../commit-atomic-jj/SKILL.md`](../commit-atomic-jj/SKILL.md):
|
||||
`jj describe -m "feat(skills): add <name> skill"`
|
||||
(and `jj git push` if a remote exists).
|
||||
|
||||
@ -84,7 +83,7 @@ description: <what it does>. Use when <concrete trigger>.
|
||||
|
||||
## Output / done criteria
|
||||
- New `SKILL.md` exists at the right path, passes the checks in step 4.
|
||||
- Every file in the skill folder is ≤ 110 lines (GLOSSARY.md excepted).
|
||||
- `SKILL.md` is ≤ 110 lines.
|
||||
- User has been told the exact `jj describe` command to run.
|
||||
- Skill appears in the skill list on next Claude Code session start.
|
||||
|
||||
@ -94,11 +93,11 @@ description: <what it does>. Use when <concrete trigger>.
|
||||
- Never write a model-invoked skill whose description lacks "Use when".
|
||||
- Never finish without adding the skill's row to
|
||||
[`steer`](../../loop/steer/SKILL.md).
|
||||
- **Never let a file in the skill folder exceed 110 lines** (GLOSSARY.md
|
||||
excepted). Split before committing.
|
||||
- **Never let `SKILL.md` exceed 110 lines.** Split into topic-named
|
||||
siblings before committing.
|
||||
- Reject any line that fails the **no-op** test (PRINCIPLES.md §pruning).
|
||||
|
||||
## See also
|
||||
- [PRINCIPLES.md](PRINCIPLES.md) — the design playbook this skill applies.
|
||||
- [GLOSSARY.md](GLOSSARY.md) — definitions for every bold term above.
|
||||
- [`../jj-atomic/SKILL.md`](../jj-atomic/SKILL.md) — commit format.
|
||||
- [`../commit-atomic-jj/SKILL.md`](../commit-atomic-jj/SKILL.md) — commit format.
|
||||
|
||||
@ -25,7 +25,7 @@ conflicts are **first-class committed objects** — no mid-merge limbo, no
|
||||
commit descriptions; jj's conflict markers carry them — the
|
||||
`+++++++ <rev> "<desc>" (rebase destination)` header and the
|
||||
`%%%%%%% diff from:` / `to:` lines name both intents. Deeper intent:
|
||||
`jj diff -r` each side; check specs/PRs/issues if cited.
|
||||
`jj diff -r` each side; check blueprints/PRs/issues if cited.
|
||||
|
||||
4. **Resolve each hunk — preserve both intents.** Apply the *semantic
|
||||
change* of the rebased side onto the destination's evolved text, not
|
||||
@ -37,7 +37,7 @@ conflicts are **first-class committed objects** — no mid-merge limbo, no
|
||||
commit (or `jj new <conflicted>` first); edit markers out; then
|
||||
`jj squash --use-destination-message` — plain `jj squash` opens an
|
||||
editor and **hangs a headless session**
|
||||
([jj-atomic anti-patterns](../jj-atomic/anti-patterns.md)). Foreground
|
||||
([commit-atomic-jj anti-patterns](../commit-atomic-jj/anti-patterns.md)). Foreground
|
||||
only; backgrounded jj mutations race the snapshot.
|
||||
|
||||
6. **Verify.** Conflicted chains skip your checks while red — run the
|
||||
@ -69,7 +69,7 @@ conflicts are **first-class committed objects** — no mid-merge limbo, no
|
||||
or reject it explicitly.
|
||||
|
||||
## See also
|
||||
- [../jj-atomic/SKILL.md](../jj-atomic/SKILL.md) — sealing discipline
|
||||
- [../commit-atomic-jj/SKILL.md](../commit-atomic-jj/SKILL.md) — sealing discipline
|
||||
after resolution; foreground-only rule.
|
||||
- [../../engineering/review-angles/SKILL.md](../../engineering/review-angles/SKILL.md)
|
||||
— a resolved merge is a diff like any other; review it.
|
||||
|
||||
@ -1,16 +1,16 @@
|
||||
---
|
||||
name: cavecrew-octobot
|
||||
name: spawn-cavecrew
|
||||
description: >
|
||||
How to actually invoke the caveman cavecrew subagents (investigator / builder
|
||||
/ reviewer) without the "agent type not found" error, plus octobot defaults
|
||||
(review the current jj diff, commit edits via jj-atomic). The plugin's
|
||||
(review the current jj diff, commit edits via commit-atomic-jj). The plugin's
|
||||
`cavecrew` skill covers WHEN to delegate; this covers HOW to call them in
|
||||
octobot. Use when the user says "use cavecrew", "review my diff", "cavecrew
|
||||
review", "spawn investigator/builder/reviewer", or an inline call to a
|
||||
cavecrew agent failed with an unknown-agent-type error.
|
||||
---
|
||||
|
||||
# cavecrew-octobot
|
||||
# spawn-cavecrew
|
||||
|
||||
## When to use
|
||||
- User says "use cavecrew", "cavecrew review", "review my diff/branch".
|
||||
@ -59,9 +59,9 @@ fan out concurrently.
|
||||
## The handoff gate (mutating subagents)
|
||||
|
||||
A **builder** (or any subagent that edits files) spawns only with a
|
||||
written brief: goal, spec/OKF references by path (`OKF/specs/NNN`, the
|
||||
written brief: goal, blueprint/OKF references by path (`OKF/blueprints/NNN`, the
|
||||
pages it needs), constraints, and the **verify command** for its slice.
|
||||
A locked spec is the default brief ([implement](../../loop/implement/SKILL.md)).
|
||||
A locked blueprint is the default brief ([weave](../../loop/weave/SKILL.md)).
|
||||
Read-only lookups (**investigator**) are exempt. No brief, no builder.
|
||||
|
||||
## octobot conventions
|
||||
@ -69,7 +69,7 @@ Read-only lookups (**investigator**) are exempt. No brief, no builder.
|
||||
(uncommitted) or `jj diff -r @-` (last change), hand the paths + the contracts
|
||||
the code must honor to `caveman:cavecrew-reviewer`. Relay the findings — the
|
||||
subagent result is not shown to the user.
|
||||
- **After a `cavecrew-builder` edit**, commit via the `jj-atomic` skill
|
||||
- **After a `cavecrew-builder` edit**, commit via the `commit-atomic-jj` skill
|
||||
(`type(scope): imperative`), one concern per change. The builder edits; it
|
||||
does not commit.
|
||||
- **Don't** ask the reviewer for architecture opinions — it returns findings
|
||||
@ -83,4 +83,4 @@ Read-only lookups (**investigator**) are exempt. No brief, no builder.
|
||||
- [`../../engineering/review-angles/SKILL.md`](../../engineering/review-angles/SKILL.md) — *correctness*.
|
||||
- [`../../engineering/nuke-review/SKILL.md`](../../engineering/nuke-review/SKILL.md) — *structural quality* (code-judo).
|
||||
- [`../../engineering/winnow/SKILL.md`](../../engineering/winnow/SKILL.md) — *mechanical debloat*.
|
||||
- [`../../engineering/review-blueprint/SKILL.md`](../../engineering/review-blueprint/SKILL.md) — *spec fidelity* (diff vs OKF/specs/NNN).
|
||||
- [`../../engineering/review-blueprint/SKILL.md`](../../engineering/review-blueprint/SKILL.md) — *blueprint fidelity* (diff vs OKF/blueprints/NNN).
|
||||
@ -1,13 +1,13 @@
|
||||
---
|
||||
name: caveman
|
||||
name: talk-caveman
|
||||
description: Terse mode for the rest of the session: no preamble, no summaries, artifact + one line.
|
||||
disable-model-invocation: true
|
||||
---
|
||||
|
||||
# caveman
|
||||
# talk-caveman
|
||||
|
||||
## When to use
|
||||
- User says "caveman", "/caveman", "terse mode", "shut up and code".
|
||||
- User says "talk caveman", "/talk-caveman", "terse mode", "shut up and code".
|
||||
- User explicitly asks for minimum-token / no-preamble replies.
|
||||
|
||||
## Rules (apply for the rest of the session until user cancels)
|
||||
@ -1,28 +1,28 @@
|
||||
---
|
||||
name: handoff
|
||||
name: write-handoff
|
||||
description: Structured handoff for a fresh session or a subagent brief; references artifacts, redacts secrets.
|
||||
disable-model-invocation: true
|
||||
---
|
||||
|
||||
# handoff
|
||||
# write-handoff
|
||||
|
||||
One format, two exits: a **file** (`./HANDOFF.md`, or the OS temp dir on
|
||||
request) for the next session or a human; a **prompt payload** for a
|
||||
subagent spawn (the handoff-gate brief —
|
||||
[cavecrew-octobot](../cavecrew-octobot/SKILL.md)).
|
||||
[spawn-cavecrew](../spawn-cavecrew/SKILL.md)).
|
||||
|
||||
## When to use
|
||||
- User says "handoff", "/handoff", "wrap up", "prep a handoff doc".
|
||||
- User says "write handoff", "/write-handoff", "wrap up", "prep a handoff doc".
|
||||
- Session ending / context near full on unfinished work.
|
||||
- A mutating subagent needs a brief and no locked spec covers the work
|
||||
(a locked `OKF/specs/NNN` **is** the brief — don't duplicate it;
|
||||
see [implement](../../loop/implement/SKILL.md)).
|
||||
- A mutating subagent needs a brief and no locked blueprint covers the work
|
||||
(a locked `OKF/blueprints/NNN` **is** the brief — don't duplicate it;
|
||||
see [weave](../../loop/weave/SKILL.md)).
|
||||
|
||||
## Rules (both exits)
|
||||
- **Reference, don't duplicate.** Anything already captured in an
|
||||
artifact — OKF pages, `OKF/specs/NNN`, a ferry `MAP.md`, ADRs, jj
|
||||
artifact — OKF pages, `OKF/blueprints/NNN`, a ferry `MAP.md`, ADRs, jj
|
||||
change-ids, diffs — is cited by path/id, never restated. Ferried work:
|
||||
point at `OKF/specs/ferry-<topic>/MAP.md` and stop.
|
||||
point at `OKF/ferries/<topic>/MAP.md` and stop.
|
||||
- **Redact secrets.** No API keys, tokens, passwords, or PII — name
|
||||
where a credential lives (`.env`, secret store), never its value.
|
||||
- **Concrete or nothing.** Paths with line numbers; one unambiguous
|
||||
@ -45,7 +45,7 @@ subagent spawn (the handoff-gate brief —
|
||||
<what we are ultimately trying to achieve>
|
||||
|
||||
## Status
|
||||
<done / in progress / blocked — cite jj change-ids and spec numbers>
|
||||
<done / in progress / blocked — cite jj change-ids and blueprint numbers>
|
||||
|
||||
## Decisions made this session
|
||||
- <decision> — <one-line reason> (or: see OKF/adr/NNNN, ferry D-n)
|
||||
@ -57,7 +57,7 @@ subagent spawn (the handoff-gate brief —
|
||||
<the very first action the next session should take>
|
||||
|
||||
## Key references
|
||||
- `OKF/specs/NNN` — <why it matters>
|
||||
- `OKF/blueprints/NNN` — <why it matters>
|
||||
- `path/to/file.ext:42` — <why>
|
||||
|
||||
## Suggested skills
|
||||
@ -74,5 +74,5 @@ subagent spawn (the handoff-gate brief —
|
||||
## See also
|
||||
- [../../loop/ferry/SKILL.md](../../loop/ferry/SKILL.md) — multi-session
|
||||
*design* work rides the ferry, not the handoff.
|
||||
- [../cavecrew-octobot/SKILL.md](../cavecrew-octobot/SKILL.md) — the
|
||||
- [../spawn-cavecrew/SKILL.md](../spawn-cavecrew/SKILL.md) — the
|
||||
handoff gate this format serves.
|
||||
@ -40,7 +40,7 @@ disable-model-invocation: true
|
||||
4. **Stop. Do not run `jj describe`.** Tell the user:
|
||||
> "Review with `jj diff` (or `git status` + `git diff`). Then run
|
||||
> `just build-dev` to verify the toolchain. Describe the change with
|
||||
> [`/jj-atomic`](../../productivity/jj-atomic/SKILL.md) when satisfied."
|
||||
> [`/commit-atomic-jj`](../../productivity/commit-atomic-jj/SKILL.md) when satisfied."
|
||||
5. **Suggest** running [`/write-readme-py`](../../engineering/write-readme-py/SKILL.md)
|
||||
after the first successful build to generate the README.
|
||||
|
||||
@ -63,7 +63,7 @@ disable-model-invocation: true
|
||||
## See also
|
||||
- [`../containerize-project/SKILL.md`](../containerize-project/SKILL.md)
|
||||
— owns the Docker templates and the three-stage pattern rationale.
|
||||
- [`../../engineering/dev-python/SKILL.md`](../../engineering/dev-python/SKILL.md)
|
||||
- [`../../engineering/develop-python/SKILL.md`](../../engineering/develop-python/SKILL.md)
|
||||
— workflow that this scaffold sets up.
|
||||
- [`../../engineering/write-readme-py/SKILL.md`](../../engineering/write-readme-py/SKILL.md)
|
||||
— README generator that reads the scaffolded `pyproject.toml` and
|
||||
|
||||
@ -38,7 +38,7 @@ disable-model-invocation: true
|
||||
> "Review with `jj diff`. Then `just build-dev` → `just up` → `R -e
|
||||
> 'renv::init()'` to lock dependencies. Then `just run` to execute
|
||||
> the pipeline. Describe with
|
||||
> [`/jj-atomic`](../../productivity/jj-atomic/SKILL.md) when satisfied."
|
||||
> [`/commit-atomic-jj`](../../productivity/commit-atomic-jj/SKILL.md) when satisfied."
|
||||
|
||||
## Placeholders used by templates
|
||||
- `<project-name>` — snake_case project name.
|
||||
@ -50,16 +50,16 @@ disable-model-invocation: true
|
||||
- **Never** invoke `renv::init()` for the user.
|
||||
- **`R/functions/` and `R/pipeline/` follow `box::use` rules** —
|
||||
no `library()`, no `source()`. See
|
||||
[`../../engineering/r-style/box.md`](../../engineering/r-style/box.md).
|
||||
[`../../engineering/style-r/box.md`](../../engineering/style-r/box.md).
|
||||
- **Skeleton `_targets.R` has two demo targets** (`raw`, `processed`)
|
||||
showing the box-imported pipeline pattern. Replace, don't extend.
|
||||
|
||||
## See also
|
||||
- [`../containerize-project/SKILL.md`](../containerize-project/SKILL.md)
|
||||
— owns the Docker templates and the three-stage pattern rationale.
|
||||
- [`../../engineering/dev-r/SKILL.md`](../../engineering/dev-r/SKILL.md)
|
||||
- [`../../engineering/develop-r/SKILL.md`](../../engineering/develop-r/SKILL.md)
|
||||
— workflow auto-detects `_targets.R` → R-analysis loop.
|
||||
- [`../../engineering/r-style/SKILL.md`](../../engineering/r-style/SKILL.md)
|
||||
- [`../../engineering/style-r/SKILL.md`](../../engineering/style-r/SKILL.md)
|
||||
— every function in `R/functions/` and `R/pipeline/` follows these.
|
||||
- [`../../engineering/bdd/SKILL.md`](../../engineering/bdd/SKILL.md)
|
||||
— `tests/testthat/` opens with the standard `box::use(testthat[...])`
|
||||
|
||||
@ -38,7 +38,7 @@ disable-model-invocation: true
|
||||
> "Review with `jj diff`. Then run `just build-dev` → `just up` → `R
|
||||
> -e 'renv::init()'` to lock dependencies; then `just document` and
|
||||
> `just check`. Describe the change with
|
||||
> [`/jj-atomic`](../../productivity/jj-atomic/SKILL.md) when satisfied."
|
||||
> [`/commit-atomic-jj`](../../productivity/commit-atomic-jj/SKILL.md) when satisfied."
|
||||
5. **Suggest** `/write-readme-py`'s R counterpart once it exists (not
|
||||
yet — see octobot/README.md *Out of scope*).
|
||||
|
||||
@ -62,7 +62,7 @@ disable-model-invocation: true
|
||||
## See also
|
||||
- [`../containerize-project/SKILL.md`](../containerize-project/SKILL.md)
|
||||
— owns the Docker templates and the three-stage pattern rationale.
|
||||
- [`../../engineering/dev-r/SKILL.md`](../../engineering/dev-r/SKILL.md)
|
||||
- [`../../engineering/develop-r/SKILL.md`](../../engineering/develop-r/SKILL.md)
|
||||
— workflow auto-detects DESCRIPTION → R-package loop.
|
||||
- [`../../engineering/r-style/SKILL.md`](../../engineering/r-style/SKILL.md)
|
||||
- [`../../engineering/style-r/SKILL.md`](../../engineering/style-r/SKILL.md)
|
||||
— coding standards every function in `R/` must follow.
|
||||
|
||||
@ -29,10 +29,12 @@ disable-model-invocation: true
|
||||
Docker section.
|
||||
- `justfile` exists without a `build-dev` recipe → append the
|
||||
Docker section.
|
||||
- `build-dev` already present → leave the justfile alone.
|
||||
- `build-dev` already present → leave the justfile alone, but read the
|
||||
recipe and confirm it actually builds the dev image; a same-named
|
||||
recipe with different semantics → surface it, don't assume.
|
||||
4. **Stop. Do not run `jj describe`.** Tell the user:
|
||||
> "Review with `jj diff`. Then `just build-dev` to verify the
|
||||
> toolchain. Describe with `/jj-atomic` when satisfied."
|
||||
> toolchain. Describe with `/commit-atomic-jj` when satisfied."
|
||||
|
||||
## Placeholders
|
||||
- python: `<project-name>` (kebab-case), `<package_name>` (snake_case).
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user