feat(skills): add plan-project and update-project skills

This commit is contained in:
Łukasz Boryń 2026-06-11 11:48:40 +02:00
parent a4abd1d95c
commit 623d285589
2 changed files with 153 additions and 0 deletions

View File

@ -0,0 +1,87 @@
---
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 grill-with-docs
(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.
- [grill-with-docs](../../engineering/grill-with-docs/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.

View File

@ -0,0 +1,66 @@
---
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.