ワンクリックで
tp-guide
Read project docs and propose what to do next. Surfaces highest-impact work from roadmap, known issues, and in-flight designs.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Read project docs and propose what to do next. Surfaces highest-impact work from roadmap, known issues, and in-flight designs.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Convene the Council of High Intelligence — multi-persona deliberation with historical thinkers for deeper analysis of complex problems.
Design Audit — multi-angle review of a detailed design against the actual codebase before implementation.
Mark a TDD design as complete — stamp completion, archive handoff.md, archive to three-pillars-docs/completed-tp-designs/, and optionally commit + open a PR merging the design branch back to the base branch.
Scaffold architecture.md, product_roadmap.md, and known_issues.md in three-pillars-docs/ from codebase analysis. Creates the three project docs that the TDD pipeline reads for context. Assumes three-pillars-docs/vision.md already exists — if missing, recommends /tp-setup first.
Final audit of a completed plan — verify the full implementation against both design.md and detailed-design.md.
Sync a base branch INTO a design's worktree (base-sync) and auto-resolve the safe living-doc conflict classes behind a zero-drop verifier, deferring everything semantic to the human. Re-runs tests, re-pushes only when green, updates the PR. This is the reversible base-into-branch operation — landing the PR is the separate /tp-merge land gate.
| name | tp-guide |
| description | Read project docs and propose what to do next. Surfaces highest-impact work from roadmap, known issues, and in-flight designs. |
| argument-hint | [intent] |
Read the project's current state and recommend the highest-impact next step.
Argument: [intent] (optional) — freeform text expressing a loose goal or concern (e.g., auth feels fragile, ready to ship, new to this repo).
Run first-run preflight per skills/_shared/first-run.md.
Read project docs per skills/_shared/read-project-docs.md. three-pillars-docs/vision.md is the primary filter — it tells you what this project is for, and therefore what work genuinely matters. If three-pillars-docs/vision.md is missing, the single most impactful recommendation you can make is to run /tp-setup to establish one; say so before anything else.
Scan active designs: Check three-pillars-docs/tp-designs/ for in-flight work. For each, read design.md (first 20 lines) and handoff.md (if present) to understand phase and status. While scanning, note whether each design's Problem/Vision alignment section is consistent with the current three-pillars-docs/vision.md — a design that drifted from the vision is a candidate for either reshaping or dropping.
Check completed designs: Scan three-pillars-docs/completed-tp-designs/ to understand what's already been built.
Read the first line of .claude/last-design if it exists, to know what the user was last working on. This file is an MRU stack — one design per line, most recent first.
4.5. Closeout nudge (read-only, fail-open): run python3 "$TP_ROOT"/skills/_shared/detect_unarchived.py --repo . --exclude {mru-top-design} --slugs-only (exclude the MRU-top design from step 4 — that's the user's own active work, not drift). Any slugs returned are designs whose three-pillars-docs/tp-designs/{slug}/ dir carries implementation evidence (implementation-audit.md / spike-results.md) but has not been archived to completed-tp-designs/ — i.e. closeout pending. Surface each in the recommendation as "closeout pending — run /tp-design-learn {slug} (or /tp-spike-learn) then /tp-design-complete {slug}", since an unarchived merged design hard-fails the framework's CI check on {default}. Non-blocking, fail-open — the helper always exits 0; a detector error yields no nudge, never an error. One detector, two surfaces: this soft nudge shares detect_unarchived.py with the hard CI check.
If an intent was provided, filter your analysis through that lens. For example:
"auth feels fragile" → focus on auth-related known issues, architecture gaps, and whether a design or spike is warranted"ready to ship" → focus on blocking issues, incomplete designs, and release readiness"new to this repo" → provide onboarding: what the project does (straight from three-pillars-docs/vision.md), how it's structured, how to use the TDD pipelineWeigh candidates against the vision. Before recommending, score each candidate (known issue, in-flight design, roadmap item) by its connection to the vision:
/tp-docs-update if the user thinks the non-goal has moved.Choose the weight class. Not everything needs the full pipeline. Score the four rubric axes — risk, blast radius, reversibility, novelty (each low/medium/high; see skills/_shared/weight-class.md, or shell python3 "$TP_ROOT"/skills/_shared/weight_class.py recommend) — and match the class to the complexity:
| Weight class | When to use | Example |
|---|---|---|
Just do it (just-do-it) | All axes minimal. Small, well-understood, reversible. Mini design.md, no plan. | Fix a bug, add a config option, rename a module |
Light (light) | At most one axis medium, none high. Real work, small surface. Collapsed design.md + thin plan.md in one sitting. | Contained feature, focused refactor, one-module change |
Spike (/tp-spike) | Novelty high — unclear if an approach works. Validate before committing. | New integration, unfamiliar API, performance experiment |
Full design (/tp-design) | Any axis high or several medium. Multi-phase work, needs the full quality gates. | New subsystem, major refactor, cross-cutting feature |
Default to the lightest class that fits — but ties and ambiguity resolve heavier. A spike that proves an approach works can always feed into a full design later. Don't recommend /tp-design at full weight for something that can be built in 20 minutes.
Synthesize a recommendation. Present:
three-pillars-docs/vision.md the recommendation serves (problem / principle / user / success signal). Skip if vision is missing./tp-* command or just "describe the change and I'll build it" for simple tasksAfter the recommendation, if a worktree-aggregation helper is present in this
install (glob skills/*/scripts/list_worktrees.py — it ships only with the
paid worktree plugin and is absent on the free core build), append a short
status block surfacing what's happening in sibling worktrees so the user
doesn't context-switch blind:
Import the matched list_worktrees.py and call list_worktrees() to
enumerate sibling worktrees on tp/<design> branches.
For each, read its merged state.json via the same plugin's
scripts/state_io.read_state(<worktree_path>). The file lives at
<worktree>/.three-pillars/run/state.json and merges the supervisor and
iterate namespaces written by that plugin's supervisor and PR-loop driver.
Render one line per worktree:
- tp/<design> — supervisor=<supervisor.state> iterate=<iterate.phase> iter=<iterate.iteration>
Each field falls back to ? when the corresponding namespace is missing
(e.g., a worktree that ran interactively and never spawned a supervisor
has no supervisor.state).
If the helper glob matches nothing (free core build) or no sibling worktrees exist, omit the block entirely.
The block is informational, not advisory — don't block the recommendation on a sibling worktree's state. Surface it so the user can tail or kill a run with their worktree plugin's own tail/kill commands if they want to.
three-pillars-docs/vision.md first, then by: critical known issues > blocked designs > roadmap next items > tech debt. A Critical known issue that solves a problem the vision doesn't care about loses to a Medium issue that blocks a Success signal.three-pillars-docs/vision.md is missing, recommend /tp-setup as the first step — the vision is foundational and every other recommendation would be guesswork without it.architecture.md, product_roadmap.md, or known_issues.md is missing, recommend /tp-docs-init next./tp-test-setup next — test-runner choices are informed by the architecture, which is why this step runs third.[a-z0-9-]+ design-name interpolated into file paths.