AI
AI Prompt Templates
Copy-paste templates for maintainers. All assume AGENTS.md and [ai-execution-protocol.md](./ai-execution-protocol.md) apply.
Copy-paste templates for maintainers. All assume AGENTS.md and ai-execution-protocol.md apply.
Triage
Please follow AGENTS.md and enter Triage Mode first.
Do not modify files yet.
Classify this task as S/M/L/XL, estimate scope and risk, and recommend whether it needs RFC, task splitting, or direct patch.
Task:
{describe task}RFC only
Please follow AGENTS.md and write an RFC only.
Do not implement code.
Create docs/rfcs/NNNN-short-topic.md from docs/rfcs/0000-template.md.
Include goals, non-goals, current architecture, proposal, alternatives, risks, task breakdown, and acceptance criteria.
Topic:
{describe topic}Plan only
Please follow AGENTS.md and enter Plan Mode.
Do not modify code.
Based on the accepted RFC or task below, split the work into small PR-sized slices.
Each slice must include goal, allowed files, forbidden changes, validation command, rollback plan, and next slice.
Task/RFC:
{describe or link to docs/rfcs/NNNN-....md}Patch (single slice)
Please follow AGENTS.md and enter Patch Mode.
Only implement Slice {N}.
Do not expand scope.
Max changed files: 8. Max packages: 2.
If more files are required, stop and report scope expansion.
Slice:
{paste slice definition}Verify
Please follow AGENTS.md and enter Verify Mode.
Do not add new features.
Run relevant checks (pnpm typecheck, pnpm lint, pnpm arch:check, pnpm check:cjk as applicable).
Fix blocking errors only. Report acceptance criteria status.
Feature/Slice:
{describe}Docs sync
Please follow AGENTS.md and enter Docs Sync Mode.
Only update documentation directly related to the implemented change.
Do not rewrite unrelated docs.
If an RFC exists, add Implementation Notes.
Run pnpm docs:sync when the docs site should update.
Implemented change:
{describe}Emergency cost brake
Stop current expansion.
Do not modify more files.
Summarize what has been changed, what remains, why the scope expanded, and propose the smallest safe next step.