init
This commit is contained in:
2
.cursor/commands/myspec.plan.md
Normal file
2
.cursor/commands/myspec.plan.md
Normal file
@@ -0,0 +1,2 @@
|
||||
你是spec kit专家
|
||||
根据对应的spec.md 生成plan.md
|
||||
4
.cursor/commands/myspec.spec.md
Normal file
4
.cursor/commands/myspec.spec.md
Normal file
@@ -0,0 +1,4 @@
|
||||
你是spec kit专家
|
||||
现在是高层规范spec阶段
|
||||
- spec_kit/下新建目录 生成需求名称 长度不超过四个单词
|
||||
生成spec.md
|
||||
14
.cursor/commands/myspec.split-spec.md
Normal file
14
.cursor/commands/myspec.split-spec.md
Normal file
@@ -0,0 +1,14 @@
|
||||
当前有一个很大的 spec.md(大需求规范),需要按业务逻辑拆分成多个子模块规范。
|
||||
|
||||
请按以下规则拆分:
|
||||
|
||||
1. 从大 spec 中提取可以独立成 **子模块规范** 的部分,每个子模块输出一个小 spec。
|
||||
2. 拆分后每个小 spec 需包含:
|
||||
- 子模块名称
|
||||
- 目标描述(本模块要解决什么)
|
||||
- 输入/输出定义
|
||||
- 验收标准(可验证)
|
||||
3. 拆分后输出一个 `modules/` 目录结构列表,并为每个模块生成对应 spec 内容。
|
||||
4. 保留大 spec.md 的高层背景/总览到 overview 部分。
|
||||
5. 子模块之间按逻辑关系关联。
|
||||
6. 不生成 plan.md 或 tasks.md,仅拆出子模块 spec。
|
||||
4
.cursor/commands/myspec.task.md
Normal file
4
.cursor/commands/myspec.task.md
Normal file
@@ -0,0 +1,4 @@
|
||||
你是spec kit专家
|
||||
根据对应的plan.md 生成task.md
|
||||
任务清单详细可执行
|
||||
执行完要标记
|
||||
30
.cursor/rules/rule.mdc
Normal file
30
.cursor/rules/rule.mdc
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
alwaysApply: true
|
||||
---
|
||||
你是一名 Spec Kit 系统专家。
|
||||
要求:
|
||||
1. 在生成 plan.md 或 tasks.md 之前,若有不确定的点,请先输出“待确认问题清单”,等待确认再继续,可反复追问。
|
||||
2. 所有文件使用 Markdown 格式,目录结构为:
|
||||
spec_kit/
|
||||
├ {需求名称}/
|
||||
│ ├ spec.md # 大需求高层规范
|
||||
│ ├ plan.md # 大需求技术计划
|
||||
│ ├ tasks.md # 大需求任务清单
|
||||
│ ├ overflow.md # 大需求补充说明
|
||||
│ └ modules/ # 子模块集合
|
||||
│ ├ submodule-A/
|
||||
│ │ ├ spec.md
|
||||
│ │ ├ plan.md
|
||||
│ │ ├ tasks.md
|
||||
│ │ ├ overflow.md # 针对子模块的overflow.md
|
||||
│ │ └ modules/ # 子模块内可再拆分
|
||||
│ │ ├ sub-A1/
|
||||
│ │ │ ├ spec.md
|
||||
│ │ │ ├ plan.md
|
||||
│ │ │ ├ overflow.md
|
||||
│ │ │ └ tasks.md
|
||||
│ │ └ …
|
||||
modules/ 可嵌套 modules/,每层都独立规范。
|
||||
输出时根据这个结构生成内容时,请保持文件职责清晰。
|
||||
简短记录项目的该层每个spec的内容 ,每次编码完成后更新overview.md
|
||||
可以通过nvm 切换node版本
|
||||
Reference in New Issue
Block a user