FS

fredantb/spec-driven-development

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

156 stars 质量 57 趋势 21MIT

fredantb/spec-driven-development 是从 https://github.com/fredantb/spec-driven-development. 导入的代理技能候选

概览

fredantb/spec-driven-development 是从 https://github.com/fredantb/spec-driven-development. 导入的代理技能候选

概述(AI 翻译)

Claude、Cursor 和 Copilot 在触碰你的代码前都读了同一份计划。

一个Claude技能,在你写代码前先写好你的规格——面试你, 生成 requirements.md、design.md 和 tasks.md,然后生成匹配 为你使用的每个AI工具准备配置文件,这样它们之间就不会互相矛盾。


这解决了问题

你打开Claude代码,让它构建一个功能。一小时后,它 做了技术上很厉害但又不是你想要的东西。 你让光标修好它。这和克劳德·科德做的事矛盾。你去问 副驾驶清理。它创造了第三种解释。

根本原因总是一样的:你的AI代理之间没有共享的来源 真理。他们用自己的假设填补了每一个空白。

该技能通过在编写代码前创建三个文件来解决这个问题:

档案 答案
requirements.md 系统必须做的事
design.md 如何建造
tasks.md 接下来建造什么,按顺序排列

这些文件的实际样子如下:

requirements.md — 每个需求都可追溯和可测试:

tasks.md——每个任务都链接回其需求:

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

spec-driven-development

Claude, Cursor, and Copilot all read the same plan before touching your code.

A Claude skill that writes your specs before you write code — interviews you, generates requirements.md, design.md, and tasks.md, then creates matching config files for every AI tool you use so they can’t contradict each other.


The problem this solves

You open Claude Code and ask it to build a feature. An hour later it’s done something technically impressive that isn’t quite what you wanted. You ask Cursor to fix it. It contradicts what Claude Code did. You ask Copilot to clean up. It invents a third interpretation.

The root cause is always the same: your AI agents have no shared source of truth. They fill every gap with their own assumptions.

This skill fixes that by creating three files before any code is written:

File Answers
requirements.md What the system must do
design.md How it will be built
tasks.md What to build next, in order

Here’s what those files actually look like:

requirements.md — every requirement is traceable and testable:

- **REQ-001**: Users shall log time entries against a client project.
  - _Acceptance_: POST /entries returns 201 with entry id, duration, and project_id
- **REQ-002**: Users shall generate a monthly invoice from logged entries.
  - _Acceptance_: GET /invoices/:month returns PDF with line items summing to total

tasks.md — every task links back to its requirement:

- [ ] **TASK-003** [REQ-001]: Implement POST /entries with validation
  - _Output_: Route handler + duration schema validation
  - _Verify_: POST /entries returns 201 with all required fields

Every AI tool reads from these files before touching code. Drift stops.


Quick start

Install the skill, then start a conversation with any of these:

"I want to start a new project"
"my AI keeps going off script, help"
"I already have a codebase, no specs yet"
"set up cursor and claude code for my team project"

Claude will ask a few short questions and generate your spec files. No configuration needed.


Installation

Claude.ai / Claude desktop app (Chat tab)

  1. Download spec-driven-development-v1.0.skill
在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add fredantb/spec-driven-development
新手?先看 mcpskill.org 教程 →