📝 docs(templates): refine superpowers prompt boundaries

This commit is contained in:
csh
2026-05-25 15:02:16 +08:00
parent 25d895d8b3
commit 61afff9d48
18 changed files with 342 additions and 296 deletions
+12 -3
View File
@@ -41,9 +41,9 @@ Playbook:工程规范与代理规则合集,当前覆盖:
`templates/` 目录除了语言配置模板外,还包含 AI 代理工作环境的项目架构模板:
- `templates/memory-bank/`:项目上下文文档模板(project-brief、tech-context、system-patterns、active-context、progress、decisions
- `templates/prompts/`工作流入口模板(agent-behavior、clarify、verify-change、close-task、update-memory、code-review
- `templates/AGENTS.template.md`路由中心模板(项目主入口)
- `templates/AGENT_RULES.template.md`执行流程模板
- `templates/prompts/`任务入口模板(agent-behavior、clarify、verify-change、close-task、update-memory、code-review,不是流程权威
- `templates/AGENTS.template.md`入口导航模板(项目主入口)
- `templates/AGENT_RULES.template.md`superpowers-first 执行规则模板
### 快速部署
@@ -95,6 +95,14 @@ python <deploy_root>/scripts/playbook.py \
`memory-bank/progress.md`
真正执行 Plan 仍然走 `main_loop.py claim/finish`
完整主链只在 `templates/AGENT_RULES.template.md` 定义,这里不重复展开。
如果项目采用 `superpowers`
- 设计产物落到 `docs/superpowers/specs/`
- 计划产物落到 `docs/superpowers/plans/`
- 状态留痕通过 `playbook.py -record-spec/-record-plan`
`main_loop.py claim/finish` 维护
详见:`templates/README.md`
## rulesets/(规则集模板库 - 三层架构)
@@ -271,6 +279,7 @@ git commit -m ":package: deps(playbook): add tsl standards"
```
2. 在目标项目根创建 `playbook.toml`,并用 `deploy_root` 指定项目内的部署根。例如:
- `project_root` 写目标项目根目录。
- `deploy_root` 写目标项目内的相对路径。
- 不要把外部 clone 的路径(如 `/opt/playbook`)写进 `deploy_root`;那只是你执行脚本的位置。