Skip to main content

spec-kit

规范驱动开发(SDD)工具集。为 AI 编码助手(Claude Code / Codex)提供知识库骨架和技能包。

pipx install spec-kit
cd my-project
spec-kit install --agents claude-code,codex

组成

组件 说明
spec-kit install 部署 .spec/ 知识库骨架 + 按 agent 部署技能到对应目录(--agents 指定或交互式多选)
spec-kit upgrade 升级已有安装
spec-kit uninstall 回收已部署的技能
spec-kit scan frontmatter 检索与发现(层级树)
spec-kit lint 全面一致性校验
spec-kit metrics 项目健康指标查看
spec-kit skill 全局技能库管理(list/search/push/install/remove)
spec-kit version 版本信息

部署后的工作流

/context      → 加载上下文
/iteration    → 创建迭代
/prd          → 需求结构化
/design       → 方案设计
/dev          → TDD 实现
/fix          → Bug 修复
/complete     → 窗口提交

技能包

技能是跨 agent 的公共格式(Agent Skills 标准)。以下技能随 install 部署:

技能 说明
prd 需求结构化 — 多阶段并行 Agent 管道
design 方案设计 — 全栈编排,先后端后前端
dev TDD 开发 — 骨架 → 测试 → 实现
fix Bug 修复 — 根因定位 → 方案 → 落地
complete 窗口提交 — 声明 + 域知识 + 规则 + 进度 + 技能沉淀
context 上下文加载
iteration 迭代初始化
checkout 迭代切换
grill-me 方案质询

全局技能库

/complete 沉淀的技能写入 .spec/skills/,可推送到全局技能库(~/.spec-kit/skills/)供其它项目复用:

spec-kit skill push {name}          # 项目技能 → 全局库
spec-kit skill list                 # 列出全局库技能
spec-kit skill search {keyword}     # 搜索
spec-kit skill install {name}       # 全局库 → 当前项目所有声明 agent
spec-kit skill remove {name}        # 从全局库移除

支持的 CodingAgent

agent 技能目录
claude-code .claude/skills/
codex .codex/skills/

版本

spec-kit version

许可

MIT

Metadata

Release files for spec-kit-tool 1.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spec-kit-tool 1.4.1
File Size Uploaded
spec_kit_tool-1.4.1.tar.gz 59.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for spec-kit-tool 1.4.1
File Interpreter ABI Platform
spec_kit_tool-1.4.1-py3-none-any.whl Python 3 none any Details

Total release size: 134.4 kB

Release files / spec_kit_tool-1.4.1.tar.gz

Download URL spec_kit_tool-1.4.1.tar.gz
Size 59.1 kB
Tags Source
SHA-256 checksum
How to use checksums
25546b959afc02441d1f73067ec06fb84cb5c915bcc8fc7c0512cae89364cfa2
BLAKE2b-256 checksum
How to use checksums
44faf0b885cf3888c344a07020854652605b18b80d585bf6dfe02ba97384a22b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.1

Release files / spec_kit_tool-1.4.1-py3-none-any.whl

Download URL spec_kit_tool-1.4.1-py3-none-any.whl
Size 75.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
35614c294b83a441403dca3413f387cbc53682a50b63b786459e8ea788d17dd4
BLAKE2b-256 checksum
How to use checksums
27817faa2ad16c8b037b4b591a8112710e572588d9259c7bf31963c401d449e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.1

Release history Release notifications | RSS feed

1.8.0

2 release files

1.7.1

2 release files

1.6.0

2 release files

1.5.0

2 release files

1.4.2

2 release files

This release

1.4.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page