by loulanyue
Chinese-localized spec-driven development toolkit for Codex, Claude Code, Cursor, and other AI coding agents.
# Add to your Claude Code skills
git clone https://github.com/loulanyue/spec-kit-zhLast scanned: 7/23/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-07-23T06:29:31.601Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}spec-kit-zh is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by loulanyue. Chinese-localized spec-driven development toolkit for Codex, Claude Code, Cursor, and other AI coding agents. It has 316 GitHub stars.
Yes. spec-kit-zh passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/loulanyue/spec-kit-zh" and add it to your Claude Code skills directory (see the Installation section above).
spec-kit-zh is primarily written in Python. It is open-source under loulanyue on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh spec-kit-zh against similar tools.
No comments yet. Be the first to share your thoughts!
规范驱动开发(Spec-Driven Development)重新定义了软件开发的起点。过去几十年里,代码一直是开发过程中的主角,而规范常常只是编码开始前临时搭起来的脚手架。规范驱动开发改变了这一点:规范本身变得可执行,它不再只是指导实现,而是可以直接驱动计划、任务拆解与最终实现。
如果你希望先快速跑通一遍从需求到实现的完整流程,这一节可以帮助你在几分钟内建立起最小可用认知。
第 1 步:安装
uv tool install specify-cli-zh --from git+https://github.com/loulanyue/spec-kit-zh.git
[!IMPORTANT] 📦 安装包名:
specify-cli-zh(用于 pip / uv install 下载)
🚀 执行命令:specify-zh(用于在终端执行工具)
第 2 步:初始化项目
specify-zh init my-project
第 3 步:验证
specify-zh check
specify-cli-zh:这是本中文分支在 Python 包管理系统中的分发包名。但在运行工具本身时,请不要输入 specify-cli-zh。specify-zh:这是您真正在终端执行的命令名。所有的命令前缀都应为 specify-zh 以避免冲突。specify:这是上游英文原版的默认命令名。如果你只安装了本工具,并且环境中没有安装过冲突工具,你可以为其配置 alias,但在本项目文档和教程中,我们将始终称之为 specify-zh。| 场景 | 推荐命令 |
|---|---|
| 长期使用、希望全局可调用 | uv tool install specify-cli-zh --from git+https://github.com/loulanyue/spec-kit-zh.git |
| 临时试用、不想安装到本机 | uvx --from git+https://github.com/loulanyue/spec-kit-zh.git specify-zh |
specify-cli-zh请选择你偏好的安装方式:
安装一次,全局可用:
uv tool install specify-cli-zh --from git+https://github.com/loulanyue/spec-kit-zh.git
安装完成后即可直接使用:
# 创建新项目
specify-zh init <PROJECT_NAME>
# 或在现有项目中初始化
specify-zh init . --ai claude
# 或者
specify-zh init --here --ai claude
# 检查本机工具环境
specify-zh check
specify-cli-zh 默认安装的命令名是 specify-zh,这样可以避免与其他已安装的 specify 命令冲突。
升级 Specify 请参阅 升级指南。快速升级命令如下:
uv tool install specify-cli-zh --force --from git+https://github.com/loulanyue/spec-kit-zh.git
无需安装,直接运行:
# 创建新项目
uvx --from git+https://github.com/loulanyue/spec-kit-zh.git specify-zh init <PROJECT_NAME>
# 或在现有项目中初始化
uvx --from git+https://github.com/loulanyue/spec-kit-zh.git specify-zh init . --ai claude
# 或者
uvx --from git+https://github.com/loulanyue/spec-kit-zh.git specify-zh init --here --ai claude
持久化安装的优势:
uv tool list、uv tool upgrade、uv tool uninstall 做更完整的工具管理安装完成后,运行以下命令确认 CLI 正常工作:
specify-zh --help # 显示命令帮助,且品牌名为 specify-cli-zh
specify-zh version # 显示版本号和环境信息
specify-zh check # 检测本机工具链(git、AI agent 等)
[!TIP] 安装包名 vs 执行命令名
用途 名称 pip/uv 安装时使用 specify-cli-zh终端运行时使用 specify-zh
如果你是在已有仓库中接入 Spec Kit,建议优先使用 specify-zh init . 或 specify-zh init --here,这样可以直接在当前目录完成初始化。
在项目目录中启动你的 AI 助手。初始化完成后,助手中就会提供 Spec Kit 命令。
[!TIP] 对于 Codex CLI,自定义命令使用
/prompts:命名空间。 正确调用方式为/prompts:speckit-constitution、/prompts:speckit-specify等。 不要输入/speckit.constitution或/speckit:constitution,Codex 不支持该格式。
使用 /speckit.constitution 创建项目的治理原则与开发准则;如果你使用 Codex CLI,请输入 /prompts:speckit-constitution。这些原则会贯穿后续所有规范、计划与实现阶段。
# Claude / Gemini / 其他 agent
/speckit.constitution 创建强调代码质量、测试标准、用户体验一致性与性能要求的项目原则
# Codex CLI
/prompts:speckit-constitution 创建强调代码质量、测试标准、用户体验一致性与性能要求的项目原则
使用 /speckit.specify 描述你要构建什么;Codex CLI 对应命令为 /prompts:speckit-specify。此阶段应重点说明做什么与为什么做,而不是技术栈。
/speckit.specify 构建一个帮助我管理照片相册的应用。相册按日期分组,可在主页拖拽重排;相册之间不允许嵌套;每个相册中的照片以平铺预览方式展示。
使用 /speckit.plan 补充技术栈与架构选择;Codex CLI 对应命令为 /prompts:speckit-plan。
/speckit.plan 应用使用 Vite,并尽量减少外部依赖。优先使用原生 HTML、CSS 与 JavaScript。图片不上传到远端,元数据保存在本地 SQLite 数据库中。
使用 /speckit.tasks 将实施计划转成可执行的任务清单;Codex CLI 对应命令为 /prompts:speckit-tasks。
/speckit.tasks
使用 /speckit.implement 按计划执行任务并完成功能实现;Codex CLI 对应命令为 /prompts:speckit-implement。
/speckit.implement
如需查看完整分步说明,请阅读 Spec-Driven Development 全流程指南。
首次接触时,推荐按 constitution -> specify -> plan -> tasks -> implement 的顺序推进;如果需求仍有模糊点,可以先运行 /speckit.clarify,Codex CLI 则使用 /prompts:speckit-clarify,再进入计划阶段。
想快速了解 Spec Kit 的工作方式?可以先看这个视频概览:
下面这些社区项目展示了规范驱动开发在不同场景中的实际用法:
Greenfield .NET CLI tool:从空目录出发,构建一个 .NET 单文件时区工具 CLI,完整覆盖 constitution、specify、plan、tasks 以及多轮 implement 流程。
Greenfield Spring Boot + React platform:从零构建一个 LLM 性能分析平台,包含 REST API、图表、迭代跟踪,并演示 clarify 和跨文档一致性分析流程。
Brownfield ASP.NET CMS extension:在已有 ASP.NET CMS 项目中追加两个功能,展示 spec-kit 如何适配已有代码库,而不要求项目一开始就有现成规范或 constitution。
| 代理 | 支持情况 | 说明 |
|---|---|---|
| Qoder CLI | ✅ | |
| Kiro CLI | ✅ | 使用 --ai kiro-cli,别名为 --ai kiro |
| Amp | ✅ | |
| Auggie CLI | ✅ | |
| Claude Code | ✅ | |
| CodeBuddy CLI | ✅ | |
| Codex CLI | ✅ | |
| Cursor | ✅ | |
| Gemini CLI | ✅ | |
| GitHub Copilot | ✅ | |
| IBM Bob | ✅ | 基于 IDE 的 agent,支持 slash commands |
| Kilo Code | ✅ |