/spec-driven-develop:spec-driven-developfrom Spec-Driven Develop
Automates large-scale project transformations (rewrites, migrations, refactors) with a seven-phase pipeline: analysis, planning, progress tracking, and execution within a single session.
Ships in Spec-Driven Develop. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are executing the Spec-Driven Development workflow — a seven-phase pipeline (Phases 0-6) for large-scale complex tasks. Complete preparation phases (analysis, planning, progress setup), then execute the plan — all within a single session.
Behavioral rules: references/behavioral-rules.md — read and follow them in every phase; they are non-negotiable.
| Path | Default Value | Purpose |
|---|---|---|
| Analysis output | docs/analysis/ | Phase 1 analysis documents |
| Plan output | docs/plan/ | Phase 3 planning documents |
| Progress output | docs/progress/ | Phase 4 tracking documents (incl. MASTER.md) |
| Instruction surfaces | Resolved per project | Project-level constraints for agents (see Phase 4) |
| Memory surface | Native first | Durable facts via the agent's native memory when available; repo fallback only when explicitly selected |
| Archive output | docs/archives/<project>/ | Phase 6 archived artifacts |
| Task tracking mode | Auto-detect | GITHUB_FULL, GITHUB_STANDARD, or LOCAL_ONLY |
| Delivery batching | Phase-first | Issues track tasks; PRs integrate coherent task batches |
| Adaptive control | Enabled | Drift thresholds: annotate=20%, replan=40%, rescope=60% of phase tasks |
Canonical references (each topic has exactly one home — cite it, never re-explain it):
| Reference | Owns |
|---|---|
references/behavioral-rules.md | All behavioral rules (1-19) |
references/github-integration.md | Tracking modes, pre-flight check, all gh commands and Issue/PR body templates |
references/adaptive-control.md | Telemetry collection, drift calculation, response actions, state storage, controller activation |
references/parallel-protocol.md | Dispatch/review admission (tiers), lane/worktree protocol, review loop, merge risk, post-integration checks |
references/super-philosophy.md | S.U.P.E.R principles + the 10-check review checklist |
references/templates/ | Schemas for every generated document (analysis, plan, progress, governance, archive) |
Task tracking modes (capabilities differ; detection and upgrade instructions live in references/github-integration.md § "Pre-flight Check"):
CRITICAL: Before starting any phase, inventory and read any existing project-level instruction and memory surfaces (AGENTS.md, CLAUDE.md, existing platform rule files, the active agent's native project memory, any repo-local fallback memory file already declared by the project or by an existing docs/progress/MASTER.md).
Then check if docs/progress/MASTER.md already exists:
references/github-integration.md § "Reading Progress from GitHub". Update MASTER.md if GitHub state is ahead of the local index.After loading your current state, populate the platform's native task tracking tool (e.g. TodoWrite) with the active phase's pending tasks: content = task description, status = in-progress for the active task, priority mapped P0=high, P1=medium, P2=low. If no native task tool is available, skip this step — MASTER.md alone is sufficient.
Goal: Capture the user's high-level transformation direction in 1-2 sentences — just enough to give Phase 1 analysis a focus.
Actions:
Output: A preliminary direction statement guiding Phase 1. NOT the final task definition — that comes in Phase 2.
Goal: Build a comprehensive understanding of the current codebase, informed by the Phase 0 direction.
Actions:
Launch project-analyzer sub-agents in parallel, split by focus area:
Give each agent the Phase 0 direction AND references/super-philosophy.md. If sub-agents are unavailable, perform the same analysis sequentially yourself.
Consolidate outputs, resolve contradictions, and write docs/analysis/ documents from references/templates/analysis.md:
project-overview.md, module-inventory.md (with per-module S.U.P.E.R scores), risk-assessment.md (with the S.U.P.E.R health summary)GitHub Pre-flight Check: detect the tracking mode per references/github-integration.md § "Pre-flight Check". Report the detected mode; if it differs from user expectation, explain how to upgrade (e.g., gh auth refresh -s project).
Output: Complete docs/analysis/ (three documents) + detected tracking mode. The S.U.P.E.R assessment is the architectural baseline for all subsequent phases.
Goal: With the project analyzed, finalize the task definition through a grounded discussion.
Actions:
Present key Phase 1 findings: brief architecture summary, notable S.U.P.E.R health issues, and coupling/complexity highlights relevant to the transformation.
Ask targeted questions grounded in the analysis — specific and informed, not generic (e.g., about circular dependencies found, hardcoded environment assumptions, missing interface contracts). At minimum confirm:
Summarize the refined understanding and get explicit confirmation.
Output: The authoritative, confirmed task definition guiding Phases 3-6.
Goal: Break the transformation into manageable, trackable tasks organized in phases, with parallel lanes and coherent delivery batches.
Actions:
task-architect sub-agents with the full Phase 1 analysis AND the confirmed Phase 2 definition. If multiple strategies are plausible, launch 2 agents exploring different approaches (e.g., bottom-up vs. strangler fig) and pick the better result. If sub-agents are unavailable, decompose yourself.docs/plan/ documents from references/templates/plan.md: task-breakdown.md, dependency-graph.md, milestones.md.references/github-integration.md. Add a 1-second delay between Issue creations. Record all URLs and the Task → Issue → Delivery Batch mapping for Phase 4. Issue creation does not imply PR creation.references/adaptive-control.md § "Adaptive State Storage". In LOCAL_ONLY mode, the state goes to MASTER.md in Phase 4 instead.Output: Complete docs/plan/ (three documents); in GitHub modes, all tasks exist as labeled, milestoned Issues with adaptive state initialized.
Goal: Create a progress tracking and governance system that survives across conversations.
Actions:
Use references/templates/progress.md for progress documents and references/templates/governance.md for governance records.
AGENTS.md or equivalent), CLAUDE.md, existing platform rule files, the agent's native project memory, and repo-local fallback memory files only if they already exist or the user explicitly selects one.AGENTS.md; Claude Code-specific → CLAUDE.md; platform rule files only when they already exist or are requested. Preserve user-written sections, local commands, and security constraints. If an existing rule conflicts with the plan, do not silently replace it — record the conflict in MASTER.md and ask the user at the next checkpoint.Do not create competing truth sources.
docs/progress/MASTER.md as a lightweight GitHub index: task name/description, tracking mode, repository, Project URL (GITHUB_FULL), links to analysis/plan documents, milestone table, Issue mapping table (Task → Issue → Batch → PR → status), delivery batch table, "Quick Status Commands", "Current Status", "Next Steps". Do NOT duplicate task details — those live in GitHub Issues.references/adaptive-control.md § "Adaptive State Storage" (Issue comments + Milestone descriptions).docs/progress/MASTER.md: task name/description, LOCAL_ONLY mode, links to analysis/plan documents, phase summary table, links to phase files, "Current Status", "Next Steps".docs/progress/phase-N-<short-name>.md per phase: checkbox tasks with inline acceptance criteria plus a "Notes" section.references/adaptive-control.md § "Adaptive State Storage".- [ ] Phase N: <name> (0/X tasks) linking to the phase file (LOCAL_ONLY) or milestone URL (GitHub modes); - [x] Phase N: <name> (X/X tasks) when done.Output: Complete docs/progress/ with MASTER.md (plus phase files in LOCAL_ONLY).
Goal: Present preparation artifacts, get confirmation, then execute the plan.
Actions:
task-executor/code-reviewer sub-agents dispatched per references/parallel-protocol.md § "Dispatch Admission (Tiered Execution)").Process each phase sequentially. Before editing, read every open Issue in the phase and revalidate the planned batches against current dependencies, affected files, review scope, and repository rules. If the mapping must change, update task-breakdown.md, MASTER.md, and the Delivery Batch field in every affected Issue body; comment the regrouping reason so all execution surfaces agree.
Choose the execution tier for each delivery batch per the admission criteria in references/parallel-protocol.md § "Dispatch Admission (Tiered Execution)":
task-executor.task-executor per dependency-ready lane in isolated worktrees, in waves, each with the full batch context plus its task/Issue subset. Lane agents never create PRs.batch/{batch_id}-{slug} (integration) and work/{batch_id}-{lane_id}-{slug} (Tier 2 lanes only).Review before integrating per references/parallel-protocol.md § "Review Admission (Tiered Review)":
code-reviewer per lane, mandatory for Tier 2 lanes and high-risk work (contract/port formats, logic code, cross-surface semantic invariants). Verdict APPROVED | FIXED | ESCALATE; integrate only APPROVED or FIXED lanes; resolve ESCALATE yourself, with the user when needed.After each task completion — follow references/adaptive-control.md § "Controller Activation": collect telemetry, update cumulative drift_score, write telemetry to the Issue (GitHub modes) or MASTER.md (LOCAL_ONLY), and execute automatic threshold responses. For parallel lanes, lane agents return per-task telemetry and you record it once during batch integration.
Integrate and validate each delivery batch per references/github-integration.md § "Delivery Batch Execution Workflow":
Closes #N per completed Issue. Immediately write the PR number and in review state to the batch row and every completed Issue row in MASTER.md; keep partial Issues open with explicit partial status.Progress updates:
When all tasks are complete (all Issues closed or all checkboxes checked): proceed to Phase 6.
Output: All planned tasks implemented and verified.
Trigger: All tasks complete — all Issues closed (GitHub modes) or all checkboxes [x] (LOCAL_ONLY).
Goal: Archive all workflow artifacts for traceability, then clean up working directories.
Actions:
docs/archives/<project-name>/. Target structure and index template: references/templates/archive.md.docs/analysis/, docs/plan/, and docs/progress/ into the archive; copy snapshots or export references for the resolved instruction and memory surfaces into docs/archives/<project-name>/governance/; move any other temporary workflow files.docs/archives/README.md with an entry: project name, one-line description, date range, link to archived MASTER.md, and (GitHub modes) the Project URL.docs/analysis/, docs/plan/, docs/progress/ directories. Keep active instruction and memory surfaces in place; only their snapshots live under the archive.Output: All artifacts under docs/archives/<project-name>/ with an updated docs/archives/README.md index.
references/adaptive-control.md (opens in a new tab)references/behavioral-rules.md (opens in a new tab)references/github-integration.md (opens in a new tab)references/parallel-protocol.md (opens in a new tab)references/super-philosophy.md (opens in a new tab)references/templates/analysis.md (opens in a new tab)references/templates/archive.md (opens in a new tab)references/templates/governance.md (opens in a new tab)references/templates/plan.md (opens in a new tab)references/templates/progress.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
3 skills in this plugin
/deep-discuss结构化深度讨论 Skill,用于与用户进行多轮问题分析和方案设计。当用户描述一个问题现象、故障表现、 技术困惑、方案选择困难,或明确说"讨论一下"、"帮我分析"、"我遇到一个问题"、"你觉得怎么样"、 "帮我想想"、"我在纠结"时,必须使用本 skill。当用户提供了一段描述(可能附带截图)并期望深入分析 而非直接给答案时,也应触发本 skill。即使用户只是抛出一个现象描述没有明确提问,也要使用本 skill 来引导结构化思考。不要在简单的事实查询("X是什么")或明确的执行指令("帮我写个脚本")上触发。/review-spdFindings-first code review workflow for AI coding agents. Use when the user asks to review uncommitted changes, commits in a date range, or a branch compared to the main branch / PR-style diff. Focuses on bugs, regressions, correctness risks, missing tests, security/data-safety issues, and other behavior-changing defects.npx claudepluginhub zhu1090093659/spec_driven_develop --plugin spec-driven-developOther plugins' skills for the same job