Spec Kit (Specify)
$ specify 官方出品 低风险GitHub Spec Kit(github/spec-kit)提供 specify CLI,用于在仓库中初始化规范驱动开发模板、项目宪章与各 AI 编码助手的斜杠命令。支持 specify init <dir> --ai <agent> --script (sh|ps|py) --here --ignore-agent-tools 以及 specify check。
brew install specify specify 是负责仓库模板脚手架与环境检查的 CLI 工具,直接在本地生成 .specify/ 模板与斜杠命令,无需 MCP 服务。
Agent 友好度体检单
当前为静态评估(本机尚未安装或尚未运行探针)。可在本地运行 npm run data:probe 并提交 data/probes/ 升级为实测证据。
FCRS-1.0 六维评分拆解
支持通过 --ai、--script、--here、--force 与 --ignore-agent-tools 无交互执行 specify init,但缺少 --json 输出。
specify init --ai <agent> --script sh --here --ignore-agent-toolsandspecify check
specify check 完全只读,specify init 仅从 github/spec-kit 下载模板压缩包并写入目标目录,覆盖时需 --force。
- Local repo template scaffolding with
--forcegate for existing files
可通过 uv tool install specify-cli、pip install specify-cli、uvx 或 brew install specify 在 macOS、Linux 与 Windows 安装。
- Available via
uv, PyPI (specify-cli), and Homebrew
为 Claude Code、Copilot、Gemini CLI、Codex 与 Cursor 统一提供 spec → plan → tasks → implement 工作流。
- Multi-agent
.specify/templates and slash-command workflows
GitHub 官方仓库(github/spec-kit),采用 MIT 协议开源。
- Official
github/spec-kitrepository under MIT
speckit.org 与 GitHub README 清晰记录了 CLI 参数与工作流阶段。
- Official docs at
speckit.organd GitHub README
安全边界、鉴权与放权指南
可选通过 GH_TOKEN / GITHUB_TOKEN 环境变量(或 --github-token)提升拉取 GitHub 模板发布包时的 API 速率限制。
100% 免费且基于 MIT 协议开源。
# Spec Kit (specify) Agent Rules - Always pass `--ai <agent> --script sh --ignore-agent-tools` (plus `--force` when updating `.`) so `specify init` never blocks on interactive menus. - Run `specify check` first to confirm Git and CLI prerequisites.
Agent 高频安全命令配方
只读查询(安全推荐)
specify check
检查 PATH 中的 Git 与受支持的 AI 编码工具,不修改任何项目文件。
受控写入与预演
specify init . --here --ai claude --script sh --ignore-agent-tools --force
在当前目录生成 .specify/ 模板与 Claude Code 斜杠命令,全程跳过交互式选单。
核心优势
- + GitHub 官方推出的 SDD 工具套件,支持 15+ 种 AI 编码工具。
- + 提供完整的无交互参数组合(
--ai、--script、--here、--ignore-agent-tools、--force)。 - + 将环境检查
specify check与仓库写入脚手架清晰分离。
注意事项与踩坑点
- !
specify check与specify init暂不支持--json输出。 - ! 省略
--ai或--script会触发 Rich 交互式提示,且init需联网拉取 GitHub 模板包。