Lukasz Boryn bb35812d45 refactor(skills): unify sibling-file naming on lowercase-kebab topic names
Renames the 8 UPPERCASE offload files to topic-named lowercase-kebab and
updates all 33 referring sites, including four OKF cites: blocks that
okf-check would otherwise fail on.

moor's generic reference file splits into graduate.md + collapse.md — it held
two topics, and one-topic-per-file is the rule being enforced; the two links
in moor/SKILL.md lose their anchors and address the files directly.
write-readme's becomes ecosystems.md.

Fixes the doctrine first, in both authorities that state it: CLAUDE.md 5 no
longer prescribes a generic catch-all name, and conjure-a-skill step 4 gains
the casing rule it omitted. Without that, the next skill author reads CLAUDE.md
and recreates the violation.

Both the new doctrine and the LEARNINGS note state the rule positively, naming
no offender: the blueprint's locked Verify greps for the old filenames, so
prose that lists them trips the gate meant to prove the sweep finished.

Implements blueprint 014; flips it to implemented with its index line.
Verify: 0 error(s), 0 warning(s), exit 0.
2026-07-30 13:04:33 +02:00

67 lines
2.8 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Design It Twice
When the user wants to explore alternative interfaces for a chosen deepening
candidate, use this parallel sub-agent pattern. Based on "Design It Twice"
(Ousterhout) — your first idea is unlikely to be the best.
Uses the vocabulary in [SKILL.md](SKILL.md) — **module**, **interface**,
**seam**, **adapter**, **leverage**.
## Process
### 1. Frame the problem space
Before spawning sub-agents, write a user-facing explanation of the problem
space for the chosen candidate:
- The constraints any new interface would need to satisfy.
- The dependencies it would rely on, and which category they fall into
(see [deepening.md](deepening.md)).
- A rough illustrative code sketch to ground the constraints — not a
proposal, just a way to make the constraints concrete.
Show this to the user, then immediately proceed to Step 2. The user reads and
thinks while the sub-agents work in parallel.
### 2. Spawn sub-agents
Spawn 3+ sub-agents in parallel using the Agent tool — **one message with
multiple Agent tool uses** so they run concurrently. Each must produce a
**radically different** interface for the deepened module. Use
`subagent_type: claude` (general-purpose) so each has full read + search.
Prompt each sub-agent with a separate technical brief (file paths, coupling
details, dependency category from [deepening.md](deepening.md), what sits
behind the seam). The brief is independent of the user-facing problem-space
explanation in Step 1. Give each agent a different design constraint:
- Agent 1: "Minimize the interface — aim for 1–3 entry points max. Maximise
leverage per entry point."
- Agent 2: "Maximise flexibility — support many use cases and extension."
- Agent 3: "Optimise for the most common caller — make the default case
trivial."
- Agent 4 (if applicable): "Design around ports & adapters for cross-seam
dependencies."
Include both [SKILL.md](SKILL.md) vocabulary and `CONTEXT.md` vocabulary in
the brief so each sub-agent names things consistently with the architecture
language and the project's domain language.
Each sub-agent outputs:
1. Interface (types, methods, params — plus invariants, ordering, error modes).
2. Usage example showing how callers use it.
3. What the implementation hides behind the seam.
4. Dependency strategy and adapters (see [deepening.md](deepening.md)).
5. Trade-offs — where leverage is high, where it's thin.
### 3. Present and compare
Present designs sequentially so the user can absorb each one, then compare
them in prose. Contrast by **depth** (leverage at the interface),
**locality** (where change concentrates), and **seam placement**.
After comparing, give your own recommendation: which design you think is
strongest and why. If elements from different designs would combine well,
propose a hybrid. Be opinionated — the user wants a strong read, not a menu.