feat(loop): merge plan-project and update-project into architect
- feat(architect): mode router — greenfield vs revision by OKF/ROADMAP.md state - refactor(architect): plan-project body becomes greenfield.md, update-project becomes revise.md - refactor(architect): roadmap and glossary paths retargeted to OKF/ - chore(skills): delete plan-project and update-project
This commit is contained in:
parent
03ddb4ed01
commit
7ec15a4e9d
72
skills/loop/architect/SKILL.md
Normal file
72
skills/loop/architect/SKILL.md
Normal file
@ -0,0 +1,72 @@
|
|||||||
|
---
|
||||||
|
name: architect
|
||||||
|
description: Plan a project or revise its plan — one mode-routed skill replacing plan-project and update-project. Greenfield: research-backed Socratic interview producing OKF/ROADMAP.md. Revision: fold reality back into the roadmap with supersede-never-delete discipline.
|
||||||
|
disable-model-invocation: true
|
||||||
|
---
|
||||||
|
|
||||||
|
# architect
|
||||||
|
|
||||||
|
Owns `OKF/ROADMAP.md`. Planning only, never implementation.
|
||||||
|
|
||||||
|
## When to use
|
||||||
|
- User says "architect", "/architect", "plan project", "plan this with
|
||||||
|
me", "update the roadmap", "mark phase done", "we learned something —
|
||||||
|
revise the plan".
|
||||||
|
- A verify step, `/diagnose` post-mortem, or prior-art change produced
|
||||||
|
facts the roadmap doesn't reflect.
|
||||||
|
|
||||||
|
## Mode detection
|
||||||
|
| State | Mode |
|
||||||
|
|---|---|
|
||||||
|
| no `./OKF/` | run [scribe-OKF](../scribe-OKF/SKILL.md) scaffold first |
|
||||||
|
| `OKF/ROADMAP.md` absent or all-TODO | **Greenfield** → [greenfield.md](greenfield.md) |
|
||||||
|
| `OKF/ROADMAP.md` has real content | **Revision** → [revise.md](revise.md) |
|
||||||
|
| code exists but user wants plan-vs-code stress-test only | hand to [grill-with-docs](../../engineering/grill-with-docs/SKILL.md) |
|
||||||
|
|
||||||
|
Half-states (roadmap exists but skeleton-incomplete) are revision mode —
|
||||||
|
fill the missing sections as deltas, don't restart.
|
||||||
|
|
||||||
|
## Roadmap skeleton (both modes keep this shape)
|
||||||
|
```markdown
|
||||||
|
# <Project> Roadmap
|
||||||
|
<Vision: 2–3 sentences, links to CONTEXT.md for vocabulary.>
|
||||||
|
## Why <project> (gap vs prior art) ← gap table with sources
|
||||||
|
## Locked decisions ← numbered; rationale + reversibility
|
||||||
|
## Architecture ← one ASCII sketch + main flow in words
|
||||||
|
## Phases ← each ends "**Verify:** <observable check>"
|
||||||
|
## Risks & gotchas ← debunked claims: believed / true / source
|
||||||
|
## Out of scope ← explicit non-goals
|
||||||
|
```
|
||||||
|
|
||||||
|
## Shared rules (both modes)
|
||||||
|
- **One question per message** during any grilling; wait for the answer.
|
||||||
|
- **Vocabulary sync**: one resolved term → one inline `OKF/CONTEXT.md`
|
||||||
|
edit, per [domain-modeling](../../engineering/domain-modeling/SKILL.md).
|
||||||
|
Roadmap and glossary must use identical canonical terms.
|
||||||
|
- **ADRs** only by the three-of-three rule (hard to reverse ∧ surprising
|
||||||
|
∧ real trade-off). Default no.
|
||||||
|
- Roadmap phases feed [blueprint](../blueprint/SKILL.md) — write phases
|
||||||
|
concrete enough that a spec can trace to them.
|
||||||
|
|
||||||
|
## Output / done criteria
|
||||||
|
- `OKF/ROADMAP.md` matches the skeleton; every phase has a verify step;
|
||||||
|
every locked decision traces to a user answer or sourced finding.
|
||||||
|
- Revision: superseded decisions remain visible; every edit traces to a
|
||||||
|
named delta.
|
||||||
|
- No implementation started.
|
||||||
|
|
||||||
|
## Guardrails
|
||||||
|
- **Never** write the roadmap before the prior-art scan (greenfield).
|
||||||
|
- **Never** delete a phase, decision, or out-of-scope entry — supersede
|
||||||
|
or move (revision).
|
||||||
|
- **Never** monologue, never batch questions, never pick silently
|
||||||
|
between interpretations of the user's idea.
|
||||||
|
|
||||||
|
## See also
|
||||||
|
- [greenfield.md](greenfield.md) / [revise.md](revise.md) — the loops.
|
||||||
|
- [../scribe-OKF/SKILL.md](../scribe-OKF/SKILL.md) — scaffolds the OKF
|
||||||
|
this skill writes into.
|
||||||
|
- [../blueprint/SKILL.md](../blueprint/SKILL.md) — decomposes roadmap
|
||||||
|
phases into specs.
|
||||||
|
- [../../productivity/grill-me/SKILL.md](../../productivity/grill-me/SKILL.md)
|
||||||
|
— the interview engine.
|
||||||
44
skills/loop/architect/greenfield.md
Normal file
44
skills/loop/architect/greenfield.md
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
# architect — greenfield loop
|
||||||
|
|
||||||
|
For a project with no real roadmap yet. Formerly `plan-project`.
|
||||||
|
|
||||||
|
## Process
|
||||||
|
|
||||||
|
1. **Survey the repo.** `ls` it. Existing substantial code → this is not
|
||||||
|
greenfield; stress-test the plan with
|
||||||
|
[grill-with-docs](../../engineering/grill-with-docs/SKILL.md) instead.
|
||||||
|
2. **Research before asking.** Every tool, product, or codename in the
|
||||||
|
pitch you don't recognize with certainty: WebSearch it *first*, report
|
||||||
|
findings with sources, then ask what role it plays. Never guess; never
|
||||||
|
quiz the user on facts the web answers.
|
||||||
|
3. **Prior-art scan.** Search for existing tools covering the stated aim.
|
||||||
|
Build a gap table (tool | has | lacks). If an exact match exists, say
|
||||||
|
so plainly — the honest outcome may be "use that instead". The gap the
|
||||||
|
project fills becomes its pitch.
|
||||||
|
4. **Grill, one question at a time** (wait for each answer). Default
|
||||||
|
order — skip what's already answered:
|
||||||
|
1. Deliverable shape (library vs service vs CLI — surface
|
||||||
|
contradictions in the user's own wording immediately).
|
||||||
|
2. Core novelty — pin exact semantics of the differentiating feature;
|
||||||
|
offer 2–3 concrete interpretations to pick from.
|
||||||
|
3. Interaction surface (API/MCP/UI/CLI) — recommend the cheapest that
|
||||||
|
satisfies the aim when asked.
|
||||||
|
4. Key tech picks — recommend with reasons, note reversibility;
|
||||||
|
challenge claims that don't hold (benchmarks, scope).
|
||||||
|
5. Persistence/storage and lifecycle (updates, triggers).
|
||||||
|
6. v1 scope boundary (languages, platforms, integrations).
|
||||||
|
5. **Pin vocabulary as you go** — one resolved term → one inline
|
||||||
|
`OKF/CONTEXT.md` edit (confirm the first write).
|
||||||
|
6. **Write `OKF/ROADMAP.md`** when answers stop moving decisions, using
|
||||||
|
the skeleton in [SKILL.md](SKILL.md). If `OKF/` is missing, run
|
||||||
|
[scribe-OKF](../scribe-OKF/SKILL.md) scaffold first.
|
||||||
|
7. **Hand forward**: name the Phase-0 items ready for
|
||||||
|
[blueprint](../blueprint/SKILL.md), and the scaffold skill
|
||||||
|
([build-py-project](../../scaffold/build-py-project/SKILL.md) /
|
||||||
|
[build-r-package](../../scaffold/build-r-package/SKILL.md) /
|
||||||
|
[build-r-analysis](../../scaffold/build-r-analysis/SKILL.md)) that
|
||||||
|
fits the locked stack.
|
||||||
|
|
||||||
|
## Done
|
||||||
|
- Roadmap complete per SKILL.md criteria; no code written; user saw and
|
||||||
|
approved every locked decision.
|
||||||
41
skills/loop/architect/revise.md
Normal file
41
skills/loop/architect/revise.md
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
# architect — revision loop
|
||||||
|
|
||||||
|
For a roadmap that exists and reality that moved. Formerly
|
||||||
|
`update-project`.
|
||||||
|
|
||||||
|
## Process
|
||||||
|
|
||||||
|
1. **Read first.** `OKF/ROADMAP.md` and `OKF/CONTEXT.md` in full. Diff
|
||||||
|
reality against them: repo state, test results, session learnings.
|
||||||
|
2. **Collect the deltas.** From the user and the session: phases
|
||||||
|
verified or failed, decisions contradicted by new facts, fresh
|
||||||
|
gotchas, scope changes. Ambiguous delta → grill, one question at a
|
||||||
|
time.
|
||||||
|
3. **Apply, smallest edit per delta:**
|
||||||
|
- Phase done → mark `✅ verified <how>` on its verify line — never
|
||||||
|
without naming the observable check that passed.
|
||||||
|
- Verify failed → record what failed under the phase; do not delete
|
||||||
|
the phase. Re-plan it only if the user agrees.
|
||||||
|
- New gotcha/learning → append to *Risks & gotchas* (and mirror to
|
||||||
|
`OKF/LEARNINGS.md` if project-wide): what was believed, what is
|
||||||
|
true, source.
|
||||||
|
- Decision overturned → strike nothing silently. Mark the old one
|
||||||
|
`~~…~~ superseded by N` and add the new decision with rationale.
|
||||||
|
Decisions are append-only history, not a wiki page.
|
||||||
|
- Scope change → move items between *Phases* and *Out of scope*
|
||||||
|
explicitly, never delete.
|
||||||
|
- Spec implemented ([implement](../implement/SKILL.md) hand-back) →
|
||||||
|
tick the phase item citing the spec number.
|
||||||
|
4. **Sync vocabulary.** New or shifted terms → one inline
|
||||||
|
`OKF/CONTEXT.md` edit each. Roadmap and glossary keep matching
|
||||||
|
exactly.
|
||||||
|
5. **Re-check prior art only when asked**, or when a delta names a new
|
||||||
|
competing tool — then refresh the gap table with sources.
|
||||||
|
6. **Show the diff.** Summarize what changed and why; structure must
|
||||||
|
still match the skeleton in [SKILL.md](SKILL.md) — sections stable,
|
||||||
|
contents evolve.
|
||||||
|
|
||||||
|
## Done
|
||||||
|
- Every applied delta traces to a stated fact (verify result, user
|
||||||
|
answer, or source); superseded decisions visible; user saw a summary
|
||||||
|
of every section touched.
|
||||||
@ -1,87 +0,0 @@
|
|||||||
---
|
|
||||||
name: plan-project
|
|
||||||
description: Kick off a greenfield project with a research-backed Socratic interview — research every tool/name the user mentions, scan prior art for the stated aim, grill one question at a time until decisions lock, then write docs/Roadmap.md with a phased, verifiable plan. Planning only, never implementation. Use when the user says "plan project", "/plan-project", "new project idea", "plan this project with me", or pitches a project that has no code and no roadmap yet.
|
|
||||||
---
|
|
||||||
|
|
||||||
# plan-project
|
|
||||||
|
|
||||||
## When to use
|
|
||||||
- User says "plan project", "/plan-project", "new project idea",
|
|
||||||
"plan this project with me".
|
|
||||||
- A repo exists but is empty (or nearly) and the user is pitching what
|
|
||||||
it should become.
|
|
||||||
- Skip when `docs/Roadmap.md` already exists — use
|
|
||||||
[`update-project`](../update-project/SKILL.md) to revise it.
|
|
||||||
- Skip when code already exists and the question is about aligning a
|
|
||||||
plan with it — use [`grill-with-docs`](../../engineering/grill-with-docs/SKILL.md)
|
|
||||||
directly.
|
|
||||||
|
|
||||||
## Process
|
|
||||||
1. **Survey the repo.** `ls` it. Empty confirms greenfield; existing
|
|
||||||
code means switch to grill-with-docs.
|
|
||||||
2. **Research before asking.** Every tool, product, or codename in the
|
|
||||||
pitch that you don't recognize with certainty: WebSearch it *first*,
|
|
||||||
report findings with sources, then ask what role it plays. Never
|
|
||||||
guess; never quiz the user on facts the web answers.
|
|
||||||
3. **Prior-art scan.** Search for existing tools covering the stated
|
|
||||||
aim. Build a gap table (tool | has | lacks). If an exact match
|
|
||||||
exists, say so plainly — the honest outcome may be "use that
|
|
||||||
instead". The gap the project fills becomes its pitch.
|
|
||||||
4. **Grill, one question at a time** (wait for each answer). Default
|
|
||||||
order — skip what's already answered:
|
|
||||||
1. Deliverable shape (library vs service vs CLI — surface
|
|
||||||
contradictions in the user's own wording immediately).
|
|
||||||
2. Core novelty — pin exact semantics of the differentiating
|
|
||||||
feature; offer 2–3 concrete interpretations to pick from.
|
|
||||||
3. Interaction surface (API/MCP/UI/CLI) — recommend cheapest that
|
|
||||||
satisfies the aim when asked.
|
|
||||||
4. Key tech picks — recommend with reasons, note reversibility;
|
|
||||||
challenge claims that don't hold (benchmarks, scope).
|
|
||||||
5. Persistence/storage and lifecycle (updates, triggers).
|
|
||||||
6. v1 scope boundary (languages, platforms, integrations).
|
|
||||||
5. **Pin vocabulary as you go** via the
|
|
||||||
[`grill-with-docs`](../../engineering/grill-with-docs/SKILL.md)
|
|
||||||
protocol: one resolved term → one inline `CONTEXT.md` edit
|
|
||||||
(confirm the first write). Roadmap and glossary must use the same
|
|
||||||
canonical terms.
|
|
||||||
6. **Write `docs/Roadmap.md`** when answers stop moving decisions —
|
|
||||||
skeleton below. Confirm before writing if it's the first file in
|
|
||||||
`docs/`.
|
|
||||||
7. **ADRs** only by the three-of-three rule from domain-modeling
|
|
||||||
(hard to reverse ∧ surprising ∧ real trade-off). Default no.
|
|
||||||
|
|
||||||
## Roadmap.md skeleton
|
|
||||||
```markdown
|
|
||||||
# <Project> Roadmap
|
|
||||||
<Vision: 2–3 sentences, links to ../CONTEXT.md for vocabulary.>
|
|
||||||
## Why <project> (gap vs prior art) ← the gap table from step 3
|
|
||||||
## Locked decisions ← numbered; rationale + reversibility each
|
|
||||||
## Architecture ← one ASCII sketch + main flow in words
|
|
||||||
## Phases ← each ends with "**Verify:** <observable check>"
|
|
||||||
## Risks & gotchas ← cost centers, maturity bets, debunked claims
|
|
||||||
## Out of scope ← explicit non-goals
|
|
||||||
```
|
|
||||||
|
|
||||||
## Output / done criteria
|
|
||||||
- `docs/Roadmap.md` exists; every phase has a verify step; every locked
|
|
||||||
decision traces to a user answer or a research finding with source.
|
|
||||||
- `CONTEXT.md` terms and Roadmap vocabulary match exactly.
|
|
||||||
- No implementation has been started.
|
|
||||||
|
|
||||||
## Guardrails
|
|
||||||
- **Never** monologue — one question per message, then wait.
|
|
||||||
- **Never** write the roadmap before the prior-art scan.
|
|
||||||
- **Never** pick silently between interpretations of the user's idea.
|
|
||||||
- **Never** put time-sensitive claims in the skill's outputs without a
|
|
||||||
source fetched this run.
|
|
||||||
|
|
||||||
## See also
|
|
||||||
- [update-project](../update-project/SKILL.md) — agile sibling: revises
|
|
||||||
the roadmap this skill produced as the project teaches you things.
|
|
||||||
- [domain-modeling](../../engineering/domain-modeling/SKILL.md) — vocabulary
|
|
||||||
protocol this skill delegates to.
|
|
||||||
- [grill-me](../grill-me/SKILL.md) — lighter sibling: ambiguity removal
|
|
||||||
without docs output.
|
|
||||||
- [build-py-project](../../scaffold/build-py-project/SKILL.md) /
|
|
||||||
[build-r-package](../../scaffold/build-r-package/SKILL.md) — natural
|
|
||||||
next step once the roadmap's Phase 0 begins.
|
|
||||||
@ -1,66 +0,0 @@
|
|||||||
---
|
|
||||||
name: update-project
|
|
||||||
description: Revise an existing docs/Roadmap.md as the project teaches you things — mark phases verified, append learnings to risks/gotchas, supersede (never silently rewrite) locked decisions that new facts touched, and keep CONTEXT.md vocabulary in sync. Use when the user says "update project", "/update-project", "update the roadmap", "mark phase done", "we learned something — revise the plan", or a verify step / post-mortem produced facts the roadmap doesn't reflect yet.
|
|
||||||
---
|
|
||||||
|
|
||||||
# update-project
|
|
||||||
|
|
||||||
## When to use
|
|
||||||
- User says "update project", "/update-project", "update the roadmap",
|
|
||||||
"mark phase done", "we learned something — revise the plan".
|
|
||||||
- A phase's verify step just passed (or failed in an instructive way).
|
|
||||||
- A `/diagnose` post-mortem, dependency surprise, or prior-art change
|
|
||||||
invalidates something the roadmap states.
|
|
||||||
- Skip when no `docs/Roadmap.md` exists — use
|
|
||||||
[`plan-project`](../plan-project/SKILL.md) to create one.
|
|
||||||
|
|
||||||
## Process
|
|
||||||
1. **Read first.** `docs/Roadmap.md` and `CONTEXT.md` in full. Diff
|
|
||||||
reality against them: repo state, test results, session learnings.
|
|
||||||
2. **Collect the deltas.** From the user and the session: phases
|
|
||||||
verified or failed, decisions contradicted by new facts, fresh
|
|
||||||
gotchas, scope changes. If a delta is ambiguous, grill — one
|
|
||||||
question at a time, grill-with-docs style.
|
|
||||||
3. **Apply, smallest edit per delta:**
|
|
||||||
- Phase done → mark `✅ verified <how>` on its verify line.
|
|
||||||
- Verify failed → record what failed under the phase; do not delete
|
|
||||||
the phase. Re-plan it only if the user agrees.
|
|
||||||
- New gotcha/learning → append to *Risks & gotchas*. Keep the
|
|
||||||
debunked-claim style: what was believed, what is true, source.
|
|
||||||
- Decision overturned → strike nothing silently. Mark the old one
|
|
||||||
`~~…~~ superseded by N` and add the new decision with rationale.
|
|
||||||
Decisions are append-only history, not a wiki page.
|
|
||||||
- Scope change → move items between *Phases* and *Out of scope*
|
|
||||||
explicitly, never delete.
|
|
||||||
4. **Sync vocabulary.** New or shifted terms → one inline `CONTEXT.md`
|
|
||||||
edit each, per [`grill-with-docs`](../../engineering/grill-with-docs/SKILL.md).
|
|
||||||
Roadmap and glossary must keep matching exactly.
|
|
||||||
5. **Re-check prior art only when asked** or when a delta names a new
|
|
||||||
competing tool — then refresh the gap table with sources.
|
|
||||||
6. **Show the diff.** Summarize what changed in the roadmap and why;
|
|
||||||
the structure must still match the skeleton in
|
|
||||||
[`plan-project`](../plan-project/SKILL.md) — sections are stable,
|
|
||||||
contents evolve.
|
|
||||||
|
|
||||||
## Output / done criteria
|
|
||||||
- `docs/Roadmap.md` reflects current reality; every applied delta
|
|
||||||
traces to a stated fact (verify result, user answer, or source).
|
|
||||||
- Superseded decisions remain visible with their replacement noted.
|
|
||||||
- `CONTEXT.md` and roadmap vocabulary still match exactly.
|
|
||||||
- User saw a summary of every section touched.
|
|
||||||
|
|
||||||
## Guardrails
|
|
||||||
- **Never** create `docs/Roadmap.md` here — that is plan-project's job.
|
|
||||||
- **Never** delete a phase, decision, or out-of-scope entry; supersede
|
|
||||||
or move, keeping history readable.
|
|
||||||
- **Never** mark a phase verified without naming the observable check
|
|
||||||
that passed.
|
|
||||||
- **Never** rewrite sections wholesale — smallest edit per delta.
|
|
||||||
|
|
||||||
## See also
|
|
||||||
- [plan-project](../plan-project/SKILL.md) — creates the roadmap and
|
|
||||||
owns the section skeleton.
|
|
||||||
- [grill-with-docs](../../engineering/grill-with-docs/SKILL.md) —
|
|
||||||
vocabulary sync protocol.
|
|
||||||
- [handoff](../handoff/SKILL.md) — session wrap-up; an update-project
|
|
||||||
pass right before a handoff keeps the roadmap honest.
|
|
||||||
Loading…
x
Reference in New Issue
Block a user