playbook/templates/prompts
csh 8b93311cae 📝 docs(tsl): clarify syntax constraints and enhance test infrastructure
- Add TSF file naming constraint to syntax/02_core_model.md
- Clarify semicolon rules: syntax facts vs style preferences
- Separate control flow end semicolon rules (syntax allows both)
- Add function body semicolon requirements to syntax/05_functions_and_calls.md
- Move style preferences to code_style.md (control flow end semicolons)
- Remove cross-references from syntax docs to maintain independence
- Enhance Gitea workflow emoji for better CI output readability
- Fix CI test path from tests/ to test/
- Organize agent test results under test/agent/result/ directory
- Add complete Chinese translation of test cases (test_cases_zh.md)
- Clean up .gitignore to use unified test/agent/result/ directory
- Remove obsolete agent test artifacts (REPORTS_LOCATION.md, old results)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-06-21 17:04:50 +08:00
..
coding 📝 docs(main_loop): enforce plan archive completion gate 2026-05-28 08:57:01 +08:00
system 📝 docs(tsl): clarify syntax constraints and enhance test infrastructure 2026-06-21 17:04:50 +08:00
README.md 📝 docs(templates): refine superpowers prompt boundaries 2026-05-25 15:02:16 +08:00

README.md

提示词入口

本目录包含 AI 代理的任务入口模板,用于把任务路由到合适的执行路径。 它是薄入口层,不是流程权威;完整流程与执行约束只在 AGENT_RULES.md 定义。

目录结构

prompts/
├── README.md              # 本文件
├── system/
│   └── agent-behavior.md  # 入口路由
├── coding/
│   ├── clarify.md         # 需求澄清模板
│   ├── verify-change.md   # 变更验证模板
│   ├── close-task.md      # 本轮收尾模板
│   ├── update-memory.md   # 回写记忆模板
│   └── code-review.md     # MR/PR 代码评审入口
└── custom/                # 可选:项目私有提示词

使用方式

模板 触发场景
agent-behavior.md 选择任务入口
clarify.md 需求不明确时澄清
verify-change.md 声称完成前做验证
close-task.md 本轮工作收尾
update-memory.md 上下文变化后回写记忆
code-review.md 执行 MR/PR 代码评审
custom/*.md 项目私有补充入口

入口边界

  • 需求不明确:看 clarify.md
  • 需要判断设计、计划或执行路径:先回到 AGENT_RULES.md
  • 需要验证交付结果:看 verify-change.md
  • 需要结束本轮并整理交付摘要:看 close-task.md
  • 需要回写上下文:看 update-memory.md
  • 需要评审 MR/PRcode-review.md
  • 需要保留设计与计划产物:只写入 docs/superpowers/

coding/ 下是可被框架覆盖更新的标准入口模板; 项目私有补充入口应沉淀到 custom/

prompts/ 只负责把代理导向正确入口;AGENT_RULES.md 是唯一流程权威;AGENT_RULES.local.md 保存项目私有规则; memory-bank/ 保存项目上下文与状态;docs/superpowers/ 保存设计与计划产物。


最后更新{{DATE}}