npx skills add https://github.com/4444j99/a-i--skills --skill speckitSpec Kit 实现了规范驱动开发(SDD)——一种规范驱动代码而非相反的方法论。代码成为规范的具体表达,而非规范仅为代码的文档。
传统开发:代码是真理,规范是脚手架 SDD:规范是真理,代码是生成的输出
通过使规范通过 AI 可执行,这消除了意图与实现之间的差距。
/speckit.specify <功能描述>根据自然语言描述创建全面的功能规范。
用法:/speckit.specify 具有消息历史和在线状态功能的实时聊天
输出:
specs/{功能名称}/spec.md - 完整的功能规范specs/{功能名称}/checklists/requirements.md - 质量验证清单流程:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
指导原则:
[需要澄清] 标记限制在最多 3 个详细模板请阅读:assets/templates/spec-template.md
命令详情请阅读:references/commands/specify.md
/speckit.plan [技术上下文]根据现有规范创建实施计划。
用法:/speckit.plan WebSocket, PostgreSQL, Redis 或 /speckit.plan(将从上下文中确定技术)
前提条件:功能目录中必须存在 spec.md
输出:
specs/{功能}/plan.md - 包含技术决策的实施计划specs/{功能}/research.md - 技术研究和决策specs/{功能}/data-model.md - 实体定义specs/{功能}/contracts/ - API 规范(OpenAPI/GraphQL)specs/{功能}/quickstart.md - 验证场景流程:
research.md章程门控(如果使用章程):
详细模板请阅读:assets/templates/plan-template.md
命令详情请阅读:references/commands/plan.md
/speckit.tasks根据实施计划生成可执行的任务列表。
用法:/speckit.tasks
前提条件:plan.md 和 spec.md 必须存在
输出:
specs/{功能}/tasks.md - 依赖关系排序的任务列表流程:
[P] 标记可并行执行的任务任务格式:[ID] [P?] [Story] 描述
[P] = 可并行运行(不同文件,无依赖关系)[Story] = 所属用户故事(US1, US2, US3)详细模板请阅读:assets/templates/tasks-template.md
命令详情请阅读:references/commands/tasks.md
# 1. 创建规范(5 分钟)
/speckit.specify 具有消息历史和用户在线状态功能的实时聊天
# 2. 生成实施计划(5 分钟)
/speckit.plan 使用 WebSocket 进行消息传递,PostgreSQL 存储历史,Redis 管理在线状态
# 3. 创建任务列表(5 分钟)
/speckit.tasks
结果(15 分钟内):
章程定义了项目的不可变架构原则。当 memory/constitution.md 存在时,/speckit.plan 命令将:
示例原则:
章程模板请阅读:assets/templates/constitution-template.md
任务按用户故事分组,以实现:
模板约束 AI 行为以获得更好的结果:
在项目中工作时:
specs/{功能名称}/memory/constitution.mdassets/templates/spec-template.md - 功能规范模板assets/templates/plan-template.md - 实施计划模板assets/templates/tasks-template.md - 任务列表模板assets/templates/constitution-template.md - 项目章程模板references/methodology.md - 完整的 SDD 理念文档references/commands/specify.md - /speckit.specify 命令定义references/commands/plan.md - /speckit.plan 命令定义references/commands/tasks.md - /speckit.tasks 命令定义每周安装数
1
代码仓库
GitHub 星标数
2
首次出现
1 天前
安全审计
安装于
zencoder1
amp1
cline1
openclaw1
opencode1
cursor1
Spec Kit implements Specification-Driven Development (SDD) - a methodology where specifications drive code, not vice versa. Instead of specs serving as documentation for code, code becomes the expression of specifications.
Traditional development: Code is truth, specs are scaffolding SDD : Specifications are truth, code is generated output
This eliminates the gap between intent and implementation by making specifications executable through AI.
/speckit.specify <feature-description>Creates a comprehensive feature specification from a natural language description.
Usage : /speckit.specify Real-time chat with message history and presence
Output :
specs/{feature-name}/spec.md - Complete feature specificationspecs/{feature-name}/checklists/requirements.md - Quality validation checklistProcess :
Guidelines :
[NEEDS CLARIFICATION] markers to 3 maximumFor detailed template: read assets/templates/spec-template.md For command details: read references/commands/specify.md
/speckit.plan [tech-context]Creates an implementation plan from an existing specification.
Usage : /speckit.plan WebSocket, PostgreSQL, Redis or /speckit.plan (will determine tech from context)
Prerequisites : spec.md must exist in the feature directory
Output :
specs/{feature}/plan.md - Implementation plan with tech decisionsspecs/{feature}/research.md - Technology research and decisionsspecs/{feature}/data-model.md - Entity definitionsspecs/{feature}/contracts/ - API specifications (OpenAPI/GraphQL)specs/{feature}/quickstart.md - Validation scenariosProcess :
research.mdConstitution Gates (if using constitution):
For detailed template: read assets/templates/plan-template.md For command details: read references/commands/plan.md
/speckit.tasksGenerates an executable task list from the implementation plan.
Usage : /speckit.tasks
Prerequisites : plan.md and spec.md must exist
Output :
specs/{feature}/tasks.md - Dependency-ordered task listProcess :
[P]Task Format : [ID] [P?] [Story] Description
[P] = Can run in parallel (different files, no dependencies)[Story] = Which user story (US1, US2, US3)For detailed template: read assets/templates/tasks-template.md For command details: read references/commands/tasks.md
# 1. Create specification (5 min)
/speckit.specify Real-time chat with message history and user presence
# 2. Generate implementation plan (5 min)
/speckit.plan WebSocket for messaging, PostgreSQL for history, Redis for presence
# 3. Create task list (5 min)
/speckit.tasks
Result (in 15 minutes):
A constitution defines immutable architectural principles for a project. When present at memory/constitution.md, the /speckit.plan command will:
Sample principles :
For constitution template: read assets/templates/constitution-template.md
Tasks are grouped by user story to enable:
Templates constrain AI behavior for better outcomes:
When working in a project:
specs/{feature-name}/memory/constitution.mdassets/templates/spec-template.md - Feature specification templateassets/templates/plan-template.md - Implementation plan templateassets/templates/tasks-template.md - Task list templateassets/templates/constitution-template.md - Project constitution templatereferences/methodology.md - Full SDD philosophy documentreferences/commands/specify.md - /speckit.specify command definitionreferences/commands/plan.md - /speckit.plan command definitionreferences/commands/tasks.md - /speckit.tasks command definitionWeekly Installs
1
Repository
GitHub Stars
2
First Seen
1 day ago
Security Audits
Gen Agent Trust HubPassSocketFailSnykPass
Installed on
zencoder1
amp1
cline1
openclaw1
opencode1
cursor1
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
109,600 周安装