Skip to main content

feature-spec

Kicks off a new feature by finding the next incomplete phase in specs/roadmap.md, creating a git branch, interviewing the user about scope/decisions/context, and writing a dated spec directory under specs/ containing plan.md, requirements.md, and validation.md. Trigger when the user says "feature spec", "next phase", "start the next feature", or invokes /feature-spec.

来源信息

仓库
https-deeplearning-ai/sc-spec-driven-development-files
最近来源活动
2026年4月14日 18:47
检测到的 SKILL.md 语言
英语
星标
329
Forks
323

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
feature-spec
description
Kicks off a new feature by finding the next incomplete phase in specs/roadmap.md, creating a git branch, interviewing the user about scope/decisions/context, and writing a dated spec directory under specs/ containing plan.md, requirements.md, and validation.md. Trigger when the user says "feature spec", "next phase", "start the next feature", or invokes /feature-spec.
# Feature Spec ## Workflow ### 1. Find the next phase Read `specs/roadmap.md`. The next phase is the first section whose items are all `[ ]`. Note its name to derive the branch and directory name. ### 2. Create the branch ``` git checkout -b phase-N-<kebab-name> ``` ### 3. Interview the user — BEFORE writing any files Use `AskUserQuestion` with exactly **3 questions in one call**: | Header | Question focus | |--------|---------------| | **Scope** | What the feature collects, exposes, or does — fields, behaviour, data shape | | **Decisions** | Key implementation choices — storage, visibility, validation, UX pattern | | **Context** | Tone, constraints, or anything shaping the spec — copy style, stack limits, open questions | Do **not** write any files until the user has answered all three questions. ### 4. Read guidance files Read `specs/mission.md` and `specs/tech-stack.md` before drafting. ### 5. Create the spec directory Name: `specs/YYYY-MM-DD-<feature-name>/` using today's date. #### `requirements.md` - Scope section: what is and is not included; field/data table if applicable - Decisions section: choices made and why (draw from user answers) - Context section: tone rules, stack pointers, existing patterns to follow #### `plan.md` - Numbered task groups appropriate to the feature (for example: Data → Components → Page & Route → Navigation → Tests) - Each group has numbered sub-tasks; groups should be independently implementable #### `validation.md` - Automated: project test and typecheck commands pass; specific assertions required - Manual: walkthrough, behaviour, edge cases - Tone check if the feature has user-facing copy - Definition of done ## Constraints - Respect the existing tech stack defined in `specs/tech-stack.md` — no new dependencies without user approval - Follow existing conventions and patterns already established in the codebase - Keep feature scope focused and independently shippable
在 GitHub 查看