Feature spec

From https-deeplearning-ai/sc-spec-driven-development-files · View interactive version

Feature spec is an AI agent skill from the GitHub repository https-deeplearning-ai/sc-spec-driven-development-files. 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 sp

How to use this skill

Skill file

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`
`plan.md`
`validation.md`

Constraints

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.