Why: prompts lived inline in Go (profile const, subagent string, squad role one-liners, tool descriptions) - every copy change shipped code, and task guidance like meeting-minutes quality lived permanently in the base prompt whether or not the task was at hand. Evidence: new prompts package tests (library integrity, default assembly, skill triggering incl. attachment gate and command bypass, priority supersession, override chain drift, command match, frontmatter parse); composite make test green; runtime check on a live server (40 modules across 7 layers, override round-trip, /minutes starts a run instead of hitting the command bus). Impact: 40 builtin modules as embed data (5 base + 1 env + 12 task skills + 10 agent roles + 7 tool descriptions + 3 aux templates + 2 styles); migration v8 adds prompt_modules for user overrides with basedOnVersion drift markers; ctxasm assembles multi-segment system messages with per-module observability; subagent/squad/tool copy now resolve from the library with inline fallbacks; skill commands surface in the / menu and route to runs; default profile SystemPrompt empties onto the library base; pins deps/agent-system-core to the contract commit. Refs: feature/prompt-library task card; design guide in Documents.
1.1 KiB
1.1 KiB
id, layer, version, title, description, priority, requiresAttachments, outputContract, triggers
| id | layer | version | title | description | priority | requiresAttachments | outputContract | triggers | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| task.summarize | task | 1 | 文档总结 | 对上传文档生成分层结构总结(总览+分节要点+关键数据) | 60 | true | 1. 一段话总览(≤150字:文档是什么、核心结论) 2. 分节要点:按文档结构或主题归纳,每节 3-6 条 3. 关键数据与事实表(如有) 4. 适用范围与局限性说明 |
|
用户要求总结上传的文档。执行要求:
- 先通读全文,按文档自身的结构脉络归纳,不破坏原文逻辑。
- 分层输出(见契约):先总览后细节;要点用列表,数据用表格。
- 覆盖全部主要部分;默认输出完整版,除非用户明确要求"一句话/简短/100字以内"才压缩。
- 保留关键限定词与条件("在……前提下"、"部分"、"拟"),总结丢限定词等于改事实。
- 区分事实与观点:文档作者的判断标注为文档观点,不与客观事实混写。