Loading...
Loading...
Compare original and translation side by side
specdriven/specdriven/ ┌────────────┐ ┌────────────┐ ┌────────────┐
│ CONCEPT │ ──▶ │ ROADMAP │ ──▶ │ FEATURES │
│ the why │ │ the path │ │ the work │
└────────────┘ └────────────┘ └────────────┘
concept.md roadmap.md features/NN-name.mdspecdriven/<user-project>/
└── specdriven/
├── concept.md
├── roadmap.md
└── features/
├── 01-sign-up.md
├── 02-create-post.md
└── 03-share-link.md ┌────────────┐ ┌────────────┐ ┌────────────┐
│ CONCEPT │ ──▶ │ ROADMAP │ ──▶ │ FEATURES │
│ the why │ │ the path │ │ the work │
└────────────┘ └────────────┘ └────────────┘
concept.md roadmap.md features/NN-name.mdspecdriven/<user-project>/
└── specdriven/
├── concept.md
├── roadmap.md
└── features/
├── 01-sign-up.md
├── 02-create-post.md
└── 03-share-link.mdconcept.md?specdriven/concept.mdconcept.mdundefinedconcept.md?specdriven/concept.mdconcept.mdundefined
**Anti-patterns:**
- ✗ Don't write a 5-page spec. One page, max.
- ✗ Don't propose a tech stack here — that's roadmap territory.
- ✗ Don't list features here — that's roadmap territory.
- ✗ Don't ask 20 questions. 3–5 short ones.
When the concept is saved and the user approves, move to Roadmap.
---
**反模式**:
- ✗ 不要写5页长的规格文档,最多一页。
- ✗ 不要在此阶段提议技术栈——这属于Roadmap阶段的内容。
- ✗ 不要在此阶段列出功能——这属于Roadmap阶段的内容。
- ✗ 不要提出20个问题,3-5个简短问题即可。
当概念文档保存并获得用户批准后,进入Roadmap阶段。
---specdriven/concept.mdspecdriven/roadmap.mdroadmap.mdundefinedspecdriven/concept.mdspecdriven/roadmap.mdroadmap.mdundefined
**Sizing guide (rough — not hours):**
- **S** — one sitting, one file or two, no new concepts
- **M** — a few sittings, multiple files, maybe a new library
- **L** — week or more, new architectural piece. If something feels L, *try to split it*.
**Anti-patterns:**
- ✗ More than 10 features in v1. If there are more, this is really two roadmaps; pick one.
- ✗ Sequencing by easiest-first instead of "what makes the thing usable soonest".
- ✗ Putting "research X" or "figure out the database" as a feature. Either it's a real feature or it's an open question on `concept.md`.
When the roadmap is saved and approved, move to Features.
---
**规模指南(大致划分,非耗时)**:
- **S** — 一次完成,涉及1-2个文件,无新概念
- **M** — 分几次完成,涉及多个文件,可能需要引入新库
- **L** — 需要一周或更长时间,涉及新的架构组件。如果某个功能看起来是L级,尝试拆分它。
**反模式**:
- ✗ v1版本包含超过10个功能。如果超过,说明实际上是两个路线图,请选择其中一个。
- ✗ 按“最简单优先”排序,而非“尽早实现可用版本”优先。
- ✗ 将“研究X”或“确定数据库选型”列为功能。要么是真实功能,要么是concept.md中的待解决问题。
当路线图保存并获得批准后,进入Features阶段。
---specdriven/roadmap.mdspecdriven/features/NN-feature-name.mdroadmap.mdfeatures/NN-name.mdundefinedspecdriven/roadmap.mdspecdriven/features/NN-feature-name.mdroadmap.mdfeatures/NN-name.mdundefined
**Rules of thumb:**
- A feature card is half a page, not three pages.
- Acceptance checks must be testable by clicking around or running one command. "Works well" is not a check; "user lands on /home after sign-in" is.
- If building reveals a missing feature, don't silently bolt it onto this card — open a new card and update the roadmap.
- If building reveals the *concept* was wrong, **stop and update `concept.md` first**. The artifacts are a contract; do not drift.
---
**经验法则**:
- 功能卡片最多半页,不要超过三页。
- 验收检查项必须可通过点击操作或运行单个命令测试。“运行良好”不是有效检查项;“用户登录后跳转到/home页面”才是。
- 如果构建过程中发现缺少某个功能,不要悄悄添加到当前卡片中——创建新卡片并更新路线图。
- 如果构建过程中发现**概念**有误,**先停止并更新`concept.md`**。文档是约定,不能偏离。
---concept.mdroadmap.md?roadmap.mdconcept.mdroadmap.md?roadmap.md| What you see in the user's project | What to do |
|---|---|
No | Ask the user: "Want me to set this up — describe what you're building, and I'll draft the concept page, then we'll plan the roadmap together." On yes, run Phase 1. |
| Read concept.md, run Phase 2. |
| Both exist, user wants to build | Run Phase 3 on the next undone feature. |
| User asks something unrelated mid-feature | Answer it, then offer to return to the feature. |
| User contradicts an existing artifact | Surface the contradiction, ask whether to update the artifact, do not silently drift. |
| 在用户项目中看到的内容 | 操作 |
|---|---|
无 | 询问用户:“需要我帮你搭建吗?描述一下你要构建的内容,我会起草概念文档,然后我们一起制定路线图。”如果用户同意,执行第一阶段。 |
存在 | 阅读concept.md,执行第二阶段。 |
| 两者都存在,用户想要构建 | 对下一个未完成的功能执行第三阶段。 |
| 用户在构建功能中途提出无关问题 | 回答问题,然后提议回到功能构建。 |
| 用户提出的内容与现有文档矛盾 | 指出矛盾,询问是否更新文档,切勿悄悄偏离约定。 |
| spec-kit phase | specdriven home |
|---|---|
| Constitution | One paragraph inside Concept's "Ground rules" |
| Specify | Concept |
| Clarify | The 3–5 questions during Concept |
| Plan | Roadmap (with tech notes inline) |
| Tasks | Features (each card is a small task list) |
| Analyze | Done implicitly: every feature reads concept + roadmap |
| Implement | Build step at the end of each Feature card |
| spec-kit阶段 | specdriven对应阶段 |
|---|---|
| Constitution | Concept阶段的“基本原则”中的一段内容 |
| Specify | Concept |
| Clarify | Concept阶段的3-5个澄清问题 |
| Plan | Roadmap(包含内嵌的技术说明) |
| Tasks | Features(每个卡片本身就是一个小型任务列表) |
| Analyze | 隐式完成:每个功能都会参考concept + roadmap |
| Implement | 每个Feature卡片末尾的构建步骤 |