refactor(skills): convert cross-skill links to /skill-name references

- implements blueprint 028
- rewrite 290 cross-skill markdown links across 59 files to unchecked
  backtick-wrapped /skill-name prose (R-023), so skill content resolves
  under any install depth — symlinked, flat-copied, or whole-tree
- add skills/productivity/conjure-a-skill/scripts/skill-ref-check —
  validates every /skill-name mention resolves to a real skill folder,
  the replacement coverage link-check lost on these references
- add scripts/link-skills.sh, mirroring mattpocock/skills, symlinking
  every skill into ~/.claude/skills and ~/.agents/skills
- docs(readme): point Install at link-skills.sh and npx skills@latest
  add for non-Claude-Code harnesses
This commit is contained in:
Łukasz Boryń 2026-09-23 10:54:22 +02:00
parent 8d310c6874
commit 277ec801de
63 changed files with 422 additions and 310 deletions

View File

@ -98,7 +98,9 @@ B=skills/loop/chart/SKILL.md
printf '\nSee `/skill-that-does-not-exist`.\n' >> $B printf '\nSee `/skill-that-does-not-exist`.\n' >> $B
skills/productivity/conjure-a-skill/scripts/skill-ref-check skills/ | grep -q 'skill-that-does-not-exist' \ skills/productivity/conjure-a-skill/scripts/skill-ref-check skills/ | grep -q 'skill-that-does-not-exist' \
&& echo "OK typo caught" || echo "FAIL typo caught" && echo "OK typo caught" || echo "FAIL typo caught"
jj restore $B # git: git checkout -- $B head -n -2 $B > $B.tmp && mv $B.tmp $B # undo exactly the 2 appended lines —
# `jj restore`/`git checkout --` would
# discard any other uncommitted work on $B too
# 4. link-skills.sh symlinks resolve into this repo # 4. link-skills.sh symlinks resolve into this repo
scripts/link-skills.sh scripts/link-skills.sh

View File

@ -25,19 +25,23 @@ Modeled on [mattpocock/skills](https://github.com/mattpocock/skills).
## Install ## Install
**Claude Code, or any Agent Skills-compatible harness on this machine.**
Claude Code discovers skills at `~/.claude/skills/<name>/SKILL.md` (flat, Claude Code discovers skills at `~/.claude/skills/<name>/SKILL.md` (flat,
one level deep — category subfolders are not scanned). Symlink each skill one level deep — category subfolders are not scanned); Codex and similar
individually: harnesses read `~/.agents/skills/<name>/`. Clone this repo, then run:
```bash ```bash
mkdir -p ~/.claude/skills scripts/link-skills.sh
for s in ~/code/octobot/skills/*/*/; do
ln -s "${s%/}" "$HOME/.claude/skills/$(basename "$s")"
done
``` ```
Open any project, start Claude Code, and the skills below appear in the It symlinks every skill into both directories, so a `git pull` (or `jj
skill list. git fetch`) is all that's needed to keep them up to date. Open any
project, start your agent, and the skills below appear in the skill
list.
**Any other harness** (Copilot, or anywhere `~/.claude/skills` doesn't
apply): `npx skills@latest add lukabor/octobot` copies the skills you
pick into your project as ordinary files.
## Skills ## Skills

52
scripts/link-skills.sh Executable file
View File

@ -0,0 +1,52 @@
#!/usr/bin/env bash
set -euo pipefail
# Links every skill in this repo into the local skill directories used by
# each agent harness:
# - ~/.claude/skills: Claude Code
# - ~/.agents/skills: Codex and other Agent Skills-compatible harnesses
# Each entry is a symlink into this repo, so a `git pull` (or `jj git
# fetch`) is all that's needed to keep installed skills up to date.
# Mirrors mattpocock/skills' scripts/link-skills.sh.
REPO="$(cd "$(dirname "$0")/.." && pwd)"
DESTS=("$HOME/.claude/skills" "$HOME/.agents/skills")
names=()
srcs=()
while IFS= read -r -d '' skill_md; do
src="$(dirname "$skill_md")"
names+=("$(basename "$src")")
srcs+=("$src")
done < <(find "$REPO/skills" -name SKILL.md -print0)
for DEST in "${DESTS[@]}"; do
# If $DEST is a symlink that resolves into this repo, we'd end up writing
# the per-skill symlinks back into the repo's own skills/ tree. Detect
# and bail out instead of polluting the working copy.
if [ -L "$DEST" ]; then
resolved="$(readlink -f "$DEST")"
case "$resolved" in
"$REPO"|"$REPO"/*)
echo "error: $DEST is a symlink into this repo ($resolved)." >&2
echo "Remove it (rm \"$DEST\") and re-run; the script will recreate it as a real dir." >&2
exit 1
;;
esac
fi
mkdir -p "$DEST"
for i in "${!names[@]}"; do
name="${names[$i]}"
src="${srcs[$i]}"
target="$DEST/$name"
if [ -e "$target" ] && [ ! -L "$target" ]; then
rm -rf "$target"
fi
ln -sfn "$src" "$target"
echo "linked $name -> $src ($DEST)"
done
done

View File

@ -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. change, side effect) — pure refactors are out of scope.
## Vocabulary ## Vocabulary
Before step 1, anchor on [../design-codebase/SKILL.md](../design-codebase/SKILL.md) — Before step 1, anchor on `/design-codebase` —
module, interface, seam, adapter, depth, leverage, locality. module, interface, seam, adapter, depth, leverage, locality.
## Language references ## 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 - Write down the **seams under test** and confirm them with the user
before any test exists — no test at an unconfirmed seam. Up-front before any test exists — no test at an unconfirmed seam. Up-front
agreement puts effort on critical paths, not every edge. Inside agreement puts effort on critical paths, not every edge. Inside
[rig](../../loop/rig/SKILL.md), the blueprint's *Seams touched* `/rig`, the blueprint's *Seams touched*
pre-answers this — reuse it. pre-answers this — reuse it.
### 1. Red — one scenario at a time ### 1. Red — one scenario at a time
@ -89,11 +89,11 @@ A green suite is a *claim*, not a proof: it never exercised thread death,
caller ordering, stale data, or the shape the real producer emits (see 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 [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 producer emits"*). After the loop is green, **budget a review pass** across
four axes: correctness ([`../review-angles/SKILL.md`](../review-angles/SKILL.md)), four axes: correctness (`/review-angles`),
blueprint fidelity ([`../review-blueprint/SKILL.md`](../review-blueprint/SKILL.md)), blueprint fidelity (`/review-blueprint`),
structural quality ([`../nuke-review/SKILL.md`](../nuke-review/SKILL.md)), structural quality (`/nuke-review`),
mechanical debloat ([`../winnow/SKILL.md`](../winnow/SKILL.md)). Refute mechanical debloat (`/winnow`). Refute
each finding ([refute.md](../review-angles/refute.md)); fix red-test-first. each finding (`/review-angles`'s `refute.md`); fix red-test-first.
## Guardrails ## Guardrails
- **Never** skip red, write >1 failing test at once, or refactor while red. - **Never** skip red, write >1 failing test at once, or refactor while red.
@ -105,6 +105,6 @@ See [anti-patterns.md](anti-patterns.md) — horizontal slicing, passing on
first run, tautological tests, refactoring while red, dropped scenarios. first run, tautological tests, refactoring while red, dropped scenarios.
## See also ## See also
- [../diagnose/SKILL.md](../diagnose/SKILL.md) — chasing an existing bug? - `/diagnose` — chasing an existing bug?
Run `/diagnose` first; phase 5 hands back here for the regression test. Run `/diagnose` first; phase 5 hands back here for the regression test.
- [../model-domain/SKILL.md](../model-domain/SKILL.md) — run before step 0 so scenarios use canonical `CONTEXT.md` vocabulary. - `/model-domain` — run before step 0 so scenarios use canonical `CONTEXT.md` vocabulary.

View File

@ -1,6 +1,6 @@
# Deep modules in R # Deep modules in R
Vocabulary and principles in [`../design-codebase/SKILL.md`](../design-codebase/SKILL.md). Vocabulary and principles in `/design-codebase`.
This file shows what deep / shallow look like with `box::use` — the R lever This file shows what deep / shallow look like with `box::use` — the R lever
for controlling the interface. for controlling the interface.

View File

@ -1,6 +1,6 @@
# Interface design for testability (Python) # Interface design for testability (Python)
Vocabulary lives in [`../design-codebase/SKILL.md`](../design-codebase/SKILL.md) — Vocabulary lives in `/design-codebase` —
module, interface, seam, adapter, depth. This file is the Python-flavored leaf. 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; Rules to apply before writing the test, not after. A deep module is the goal;

View File

@ -1,13 +1,13 @@
# Interface design for testability (R) # Interface design for testability (R)
Vocabulary lives in [`../design-codebase/SKILL.md`](../design-codebase/SKILL.md) — Vocabulary lives in `/design-codebase` —
module, interface, seam, adapter. This file is the R-flavored leaf. module, interface, seam, adapter. This file is the R-flavored leaf.
Three rules. Apply them before writing the test, not after. Three rules. Apply them before writing the test, not after.
> Snippets below show only the function bodies; the `box::use(...)` > Snippets below show only the function bodies; the `box::use(...)`
> prologue is omitted for clarity. Real files start with one — see > prologue is omitted for clarity. Real files start with one — see
> [`../style-r/box.md`](../style-r/box.md). > `/style-r`.
## 1. Dependency injection — pass clients, don't construct them ## 1. Dependency injection — pass clients, don't construct them

View File

@ -4,7 +4,7 @@
> Snippets below show only the function bodies; the `box::use(...)` > Snippets below show only the function bodies; the `box::use(...)`
> prologue is omitted for clarity. Real files start with one — see > prologue is omitted for clarity. Real files start with one — see
> [`../style-r/box.md`](../style-r/box.md). > `/style-r`.
## Seams you may mock ## Seams you may mock

View File

@ -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 Merge them. A module that exports eight helpers users always call in the
same order? Deepen — collapse them behind one entry point. See same order? Deepen — collapse them behind one entry point. See
[`deep-modules-r.md`](deep-modules-r.md) for the R shape, and [`deep-modules-r.md`](deep-modules-r.md) for the R shape, and
[`../design-codebase/deepening.md`](../design-codebase/deepening.md) for the `/design-codebase` for the
dependency-aware strategy (replace, don't layer — old tests on the shallow dependency-aware strategy (replace, don't layer — old tests on the shallow
modules become waste once the deepened interface has its own tests). modules become waste once the deepened interface has its own tests).

View File

@ -26,8 +26,8 @@ approach you're rejecting, surface tradeoffs. Push back when warranted; if
something is unclear, stop and ask. See something is unclear, stop and ask. See
[`../../../CLAUDE.md`](../../../CLAUDE.md) for the full version. If the [`../../../CLAUDE.md`](../../../CLAUDE.md) for the full version. If the
task is ambiguous, hand off to task is ambiguous, hand off to
[`/grill-me`](../../productivity/grill-me/SKILL.md) or `/grill-me` or
[`/grill-with-docs`](../grill-with-docs/SKILL.md) first. `/grill-with-docs` first.
### 1. Implement ### 1. Implement
- Write code under `src/<package>/`. - Write code under `src/<package>/`.
@ -51,7 +51,7 @@ Fix type errors. Don't suppress with `# type: ignore` unless genuinely
unavoidable — explain inline why. unavoidable — explain inline why.
### 4. Test (TDD-BDD) ### 4. Test (TDD-BDD)
Hand to [`/bdd`](../bdd/SKILL.md), which loops red→green→refactor Hand to `/bdd`, which loops red→green→refactor
**one scenario at a time** — never write all the tests upfront (that's the **one scenario at a time** — never write all the tests upfront (that's the
horizontal-slicing anti-pattern called out in bdd itself). When every horizontal-slicing anti-pattern called out in bdd itself). When every
scenario from step 0 is green: scenario from step 0 is green:
@ -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. → add as the next scenario, don't skip.
### 5. Commit ### 5. Commit
Hand to [`/commit-atomic-jj`](../../productivity/commit-atomic-jj/SKILL.md). The fix Hand to `/commit-atomic-jj`. The fix
+ the regression test land in the **same** atomic change. + the regression test land in the **same** atomic change.
## Reference: justfile commands ## Reference: justfile commands
@ -80,13 +80,13 @@ Hand to [`/commit-atomic-jj`](../../productivity/commit-atomic-jj/SKILL.md). The
| `just fix-and-check` | lint-fix + fmt + typecheck + test | | `just fix-and-check` | lint-fix + fmt + typecheck + test |
## See also ## See also
- [`../bdd/SKILL.md`](../bdd/SKILL.md) — Given/When/Then loop; - `/bdd` — Given/When/Then loop;
Python siblings `tests-py.md`, `mocking-py.md`, `interface-design-py.md`, Python siblings `tests-py.md`, `mocking-py.md`, `interface-design-py.md`,
`docstrings-py.md`. `docstrings-py.md`.
- [`../diagnose/SKILL.md`](../diagnose/SKILL.md) — six-phase bug hunt. - `/diagnose` — six-phase bug hunt.
- [`../../productivity/commit-atomic-jj/SKILL.md`](../../productivity/commit-atomic-jj/SKILL.md) - `/commit-atomic-jj`
— commit discipline. — commit discipline.
- [`../../scaffold/build-py-project/SKILL.md`](../../scaffold/build-py-project/SKILL.md) - `/build-py-project`
— sets up the project this workflow assumes. — sets up the project this workflow assumes.
- [`write-readme-py`](../write-readme-py/SKILL.md) — README from - `/write-readme-py` — README from
`pyproject.toml` + `justfile`. `pyproject.toml` + `justfile`.

View File

@ -13,9 +13,9 @@ Workflow for R repos. Detects project type from filesystem markers:
| `DESCRIPTION` only | R package | [`package-loop.md`](package-loop.md) | | `DESCRIPTION` only | R package | [`package-loop.md`](package-loop.md) |
| `_targets.R` only | R analysis | [`analysis-loop.md`](analysis-loop.md) | | `_targets.R` only | R analysis | [`analysis-loop.md`](analysis-loop.md) |
| both | ambiguous | ask the user | | 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) | | neither | refuse | suggest `/build-r-package` or `/build-r-analysis` |
Apply [`/style-r`](../style-r/SKILL.md) at every implementation step. Apply `/style-r` at every implementation step.
## When NOT to use ## When NOT to use
- Single-task work: bug fix → `/diagnose` + `/bdd` directly. - Single-task work: bug fix → `/diagnose` + `/bdd` directly.
@ -31,8 +31,8 @@ something is unclear, stop and ask. See
[`../../../CLAUDE.md`](../../../CLAUDE.md) for the full version. [`../../../CLAUDE.md`](../../../CLAUDE.md) for the full version.
If the task is ambiguous, hand off to If the task is ambiguous, hand off to
[`/grill-me`](../../productivity/grill-me/SKILL.md) (no codebase needed) `/grill-me` (no codebase needed)
or [`/grill-with-docs`](../grill-with-docs/SKILL.md) (anchors to or `/grill-with-docs` (anchors to
`CONTEXT.md`) before entering the loop. `CONTEXT.md`) before entering the loop.
## Then enter the appropriate loop ## Then enter the appropriate loop
@ -43,14 +43,14 @@ or [`/grill-with-docs`](../grill-with-docs/SKILL.md) (anchors to
(lint → style → test → run pipeline → render → commit) (lint → style → test → run pipeline → render → commit)
## See also ## See also
- [`../bdd/SKILL.md`](../bdd/SKILL.md) and its R siblings - `/bdd` and its R siblings
(`tests-r.md`, `interface-design-r.md`, `mocking-r.md`, (`tests-r.md`, `interface-design-r.md`, `mocking-r.md`,
`deep-modules-r.md`, `refactoring-r.md`, `anti-patterns.md`). `deep-modules-r.md`, `refactoring-r.md`, `anti-patterns.md`).
- [`../diagnose/SKILL.md`](../diagnose/SKILL.md) — six-phase bug hunt - `/diagnose` — six-phase bug hunt
with R-flavored siblings. with R-flavored siblings.
- [`../style-r/SKILL.md`](../style-r/SKILL.md) — coding standards. - `/style-r` — coding standards.
- [`../../productivity/commit-atomic-jj/SKILL.md`](../../productivity/commit-atomic-jj/SKILL.md). - `/commit-atomic-jj`.
- [`../../scaffold/build-r-package/SKILL.md`](../../scaffold/build-r-package/SKILL.md) - `/build-r-package`
and and
[`../../scaffold/build-r-analysis/SKILL.md`](../../scaffold/build-r-analysis/SKILL.md) `/build-r-analysis`
— set up the projects this workflow assumes. — set up the projects this workflow assumes.

View File

@ -1,13 +1,13 @@
# develop-r — R-analysis loop # develop-r — R-analysis loop
Detected by the presence of `_targets.R` at the repo root. Apply Detected by the presence of `_targets.R` at the repo root. Apply
[`../style-r/SKILL.md`](../style-r/SKILL.md) at every implementation step. `/style-r` at every implementation step.
## 1. Implement ## 1. Implement
- Functions in `R/functions/` as box modules. - Functions in `R/functions/` as box modules.
- Pipeline steps in `R/pipeline/` as box modules. - Pipeline steps in `R/pipeline/` as box modules.
- All code under [`/style-r`](../style-r/SKILL.md). - All code under `/style-r`.
## 2. Lint & style ## 2. Lint & style
@ -18,9 +18,9 @@ just style-check # fix with: just style
## 3. Test (TDD-BDD) ## 3. Test (TDD-BDD)
Hand to [`/bdd`](../bdd/SKILL.md), which loops red→green→refactor Hand to `/bdd`, which loops red→green→refactor
**one scenario at a time** — never write all the tests upfront (see **one scenario at a time** — never write all the tests upfront (see
[`../bdd/anti-patterns.md`](../bdd/anti-patterns.md)). Target `/bdd`). Target
`R/functions/`. Then: `R/functions/`. Then:
```bash ```bash
@ -43,4 +43,4 @@ just render # quarto render reports/
## 6. Commit ## 6. Commit
Hand to [`/commit-atomic-jj`](../../productivity/commit-atomic-jj/SKILL.md). Hand to `/commit-atomic-jj`.

View File

@ -1,11 +1,11 @@
# develop-r — R-package loop # develop-r — R-package loop
Detected by the presence of `DESCRIPTION` at the repo root. Apply Detected by the presence of `DESCRIPTION` at the repo root. Apply
[`../style-r/SKILL.md`](../style-r/SKILL.md) at every implementation step. `/style-r` at every implementation step.
## 1. Implement ## 1. Implement
- Code in `R/`, following [`/style-r`](../style-r/SKILL.md) (box, native - Code in `R/`, following `/style-r` (box, native
pipe, `\(x)`, snake_case). pipe, `\(x)`, snake_case).
- Add/update roxygen2 docs on every exported function. - Add/update roxygen2 docs on every exported function.
@ -28,10 +28,10 @@ just style
## 4. Test (TDD-BDD) ## 4. Test (TDD-BDD)
Hand to [`/bdd`](../bdd/SKILL.md), which loops red→green→refactor Hand to `/bdd`, which loops red→green→refactor
**one scenario at a time** — never write all the tests upfront (see **one scenario at a time** — never write all the tests upfront (see
[`../bdd/anti-patterns.md`](../bdd/anti-patterns.md)). Test `/bdd`). Test
prologue follows [`../bdd/tests-r.md`](../bdd/tests-r.md). Run: prologue follows `/bdd`. Run:
```bash ```bash
just test # devtools::test() just test # devtools::test()
@ -47,4 +47,4 @@ All notes, warnings, and errors resolved before commit.
## 6. Commit ## 6. Commit
Hand to [`/commit-atomic-jj`](../../productivity/commit-atomic-jj/SKILL.md). Hand to `/commit-atomic-jj`.

View File

@ -63,7 +63,7 @@ Prefer interactive inspection over logging —
cleanup is `grep`-able. cleanup is `grep`-able.
### 5. Fix + regression test ### 5. Fix + regression test
Hand off to [bdd](../bdd/SKILL.md): Hand off to `/bdd`:
- State the bug as one Given/When/Then scenario. - State the bug as one Given/When/Then scenario.
- Translate into a failing test at the **public** interface - Translate into a failing test at the **public** interface
(see `../bdd/mocking-r.md` — do not reach past it). (see `../bdd/mocking-r.md` — do not reach past it).
@ -72,7 +72,7 @@ Hand off to [bdd](../bdd/SKILL.md):
If no correct seam exists, **that is itself the finding** — the codebase If no correct seam exists, **that is itself the finding** — the codebase
architecture is preventing the bug from being locked down. File a architecture is preventing the bug from being locked down. File a
[refactoring-r.md](../bdd/refactoring-r.md) candidate; don't write a test `/bdd`'s `refactoring-r.md` candidate; don't write a test
that lies about the bug pattern. that lies about the bug pattern.
### 6. Cleanup + post-mortem ### 6. Cleanup + post-mortem
@ -83,7 +83,7 @@ Then ask: **what would have prevented this bug?**
(re-render the book, re-run the pipeline end-to-end). (re-render the book, re-run the pipeline end-to-end).
- Commit message names the confirmed hypothesis ("H1: `data.table` - Commit message names the confirmed hypothesis ("H1: `data.table`
reference semantics in `assemble_expr`") so future readers see the *why*. reference semantics in `assemble_expr`") so future readers see the *why*.
- File architectural follow-ups to [refactoring-r.md](../bdd/refactoring-r.md); don't auto-fix in the same commit. - File architectural follow-ups to `/bdd`'s `refactoring-r.md`; don't auto-fix in the same commit.
## Guardrails ## Guardrails
- **Never** test more than one hypothesis at a time — you lose the signal. - **Never** test more than one hypothesis at a time — you lose the signal.
@ -92,9 +92,9 @@ Then ask: **what would have prevented this bug?**
- **Never** ship instrumentation. Cleanup is a phase, not an afterthought. - **Never** ship instrumentation. Cleanup is a phase, not an afterthought.
## See also ## See also
- [../bdd/SKILL.md](../bdd/SKILL.md) — phase 5 is a bdd cycle. - `/bdd` — phase 5 is a bdd cycle.
- [../bdd/refactoring-r.md](../bdd/refactoring-r.md) — file - `/bdd` — file
architectural follow-ups here. architectural follow-ups here.
- [../design-codebase/SKILL.md](../design-codebase/SKILL.md) — definition of **seam** (Phase 5's "no correct seam" finding). - `/design-codebase` — definition of **seam** (Phase 5's "no correct seam" finding).
- [../model-domain/SKILL.md](../model-domain/SKILL.md) — phase 3 - `/model-domain` — phase 3
hypothesis names should use canonical terms from `CONTEXT.md`. hypothesis names should use canonical terms from `CONTEXT.md`.

View File

@ -6,7 +6,7 @@ idioms: `pytest path::test -x -q` for a single test; `-k` for substring,
Determinism: `np.random.default_rng(42)` (never global `np.random`), Determinism: `np.random.default_rng(42)` (never global `np.random`),
`monkeypatch.setenv("PYTHONHASHSEED", "0")`, `tmp_path` for filesystem `monkeypatch.setenv("PYTHONHASHSEED", "0")`, `tmp_path` for filesystem
isolation; autouse network-kill fixture in isolation; autouse network-kill fixture in
[../bdd/mocking-py.md](../bdd/mocking-py.md). `/bdd`.
--- ---
@ -40,7 +40,7 @@ Test passes. H1 confirmed.
**Phase 5 — regression test** = the idempotence test. Move the copy from **Phase 5 — regression test** = the idempotence test. Move the copy from
the diagnostic patch into the real fix at the contract seam (return a the diagnostic patch into the real fix at the contract seam (return a
fresh frame, don't mutate the argument — see fresh frame, don't mutate the argument — see
[../bdd/interface-design-py.md](../bdd/interface-design-py.md)). `/bdd`).
**Phase 6 — cleanup.** `grep -rn "### DIAGNOSE-" .` → zero hits. Commit: **Phase 6 — cleanup.** `grep -rn "### DIAGNOSE-" .` → zero hits. Commit:
*"fix(assemble_expr): return a fresh frame — H1: pandas view aliasing *"fix(assemble_expr): return a fresh frame — H1: pandas view aliasing
@ -76,4 +76,4 @@ time).
**Phase 6 — cleanup.** Nothing to revert. Commit: *"test(textmining): seed **Phase 6 — cleanup.** Nothing to revert. Commit: *"test(textmining): seed
RNG to stabilise tie-break — H1 confirmed"*. File a follow-up: production RNG to stabilise tie-break — H1 confirmed"*. File a follow-up: production
`score_terms()` should break ties on a stable key (`term_id`), not input `score_terms()` should break ties on a stable key (`term_id`), not input
order → [../bdd/refactoring-r.md](../bdd/refactoring-r.md) candidate. order → `/bdd` candidate.

View File

@ -6,8 +6,8 @@ disable-model-invocation: true
# grill-with-docs # grill-with-docs
User-invoked router. Run [grill-me](../../productivity/grill-me/SKILL.md) User-invoked router. Run `/grill-me`
(the Socratic interview) **using** [model-domain](../model-domain/SKILL.md) (the Socratic interview) **using** `/model-domain`
(the active glossary / decision discipline) — interview the user about the (the active glossary / decision discipline) — interview the user about the
plan, and update `OKF/CONTEXT.md` and `OKF/decisions/` as terms and decisions plan, and update `OKF/CONTEXT.md` and `OKF/decisions/` as terms and decisions
crystallise. crystallise.
@ -17,17 +17,17 @@ crystallise.
"challenge this against the codebase". "challenge this against the codebase".
- A design needs aligning with the project's vocabulary before it is built. - A design needs aligning with the project's vocabulary before it is built.
- Skip when no codebase exists yet — use - Skip when no codebase exists yet — use
[grill-me](../../productivity/grill-me/SKILL.md) alone (plan-only). `/grill-me` alone (plan-only).
## Output / done criteria ## Output / done criteria
- The plan restates unambiguously (grill-me's bar), and every term or - The plan restates unambiguously (grill-me's bar), and every term or
decision it settled landed in `OKF/CONTEXT.md` or `OKF/decisions/`. decision it settled landed in `OKF/CONTEXT.md` or `OKF/decisions/`.
- No roadmap written — that is [chart](../../loop/chart/SKILL.md)'s. - No roadmap written — that is `/chart`'s.
## See also ## See also
- [../../productivity/grill-me/SKILL.md](../../productivity/grill-me/SKILL.md) - `/grill-me`
— the interview engine this composes. — the interview engine this composes.
- [../model-domain/SKILL.md](../model-domain/SKILL.md) — owns the glossary - `/model-domain` — owns the glossary
and the warrant test this records against. and the warrant test this records against.
- [../../loop/chart/SKILL.md](../../loop/chart/SKILL.md) — delegates - `/chart` — delegates
the plan-vs-code stress-test here. the plan-vs-code stress-test here.

View File

@ -12,7 +12,7 @@ description: Hard-won rules for writing a service with a background thread, a ch
- A service answers requests whose data is built **asynchronously**. - A service answers requests whose data is built **asynchronously**.
- Read this *before* writing the thread — these are the bugs a green, - Read this *before* writing the thread — these are the bugs a green,
scenario-driven unit suite does not catch (see scenario-driven unit suite does not catch (see
[`../bdd/SKILL.md`](../bdd/SKILL.md) *"After green"*). `/bdd` *"After green"*).
## Core principle ## Core principle
**A background thread that dies takes its silence with it.** The process **A background thread that dies takes its silence with it.** The process
@ -64,9 +64,9 @@ happens again. Everything below defends against that one failure shape.
- **Never** answer a query the underlying data can't yet satisfy — gate it. - **Never** answer a query the underlying data can't yet satisfy — gate it.
## See also ## See also
- [`../bdd/SKILL.md`](../bdd/SKILL.md) — green is necessary, not - `/bdd` — green is necessary, not
sufficient; budget a recall-biased review after the thread is written. sufficient; budget a recall-biased review after the thread is written.
- [`../review-angles/SKILL.md`](../review-angles/SKILL.md) — EAFP, stale - `/review-angles` — EAFP, stale
references, readiness — the correctness angles these loops trip over. references, readiness — the correctness angles these loops trip over.
- [`../diagnose/SKILL.md`](../diagnose/SKILL.md) — when a background loop is - `/diagnose` — when a background loop is
silently not doing its job, start here. silently not doing its job, start here.

View File

@ -56,7 +56,7 @@ OKF/ # open-knowledge-format wiki (see write-OKF)
Create files **lazily** — only when there's a real first thing to write. 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 No `OKF/CONTEXT.md` yet? Create it when the first term is resolved (run
[write-OKF](../../loop/write-OKF/SKILL.md) scaffold if `OKF/` itself is `/write-OKF` scaffold if `OKF/` itself is
missing). No `OKF/decisions/`? Create it when the first decision is missing). No `OKF/decisions/`? Create it when the first decision is
settled. Confirm the *first* write to any new file in the repo before settled. Confirm the *first* write to any new file in the repo before
proceeding. A legacy root `CONTEXT.md` or `docs/adr/` → offer to migrate proceeding. A legacy root `CONTEXT.md` or `docs/adr/` → offer to migrate
@ -89,16 +89,16 @@ indexed from `OKF/index.md`. **The split axis is the bounded context
bounded context, full stop. bounded context, full stop.
## See also ## See also
- [../design-codebase/SKILL.md](../design-codebase/SKILL.md) — sibling - `/design-codebase` — sibling
vocabulary skill. **model-domain** pins terms for the *problem domain* vocabulary skill. **model-domain** pins terms for the *problem domain*
(CONTEXT.md, glossary); **design-codebase** pins terms for the *solution (CONTEXT.md, glossary); **design-codebase** pins terms for the *solution
structure* (module, interface, seam, adapter). structure* (module, interface, seam, adapter).
- [../grill-with-docs/SKILL.md](../grill-with-docs/SKILL.md) — the - `/grill-with-docs` — the
user-invoked router that pairs this skill with a Socratic interview. user-invoked router that pairs this skill with a Socratic interview.
- [../bdd/SKILL.md](../bdd/SKILL.md) — once vocabulary is pinned, the - `/bdd` — once vocabulary is pinned, the
Given/When/Then scenarios should use the canonical terms. Given/When/Then scenarios should use the canonical terms.
- [../diagnose/SKILL.md](../diagnose/SKILL.md) — hypothesis names in - `/diagnose` — hypothesis names in
diagnose post-mortems should match `CONTEXT.md` terminology. diagnose post-mortems should match `CONTEXT.md` terminology.
- [../../productivity/grill-me/SKILL.md](../../productivity/grill-me/SKILL.md) - `/grill-me`
— plan-only Socratic interview, no docs. The interview engine the — plan-only Socratic interview, no docs. The interview engine the
router uses. router uses.

View File

@ -8,8 +8,8 @@ disable-model-invocation: true
Adapted from [thermo-nuclear-code-quality-review](https://github.com/cursor/plugins/blob/main/cursor-team-kit/skills/thermo-nuclear-code-quality-review/SKILL.md). Adapted from [thermo-nuclear-code-quality-review](https://github.com/cursor/plugins/blob/main/cursor-team-kit/skills/thermo-nuclear-code-quality-review/SKILL.md).
**Structural-quality review** — goal is to *delete* moving pieces, not rearrange them. **Structural-quality review** — goal is to *delete* moving pieces, not rearrange them.
Pair with [`../review-angles/SKILL.md`](../review-angles/SKILL.md) (correctness) Pair with `/review-angles` (correctness)
and [`../winnow/SKILL.md`](../winnow/SKILL.md) (debloat). and `/winnow` (debloat).
## Core prompt ## Core prompt
@ -100,8 +100,8 @@ Don't approve because behaviour is correct. Each is a presumptive blocker unless
- duplicates a canonical helper or puts logic in the wrong layer - duplicates a canonical helper or puts logic in the wrong layer
## See also ## See also
- [`../review-angles/SKILL.md`](../review-angles/SKILL.md) — the *correctness* axis: stale refs, TOCTOU, ordering, durability. - `/review-angles` — 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. - `/winnow` — the *mechanical debloat* axis: single-tag findings, `net: -N lines` scoreboard. Pairs naturally — nuke-review judges shape; winnow clears chaff.
- [`../design-codebase/SKILL.md`](../design-codebase/SKILL.md) — the vocabulary nuke-review applies (deep modules, seams, leverage, locality). - `/design-codebase` — 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. - `/spawn-cavecrew` — 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). - `/review-blueprint` — the *blueprint-fidelity* axis (diff vs OKF/blueprints/NNN).

View File

@ -66,10 +66,10 @@ angle is worth more than a green suite.
- Fix each survivor red-test-first, like any other feature. - Fix each survivor red-test-first, like any other feature.
## See also ## See also
- [`../bdd/SKILL.md`](../bdd/SKILL.md) — the green pass these angles - `/bdd` — the green pass these angles
sit *after*; fixes land as new red-first scenarios here. sit *after*; fixes land as new red-first scenarios here.
- [`../harden-background-work/SKILL.md`](../harden-background-work/SKILL.md) — the threading - `/harden-background-work` — the threading
/ lock / readiness angles, split out because they share a setup. / 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. - `/nuke-review` — 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. - `/winnow` — the *mechanical debloat* axis (what to delete). Different again.
- [`../review-blueprint/SKILL.md`](../review-blueprint/SKILL.md) — the *blueprint-fidelity* axis: diff vs what was asked (OKF/blueprints/NNN). - `/review-blueprint` — the *blueprint-fidelity* axis: diff vs what was asked (OKF/blueprints/NNN).

View File

@ -21,14 +21,14 @@ about to act on.
## Why default-to-refuted ## Why default-to-refuted
The opposite default — accept unless disproven — is how plausible-but-wrong The opposite default — accept unless disproven — is how plausible-but-wrong
findings survive a review, and how cosmetic changes pass as improvements. findings survive a review, and how cosmetic changes pass as improvements.
The burden of proof is the whole game: the same inversion the [`sieve`](../sieve/SKILL.md) The burden of proof is the whole game: the same inversion the `/sieve`
uses for keeping vs cutting, pointed at *believing* vs acting. uses for keeping vs cutting, pointed at *believing* vs acting.
## Used by ## Used by
- [`SKILL.md`](SKILL.md) — refute each review-angle candidate before emitting. - [`SKILL.md`](SKILL.md) — refute each review-angle candidate before emitting.
- [`../winnow/SKILL.md`](../winnow/SKILL.md) — refute "it's redundant" before - `/winnow` — refute "it's redundant" before
cutting; the type-checker is one skeptic. cutting; the type-checker is one skeptic.
- [`../bdd/SKILL.md`](../bdd/SKILL.md) — a green suite is a claim, not a - `/bdd` — a green suite is a claim, not a
proof; the post-green pass refutes it. proof; the post-green pass refutes it.
- [`../sieve/SKILL.md`](../sieve/SKILL.md) — Good-with-receipts refutes the - `/sieve` — Good-with-receipts refutes the
merely-cosmetic change. merely-cosmetic change.

View File

@ -6,14 +6,14 @@ description: Review a diff against its originating blueprint (OKF/blueprints/NNN
# review-blueprint # review-blueprint
The **blueprint axis** — the other three axes The **blueprint axis** — the other three axes
([review-angles](../review-angles/SKILL.md) correctness, (`/review-angles` correctness,
[nuke-review](../nuke-review/SKILL.md) structure, `/nuke-review` structure,
[winnow](../winnow/SKILL.md) debloat) judge the code on its own terms; `/winnow` debloat) judge the code on its own terms;
this one judges it against *what was asked*. Adapted from Matt Pocock's this one judges it against *what was asked*. Adapted from Matt Pocock's
code-review Spec axis + obra/superpowers' verification-before-completion. code-review Spec axis + obra/superpowers' verification-before-completion.
## When to use ## When to use
- [rig](../../loop/rig/SKILL.md) reaches its done-gate. - `/rig` reaches its done-gate.
- User says "review against the blueprint", "does this match the blueprint". - 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. - Any post-green review pass where an `OKF/blueprints/NNN` exists for the diff.
@ -43,8 +43,8 @@ VERIFIED: ✓ | ✗ — <verify command>
<pasted output, trimmed to the verdict lines> <pasted output, trimmed to the verdict lines>
``` ```
Verdict: pass only when all three are ✓. Findings are severity-tagged Verdict: pass only when all three are ✓. Findings are severity-tagged
like [review-angles](../review-angles/SKILL.md); refute each before like `/review-angles`; refute each before
emitting ([refute.md](../review-angles/refute.md)). emitting (`/review-angles`'s `refute.md`).
## Guardrails ## Guardrails
- **Never** pass on a prose claim of verification — output or it - **Never** pass on a prose claim of verification — output or it
@ -54,14 +54,14 @@ emitting ([refute.md](../review-angles/refute.md)).
- **Never** widen review into correctness/structure here — single axis, - **Never** widen review into correctness/structure here — single axis,
like winnow. Point findings at the right sibling instead. like winnow. Point findings at the right sibling instead.
- A diff that *improves* on the blueprint still fails **Contained** — the - A diff that *improves* on the blueprint still fails **Contained** — the
blueprint gets superseded first ([blueprint](../../loop/blueprint/SKILL.md)), blueprint gets superseded first (`/blueprint`),
then the diff lands. then the diff lands.
## See also ## See also
- [../review-angles/SKILL.md](../review-angles/SKILL.md), - `/review-angles`,
[../nuke-review/SKILL.md](../nuke-review/SKILL.md), `/nuke-review`,
[../winnow/SKILL.md](../winnow/SKILL.md) — the other three axes. `/winnow` — the other three axes.
- [../../loop/rig/SKILL.md](../../loop/rig/SKILL.md) — runs - `/rig` — runs
this axis as its done-gate. this axis as its done-gate.
- [../../productivity/spawn-cavecrew/SKILL.md](../../productivity/spawn-cavecrew/SKILL.md) - `/spawn-cavecrew`
— spawn it as a subagent pass. — spawn it as a subagent pass.

View File

@ -57,7 +57,7 @@ describe`), not per keystroke — otherwise it fights iteration.
| Context | What the gate guards | | Context | What the gate guards |
|---|---| |---|---|
| **Build** | gates *adding*; Good leans forward — it is the sieve that lets *necessary robustness in* (validation, error handling), curing the under-build failure mode of pure YAGNI. | | **Build** | gates *adding*; Good leans forward — it is the sieve that lets *necessary robustness in* (validation, error handling), curing the under-build failure mode of pure YAGNI. |
| **Prune** | gates *keeping*; default-delete, Good must earn each survivor (see [`../winnow/SKILL.md`](../winnow/SKILL.md) for the mechanical cut). | | **Prune** | gates *keeping*; default-delete, Good must earn each survivor (see `/winnow` for the mechanical cut). |
| **Analysis** | gates the *artifact* (`_targets.R`, the report), never the scratch. Minimal is sharp **and dangerous** here: no type-checker catches a cut that changes a conclusion. Good carries **epistemic** weight — *does removing this change what the analysis concludes?* A kept step names the inference it supports. | | **Analysis** | gates the *artifact* (`_targets.R`, the report), never the scratch. Minimal is sharp **and dangerous** here: no type-checker catches a cut that changes a conclusion. Good carries **epistemic** weight — *does removing this change what the analysis concludes?* A kept step names the inference it supports. |
## Intensity ## Intensity
@ -78,12 +78,12 @@ describe`), not per keystroke — otherwise it fights iteration.
requested behaviour. Don't simplify these away. requested behaviour. Don't simplify these away.
## See also ## See also
- [`../winnow/SKILL.md`](../winnow/SKILL.md) — the mechanical after-the-fact - `/winnow` — the mechanical after-the-fact
audit. The sieve judges entry; winnow clears the field. audit. The sieve judges entry; winnow clears the field.
- [`../design-codebase/SKILL.md`](../design-codebase/SKILL.md) — *Minimal* - `/design-codebase` — *Minimal*
invokes **depth** intuition. The leanest form that works tends to be the invokes **depth** intuition. The leanest form that works tends to be the
deepest: small interface, large implementation hidden behind it. deepest: small interface, large implementation hidden behind it.
- [`../../productivity/commit-atomic-jj/SKILL.md`](../../productivity/commit-atomic-jj/SKILL.md) - `/commit-atomic-jj`
— the seal where the sieve fires. — the seal where the sieve fires.
- [`../grill-with-docs/SKILL.md`](../grill-with-docs/SKILL.md) - `/grill-with-docs`
— Socratic siblings; grill the requirement, then sieve the code. — Socratic siblings; grill the requirement, then sieve the code.

View File

@ -50,13 +50,13 @@ file under review.
saving. See [dtplyr.md](dtplyr.md#when-not-to-use). saving. See [dtplyr.md](dtplyr.md#when-not-to-use).
## See also ## See also
- [../bdd/deep-modules-r.md](../bdd/deep-modules-r.md) — - `/bdd` —
`box::export()` is the public-surface control mechanism. `box::export()` is the public-surface control mechanism.
- [../bdd/interface-design-r.md](../bdd/interface-design-r.md) — - `/bdd` —
pure functions + DI compose with these style rules. pure functions + DI compose with these style rules.
- [../diagnose/feedback-loops-r.md](../diagnose/feedback-loops-r.md) — - `/diagnose` —
worked example #1 (in-place mutation) is the canonical `dtplyr` / worked example #1 (in-place mutation) is the canonical `dtplyr` /
`data.table::copy()` failure mode. `data.table::copy()` failure mode.
- [../../productivity/commit-atomic-jj/SKILL.md](../../productivity/commit-atomic-jj/SKILL.md) - `/commit-atomic-jj`
— when a style refactor changes more than one file, it's an atomic — when a style refactor changes more than one file, it's an atomic
commit of its own. commit of its own.

View File

@ -62,7 +62,7 @@ fetch_pages <- function(req) { ... }
``` ```
Keep `box::export()` deliberately small — see Keep `box::export()` deliberately small — see
[../bdd/deep-modules-r.md](../bdd/deep-modules-r.md). Every name `/bdd`. Every name
you export is a contract you owe future callers and tests. you export is a contract you owe future callers and tests.
## `.Rmd` setup chunks — no exception ## `.Rmd` setup chunks — no exception
@ -114,7 +114,7 @@ box::reload(R/indication/client) # drops the cache; next box::use re-eval
Use this in `feedback-loops-r.md` loops where determinism matters more Use this in `feedback-loops-r.md` loops where determinism matters more
than speed. See than speed. See
[`../diagnose/feedback-loops-r.md`](../diagnose/feedback-loops-r.md#make-the-loop-deterministic). `/diagnose`.
## Anti-patterns ## Anti-patterns

View File

@ -130,7 +130,7 @@ add_log_expr <- function(df) {
} }
``` ```
This is exactly the bug class covered in This is exactly the bug class covered in
[../diagnose/feedback-loops-r.md](../diagnose/feedback-loops-r.md) `/diagnose`
*"Worked example 1 — in-place mutation, intermittently wrong output"*. *"Worked example 1 — in-place mutation, intermittently wrong output"*.
Read that before you reach for `:=`. Read that before you reach for `:=`.
@ -148,5 +148,5 @@ Read that before you reach for `:=`.
## See also ## See also
- [box.md](box.md) — preferred way to bring `data.table` / `dtplyr` - [box.md](box.md) — preferred way to bring `data.table` / `dtplyr`
names into scope (`dt = data.table[...]`). names into scope (`dt = data.table[...]`).
- [../bdd/interface-design-r.md](../bdd/interface-design-r.md) — - `/bdd` —
"return, don't mutate" applies even harder to `data.table`. "return, don't mutate" applies even harder to `data.table`.

View File

@ -194,4 +194,4 @@ still strongly recommended.
The skill states the rules. The tools enforce them. Don't run tooling 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 inside the edit you're being asked to review — that conflates style
changes with logic changes (anti-atomic — see changes with logic changes (anti-atomic — see
[`../../productivity/commit-atomic-jj/SKILL.md`](../../productivity/commit-atomic-jj/SKILL.md)). `/commit-atomic-jj`).

View File

@ -11,7 +11,7 @@ disable-model-invocation: true
over-engineered", "find what to cut", "simplify review". over-engineered", "find what to cut", "simplify review".
- A diff or file is written and working; you want a separate pass that hunts - A diff or file is written and working; you want a separate pass that hunts
*only* for removable mass. *only* for removable mass.
- **Not** a judgment gate — that is [`../sieve/SKILL.md`](../sieve/SKILL.md). - **Not** a judgment gate — that is `/sieve`.
Winnow runs *after* the fact and argues *only* for deletion. It blows the Winnow runs *after* the fact and argues *only* for deletion. It blows the
chaff off the grain; it never adds. chaff off the grain; it never adds.
@ -51,7 +51,7 @@ Close with: `net: -<N> lines possible.`
A "redundant" idiom may be **load-bearing**. Every `delete`/`shrink` is the A "redundant" idiom may be **load-bearing**. Every `delete`/`shrink` is the
claim *"this is redundant"* — refute it before you act claim *"this is redundant"* — refute it before you act
([`../review-angles/refute.md`](../review-angles/refute.md)); the type-checker (`/review-angles`); the type-checker
is one skeptic. A real review flagged a is one skeptic. A real review flagged a
repeated `tuple(r) for r in conn.execute(...)` wrapper and a repeated `tuple(r) for r in conn.execute(...)` wrapper and a
`cast(int | None, line)` as noise. Both were genuine no-ops at *runtime* — `cast(int | None, line)` as noise. Both were genuine no-ops at *runtime* —
@ -70,20 +70,20 @@ So, before emitting any `delete`/`shrink`:
## Scope ## Scope
Winnow ignores **correctness bugs, security, and performance** — those are Winnow ignores **correctness bugs, security, and performance** — those are
[`../review-angles/SKILL.md`](../review-angles/SKILL.md) and `/code-review`. `/review-angles` and `/code-review`.
This pass is *only* structural complexity. Staying single-axis is what keeps This pass is *only* structural complexity. Staying single-axis is what keeps
it sharp. it sharp.
## See also ## See also
- [`../sieve/SKILL.md`](../sieve/SKILL.md) — the judgment gate. Sieve decides - `/sieve` — the judgment gate. Sieve decides
what earns its place; winnow mechanically clears what doesn't. 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. - `/nuke-review` — *structural-quality* review (code-judo). Pairs naturally — nuke-review judges shape; winnow clears chaff.
- [`../design-codebase/SKILL.md`](../design-codebase/SKILL.md) — the - `/design-codebase` — the
**deletion test** formalised: if removing a module makes complexity **deletion test** formalised: if removing a module makes complexity
vanish, it was a pass-through; if it reappears across N callers, it earned 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. its keep. The `delete` and `yagni` tags are this test mechanised.
- [`../bdd/refactoring-r.md`](../bdd/refactoring-r.md) — file the - `/bdd` — file the
architectural follow-ups a winnow surfaces; don't auto-cut them mid-pass. architectural follow-ups a winnow surfaces; don't auto-cut them mid-pass.
- [`../review-angles/SKILL.md`](../review-angles/SKILL.md) — the *correctness* - `/review-angles` — the *correctness*
axis winnow deliberately does not touch. axis winnow deliberately does not touch.
- [`../review-blueprint/SKILL.md`](../review-blueprint/SKILL.md) — the *blueprint-fidelity* axis winnow also does not touch. - `/review-blueprint` — the *blueprint-fidelity* axis winnow also does not touch.

View File

@ -58,7 +58,7 @@ disable-model-invocation: true
> match `project.optional-dependencies`; the License block defaults to > match `project.optional-dependencies`; the License block defaults to
> Apache 2.0 wording only when `project.license` says so. Drop a > Apache 2.0 wording only when `project.license` says so. Drop a
> `assets/<name>.png` if you want the logo to render. When satisfied, > `assets/<name>.png` if you want the logo to render. When satisfied,
> describe with [`/commit-atomic-jj`](../../productivity/commit-atomic-jj/SKILL.md)." > describe with `/commit-atomic-jj`."
## Guardrails ## Guardrails
- **Never** invent dependency versions, recipe descriptions, author - **Never** invent dependency versions, recipe descriptions, author
@ -69,7 +69,7 @@ disable-model-invocation: true
attribution block for Apache 2.0; other licenses get the one-liner. attribution block for Apache 2.0; other licenses get the one-liner.
## Out of scope ## Out of scope
- R projects. Generic [`../write-readme/SKILL.md`](../write-readme/SKILL.md) - R projects. Generic `/write-readme`
covers them — it detects `DESCRIPTION` (r-package) and `_targets.R` covers them — it detects `DESCRIPTION` (r-package) and `_targets.R`
(r-analysis) and reads their fields. No R counterpart to this skill is (r-analysis) and reads their fields. No R counterpart to this skill is
planned. planned.
@ -78,7 +78,7 @@ disable-model-invocation: true
- [`saduko-license-block.md`](saduko-license-block.md) — the Apache 2.0 - [`saduko-license-block.md`](saduko-license-block.md) — the Apache 2.0
rights / requirements / attribution / bibtex template, lifted from the rights / requirements / attribution / bibtex template, lifted from the
Saduko reference and parameterised. Saduko reference and parameterised.
- [`../../scaffold/build-py-project/SKILL.md`](../../scaffold/build-py-project/SKILL.md) - `/build-py-project`
— produces the `pyproject.toml` + `justfile` this skill reads. — produces the `pyproject.toml` + `justfile` this skill reads.
- [`../develop-python/SKILL.md`](../develop-python/SKILL.md) — the workflow - `/develop-python` — the workflow
whose `just check` commands this README documents. whose `just check` commands this README documents.

View File

@ -11,7 +11,7 @@ disable-model-invocation: true
- User says "write readme", "/write-readme", "generate readme", - User says "write readme", "/write-readme", "generate readme",
"document the project". "document the project".
- For a confirmed Python project, the dedicated - For a confirmed Python project, the dedicated
[`../write-readme-py/SKILL.md`](../write-readme-py/SKILL.md) carries the `/write-readme-py` carries the
fuller `[dev]`-extras handling — prefer it once python is established. fuller `[dev]`-extras handling — prefer it once python is established.
## Process ## Process
@ -73,9 +73,9 @@ disable-model-invocation: true
- **Omit** empty sections rather than hallucinating content. - **Omit** empty sections rather than hallucinating content.
## See also ## See also
- [`../write-readme-py/SKILL.md`](../write-readme-py/SKILL.md) — the - `/write-readme-py` — the
worked python example and `readme-py.template.md` this skill generalizes. worked python example and `readme-py.template.md` this skill generalizes.
- [`../../scaffold/containerize-project/SKILL.md`](../../scaffold/containerize-project/SKILL.md) - `/containerize-project`
— same marker-file ecosystem detection. — same marker-file ecosystem detection.
- [`../../productivity/commit-atomic-jj/SKILL.md`](../../productivity/commit-atomic-jj/SKILL.md) - `/commit-atomic-jj`
— the commit step this skill hands off to. — the commit step this skill hands off to.

View File

@ -17,7 +17,7 @@ uv pip install -e "." # core: <core-deps-csv>
uv pip install -e ".[dev]" # + dev tools: <dev-deps-csv> uv pip install -e ".[dev]" # + dev tools: <dev-deps-csv>
``` ```
Usage = `just` recipes. For the full `[dev]`-extras treatment defer to Usage = `just` recipes. For the full `[dev]`-extras treatment defer to
[`../write-readme-py/SKILL.md`](../write-readme-py/SKILL.md). `/write-readme-py`.
## r-package (`DESCRIPTION`) ## r-package (`DESCRIPTION`)
Read: `Package`, `Title`, `Description`, `Imports`, `License`. Read: `Package`, `Title`, `Description`, `Imports`, `License`.

View File

@ -8,14 +8,14 @@ disable-model-invocation: true
Matt Pocock's to-blueprint, file-based. Turns *already-discussed* work into a Matt Pocock's to-blueprint, file-based. Turns *already-discussed* work into a
blueprint with justification. The interview happened upstream blueprint with justification. The interview happened upstream
([grill-me](../../productivity/grill-me/SKILL.md) / (`/grill-me` /
[chart](../chart/SKILL.md)); blueprint only crystallises. `/chart`); blueprint only crystallises.
## When to use ## When to use
- User says "blueprint", "/blueprint", "write the blueprint", "blueprint this out". - User says "blueprint", "/blueprint", "write the blueprint", "blueprint this out".
- A [chart](../chart/SKILL.md) roadmap phase is ready to - A `/chart` roadmap phase is ready to
decompose into implementable units. decompose into implementable units.
- A [ferry](../ferry/SKILL.md) decision resolved and needs its blueprint(s). - A `/ferry` decision resolved and needs its blueprint(s).
## Process ## Process
1. **Locate the source** — the conversation, a named roadmap phase, or a 1. **Locate the source** — the conversation, a named roadmap phase, or a
@ -29,14 +29,14 @@ blueprint with justification. The interview happened upstream
- *Justification* traces to a roadmap phase, ferry decision, or a - *Justification* traces to a roadmap phase, ferry decision, or a
stated user need — by reference, not restatement. stated user need — by reference, not restatement.
- *Seams touched* lists the interfaces tests will run against — - *Seams touched* lists the interfaces tests will run against —
[bdd](../../engineering/bdd/SKILL.md) consumes this as its `/bdd` consumes this as its
pre-agreed seam list. pre-agreed seam list.
- *Verify* is a runnable command or observable check — rig's - *Verify* is a runnable command or observable check — rig's
done-gate runs exactly this. done-gate runs exactly this.
- *Muster* — rule the gate, never leave it silent: `muster: true` when - *Muster* — rule the gate, never leave it silent: `muster: true` when
the Verify proves form but not meaning (prose, doctrine, renames), the Verify proves form but not meaning (prose, doctrine, renames),
else `muster: false # <what the Verify does observe>`. else `muster: false # <what the Verify does observe>`.
4. **Sound it** — call [sound](../sound/SKILL.md) by name on the draft: 4. **Sound it** — call `/sound` by name on the draft:
it verifies what the blueprint rests on and stamps `sounded: <date>`. it verifies what the blueprint rests on and stamps `sounded: <date>`.
Unsounded, there is nothing to lock against. Unsounded, there is nothing to lock against.
5. **Show the blueprint**; iterate. State the muster ruling in one line so 5. **Show the blueprint**; iterate. State the muster ruling in one line so
@ -44,7 +44,7 @@ blueprint with justification. The interview happened upstream
flip status to `locked`. No yes, no lock. flip status to `locked`. No yes, no lock.
6. **Index it** — add `NNN — <title> — <status>` to `OKF/index.md` 6. **Index it** — add `NNN — <title> — <status>` to `OKF/index.md`
Blueprints section. Blueprints section.
7. **Seal** via [commit-atomic-jj](../../productivity/commit-atomic-jj/SKILL.md): 7. **Seal** via `/commit-atomic-jj`:
`docs(blueprint): add NNN <slug>`. `docs(blueprint): add NNN <slug>`.
## Status discipline ## Status discipline
@ -63,14 +63,14 @@ stamp** — `okf-check` warns on a `locked` blueprint without one. The
- **Never** interview here — synthesis only. - **Never** interview here — synthesis only.
- **Never** lock without a user yes. - **Never** lock without a user yes.
- **Never** write implementation code or tests — that's - **Never** write implementation code or tests — that's
[rig](../rig/SKILL.md). `/rig`.
- **Never** restate OKF content in the blueprint — reference pages by path. - **Never** restate OKF content in the blueprint — reference pages by path.
- One blueprint = one implementable unit; too big to verify in one - One blueprint = one implementable unit; too big to verify in one
rig run → split, or send to [ferry](../ferry/SKILL.md). rig run → split, or send to `/ferry`.
## See also ## See also
- [blueprint-format.md](blueprint-format.md) — the format contract. - [blueprint-format.md](blueprint-format.md) — the format contract.
- [../../engineering/review-blueprint/SKILL.md](../../engineering/review-blueprint/SKILL.md) - `/review-blueprint`
— reviews a diff *against* a blueprint. — reviews a diff *against* a blueprint.
- [../chart/SKILL.md](../chart/SKILL.md) — phases feed blueprints; - `/chart` — phases feed blueprints;
implemented blueprints tick phases. implemented blueprints tick phases.

View File

@ -46,15 +46,14 @@ up in the diff.>
## Rules ## Rules
- Title is imperative — a blueprint names a change, not a state. - Title is imperative — a blueprint names a change, not a state.
- `type: Blueprint` is the OKF-v0.1 conformance field (see - `type: Blueprint` is the OKF-v0.1 conformance field (see `/write-OKF`'s
[write-OKF/okf-layout.md](../write-OKF/okf-layout.md)) — always first. `okf-layout.md`) — always first.
- `traces-to` is mandatory; a blueprint that traces to nothing fails - `traces-to` is mandatory; a blueprint that traces to nothing fails
[sieve](../../engineering/sieve/SKILL.md)'s Real test by definition. `/sieve`'s Real test by definition.
- `sounded:` is the date [sound](../sound/SKILL.md) verified what the - `sounded:` is the date `/sound` verified what the
blueprint rests on; absent until then, and required to lock. blueprint rests on; absent until then, and required to lock.
- `cites:` (optional) pins what the blueprint rests on — one entry per - `cites:` (optional) pins what the blueprint rests on — one entry per
line, grammar owned by line, grammar owned by `/write-OKF`'s `okf-layout.md` §Conformance, not
[write-OKF/okf-layout.md](../write-OKF/okf-layout.md) §Conformance, not
restated here. Optional because a blueprint may rest on nothing on disk: restated here. Optional because a blueprint may rest on nothing on disk:
B-015 carries none. B-015 carries none.
- `muster: true` (optional) opts into the human review gate: rig halts - `muster: true` (optional) opts into the human review gate: rig halts

View File

@ -6,7 +6,7 @@ disable-model-invocation: true
# call-charon # call-charon
The execution counterpart of [ferry](../ferry/SKILL.md): ferry resolves The execution counterpart of `/ferry`: ferry resolves
one *decision* per sitting; Charon delivers *blueprints* — each built one *decision* per sitting; Charon delivers *blueprints* — each built
by its own agent, reviewed by a fresh-context flotilla, sealed only by by its own agent, reviewed by a fresh-context flotilla, sealed only by
the orchestrator. The main session never implements. The ferry's the orchestrator. The main session never implements. The ferry's
@ -16,17 +16,17 @@ holds no state in his head.
## When to use ## When to use
- User says "call charon", "/call-charon", "implement the ferry", - User says "call charon", "/call-charon", "implement the ferry",
"drive the ferry home", "next blueprint". "drive the ferry home", "next blueprint".
- A [ferry](../ferry/SKILL.md) has arrived (decisions resolved, - A `/ferry` has arrived (decisions resolved,
blueprints locked) and implementation spans multiple blueprints. blueprints locked) and implementation spans multiple blueprints.
- One blueprint, no orchestration worth the cost → plain - One blueprint, no orchestration worth the cost → plain
[rig](../rig/SKILL.md). `/rig`.
## Preconditions (check, don't assume) ## Preconditions (check, don't assume)
- `OKF/ferries/<topic>/MAP.md` exists; every decision resolved. Open - `OKF/ferries/<topic>/MAP.md` exists; every decision resolved. Open
decisions → back to ferry; this is a crossing, not a mapping. decisions → back to ferry; this is a crossing, not a mapping.
- The spawned blueprints are `locked` or beyond - The spawned blueprints are `locked` or beyond
(`grep -r "^status:" OKF/blueprints/`); a needed one still `draft` → (`grep -r "^status:" OKF/blueprints/`); a needed one still `draft` →
back to [blueprint](../blueprint/SKILL.md) for the user's lock. back to `/blueprint` for the user's lock.
## Process ## Process
1. **ORIENT** — read `MAP.md` + the statuses of every blueprint it 1. **ORIENT** — read `MAP.md` + the statuses of every blueprint it
@ -63,18 +63,18 @@ holds no state in his head.
blueprint's Verify *itself* in the main workspace and pastes the blueprint's Verify *itself* in the main workspace and pastes the
output — post-integration, so what's verified is what ships. A output — post-integration, so what's verified is what ships. A
builder's "tests pass" is never trusted. Seal via builder's "tests pass" is never trusted. Seal via
[commit-atomic-jj](../../productivity/commit-atomic-jj/SKILL.md) `/commit-atomic-jj`
(git mode: (git mode:
[commit-atomic-git](../../productivity/commit-atomic-git/SKILL.md)) `/commit-atomic-git`)
citing the blueprint, flip its status. citing the blueprint, flip its status.
7. **LOG** — update the Passage line: status, axes run, rounds, 7. **LOG** — update the Passage line: status, axes run, rounds,
commit, ISO date. Blocked mid-crossing → log that instead; the commit, ISO date. Blocked mid-crossing → log that instead; the
reason is the handoff. reason is the handoff.
8. **REPEAT or END SITTING** — context healthy → step 2. Otherwise 8. **REPEAT or END SITTING** — context healthy → step 2. Otherwise
stop; Passage *is* the handoff — no HANDOFF.md duplication stop; Passage *is* the handoff — no HANDOFF.md duplication
([write-handoff](../../productivity/write-handoff/SKILL.md) rule). (`/write-handoff` rule).
9. **ARRIVE** — last blueprint `implemented` → hand to 9. **ARRIVE** — last blueprint `implemented` → hand to
[moor](../moor/SKILL.md). Charon delivers; moor consolidates. `/moor`. Charon delivers; moor consolidates.
## Output / done criteria ## Output / done criteria
- Each sitting: ≥1 blueprint gated green, or the blocker named in - Each sitting: ≥1 blueprint gated green, or the blocker named in
@ -100,7 +100,7 @@ holds no state in his head.
## See also ## See also
- [crossing-format.md](crossing-format.md) — Passage line, builder - [crossing-format.md](crossing-format.md) — Passage line, builder
brief, reviewer brief, finding-merge contract. brief, reviewer brief, finding-merge contract.
- [../ferry/SKILL.md](../ferry/SKILL.md) — upstream; owns MAP.md. - `/ferry` — upstream; owns MAP.md.
- [../rig/SKILL.md](../rig/SKILL.md) — the process each builder - `/rig` — the process each builder
brief encodes for one blueprint. brief encodes for one blueprint.
- [../moor/SKILL.md](../moor/SKILL.md) — downstream close-out. - `/moor` — downstream close-out.

View File

@ -18,10 +18,10 @@ Owns `OKF/ROADMAP.md`. Planning only, never implementation.
## Mode detection ## Mode detection
| State | Mode | | State | Mode |
|---|---| |---|---|
| no `./OKF/` | run [write-OKF](../write-OKF/SKILL.md) scaffold first | | no `./OKF/` | run `/write-OKF` scaffold first |
| `OKF/ROADMAP.md` absent or all-TODO | **Greenfield** → [greenfield.md](greenfield.md) | | `OKF/ROADMAP.md` absent or all-TODO | **Greenfield** → [greenfield.md](greenfield.md) |
| `OKF/ROADMAP.md` has real content | **Revision** → [revise.md](revise.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) | | code exists but user wants plan-vs-code stress-test only | hand to `/grill-with-docs` |
Half-states (roadmap exists but skeleton-incomplete) are revision mode — Half-states (roadmap exists but skeleton-incomplete) are revision mode —
fill the missing sections as deltas, don't restart. fill the missing sections as deltas, don't restart.
@ -41,16 +41,15 @@ fill the missing sections as deltas, don't restart.
## Shared rules (both modes) ## Shared rules (both modes)
- **One question per message** during any grilling; wait for the answer. - **One question per message** during any grilling; wait for the answer.
- **Vocabulary sync**: one resolved term → one inline `OKF/CONTEXT.md` - **Vocabulary sync**: one resolved term → one inline `OKF/CONTEXT.md`
edit, per [model-domain](../../engineering/model-domain/SKILL.md). edit, per `/model-domain`.
Roadmap and glossary must use identical canonical terms. Roadmap and glossary must use identical canonical terms.
- **Decision files** only by the warrant test — the decision answers a - **Decision files** only by the warrant test — the decision answers a
question no other page answers, and you can name the `cites:` it binds question no other page answers, and you can name the `cites:` it binds
([decision-format.md](../../engineering/model-domain/decision-format.md)). (`/model-domain`'s `decision-format.md`). Default no.
Default no. - Roadmap phases feed `/blueprint` — write phases
- Roadmap phases feed [blueprint](../blueprint/SKILL.md) — write phases
concrete enough that a blueprint can trace to them. concrete enough that a blueprint can trace to them.
- **A phase whose arc spans more than one blueprint or session** hands to - **A phase whose arc spans more than one blueprint or session** hands to
[ferry](../ferry/SKILL.md) — chart plans it, ferry carries it. `/ferry` — chart plans it, ferry carries it.
- **A lone request opens no phase.** It traces to `user request <date>` and - **A lone request opens no phase.** It traces to `user request <date>` and
goes straight to blueprint; `OKF/ROADMAP.md` §Phases holds arcs, not goes straight to blueprint; `OKF/ROADMAP.md` §Phases holds arcs, not
errands. The missing phase is the design, not a gap. errands. The missing phase is the design, not a gap.
@ -72,11 +71,11 @@ fill the missing sections as deltas, don't restart.
## See also ## See also
- [greenfield.md](greenfield.md) / [revise.md](revise.md) — the loops. - [greenfield.md](greenfield.md) / [revise.md](revise.md) — the loops.
- [../write-OKF/SKILL.md](../write-OKF/SKILL.md) — scaffolds the OKF - `/write-OKF` — scaffolds the OKF
this skill writes into. this skill writes into.
- [../blueprint/SKILL.md](../blueprint/SKILL.md) — decomposes roadmap - `/blueprint` — decomposes roadmap
phases into blueprints. phases into blueprints.
- [../ferry/SKILL.md](../ferry/SKILL.md) — carries a phase too big for one - `/ferry` — carries a phase too big for one
blueprint or one sitting. blueprint or one sitting.
- [../../productivity/grill-me/SKILL.md](../../productivity/grill-me/SKILL.md) - `/grill-me`
— the interview engine. — the interview engine.

View File

@ -6,7 +6,7 @@ For a project with no real roadmap yet. Formerly `plan-project`.
1. **Survey the repo.** `ls` it. Existing substantial code → this is not 1. **Survey the repo.** `ls` it. Existing substantial code → this is not
greenfield; stress-test the plan with greenfield; stress-test the plan with
[grill-with-docs](../../engineering/grill-with-docs/SKILL.md) instead. `/grill-with-docs` instead.
2. **Research before asking.** Every tool, product, or codename in the 2. **Research before asking.** Every tool, product, or codename in the
pitch you don't recognize with certainty: WebSearch it *first*, report pitch you don't recognize with certainty: WebSearch it *first*, report
findings with sources, then ask what role it plays. Never guess; never findings with sources, then ask what role it plays. Never guess; never
@ -31,12 +31,12 @@ For a project with no real roadmap yet. Formerly `plan-project`.
`OKF/CONTEXT.md` edit (confirm the first write). `OKF/CONTEXT.md` edit (confirm the first write).
6. **Write `OKF/ROADMAP.md`** when answers stop moving decisions, using 6. **Write `OKF/ROADMAP.md`** when answers stop moving decisions, using
the skeleton in [SKILL.md](SKILL.md). If `OKF/` is missing, run the skeleton in [SKILL.md](SKILL.md). If `OKF/` is missing, run
[write-OKF](../write-OKF/SKILL.md) scaffold first. `/write-OKF` scaffold first.
7. **Hand forward**: name the Phase-0 items ready for 7. **Hand forward**: name the Phase-0 items ready for
[blueprint](../blueprint/SKILL.md), and the scaffold skill `/blueprint`, and the scaffold skill
([build-py-project](../../scaffold/build-py-project/SKILL.md) / (`/build-py-project` /
[build-r-package](../../scaffold/build-r-package/SKILL.md) / `/build-r-package` /
[build-r-analysis](../../scaffold/build-r-analysis/SKILL.md)) that `/build-r-analysis`) that
fits the locked stack. fits the locked stack.
## Done ## Done

View File

@ -25,7 +25,7 @@ For a roadmap that exists and reality that moved. Formerly
Decisions are append-only history, not a wiki page. Decisions are append-only history, not a wiki page.
- Scope change → move items between *Phases* and *Out of scope* - Scope change → move items between *Phases* and *Out of scope*
explicitly, never delete. explicitly, never delete.
- Blueprint implemented ([rig](../rig/SKILL.md) hand-back) → - Blueprint implemented (`/rig` hand-back) →
tick the phase item citing the blueprint number. tick the phase item citing the blueprint number.
4. **Sync vocabulary.** New or shifted terms → one inline 4. **Sync vocabulary.** New or shifted terms → one inline
`OKF/CONTEXT.md` edit each. Roadmap and glossary keep matching `OKF/CONTEXT.md` edit each. Roadmap and glossary keep matching

View File

@ -14,10 +14,10 @@ directory is what crosses the session boundary.
## When to use ## When to use
- User says "ferry", "/ferry", "this is too big for one session", - User says "ferry", "/ferry", "this is too big for one session",
"map this feature out". "map this feature out".
- A [chart](../chart/SKILL.md) phase or - A `/chart` phase or
[blueprint](../blueprint/SKILL.md) attempt turns out too large to blueprint `/blueprint` attempt turns out too large to blueprint
as one implementable unit. as one implementable unit.
- A [write-handoff](../../productivity/write-handoff/SKILL.md) is looming on a - A `/write-handoff` is looming on a
half-decided design — ferry the open questions instead of prose-dumping half-decided design — ferry the open questions instead of prose-dumping
them. them.
@ -31,23 +31,23 @@ directory is what crosses the session boundary.
decision each — if a "decision" is really three, split it. Declare decision each — if a "decision" is really three, split it. Declare
`blocked-by:` edges honestly; no edge, no ordering claim. `blocked-by:` edges honestly; no edge, no ordering claim.
4. **Resolve one decision per sitting.** Pick an unblocked one. Grill it 4. **Resolve one decision per sitting.** Pick an unblocked one. Grill it
[grill-with-docs](../../engineering/grill-with-docs/SKILL.md)-style `/grill-with-docs`-style
— research first, one question at a time, recommendation attached. — research first, one question at a time, recommendation attached.
Record resolution + rationale in the file; flip status. Record resolution + rationale in the file; flip status.
5. **Crystallise as you go**: a resolved decision that unlocks 5. **Crystallise as you go**: a resolved decision that unlocks
implementable work → hand to [blueprint](../blueprint/SKILL.md); implementable work → hand to `/blueprint`;
the blueprint's `traces-to` cites `ferries/<topic>/D-<n>`. Resolved terms → the blueprint's `traces-to` cites `ferries/<topic>/D-<n>`. Resolved terms →
`OKF/CONTEXT.md` per model-domain. `OKF/CONTEXT.md` per model-domain.
6. **Arrive**: every decision resolved → update `MAP.md` with the blueprint 6. **Arrive**: every decision resolved → update `MAP.md` with the blueprint
numbers produced; the ferry directory stays as the decision record numbers produced; the ferry directory stays as the decision record
(supersede, don't delete). Once the spawned blueprints are woven and (supersede, don't delete). Once the spawned blueprints are woven and
sealed, close out with [moor](../moor/SKILL.md). sealed, close out with `/moor`.
## Session boundary ## Session boundary
End of sitting → `MAP.md` *is* the handoff for this work: next session 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 reads MAP.md, picks the next unblocked decision. Don't duplicate ferry
state into HANDOFF.md — reference the directory state into HANDOFF.md — reference the directory
([write-handoff](../../productivity/write-handoff/SKILL.md) rule). (`/write-handoff` rule).
## Output / done criteria ## Output / done criteria
- `MAP.md` lists every decision with status and edges; no cycles. - `MAP.md` lists every decision with status and edges; no cycles.
@ -65,9 +65,9 @@ state into HANDOFF.md — reference the directory
## See also ## See also
- [decision-format.md](decision-format.md) — file contract. - [decision-format.md](decision-format.md) — file contract.
- [../blueprint/SKILL.md](../blueprint/SKILL.md) — downstream of every - `/blueprint` — downstream of every
resolution. resolution.
- [../chart/SKILL.md](../chart/SKILL.md) — phases too big to - `/chart` — phases too big to
blueprint directly get ferried. blueprint directly get ferried.
- [../moor/SKILL.md](../moor/SKILL.md) — closes out the ferry after its - `/moor` — closes out the ferry after its
blueprints ship. blueprints ship.

View File

@ -52,5 +52,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. - `blocked-by` edges must be acyclic — check when adding, not when stuck.
- Status flips only with a filled Resolution; Resolution never edited - Status flips only with a filled Resolution; Resolution never edited
after — supersede with a new decision instead. after — supersede with a new decision instead.
- The `blueprint` column in MAP.md fills as [blueprint](../blueprint/SKILL.md) - The `blueprint` column in MAP.md fills as `/blueprint`
crystallises resolutions into `OKF/blueprints/NNN`. crystallises resolutions into `OKF/blueprints/NNN`.

View File

@ -6,14 +6,14 @@ disable-model-invocation: true
# moor # moor
What you do when the [ferry](../ferry/SKILL.md) has arrived: tie it up. What you do when the `/ferry` has arrived: tie it up.
Runs **after** rig + review-blueprint + commit-atomic-jj, once every Runs **after** rig + review-blueprint + commit-atomic-jj, once every
decision is resolved and the spawned blueprints are done. Consolidates decision is resolved and the spawned blueprints are done. Consolidates
the wiki so the next cold-start agent reads reality, not history. the wiki so the next cold-start agent reads reality, not history.
## When to use ## When to use
- User says "moor", "/moor", "close out the ferry", "the ferry is done". - User says "moor", "/moor", "close out the ferry", "the ferry is done".
- [rig](../rig/SKILL.md)'s done-gate passes on the last blueprint of - `/rig`'s done-gate passes on the last blueprint of
a ferry-traced chain. a ferry-traced chain.
## Process ## Process
@ -94,9 +94,9 @@ the wiki so the next cold-start agent reads reality, not history.
neglect. Go back to the ferry skill. neglect. Go back to the ferry skill.
## See also ## See also
- [../ferry/SKILL.md](../ferry/SKILL.md) — upstream; its "Arrive" step - `/ferry` — upstream; its "Arrive" step
hands off here. hands off here.
- [../rig/SKILL.md](../rig/SKILL.md) — moor runs after its - `/rig` — moor runs after its
done-gate on the ferry's last blueprint. done-gate on the ferry's last blueprint.
- [../write-OKF/okf-layout.md](../write-OKF/okf-layout.md) — the page - `/write-OKF` — the page
contracts moor reconciles against. contracts moor reconciles against.

View File

@ -5,8 +5,8 @@ here changes moor's behaviour — it is the same instructions, moved off the
spine. spine.
The graduated `decisions/NNN-<slug>.md` carries the frontmatter of The graduated `decisions/NNN-<slug>.md` carries the frontmatter of
[decision-format.md](../../engineering/model-domain/decision-format.md) `/model-domain`'s `decision-format.md` plus a question-shaped
plus a question-shaped `decisions/index.md` line. The `Resolution` body `decisions/index.md` line. The `Resolution` body
moves **verbatim** — one home, never two copies; `Options` and `Why it moves **verbatim** — one home, never two copies; `Options` and `Why it
must be decided` stay behind for COLLAPSE. `blocked-by` edges drop; the must be decided` stay behind for COLLAPSE. `blocked-by` edges drop; the
register is not a dependency graph. A resolution that fails the warrant register is not a dependency graph. A resolution that fails the warrant

View File

@ -12,7 +12,7 @@ superpowers' subagent-driven-development, jj-native.
## When to use ## When to use
- User says "rig", "/rig", "implement blueprint NNN", "execute - User says "rig", "/rig", "implement blueprint NNN", "execute
the blueprint". the blueprint".
- A [blueprint](../blueprint/SKILL.md) blueprint just locked and the user - A `/blueprint` blueprint just locked and the user
says go. says go.
## Preconditions (check, don't assume) ## Preconditions (check, don't assume)
@ -26,32 +26,32 @@ superpowers' subagent-driven-development, jj-native.
find on disk → stop, surface it (blueprint may need superseding). If the find on disk → stop, surface it (blueprint may need superseding). If the
blueprint carries `muster: true`, record `review-base:` on it now — `@-` blueprint carries `muster: true`, record `review-base:` on it now — `@-`
(jj) or `git rev-parse HEAD` (git), the parent of where Build begins. (jj) or `git rev-parse HEAD` (git), the parent of where Build begins.
2. **Build** — hand to [bdd](../../engineering/bdd/SKILL.md): scenarios 2. **Build** — hand to `/bdd`: scenarios
from the Contract section, tests only at the listed seams, red→green one from the Contract section, tests only at the listed seams, red→green one
scenario at a time. scenario at a time.
3. **Review** — the four axes as warranted: 3. **Review** — the four axes as warranted:
[review-angles](../../engineering/review-angles/SKILL.md) always; `/review-angles` always;
[nuke-review](../../engineering/nuke-review/SKILL.md) / `/nuke-review` /
[winnow](../../engineering/winnow/SKILL.md) for non-trivial diffs; `/winnow` for non-trivial diffs;
[review-blueprint](../../engineering/review-blueprint/SKILL.md) `/review-blueprint`
**always** — it is the done-gate. **always** — it is the done-gate.
4. **Done-gate** — run the blueprint's Verify command; **paste the output**. 4. **Done-gate** — run the blueprint's Verify command; **paste the output**.
Red or missing output → not done; keep working or report blocked. Red or missing output → not done; keep working or report blocked.
"Should pass" never passes. "Should pass" never passes.
5. **Seal** — [commit-atomic-jj](../../productivity/commit-atomic-jj/SKILL.md); the 5. **Seal** — `/commit-atomic-jj`; the
message body cites `blueprint NNN`. Fix + regression test in the same message body cites `blueprint NNN`. Fix + regression test in the same
change. change.
6. **Muster (only if `muster: true`)** — halt before closing: pipe the whole 6. **Muster (only if `muster: true`)** — halt before closing: pipe the whole
change to hunk — `jj diff --from <review-base> --to @ --git | hunk patch -` change to hunk — `jj diff --from <review-base> --to @ --git | hunk patch -`
(git: `git diff <review-base>..HEAD | hunk patch -`; no hunk → show the (git: `git diff <review-base>..HEAD | hunk patch -`; no hunk → show the
range raw). Record the `tally:` block on the blueprint range raw). Record the `tally:` block on the blueprint (`/blueprint`'s
([blueprint-format.md](../blueprint/blueprint-format.md)). `matches: no` → `blueprint-format.md`). `matches: no` →
stay halted for a fix + re-muster; never flip on a known miss. No stay halted for a fix + re-muster; never flip on a known miss. No
`muster:` field → skip entirely. `muster:` field → skip entirely.
7. **Close the loop** — flip blueprint status to `implemented`; update its 7. **Close the loop** — flip blueprint status to `implemented`; update its
index.md line; tick the roadmap item via index.md line; tick the roadmap item via
[chart](../chart/SKILL.md) revise mode; wiki-worthy learnings `/chart` revise mode; wiki-worthy learnings
→ `OKF/LEARNINGS.md` ([write-OKF](../write-OKF/SKILL.md) refresh if → `OKF/LEARNINGS.md` (`/write-OKF` refresh if
pages went stale). pages went stale).
## Subagent dispatch — the handoff gate ## Subagent dispatch — the handoff gate
@ -60,7 +60,7 @@ Mutating subagents (`caveman:cavecrew-builder`, any implementer) spawn
restated), constraints, and the verify command for *their* slice. The restated), constraints, and the verify command for *their* slice. The
locked blueprint is the default brief. Read-only lookups locked blueprint is the default brief. Read-only lookups
(`cavecrew-investigator`) are exempt. See (`cavecrew-investigator`) are exempt. See
[spawn-cavecrew](../../productivity/spawn-cavecrew/SKILL.md). `/spawn-cavecrew`.
## Output / done criteria ## Output / done criteria
- Blueprint's Verify output pasted and green; four-axis findings resolved or - Blueprint's Verify output pasted and green; four-axis findings resolved or
@ -76,10 +76,10 @@ locked blueprint is the default brief. Read-only lookups
- One blueprint per run — the next blueprint is a fresh rig. - One blueprint per run — the next blueprint is a fresh rig.
## See also ## See also
- [../blueprint/SKILL.md](../blueprint/SKILL.md) — upstream; owns blueprint - `/blueprint` — upstream; owns blueprint
status semantics. status semantics.
- [../../engineering/review-blueprint/SKILL.md](../../engineering/review-blueprint/SKILL.md) - `/review-blueprint`
— the done-gate axis. — the done-gate axis.
- [../../engineering/diagnose/SKILL.md](../../engineering/diagnose/SKILL.md) - `/diagnose`
— a bug found during a rig that isn't this blueprint's scope gets its own — a bug found during a rig that isn't this blueprint's scope gets its own
loop. loop.

View File

@ -16,7 +16,7 @@ where step 2 came up short.
1. **OKF** — read the pages the question touches, starting at 1. **OKF** — read the pages the question touches, starting at
`OKF/index.md`. No `./OKF/` → say so in one line, name `OKF/index.md`. No `./OKF/` → say so in one line, name
[`/write-OKF`](../write-OKF/SKILL.md), **stop**. Nothing else runs. `/write-OKF`, **stop**. Nothing else runs.
2. **nostos** — query the nostos MCP server, via its `find` / 2. **nostos** — query the nostos MCP server, via its `find` /
`provenance_of` tools. It is the primary source for what the code `provenance_of` tools. It is the primary source for what the code
says, not a hint feeding a later read: what it returns is source, not says, not a hint feeding a later read: what it returns is source, not
@ -36,10 +36,9 @@ where step 2 came up short.
Cite `path:symbol` where a symbol carries the claim — that is the shape Cite `path:symbol` where a symbol carries the claim — that is the shape
that breaks when the thing it cites moves, while a `path:line` suffix is that breaks when the thing it cites moves, while a `path:line` suffix is
a reading aid nothing validates a reading aid nothing validates (`/write-OKF`'s `okf-layout.md`). A
([okf-layout.md](../write-OKF/okf-layout.md)). A claim with no internal claim with no internal owner — a third-party API, a spec — is followed
owner — a third-party API, a spec — is followed to its primary source to its primary source and cited. **Nothing else leaves the repo.**
and cited. **Nothing else leaves the repo.**
## Two mouths ## Two mouths
@ -59,8 +58,7 @@ decides whether it becomes a write.
## The mark ## The mark
`sounded: YYYY-MM-DD`, fourth frontmatter field, after `traces-to` (see `sounded: YYYY-MM-DD`, fourth frontmatter field, after `traces-to` (see
[blueprint-format.md](../blueprint/blueprint-format.md)). Sounding is a `/blueprint`'s `blueprint-format.md`). Sounding is a precondition of lock: `okf-check` warns `<path>: locked without
precondition of lock: `okf-check` warns `<path>: locked without
sounded:` on a `locked` blueprint carrying no stamp. Warning, not error sounded:` on a `locked` blueprint carrying no stamp. Warning, not error
— exit status stays 0. — exit status stays 0.
@ -87,12 +85,12 @@ the user asks, or when a cite no longer resolves.
research is upstream `research`, not this. research is upstream `research`, not this.
- **Never** edit a locked blueprint's Contract or Verify — a sounding - **Never** edit a locked blueprint's Contract or Verify — a sounding
that contradicts them supersedes, per that contradicts them supersedes, per
[blueprint](../blueprint/SKILL.md)'s status discipline. `/blueprint`'s status discipline.
## See also ## See also
- [../blueprint/SKILL.md](../blueprint/SKILL.md) — the caller; sounding - `/blueprint` — the caller; sounding
gates its lock step. gates its lock step.
- [../write-OKF/SKILL.md](../write-OKF/SKILL.md) — no `OKF/` → there - `/write-OKF` — no `OKF/` → there
first; `okf-check` owns the warning. first; `okf-check` owns the warning.
- [../rig/SKILL.md](../rig/SKILL.md) — executes what a sounded - `/rig` — executes what a sounded
blueprint locked. blueprint locked.

View File

@ -78,4 +78,4 @@ rig = bdd → 4-axis review → Verify → commit-atomic-jj → close (OKF refre
loop as far upstream as the situation allows. loop as far upstream as the situation allows.
- One skill at a time; each names its own hand-offs. - One skill at a time; each names its own hand-offs.
- New skill added to octobot → add its row here - New skill added to octobot → add its row here
([conjure-a-skill](../../productivity/conjure-a-skill/SKILL.md) step). (`/conjure-a-skill` step).

View File

@ -14,8 +14,8 @@ contract: [okf-layout.md](okf-layout.md).
## When to use ## When to use
- User says "scribe OKF", "/write-OKF", "set up the knowledge folder", - User says "scribe OKF", "/write-OKF", "set up the knowledge folder",
"refresh the wiki". "refresh the wiki".
- Another loop skill ([chart](../chart/SKILL.md), - Another loop skill (`/chart`,
[rig](../rig/SKILL.md)) requires an `OKF/` that is absent `/rig`) requires an `OKF/` that is absent
or stale. or stale.
## Mode detection ## Mode detection
@ -36,7 +36,7 @@ contract: [okf-layout.md](okf-layout.md).
is listed when planned, written when its producer has something to is listed when planned, written when its producer has something to
say: SUMMARY from an existing README, ARCHITECTURE bones from the say: SUMMARY from an existing README, ARCHITECTURE bones from the
directory tree and manifests, while ROADMAP and CONTEXT stay directory tree and manifests, while ROADMAP and CONTEXT stay
listed-not-written until [chart](../chart/SKILL.md) / listed-not-written until `/chart` /
model-domain produce them. **Never invent facts** — an empty section model-domain produce them. **Never invent facts** — an empty section
with a TODO beats a fabricated architecture claim, and an unwritten with a TODO beats a fabricated architecture claim, and an unwritten
page beats an empty one. page beats an empty one.
@ -59,8 +59,7 @@ contract: [okf-layout.md](okf-layout.md).
2. **Smallest edit per delta** — never rewrite a page wholesale; a page 2. **Smallest edit per delta** — never rewrite a page wholesale; a page
over its cap splits per [split-page.md](split-page.md), alone. over its cap splits per [split-page.md](split-page.md), alone.
3. **Supersede, don't delete**: outdated claims get struck with a 3. **Supersede, don't delete**: outdated claims get struck with a
pointer to the replacement, mirroring pointer to the replacement, mirroring `/chart`'s `revise.md` discipline.
[chart/revise.md](../chart/revise.md) discipline.
4. Every ARCHITECTURE.md claim must be **traceable to a file** — cite 4. Every ARCHITECTURE.md claim must be **traceable to a file** — cite
`path:symbol` when a symbol carries the claim, `path` or `path:line` `path:symbol` when a symbol carries the claim, `path` or `path:line`
otherwise; grammar in [okf-layout.md](okf-layout.md). A claim you otherwise; grammar in [okf-layout.md](okf-layout.md). A claim you
@ -91,7 +90,7 @@ contract: [okf-layout.md](okf-layout.md).
- Refresh: every edit traces to a named delta (commit, file, or session - Refresh: every edit traces to a named delta (commit, file, or session
fact); superseded claims remain visible. fact); superseded claims remain visible.
- Nothing committed — hand to - Nothing committed — hand to
[commit-atomic-jj](../../productivity/commit-atomic-jj/SKILL.md) `/commit-atomic-jj`
(`docs(okf): ...`). (`docs(okf): ...`).
## Guardrails ## Guardrails
@ -104,7 +103,7 @@ contract: [okf-layout.md](okf-layout.md).
- **Never** move legacy files without explicit consent. - **Never** move legacy files without explicit consent.
## See also ## See also
- [../chart/SKILL.md](../chart/SKILL.md) — writes ROADMAP.md. - `/chart` — writes ROADMAP.md.
- [../blueprint/SKILL.md](../blueprint/SKILL.md) — writes blueprints/. - `/blueprint` — writes blueprints/.
- [../../engineering/model-domain/SKILL.md](../../engineering/model-domain/SKILL.md) - `/model-domain`
— owns CONTEXT.md content; scribe only places it. — owns CONTEXT.md content; scribe only places it.

View File

@ -81,8 +81,7 @@ loop, not on disk.
splits: a discharged phase collapses to one line naming what shipped splits: a discharged phase collapses to one line naming what shipped
and its blueprint numbers, which hold the detail. and its blueprint numbers, which hold the detail.
- **decisions/** — the why-register: one file per settled decision, - **decisions/** — the why-register: one file per settled decision,
permanent numbers, format in permanent numbers, format in `/model-domain`'s `decision-format.md`.
[model-domain/decision-format.md](../../engineering/model-domain/decision-format.md).
`decisions/index.md` carries one **question-shaped** line per decision, `decisions/index.md` carries one **question-shaped** line per decision,
the question derived from the file's first `answers:` entry — index.md the question derived from the file's first `answers:` entry — index.md
lists the register, not its members. lists the register, not its members.
@ -97,8 +96,8 @@ loop, not on disk.
source: MAP.md). A multi-blueprint MAP may opt into moor's human review source: MAP.md). A multi-blueprint MAP may opt into moor's human review
gate with `muster: true`; moor derives `review-base` (parent of the gate with `muster: true`; moor derives `review-base` (parent of the
earliest commit citing a ferry blueprint) and persists it on the earliest commit citing a ferry blueprint) and persists it on the
collapsed page — prose-enforced in [moor](../moor/SKILL.md), never collapsed page — prose-enforced in `/moor`, never
`okf-check`. [moor](../moor/SKILL.md) graduates the resolved `okf-check`. `/moor` graduates the resolved
decisions into `decisions/` and collapses the directory into decisions into `decisions/` and collapses the directory into
`<topic>.md` — problem shape, rejected alternatives, graduated `<topic>.md` — problem shape, rejected alternatives, graduated
numbers — indexed `<topic> — moored <date> → <topic>.md`. The two numbers — indexed `<topic> — moored <date> → <topic>.md`. The two
@ -116,7 +115,7 @@ loop, not on disk.
## Rules ## Rules
- Durable knowledge only — no session state, no high-frequency logs - Durable knowledge only — no session state, no high-frequency logs
(that's [write-handoff](../../productivity/write-handoff/SKILL.md) territory). (that's `/write-handoff` territory).
- One fact, one home; cross-link with relative paths. - One fact, one home; cross-link with relative paths.
- Every page ≤110 lines, a blueprint ≤150; grow by splitting + indexing, - Every page ≤110 lines, a blueprint ≤150; grow by splitting + indexing,
not by scrolling. Over cap is an **error**, not a warning, because every not by scrolling. Over cap is an **error**, not a warning, because every
@ -126,4 +125,4 @@ loop, not on disk.
- Blueprints may grow from `NNN-<slug>.md` into `NNN-<slug>/` directories - Blueprints may grow from `NNN-<slug>.md` into `NNN-<slug>/` directories
(blueprint.md + notes) — the glossary never moves in there. Over 150 (blueprint.md + notes) — the glossary never moves in there. Over 150
lines reads as **scope** first: two blueprints, or a lines reads as **scope** first: two blueprints, or a
[ferry](../ferry/SKILL.md). `/ferry`.

View File

@ -78,7 +78,7 @@ deleted once.
Over 150 lines, ask what is long before splitting the file. A blueprint Over 150 lines, ask what is long before splitting the file. A blueprint
naming three things in its slug is over-*scoped*, not over-written: naming three things in its slug is over-*scoped*, not over-written:
compound work that still fits one session becomes two blueprints, and work compound work that still fits one session becomes two blueprints, and work
past one session goes to [ferry](../ferry/SKILL.md), whose own trigger is past one session goes to `/ferry`, whose own trigger is
exactly this. The `NNN-<slug>/` directory form is for a blueprint's notes, exactly this. The `NNN-<slug>/` directory form is for a blueprint's notes,
not for a blueprint that should have been two. not for a blueprint that should have been two.

View File

@ -5,7 +5,7 @@ description: Atomic-commit discipline for plain git repos (no .jj) — read ever
# commit-atomic-git # commit-atomic-git
git-native counterpart of [commit-atomic-jj](../commit-atomic-jj/SKILL.md). git-native counterpart of `/commit-atomic-jj`.
Same principles; the staging area replaces `jj split`, and there is no Same principles; the staging area replaces `jj split`, and there is no
`jj new` step — but git has its own traps (blind `-a`, `add .`). `jj new` step — but git has its own traps (blind `-a`, `add .`).
@ -36,7 +36,7 @@ Same principles; the staging area replaces `jj split`, and there is no
edit the patch down to one concern's hunks, `git apply --cached c.patch`. edit the patch down to one concern's hunks, `git apply --cached c.patch`.
- Style refactors are their own commit — never share one with logic. - Style refactors are their own commit — never share one with logic.
- Tests for existing behaviour: own commit, unless they land with the - Tests for existing behaviour: own commit, unless they land with the
new behaviour they cover ([bdd](../../engineering/bdd/SKILL.md)). new behaviour they cover (`/bdd`).
### 3. Semantic format ### 3. Semantic format
``` ```
@ -94,11 +94,11 @@ hangs the session.
force-push is the agreed plan. force-push is the agreed plan.
## See also ## See also
- [../commit-atomic-jj/SKILL.md](../commit-atomic-jj/SKILL.md) — jj - `/commit-atomic-jj` — jj
counterpart; shared philosophy, worked split example in its counterpart; shared philosophy, worked split example in its
examples.md translates 1:1 (staging instead of `jj split`). examples.md translates 1:1 (staging instead of `jj split`).
- [../resolve-conflicts-git/SKILL.md](../resolve-conflicts-git/SKILL.md) - `/resolve-conflicts-git`
— sealing a resolved merge lands here. — sealing a resolved merge lands here.
- [../../scaffold/setup-git-guardrails/SKILL.md](../../scaffold/setup-git-guardrails/SKILL.md) - `/setup-git-guardrails`
— installs a PreToolUse hook that mechanically backstops the force-push — installs a PreToolUse hook that mechanically backstops the force-push
and destructive-command rules; prose can drift, hooks cannot. and destructive-command rules; prose can drift, hooks cannot.

View File

@ -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 - If the diff touches two areas (a bug fix and a refactor; two
unrelated features), **`jj split`** before describing. unrelated features), **`jj split`** before describing.
- Style refactors are their own change — they shouldn't share a commit - Style refactors are their own change — they shouldn't share a commit
with logic changes (see [`../../engineering/style-r/tidyverse.md`](../../engineering/style-r/tidyverse.md#tooling)). with logic changes (see `/style-r`).
- Test additions for an existing feature are their own change unless - Test additions for an existing feature are their own change unless
they accompany a new behaviour landing in the same diff. they accompany a new behaviour landing in the same diff.
@ -52,7 +52,7 @@ 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. If the project has no ticket convention, omit. Don't invent a prefix.
### 5. Blueprint citations ### 5. Blueprint citations
A change executing an `OKF/blueprints/NNN` blueprint ([rig](../../loop/rig/SKILL.md)) A change executing an `OKF/blueprints/NNN` blueprint (`/rig`)
cites it in the body: `implements blueprint NNN`. Readers trace the diff to cites it in the body: `implements blueprint NNN`. Readers trace the diff to
its justification without leaving the log. its justification without leaving the log.
@ -98,11 +98,11 @@ commits, past-tense messages, missing scope, deferred docs, skipped
## See also ## See also
- [examples.md](examples.md) — a real before/after where a working copy is - [examples.md](examples.md) — a real before/after where a working copy is
split into two atomic commits with proper messages. split into two atomic commits with proper messages.
- [`../../engineering/style-r/SKILL.md`](../../engineering/style-r/SKILL.md) - `/style-r`
— style refactors are their own atomic change. — style refactors are their own atomic change.
- [`../../engineering/bdd/SKILL.md`](../../engineering/bdd/SKILL.md) - `/bdd`
— the regression test for a bug fix lands in the *same* atomic change — the regression test for a bug fix lands in the *same* atomic change
as the fix. as the fix.
- [`../../engineering/diagnose/SKILL.md`](../../engineering/diagnose/SKILL.md) - `/diagnose`
— phase-6 post-mortem commit message names the confirmed hypothesis. — phase-6 post-mortem commit message names the confirmed hypothesis.
- [`../../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. - `/develop-python` / `/develop-r` — workflow orchestrators that hand off here for the commit phase.

View File

@ -50,7 +50,7 @@ Why this works:
change will…". change will…".
- Body bullets are each one concern, each `type(scope): imperative`. - Body bullets are each one concern, each `type(scope): imperative`.
- The test ships with the fix (see - The test ships with the fix (see
[`../../engineering/bdd/SKILL.md`](../../engineering/bdd/SKILL.md)). `/bdd`).
- The docstring update ships with the fix (see - The docstring update ships with the fix (see
[SKILL.md §5](SKILL.md)). [SKILL.md §5](SKILL.md)).

View File

@ -35,7 +35,7 @@ Full vocabulary: [glossary.md](glossary.md). Design playbook: [principles.md](pr
No new-skill exceptions; `bdd` is the single grandfathered non-verb No new-skill exceptions; `bdd` is the single grandfathered non-verb
name (initialism, trigger muscle memory), not precedent. name (initialism, trigger muscle memory), not precedent.
- **invocation**: default `disable-model-invocation: true` + a - **invocation**: default `disable-model-invocation: true` + a
[`steer`](../../loop/steer/SKILL.md) row; model-invoked only when `/steer` row; model-invoked only when
the agent must fire it from natural mid-work phrasing (then the the agent must fire it from natural mid-work phrasing (then the
description carries "Use when" triggers). description carries "Use when" triggers).
- one-line purpose - one-line purpose
@ -69,7 +69,7 @@ Full vocabulary: [glossary.md](glossary.md). Design playbook: [principles.md](pr
`~/.claude/skills/`, so create a per-skill symlink: `~/.claude/skills/`, so create a per-skill symlink:
`ln -s ~/code/octobot/skills/<category>/<name> ~/.claude/skills/<name>` `ln -s ~/code/octobot/skills/<category>/<name> ~/.claude/skills/<name>`
6. **Commit** — from the octobot repo, following the `type(scope): 6. **Commit** — from the octobot repo, following the `type(scope):
imperative` format from [`../commit-atomic-jj/SKILL.md`](../commit-atomic-jj/SKILL.md): imperative` format from `/commit-atomic-jj`:
`jj describe -m "feat(skills): add <name> skill"` `jj describe -m "feat(skills): add <name> skill"`
(and `jj git push` if a remote exists). (and `jj git push` if a remote exists).
@ -97,7 +97,7 @@ description: <what it does>. Use when <concrete trigger>.
- Never accept a name that doesn't open with an imperative verb. - Never accept a name that doesn't open with an imperative verb.
- Never write a model-invoked skill whose description lacks "Use when". - Never write a model-invoked skill whose description lacks "Use when".
- Never finish without adding the skill's row to - Never finish without adding the skill's row to
[`steer`](../../loop/steer/SKILL.md). `/steer`.
- **Never let `SKILL.md` exceed 110 lines.** Split into topic-named - **Never let `SKILL.md` exceed 110 lines.** Split into topic-named
siblings before committing. siblings before committing.
- Reject any line that fails the **no-op** test (principles.md §pruning). - Reject any line that fails the **no-op** test (principles.md §pruning).
@ -105,4 +105,4 @@ description: <what it does>. Use when <concrete trigger>.
## See also ## See also
- [principles.md](principles.md) — the design playbook this skill applies. - [principles.md](principles.md) — the design playbook this skill applies.
- [glossary.md](glossary.md) — definitions for every bold term above. - [glossary.md](glossary.md) — definitions for every bold term above.
- [`../commit-atomic-jj/SKILL.md`](../commit-atomic-jj/SKILL.md) — commit format. - `/commit-atomic-jj` — commit format.

View File

@ -0,0 +1,60 @@
#!/usr/bin/env python3
"""Validate cross-skill `/skill-name` references. Usage: skill-ref-check <skills-dir>
Errors (exit 1): a backtick-wrapped `/skill-name` mention (R-023) that
names no `<category>/<name>/` folder under the skills directory. This is
the replacement coverage for the path-validation `link-check` lost when
cross-skill references stopped being paths — it checks name existence,
not path resolution, so it cannot tell a real skill from a typo that
happens to collide with one.
Fenced blocks are skipped, same reason as `link-check`: there a mention
is illustration, not a reference. `BUILTIN` exempts a Claude Code
skill this repo doesn't own — it ships with the harness, not
`skills/`, so no local folder can ever resolve it.
"""
import re
import sys
from pathlib import Path
REF = re.compile(r"`/([A-Za-z][A-Za-z0-9-]*)`")
BUILTIN = ("code-review",)
def refs(text):
"""(line number, name) for every `/skill-name` mention outside fences."""
fenced = False
for number, line in enumerate(text.splitlines(), 1):
if line.startswith("```"):
fenced = not fenced
elif not fenced:
for name in REF.findall(line):
yield number, name
def main(argv):
if len(argv) != 2:
print("usage: skill-ref-check <skills-dir>", file=sys.stderr)
return 2
root = Path(argv[1]).resolve()
if not root.is_dir():
print(f"not a directory: {root}", file=sys.stderr)
return 2
names = {p.name for p in root.glob("*/*") if p.is_dir()}
errors = []
for page in sorted(root.rglob("*.md")):
rel = page.relative_to(root.parent)
for number, name in refs(page.read_text()):
if name not in names and name not in BUILTIN:
errors.append(f"{rel}:{number}: unresolvable skill reference: /{name}")
for line in errors:
print(f"ERROR {line}")
print(f"{len(errors)} error(s), 0 warning(s)")
return 1 if errors else 0
if __name__ == "__main__":
sys.exit(main(sys.argv))

View File

@ -35,6 +35,6 @@ disable-model-invocation: true
- If the user gets impatient, offer to stop early with the current understanding. - If the user gets impatient, offer to stop early with the current understanding.
## See also ## See also
- [../../engineering/grill-with-docs/SKILL.md](../../engineering/grill-with-docs/SKILL.md) - `/grill-with-docs`
— same energy, but anchored to the repo's `CONTEXT.md` and code. Use — same energy, but anchored to the repo's `CONTEXT.md` and code. Use
that one when a codebase exists to grill against. that one when a codebase exists to grill against.

View File

@ -5,7 +5,7 @@ description: Resolve git merge/rebase conflicts by intent, not by picking sides
# resolve-conflicts-git # resolve-conflicts-git
git-native counterpart of [resolve-conflicts-jj](../resolve-conflicts-jj/SKILL.md). git-native counterpart of `/resolve-conflicts-jj`.
Unlike jj, git conflicts are **mid-operation limbo** — `MERGE_HEAD` or a Unlike jj, git conflicts are **mid-operation limbo** — `MERGE_HEAD` or a
paused rebase holds the repo until you continue or abort. The limbo is paused rebase holds the repo until you continue or abort. The limbo is
still not an emergency: `--abort` is a clean reset to before the still not an emergency: `--abort` is a clean reset to before the
@ -80,10 +80,10 @@ under abort-pressure.
`grep -rn '<<<<<<<' .` before continuing. `grep -rn '<<<<<<<' .` before continuing.
## See also ## See also
- [../resolve-conflicts-jj/SKILL.md](../resolve-conflicts-jj/SKILL.md) — jj - `/resolve-conflicts-jj` — jj
counterpart; topology-first rule and real-world phantom-conflict case counterpart; topology-first rule and real-world phantom-conflict case
(`OKF/LEARNINGS.md`) apply verbatim. (`OKF/LEARNINGS.md`) apply verbatim.
- [../commit-atomic-git/SKILL.md](../commit-atomic-git/SKILL.md) — - `/commit-atomic-git` —
sealing discipline after resolution. sealing discipline after resolution.
- [../../engineering/review-angles/SKILL.md](../../engineering/review-angles/SKILL.md) - `/review-angles`
— a resolved merge is a diff like any other; review it. — a resolved merge is a diff like any other; review it.

View File

@ -36,9 +36,9 @@ conflicts are **first-class committed objects** — no mid-merge limbo, no
5. **Squash the resolution.** Working copy sits on the conflicted 5. **Squash the resolution.** Working copy sits on the conflicted
commit (or `jj new <conflicted>` first); edit markers out; then commit (or `jj new <conflicted>` first); edit markers out; then
`jj squash --use-destination-message` — plain `jj squash` opens an `jj squash --use-destination-message` — plain `jj squash` opens an
editor and **hangs a headless session** editor and **hangs a headless session** (`/commit-atomic-jj`'s
([commit-atomic-jj anti-patterns](../commit-atomic-jj/anti-patterns.md)). Foreground `anti-patterns.md`). Foreground only; backgrounded jj mutations race
only; backgrounded jj mutations race the snapshot. the snapshot.
6. **Verify.** Conflicted chains skip your checks while red — run the 6. **Verify.** Conflicted chains skip your checks while red — run the
project's automated checks now (typecheck, tests, lint). Cross-file project's automated checks now (typecheck, tests, lint). Cross-file
@ -69,7 +69,7 @@ conflicts are **first-class committed objects** — no mid-merge limbo, no
or reject it explicitly. or reject it explicitly.
## See also ## See also
- [../commit-atomic-jj/SKILL.md](../commit-atomic-jj/SKILL.md) — sealing discipline - `/commit-atomic-jj` — sealing discipline
after resolution; foreground-only rule. after resolution; foreground-only rule.
- [../../engineering/review-angles/SKILL.md](../../engineering/review-angles/SKILL.md) - `/review-angles`
— a resolved merge is a diff like any other; review it. — a resolved merge is a diff like any other; review it.

View File

@ -61,7 +61,7 @@ fan out concurrently.
A **builder** (or any subagent that edits files) spawns only with a A **builder** (or any subagent that edits files) spawns only with a
written brief: goal, blueprint/OKF references by path (`OKF/blueprints/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. pages it needs), constraints, and the **verify command** for its slice.
A locked blueprint is the default brief ([rig](../../loop/rig/SKILL.md)). A locked blueprint is the default brief (`/rig`).
Read-only lookups (**investigator**) are exempt. No brief, no builder. Read-only lookups (**investigator**) are exempt. No brief, no builder.
## octobot conventions ## octobot conventions
@ -80,7 +80,7 @@ Read-only lookups (**investigator**) are exempt. No brief, no builder.
- A review pass named the diff source (`jj diff` / `-r @-`) in its prompt. - A review pass named the diff source (`jj diff` / `-r @-`) in its prompt.
## See also (review axis/discipline lives here, not in the cavecrew skill) ## See also (review axis/discipline lives here, not in the cavecrew skill)
- [`../../engineering/review-angles/SKILL.md`](../../engineering/review-angles/SKILL.md) — *correctness*. - `/review-angles` — *correctness*.
- [`../../engineering/nuke-review/SKILL.md`](../../engineering/nuke-review/SKILL.md) — *structural quality* (code-judo). - `/nuke-review` — *structural quality* (code-judo).
- [`../../engineering/winnow/SKILL.md`](../../engineering/winnow/SKILL.md) — *mechanical debloat*. - `/winnow` — *mechanical debloat*.
- [`../../engineering/review-blueprint/SKILL.md`](../../engineering/review-blueprint/SKILL.md) — *blueprint fidelity* (diff vs OKF/blueprints/NNN). - `/review-blueprint` — *blueprint fidelity* (diff vs OKF/blueprints/NNN).

View File

@ -9,14 +9,14 @@ disable-model-invocation: true
One format, two exits: a **file** (`./HANDOFF.md`, or the OS temp dir on 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 request) for the next session or a human; a **prompt payload** for a
subagent spawn (the handoff-gate brief — subagent spawn (the handoff-gate brief —
[spawn-cavecrew](../spawn-cavecrew/SKILL.md)). `/spawn-cavecrew`).
## When to use ## When to use
- User says "write handoff", "/write-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. - Session ending / context near full on unfinished work.
- A mutating subagent needs a brief and no locked blueprint covers the work - 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; (a locked `OKF/blueprints/NNN` **is** the brief — don't duplicate it;
see [rig](../../loop/rig/SKILL.md)). see `/rig`).
## Rules (both exits) ## Rules (both exits)
- **Reference, don't duplicate.** Anything already captured in an - **Reference, don't duplicate.** Anything already captured in an
@ -72,7 +72,7 @@ subagent spawn (the handoff-gate brief —
restated; no secret values; "Next concrete step" is one action. restated; no secret values; "Next concrete step" is one action.
## See also ## See also
- [../../loop/ferry/SKILL.md](../../loop/ferry/SKILL.md) — multi-session - `/ferry` — multi-session
*design* work rides the ferry, not the handoff. *design* work rides the ferry, not the handoff.
- [../spawn-cavecrew/SKILL.md](../spawn-cavecrew/SKILL.md) — the - `/spawn-cavecrew` — the
handoff gate this format serves. handoff gate this format serves.

View File

@ -65,6 +65,6 @@ disable-model-invocation: true
`environment:` literals. `environment:` literals.
## See also ## See also
- [`../containerize-project/SKILL.md`](../containerize-project/SKILL.md) - `/containerize-project`
— the three-stage setup this hardens; its `.dockerignore` templates — the three-stage setup this hardens; its `.dockerignore` templates
already exclude `.env` and `.env.*`. already exclude `.env` and `.env.*`.

View File

@ -34,14 +34,14 @@ disable-model-invocation: true
└── .gitignore ← gitignore.tpl └── .gitignore ← gitignore.tpl
``` ```
3. **Delegate Docker** to 3. **Delegate Docker** to
[`/containerize-project`](../containerize-project/SKILL.md) (python `/containerize-project` (python
variant): it writes `Dockerfile`, `docker-compose.yml`, variant): it writes `Dockerfile`, `docker-compose.yml`,
`.dockerignore`, and appends the Docker recipes to the justfile. `.dockerignore`, and appends the Docker recipes to the justfile.
4. **Stop. Do not run `jj describe`.** Tell the user: 4. **Stop. Do not run `jj describe`.** Tell the user:
> "Review with `jj diff` (or `git status` + `git diff`). Then run > "Review with `jj diff` (or `git status` + `git diff`). Then run
> `just build-dev` to verify the toolchain. Describe the change with > `just build-dev` to verify the toolchain. Describe the change with
> [`/commit-atomic-jj`](../../productivity/commit-atomic-jj/SKILL.md) when satisfied." > `/commit-atomic-jj` when satisfied."
5. **Suggest** running [`/write-readme-py`](../../engineering/write-readme-py/SKILL.md) 5. **Suggest** running `/write-readme-py`
after the first successful build to generate the README. after the first successful build to generate the README.
## Placeholders used by templates ## Placeholders used by templates
@ -61,10 +61,10 @@ disable-model-invocation: true
the scaffold lean and let the user grow it. the scaffold lean and let the user grow it.
## See also ## See also
- [`../containerize-project/SKILL.md`](../containerize-project/SKILL.md) - `/containerize-project`
— owns the Docker templates and the three-stage pattern rationale. — owns the Docker templates and the three-stage pattern rationale.
- [`../../engineering/develop-python/SKILL.md`](../../engineering/develop-python/SKILL.md) - `/develop-python`
— workflow that this scaffold sets up. — workflow that this scaffold sets up.
- [`../../engineering/write-readme-py/SKILL.md`](../../engineering/write-readme-py/SKILL.md) - `/write-readme-py`
— README generator that reads the scaffolded `pyproject.toml` and — README generator that reads the scaffolded `pyproject.toml` and
`justfile`. `justfile`.

View File

@ -31,14 +31,14 @@ disable-model-invocation: true
└── .gitignore ← gitignore.tpl └── .gitignore ← gitignore.tpl
``` ```
3. **Delegate Docker** to 3. **Delegate Docker** to
[`/containerize-project`](../containerize-project/SKILL.md) `/containerize-project`
(r-analysis variant): it writes `Dockerfile`, `docker-compose.yml`, (r-analysis variant): it writes `Dockerfile`, `docker-compose.yml`,
`.dockerignore`, and appends the Docker recipes to the justfile. `.dockerignore`, and appends the Docker recipes to the justfile.
4. **Stop. Do not run `jj describe`.** Tell the user: 4. **Stop. Do not run `jj describe`.** Tell the user:
> "Review with `jj diff`. Then `just build-dev` → `just up` → `R -e > "Review with `jj diff`. Then `just build-dev` → `just up` → `R -e
> 'renv::init()'` to lock dependencies. Then `just run` to execute > 'renv::init()'` to lock dependencies. Then `just run` to execute
> the pipeline. Describe with > the pipeline. Describe with
> [`/commit-atomic-jj`](../../productivity/commit-atomic-jj/SKILL.md) when satisfied." > `/commit-atomic-jj` when satisfied."
## Placeholders used by templates ## Placeholders used by templates
- `<project-name>` — snake_case project name. - `<project-name>` — snake_case project name.
@ -50,17 +50,17 @@ disable-model-invocation: true
- **Never** invoke `renv::init()` for the user. - **Never** invoke `renv::init()` for the user.
- **`R/functions/` and `R/pipeline/` follow `box::use` rules** — - **`R/functions/` and `R/pipeline/` follow `box::use` rules** —
no `library()`, no `source()`. See no `library()`, no `source()`. See
[`../../engineering/style-r/box.md`](../../engineering/style-r/box.md). `/style-r`.
- **Skeleton `_targets.R` has two demo targets** (`raw`, `processed`) - **Skeleton `_targets.R` has two demo targets** (`raw`, `processed`)
showing the box-imported pipeline pattern. Replace, don't extend. showing the box-imported pipeline pattern. Replace, don't extend.
## See also ## See also
- [`../containerize-project/SKILL.md`](../containerize-project/SKILL.md) - `/containerize-project`
— owns the Docker templates and the three-stage pattern rationale. — owns the Docker templates and the three-stage pattern rationale.
- [`../../engineering/develop-r/SKILL.md`](../../engineering/develop-r/SKILL.md) - `/develop-r`
— workflow auto-detects `_targets.R` → R-analysis loop. — workflow auto-detects `_targets.R` → R-analysis loop.
- [`../../engineering/style-r/SKILL.md`](../../engineering/style-r/SKILL.md) - `/style-r`
— every function in `R/functions/` and `R/pipeline/` follows these. — every function in `R/functions/` and `R/pipeline/` follows these.
- [`../../engineering/bdd/SKILL.md`](../../engineering/bdd/SKILL.md) - `/bdd`
— `tests/testthat/` opens with the standard `box::use(testthat[...])` — `tests/testthat/` opens with the standard `box::use(testthat[...])`
prologue (see `bdd/tests-r.md`). prologue (see `bdd/tests-r.md`).

View File

@ -31,15 +31,15 @@ disable-model-invocation: true
└── .gitignore ← gitignore.tpl └── .gitignore ← gitignore.tpl
``` ```
3. **Delegate Docker** to 3. **Delegate Docker** to
[`/containerize-project`](../containerize-project/SKILL.md) `/containerize-project`
(r-package variant): it writes `Dockerfile`, `docker-compose.yml`, (r-package variant): it writes `Dockerfile`, `docker-compose.yml`,
`.dockerignore`, and appends the Docker recipes to the justfile. `.dockerignore`, and appends the Docker recipes to the justfile.
4. **Stop. Do not run `jj describe`.** Tell the user: 4. **Stop. Do not run `jj describe`.** Tell the user:
> "Review with `jj diff`. Then run `just build-dev` → `just up` → `R > "Review with `jj diff`. Then run `just build-dev` → `just up` → `R
> -e 'renv::init()'` to lock dependencies; then `just document` and > -e 'renv::init()'` to lock dependencies; then `just document` and
> `just check`. Describe the change with > `just check`. Describe the change with
> [`/commit-atomic-jj`](../../productivity/commit-atomic-jj/SKILL.md) when satisfied." > `/commit-atomic-jj` when satisfied."
5. **Suggest** [`/write-readme`](../../engineering/write-readme/SKILL.md), 5. **Suggest** `/write-readme`,
which already covers r-package; its dedicated R counterpart is which already covers r-package; its dedicated R counterpart is
B-001, still a draft. B-001, still a draft.
@ -61,9 +61,9 @@ disable-model-invocation: true
invent stub functions. invent stub functions.
## See also ## See also
- [`../containerize-project/SKILL.md`](../containerize-project/SKILL.md) - `/containerize-project`
— owns the Docker templates and the three-stage pattern rationale. — owns the Docker templates and the three-stage pattern rationale.
- [`../../engineering/develop-r/SKILL.md`](../../engineering/develop-r/SKILL.md) - `/develop-r`
— workflow auto-detects DESCRIPTION → R-package loop. — workflow auto-detects DESCRIPTION → R-package loop.
- [`../../engineering/style-r/SKILL.md`](../../engineering/style-r/SKILL.md) - `/style-r`
— coding standards every function in `R/` must follow. — coding standards every function in `R/` must follow.

View File

@ -45,7 +45,7 @@ disable-model-invocation: true
- **Never** overwrite an existing `Dockerfile`, `docker-compose.yml`, or - **Never** overwrite an existing `Dockerfile`, `docker-compose.yml`, or
`.dockerignore` without explicit confirmation — show a diff first. `.dockerignore` without explicit confirmation — show a diff first.
- **Never** put credentials in `ENV`, `ARG`, or `COPY`-ed files — that's - **Never** put credentials in `ENV`, `ARG`, or `COPY`-ed files — that's
[`add-docker-secrets`](../add-docker-secrets/SKILL.md) territory. `/add-docker-secrets` territory.
- **Never** add a source mount to the production service — it overrides - **Never** add a source mount to the production service — it overrides
the baked image and defeats immutability. the baked image and defeats immutability.
- The development stage runs as root deliberately (bind mounts + - The development stage runs as root deliberately (bind mounts +
@ -55,9 +55,9 @@ disable-model-invocation: true
## See also ## See also
- [three-stage-dockerfile.md](three-stage-dockerfile.md) — rationale for - [three-stage-dockerfile.md](three-stage-dockerfile.md) — rationale for
the base/production/development pattern, caveats, anti-patterns. the base/production/development pattern, caveats, anti-patterns.
- [`../add-docker-secrets/SKILL.md`](../add-docker-secrets/SKILL.md) — - `/add-docker-secrets` —
build-time and runtime secrets once the project needs credentials. build-time and runtime secrets once the project needs credentials.
- [`../build-py-project/SKILL.md`](../build-py-project/SKILL.md), - `/build-py-project`,
[`../build-r-package/SKILL.md`](../build-r-package/SKILL.md), `/build-r-package`,
[`../build-r-analysis/SKILL.md`](../build-r-analysis/SKILL.md) — `/build-r-analysis` —
scaffolds that delegate their Docker step here. scaffolds that delegate their Docker step here.

View File

@ -87,7 +87,7 @@ load on session start — tell the user to restart the session.
- **Never** claim installed without the three-case verify output. - **Never** claim installed without the three-case verify output.
## See also ## See also
- [../../productivity/commit-atomic-git/SKILL.md](../../productivity/commit-atomic-git/SKILL.md) - `/commit-atomic-git`
— the prose discipline this hook backstops. — the prose discipline this hook backstops.
- [../../productivity/resolve-conflicts-git/SKILL.md](../../productivity/resolve-conflicts-git/SKILL.md) - `/resolve-conflicts-git`
— abort/continue flows; unaffected by these blocks. — abort/continue flows; unaffected by these blocks.