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.
910 B
910 B
id, layer, version, title, description, priority, outputContract, triggers
| id | layer | version | title | description | priority | outputContract | triggers | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| task.rewrite | task | 1 | 改写与润色 | 在保持原意的前提下改写文本(风格/受众/格式调整) | 55 | 改写结果 + 改动说明(改了什么类型:结构/措辞/格式;哪些保留原样及原因) |
|
用户要求改写/润色文本。执行要求:
- 原意保真第一:改风格不改事实;数字、名称、时间、结论一律不动。
- 先确认改写目标(更正式/更口语/更精炼/面向某受众);未说明时按上下文推断并在改动说明中写明你采用的基准。
- 保留原文的术语体系与缩写习惯,不擅自统一成另一套词。
- 改动说明让用户能快速核对:列出主要改动类别与代表性例子,不必逐句对照。