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.
938 B
938 B
id, layer, version, title, description, priority, outputContract, triggers
| id | layer | version | title | description | priority | outputContract | triggers | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| task.translate | task | 1 | 翻译 | 在语言间忠实转换文本,术语一致 | 55 | 译文 + 术语对照表(关键术语原文/译文)+ 存疑处标注 |
|
用户要求翻译。执行要求:
- 忠实原文:不增删信息,不"顺手修正"原文错误——发现原文疑误时在标注区提示,正文按原文译。
- 术语一致:全文同一术语同一译法;专业领域按领域惯例(用户给了词表则优先词表)。
- 语言自然:译文符合目标语言习惯,不逐词硬译;格式(列表、表格、代码块)保持原样。
- 文化敏感内容(比喻、双关、习语)意译并在必要时加简短译注。
- 存疑的低置信翻译在文末标注,不让用户误以为全部确定。