Spec Driven Develop 标志

Spec Driven Develop

社区
zhu1090093659
spec-driven-develop

自动处理大型复杂任务的开发前工作流。用户提到“rewrite”“migrate”“overhaul”“refactor entire project”“transform”“rebuild in [language]”“spec-driven”,或描述任何需要先规划再编码的大规模项目改造时使用。也会在出现以下中文关键词时触发:“改造”“重写”“迁移”“重构”“大规模”“规范驱动”。此技能会全面分析项目、拆解任务、生成文档、解析项目级指令和原生记忆位置、设置进度跟踪,然后在同一会话中执行计划。Issue 仍作为任务跟踪单元,并将相关实现批量整合为连贯、便于审查的 PR。

Add to TypingMind

概览

发布者zhu1090093659
代码仓库spec_driven_develop
技能名称spec-driven-develop
星标数
987
复刻数
101
附带文件
10
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 10 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 zhu1090093659 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Spec Driven Develop AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/zhu1090093659/spec_driven_develop/tree/main/plugins/spec-driven-develop/skills/spec-driven-develop
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/zhu1090093659/spec_driven_develop.git /tmp/spec_driven_develop
mkdir -p .claude/skills
cp -r /tmp/spec_driven_develop/plugins/spec-driven-develop/skills/spec-driven-develop .claude/skills/spec-driven-develop
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Spec Driven Develop,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Spec Driven Develop。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Spec Driven Develop 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Spec-Driven Develop

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.

Configuration

PathDefault ValuePurpose
Analysis outputdocs/analysis/Phase 1 analysis documents
Plan outputdocs/plan/Phase 3 planning documents
Progress outputdocs/progress/Phase 4 tracking documents (incl. MASTER.md)
Instruction surfacesResolved per projectProject-level constraints for agents (see Phase 4)
Memory surfaceNative firstDurable facts via the agent's native memory when available; repo fallback only when explicitly selected
Archive outputdocs/archives/<project>/Phase 6 archived artifacts
Task tracking modeAuto-detectGITHUB_FULL, GITHUB_STANDARD, or LOCAL_ONLY
Delivery batchingPhase-firstIssues track tasks; PRs integrate coherent task batches
Adaptive controlEnabledDrift thresholds: annotate=20%, replan=40%, rescope=60% of phase tasks

Canonical references (each topic has exactly one home — cite it, never re-explain it):

ReferenceOwns
references/behavioral-rules.mdAll behavioral rules (1-19)
references/github-integration.mdTracking modes, pre-flight check, all gh commands and Issue/PR body templates
references/adaptive-control.mdTelemetry collection, drift calculation, response actions, state storage, controller activation
references/parallel-protocol.mdDispatch/review admission (tiers), lane/worktree protocol, review loop, merge risk, post-integration checks
references/super-philosophy.mdS.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"):

  • GITHUB_FULL: Issues + Milestones + Labels + Project board + worktrees + batch PRs
  • GITHUB_STANDARD: same minus the Project board
  • LOCAL_ONLY: original local-file workflow, no GitHub dependency

Before You Begin: Cross-Conversation Continuity 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:

  • If it exists: Read it immediately. You are resuming an in-progress task. Identify the tracking mode, current phase, and completed work; continue from the exact point where the previous conversation left off. Do NOT restart from Phase 0.
    • In GitHub modes: Also query GitHub for the latest task status — see references/github-integration.md § "Reading Progress from GitHub". Update MASTER.md if GitHub state is ahead of the local index.
  • If it does not exist: This is a fresh start. Proceed to Phase 0.

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.


Phase 0: Quick Intent Capture

Goal: Capture the user's high-level transformation direction in 1-2 sentences — just enough to give Phase 1 analysis a focus.

Actions:

  1. Extract from the user's message: the transformation type, the rough target state, and any explicitly stated constraints.
  2. Summarize the direction back in 1-2 sentences. Do NOT ask deep clarifying questions here — Phase 1 analysis will reveal what to ask. Confirm: "I understand you want to [direction]. Let me first analyze the current project so I can ask you the right questions."
  3. If intent is completely unclear, ask ONE high-level question to determine the transformation type.

Output: A preliminary direction statement guiding Phase 1. NOT the final task definition — that comes in Phase 2.


Phase 1: Deep Project Analysis

Goal: Build a comprehensive understanding of the current codebase, informed by the Phase 0 direction.

Actions:

  1. Launch project-analyzer sub-agents in parallel, split by focus area:

    • Architecture & Stack: structure, directory layout, tech stack, entry points, build/run commands
    • Module Inventory: each module's responsibility, public API surface, size, dependencies — evaluated against all five S.U.P.E.R principles with a per-principle compliance rating
    • Risks, Tests & Governance: transformation risks, complexity hotspots, coding conventions, test coverage, instruction/memory surfaces — plus a S.U.P.E.R Architecture Health Summary with violation hotspots (priority targets for the plan)

    Give each agent the Phase 0 direction AND references/super-philosophy.md. If sub-agents are unavailable, perform the same analysis sequentially yourself.

  2. 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)
  3. 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.


Phase 2: Intent Refinement & Confirmation

Goal: With the project analyzed, finalize the task definition through a grounded discussion.

Actions:

  1. Present key Phase 1 findings: brief architecture summary, notable S.U.P.E.R health issues, and coupling/complexity highlights relevant to the transformation.

  2. 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:

    • Scope — which modules from the inventory are in scope
    • Target — target technology/architecture/state
    • Constraints — timeline, backward compatibility, libraries, deployment targets
    • Priorities — performance, maintainability, feature parity (use the risk assessment)
    • S.U.P.E.R priorities — which violations to fix now vs. defer
    • Testing policy — which test layers protect changes; whether to establish a minimal test harness if none exists
    • Project governance — canonical instruction surfaces; native memory surface or explicitly named repo fallback
  3. Summarize the refined understanding and get explicit confirmation.

Output: The authoritative, confirmed task definition guiding Phases 3-6.


Phase 3: Task Decomposition

Goal: Break the transformation into manageable, trackable tasks organized in phases, with parallel lanes and coherent delivery batches.

Actions:

  1. Launch 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.
  2. The decomposition must produce:
    • Phases ordered by dependency; early phases prioritize fixing S.U.P.E.R violation hotspots before new features.
    • Tasks, each with: description, priority (P0/P1/P2), effort (S/M/L/XL), dependencies, S.U.P.E.R design drivers, acceptance criteria, test expectation, and memory/governance impact. Every task's acceptance criteria implicitly include passing the S.U.P.E.R Quick Check for its listed principles.
      • Testing is default: tasks changing user-visible features, behavior, API contracts, schemas, migrations, parsing, routing, permissions, caching, or persistence MUST add or update automated tests; documentation/config tasks may mark tests N/A with an explicit reason.
      • Governance is default: tasks introducing a stable rule, gotcha, or convention must include updating the resolved memory surface (and instruction surfaces if the rule affects future agents).
    • Parallel execution lanes per phase: group mutually independent tasks; assess merge risk (file overlap).
    • Delivery batches: after reviewing the complete phase task set (dependencies, file overlap, shared validation, rollout risk, rollback boundary), assign every task to exactly one batch. Default to one coherent PR batch per phase; split only for documented reviewability, release/rollback, ownership, risk-isolation, or policy reasons; a single-Issue batch needs explicit justification. Record per batch: ID, goal, task IDs, execution waves, lanes, integration branch, combined validation, dependency order, split rationale.
    • Dependency graph as a Mermaid diagram (subgraphs for batch boundaries and lanes) and milestones at phase boundaries.
  3. Write docs/plan/ documents from references/templates/plan.md: task-breakdown.md, dependency-graph.md, milestones.md.
  4. GitHub Resource Synchronization (skip in LOCAL_ONLY): create Labels → Milestones → Issues → [GITHUB_FULL only] Project board, in that order, using the exact commands and the Issue body template in 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.
  5. Initialize Adaptive Control State: for each Milestone, compute percentage-based drift thresholds and append the adaptive YAML block per 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.


Phase 4: Progress Tracking Documentation

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.

Project Governance Surface (all modes)

  1. Inventory existing surfaces: shared instruction files (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.
  2. Update instruction surfaces without overwriting: shared cross-agent rules → 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.
  3. Resolve the memory surface: prefer native project memory; never silently create a Markdown memory file; use a repo-local fallback only on user confirmation or existing project declaration. Record the resolution in MASTER.md "Governance Status".

Do not create competing truth sources.

In GITHUB_FULL or GITHUB_STANDARD mode:

  1. Create 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.
  2. Add an "Execution Telemetry" reference noting where telemetry and drift state live per references/adaptive-control.md § "Adaptive State Storage" (Issue comments + Milestone descriptions).
  3. Per-phase detail files are optional and lightweight (Issue references only).

In LOCAL_ONLY mode:

  1. Create 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".
  2. Create one docs/progress/phase-N-<short-name>.md per phase: checkbox tasks with inline acceptance criteria plus a "Notes" section.
  3. Add the "Adaptive Control State" section and a "Task Telemetry Log" table to MASTER.md per references/adaptive-control.md § "Adaptive State Storage".

Common to all modes:

  • Phases use - [ ] 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.
  • "Current Status" is updated at the start and end of each work session.

Output: Complete docs/progress/ with MASTER.md (plus phase files in LOCAL_ONLY).


Phase 5: Confirm & Execute

Goal: Present preparation artifacts, get confirmation, then execute the plan.

Actions:

5a. Summary & Confirmation

  1. Present: task definition (Phase 2), key findings (Phase 1), phased plan with task counts (Phase 3), delivery batch overview with PR count and split rationales (Phase 3), tracking mode and its implications, progress system description (Phase 4), and the execution model (tiered dispatch: orchestrator-direct by default; task-executor/code-reviewer sub-agents dispatched per references/parallel-protocol.md § "Dispatch Admission (Tiered Execution)").
  2. List all generated artifacts (analysis, plan, and progress documents; resolved instruction and memory surfaces; GitHub Project URL, Milestone URLs, Issue numbers, batch mapping in GitHub modes).
  3. Ask the user: "All preparation is complete. Ready to begin execution?"

5b. Execution

  1. 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.

  2. Choose the execution tier for each delivery batch per the admission criteria in references/parallel-protocol.md § "Dispatch Admission (Tiered Execution)":

    • Tier 0 — orchestrator-direct (default): S/M effort, ≤ 3 files, context already held, or machine-verifiable acceptance. Execute directly on the batch integration branch. No sub-agents, no worktrees.
    • Tier 1 — single coder: L/XL bundles or context-heavy exploration. Delegate the complete batch to one task-executor.
    • Tier 2 — parallel lanes: only when ALL hold — disjoint lane file sets, ≥ L effort per lane, independent verifiability, ≤ 4 lanes. Launch one 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.
    • Branch convention: repository's own; otherwise batch/{batch_id}-{slug} (integration) and work/{batch_id}-{lane_id}-{slug} (Tier 2 lanes only).
  3. Review before integrating per references/parallel-protocol.md § "Review Admission (Tiered Review)":

    • L1 — machine validation (always): every task's targeted checks plus the batch's combined validation.
    • L2 — orchestrator diff review (default): personally read the diff against every Issue's acceptance criteria.
    • L3 — independent reviewer (reserved): one 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.
    • Writer model: reviewers never write GitHub state, MASTER.md, drift state, or instruction/memory surfaces. You remain the acceptance-verification authority and single writer for all shared state.
  4. 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.

  5. Integrate and validate each delivery batch per references/github-integration.md § "Delivery Batch Execution Workflow":

    • Consolidate reviewed lane branches onto the batch integration branch; reconcile overlaps.
    • Run per-task checks plus combined validation and post-integration architecture checks.
    • Verify every included Issue's acceptance criteria yourself (L2). Keep incomplete Issues out of closing keywords.
    • Create exactly one batch PR with one 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.
    • A single-Issue PR is allowed only for a documented exception or a one-Issue phase.
  6. Progress updates:

    • GitHub modes: merged batch PRs auto-close their Issues; update MASTER.md "Current Status", "Issue Mapping", "Delivery Batches".
    • LOCAL_ONLY: check off tasks in phase files; update MASTER.md counts.
    • All modes: durable knowledge → resolved memory surface; agent-behavior changes → resolved instruction surfaces.
  7. When all tasks are complete (all Issues closed or all checkboxes checked): proceed to Phase 6.

Output: All planned tasks implemented and verified.


Phase 6: Archive

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:

  1. Announce completion to the user.
  2. Determine the archive directory name from the Phase 2 task name (lowercase, hyphens, no special characters): docs/archives/<project-name>/. Target structure and index template: references/templates/archive.md.
  3. Move 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.
  4. [GitHub modes] Close each phase's Milestone (if not already closed); optionally close the Project board. These remain on GitHub as a permanent record.
  5. Create or update 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.
  6. Remove the now-empty docs/analysis/, docs/plan/, docs/progress/ directories. Keep active instruction and memory surfaces in place; only their snapshots live under the archive.
  7. Suggest the user commit the archive to version control.

Output: All artifacts under docs/archives/<project-name>/ with an updated docs/archives/README.md index.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Spec Driven Develop AI 技能有什么作用?

自动处理大型复杂任务的开发前工作流。用户提到“rewrite”“migrate”“overhaul”“refactor entire project”“transform”“rebuild in [language]”“spec-driven”,或描述任何需要先规划再编码的大规模项目改造时使用。也会在出现以下中文关键词时触发:“改造”“重写”“迁移”“重构”“大规模”“规范驱动”。此技能会全面分析项目、拆解任务、生成文档、解析项目级指令和原生记忆位置、设置进度跟踪,然后在同一会话中执行计划。Issue 仍作为任务跟踪单元,并将相关实现批量整合为连贯、便于审查的 PR。

为什么在 TypingMind 中使用 Spec Driven Develop?

因为您只需安装一次,就能搭配任何模型使用。Spec Driven Develop 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Spec Driven Develop?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/zhu1090093659/spec_driven_develop/tree/main/plugins/spec-driven-develop/skills/spec-driven-develop。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Spec Driven Develop?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Spec Driven Develop 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Spec Driven Develop 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Spec Driven Develop AI 技能免费吗?

是的。zhu1090093659 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇