问题的本质不是模型不够聪明,而是缺少一个可复用的、结构化的过程层。人类的软件工程早就用需求文档、设计评审、验收标准解决了这个问题;而 AI 代理目前多数是“即兴发挥”。Spec Kit 正是 GitHub 官方为此给出的答案——它不训练模型、不做 IDE 插件,而是提供一套 让编码代理按规格(Spec)走的流程骨架,并把这个骨架做成可安装、可扩展、可组合的工具包。
graph TD
A[用户意图:建功能/修Bug/评估想法] --> B{"选择入口"}
B -->|"规格驱动开发"| C[生成规格工件]
B -->|"Bug 修复扩展"| D[定位根因并限定修复范围]
B -->|"想法评估扩展"| E[证据驱动的 go/clarify/stop 决策]
C --> F[规划与实现]
F --> G[收敛校验]
D --> H[记录验证结果]
E --> I[输出决策结论]
J[Extension:命令/质量门禁/连接器] --> C
J --> D
J --> E
K[Integration:连接不同编码代理] --> F
K --> H
Spec Kit is an open source toolkit that gives AI coding agents structured
processes, reusable templates, and documented outcomes. Start with a ready-made
process, customize it, or bring your own.
A process adapted or assembled from reusable primitives
These are independent entry points, not mandatory phases. SDD ships in core;
bug fixing and assessment are bundled extensions you install when needed, and
the primitives below let you adopt or create other processes.
Capabilities
Spec Kit combines ready-to-use processes with composable mechanisms:
Search the active catalogs with commands such as specify extension search,
specify preset search, specify workflow search, and specify bundle search.
Spec Kit includes community catalogs, and organizations can add their own
curated sources. Catalog listings are not audits or endorsements, so review
community source code before installing or running it.
Get started
You need Python 3.11+, uv,
and a supported AI coding agent on Linux, macOS, or Windows.
Run these commands in your terminal to install Spec Kit and create a project.
This example uses GitHub Copilot.
Define what to build and why, then turn the specification into a plan, tasks,
and working code.
The minimal flow is shown below. Create a constitution once per project and
repeat the remaining steps for each feature. Run these skills in your agent’s
chat, not your terminal, one at a time, reviewing each result before continuing.
This example uses GitHub Copilot’s default skills syntax. For another agent,
use its equivalent invocation syntax.
/speckit-constitution Create principles focused on code quality, testing, and maintainability.
/speckit-specify Build a photo organizer with albums grouped by date and a tile preview of each album.
/speckit-plan Use Vite with vanilla JavaScript. Keep images local and store metadata in SQLite.
/speckit-tasks
/speckit-implement
/speckit-converge
Repeat implement and converge until convergence reports Converged.
For clarification, checklists, and consistency analysis, see the SDD walkthrough.
Gather evidence to decide whether an idea is worth pursuing.
No source code or SDD feature workflow is required.
Install the assessment extension in your terminal, from the project directory:
specify extension add assess
Run these skills in your agent’s chat, not your terminal, one at a time,
reviewing each result before continuing.
This example uses GitHub Copilot’s default skills syntax. For another agent,
use its equivalent invocation syntax.
/speckit-assess-intake "Let users work offline and sync when they reconnect." slug=offline-mode
/speckit-assess-research slug=offline-mode
/speckit-assess-define slug=offline-mode
/speckit-assess-shape slug=offline-mode
/speckit-assess-decide slug=offline-mode
Review the artifacts in .specify/assessments/offline-mode/ and the final
decision: go, needs-clarification, or kill. Resolve unknowns by editing the
existing Markdown artifacts, directly or with your agent, rather than rerunning
whole stages. If you choose to build a software idea with a go decision,
establish a project constitution if needed, then pass the handoff summary from
decision.md to /speckit-specify. Stopping with a documented reason is also a
useful outcome.
Customize Spec-Driven Development, bug fixing, or idea assessment to fit your
team’s standards. Or bring your own process without adopting any of them.
Combine the capabilities above to match your goal:
Adapt an existing process with a preset, such as requiring regulatory traceability in plans. Use a project-local override for a one-off template change.
Bring your own process by adding its commands through an extension and exposing them to your coding agent through an integration.
Automate commands and checks in a workflow. Use overlays to adapt an installed workflow without forking it, or add custom workflow steps when the built-in types are not enough.
Share a reusable setup by packaging its extensions, presets, workflows, and workflow steps in a bundle.
Start with the smallest change that meets your needs; you do not have to replace
the whole process.
评论