跳到正文
Skillpedia
技术文档48k · #5838

spec-driven-loop

它能做什么

这个工具可以帮助你在编码开始前,把复杂的软件想法转化为清晰、详细的计划。它确保所有需求、技术设计和验收标准都已定义并获得批准。

适用场景

  • ✓开始一个新产品或较大的新功能时。
  • ✓系统中有多个部分需要协同工作时。
  • ✓想确保最终成果与当初的要求完全一致时。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/spec-driven-loop/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/spec-driven-loop/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我需要一个任务管理仪表盘,不同用户有不同的访问权限,我希望能确保它按预期运行。”

每周 5 个新技能,1 分钟读完。

工作原理

这个工具首先会编写一份详细的文档(PRD),说明软件应该做什么。然后,它会定义软件的构建方式(技术设计),以及如何判断软件已经就绪(验收标准)。最后,它会协调构建过程,并检查一切是否都已正确完成。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Spec-Driven Loop

Turn an uncertain software request into an approved specification, a controlled implementation, and evidence-backed acceptance. Keep project documents in the repository's established location; otherwise use docs/spec-driven/<feature-slug>/.

When to Use

Use this skill for new products, medium-to-large features, cross-module changes, or requests that need PRD/technical design, active clarification, multi-agent execution, or a main-agent judge. Do not use it for a small single-file change, a tiny bug fix, code explanation, review-only or diagnostic work, pure research, or a simple task whose specification is already complete.

Quick Example

$spec-driven-loop Build a multi-tenant job dashboard with role-based access and evidence-backed acceptance.

Limitations

  • Not intended for small isolated edits, review-only work, diagnosis, or pure research.
  • Does not replace environment-specific testing or grant authorization for unrelated changes or external actions.
  • Production implementation cannot start until the user explicitly approves the frozen specification and acceptance contract.

Follow repository instructions and authorization boundaries throughout. Match generated project documents to the user's language or the repository's existing documentation language; keep identifiers such as FR-001 and AC-001 stable.

Operating Invariants

  • Facts are the agent's responsibility. Decisions belong to the user.
  • Investigate discoverable facts before asking questions. Ask only for real product decisions or consequential technical tradeoffs.
  • Never write or modify production code until the user explicitly approves the specification, scope, and acceptance contract for implementation.
  • Never disguise uncertainty. Mark it TBD, ASSUMPTION, or BLOCKED.
  • A subagent's completion report is evidence, not acceptance. The main agent owns integration and the final judgment.
  • Freeze shared interfaces, data structures, and public types before parallel work. Assign non-overlapping file ownership; serialize overlapping work.
  • Update the durable documents after every decision or implementation loop. A chat transcript is not the source of truth.
  • If implementation reveals a requirement change rather than a code defect, stop affected work, revise the specification, obtain renewed user approval, and then resume.
  • Preserve the user's authorization scope. A specification approval authorizes the approved implementation, not unrelated changes or external actions.

The requirements-grilling stage is informed by Matt Pocock's MIT-licensed grill-me / grilling decision-tree and frontier method.

Document Boundaries

Keep each fact in one authoritative document and reference its stable ID elsewhere:

  • PRD.md: why and what the product must do; owns scope, user behavior, business rules, assumptions, and product decisions.
  • TECH_DESIGN.md: how the approved product behavior will work; owns architecture, contracts, data, operations, security, and technical decisions.
  • ACCEPTANCE.md: observable proof that frozen requirements are met; owns pass/fail criteria and required evidence.
  • AGENT_PLAN.md: who performs approved implementation work; owns dependencies, file ownership, validation, and agent task contracts.
  • LOOP.md: current recoverable execution state and append-only loop history; owns attempts, evidence, judgments, rework, risks, and next action.

Read references/document-templates.md when creating or updating these five documents. Read references/agent-and-judge-contracts.md before assigning implementation tasks, integrating agent work, judging acceptance, or issuing rework.

1. Inspect the Current System

Before asking the user questions:

  1. Read applicable AGENTS.md, project instructions, existing specifications, and repository conventions.
  2. Inspect the relevant architecture, modules, interfaces, database, tests, deployment method, and code conventions.
  3. Identify established domain terms and documentation locations.
  4. Resolve facts from code, files, tools, and documentation. Record findings and sources in the draft rather than asking the user to rediscover them.
  5. Separate product choices from technical choices and note decision dependencies.

…

常见问题

什么是 PRD?

PRD 是 Product Requirements Document 的缩写,即产品需求文档,用来描述产品应该做什么、为谁而做、以及为什么要做。

什么是验收标准?

这些是用来确认软件是否按需求构建、是否可以投入使用的规则和测试。

我可以用它来修复一个小 bug 吗?

不可以。这个工具适用于规模较大、较复杂的项目,不适合小修小补或代码审查。

详情

作者的原始描述

Freeze PRD, technical design, and acceptance criteria before medium-to-large Codex work; coordinate agents with explicit ownership, then judge delivery from diffs, tests, and evidence.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#5838
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能