spec-kit README

项目的 README,来自 github.com/github/spec-kit。合并为一个 markdown 文件:README.md。

Spec Kit Logo

🌱 Spec Kit

Build with a spec, fix a bug, or assess an idea — with your coding agent.

Latest Release GitHub stars License Documentation

English · 简体中文 · 日本語 · 한국어

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.

Choose your process

What you need Process Outcome
Build a feature or application Spec-Driven Development A specification carried through planning, implementation, and convergence
Diagnose and repair broken behavior Bug fixing An assessed cause, scoped fix, and recorded verification
Decide whether an idea deserves investment Idea assessment An evidence-backed go, clarify, or stop decision
Adopt or create a different process Your own process 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:

Capability Spec Kit mechanism
Connect to or switch between coding agents Integration
Add a command, quality gate, or complete process Extension
Connect a process to an external tool or service Extension
React to coding-agent lifecycle events Extension runtime event
Run extension commands before or after Spec Kit commands Extension hook
Adapt templates, commands, terminology, or methodology Preset
Enforce organizational or regulatory standards Preset
Override a template for one project Project-local override
Automate prompts, commands, gates, and shell tasks Workflow
Modify an installed workflow without forking it Workflow overlay
Add reusable executable behavior to workflows Workflow step
Install a curated setup for a role or team Bundle
Discover community components Catalog
Host a private catalog of approved components Catalog
Access private catalogs and component downloads Authentication
Work offline or behind a firewall Local sources and self-hosted catalogs
Inspect which layer supplies a command, template, or script Artifact inventory

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.

uv tool install specify-cli
specify init my-project --integration copilot
cd my-project

After installing the Specify CLI and creating your project, launch your coding agent in the project directory, then choose a process below.

For other setups:

Spec-Driven Development

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.

SDD walkthrough · Command reference

Bug fixing

Assess the cause, fix the bug, and verify the original symptom is resolved. No SDD feature workflow is required first.

Install the bug-fixing extension in your terminal, from the project directory:

specify extension add bug

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-bug-assess "Submitting an empty password crashes the login form." slug=login-crash
/speckit-bug-fix slug=login-crash
/speckit-bug-test slug=login-crash

Review the reports in .specify/bugs/login-crash/. The final verdict is verified, partial, or failed; only verified confirms a successful fix.

Bug-fixing walkthrough · Command reference

Idea assessment

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.

Assessment walkthrough · Command reference

Customize or bring your own process

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:

Start with the smallest change that meets your needs; you do not have to replace the whole process.

Customization guide · Community components and walkthroughs

Documentation

In the news

Star history

Spec Kit star history chart

Thanks to everyone who helps Spec Kit shine.

Support and contributing

Report a bug or request a feature · Contributing guide · Code of conduct

Spec Kit is MIT licensed.

spec-kit (github/spec-kit)

正在搜索数据库…

这是什么?Spec Kit 是一个开源工具包,用于规格驱动开发(SDD)——你先编写规格、计划和任务,再由 AI 编程助手把它们转化为可运行的代码,而不是先写代码、把文档留到最后再补。
这是独立应用,还是可以接入我的编程助手?它是一个命令行工具(Specify CLI),会把 /speckit.specify、/speckit.plan 等斜杠命令安装到你已在使用的 AI 编程助手中(如 Claude Code、Copilot CLI、Codex CLI 等),而不是一个单独的应用。
我该怎么开始使用?用 uv 安装 Specify CLI,在项目中运行 specify init,然后启动你的编程助手,按顺序依次使用 /speckit.constitution、/speckit.specify、/speckit.plan、/speckit.tasks 和 /speckit.implement。
使用之前我需要准备什么?你需要先安装 uv 来运行该命令行工具,并且需要支持的 30 多种 AI 编程助手之一,例如 Claude Code、GitHub Copilot CLI 或 Codex CLI。
implement 这一步能一次性完成功能吗?不能。你需要反复运行 /speckit.implement 和 /speckit.converge,直到系统报告已收敛。另外,社区制作的扩展和预设由各自独立维护,安装前应先检查其源代码。
/speckit.converge 具体检查什么?它会把代码库与规格、计划和任务进行对照评估,然后把剩余工作以新任务的形式追加进去,这样你就能知道一个功能是否真正完成。
扩展(extensions)和预设(presets)有什么区别?扩展用于添加全新的功能(例如 Jira 集成或额外的评审阶段);预设则用于自定义或覆盖核心工作流或扩展中已有的模板和术语。
它能帮忙修复 bug,而不只是开发新功能吗?可以。可选的 bug 扩展提供了一套“评估、修复、测试”工作流(/speckit-bug-assess、/speckit-bug-fix、/speckit-bug-test),让修复范围可控并基于证据。
在投入开发之前,我能先评估一个想法吗?可以。可选的 assess 扩展提供了一套“接收、调研、定义、塑造、决策”的工作流,最终给出“推进”“需要澄清”或“放弃”的决定。
作者
github
大小
23.5 MB
星标
152.7K
时长
1年
提交 · 90 天