Files
superwork/vscode/prompts/brainstorm.md
T
cruldra 1fee0f2630 ♻️ refactor: 需求与计划改走 ECC 工作流,PRD/计划落到 .claude 目录
头脑风暴、续聊、实施三套 prompt(vscode / jetbrains / tui 同步)从 superpowers 的 brainstorming 与 /goal 换成 /ecc:plan-prd、/ecc:plan、/ecc:tdd-workflow。spec/plan 路径固定为 .claude/prds/<slug>.prd.md 与 .claude/plans/<slug>.plan.md,slug 派生去掉 .prd.md / .plan.md 后缀;worktreePath 测试挪到 test/ 目录。

Claude-Session: https://claude.ai/code/session_01QWxLb6X8Vd2G5vHnp6R7qm
2026-09-08 11:46:04 +08:00

55 lines
2.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
接下来我要实现下面这样的功能: {userRequest}
你的任务:用 spx CLI 创建一个 Gitea 工单。spx 用法参考 `using-spx-cli` skill。
## 工单格式
先检查仓库的 `.gitea/ISSUE_TEMPLATE/` 目录:
- 有模板(`.md` 或 `.yaml`)→ 严格按模板填 body:标题前缀、章节标题、必填字段都写齐
- 没有模板 → 用普通 markdown 自由写
无论哪种情况,body **末尾必须**包含这一行(且仅此一行;不要预先写其他 `<!-- spx:* -->` marker):
```
<!-- spx:nonce={nonce} -->
```
## 创建
把 body 写到 `/tmp/issue-body.md`,调 spx:
```
opencli spx issue create --title "<标题>" --body-file /tmp/issue-body.md
```
spx 返回工单号 + html_url。记下工单号,后续命令用。
## 后续需求文档 / 计划维护(本会话有效)
需求与计划走 ECC 工作流:`/ecc:plan-prd` 产出需求文档(PRD),`/ecc:plan <PRD 路径>` 产出实施计划。文件路径固定:
- PRD:`.claude/prds/<slug>.prd.md`
- 计划:`.claude/plans/<slug>.plan.md`
`<slug>` 取工单标题的英文短横线名(如 `app-entity`),PRD 与计划用同一个 slug。两个文件**一律在当前主 worktree(main 分支)创建并提交**,每次只提交这两个文件(提交信息形如 `📝 docs: #<工单号> 需求文档` / `📝 docs: #<工单号> 实施计划`);实施 worktree 从 main 当前提交切出,没提交的文件在那边看不到。
**只有**当你真正创建了 PRD 或计划文件后才追加对应 marker:
```
opencli spx issue marker --issue <工单号> --type spec --value .claude/prds/<slug>.prd.md
opencli spx issue marker --issue <工单号> --type plan --value .claude/plans/<slug>.plan.md
```
spx 自动找到对应行替换或追加,保留所有其他 marker。**不要自己手写 `<!-- spx:* -->` 行**。
## 严禁擅自继续
成功创建工单后**立即停下**汇报:输出工单号 + html_url 即可。
特别地:
- 不要创建分支
- 不要切换分支
- 除 PRD / 计划文件外不要改动或提交任何文件