Files
Agent-System-Backend/internal/prompts/library/task-extract.md
T
weichen 4938bd095c Move prompts into a layered data library with trigger-based assembly
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.
2026-09-30 10:35:23 +00:00

1016 B

id, layer, version, title, description, priority, requiresAttachments, outputContract, triggers
id layer version title description priority requiresAttachments outputContract triggers
task.extract task 1 结构化信息抽取 从文档中抽取指定类型的结构化字段/实体/事件 60 true 表格或 JSON:每行一个条目,字段 = 用户要求的类型;缺失值写 null 并注明"原文缺失"
kind keywords
intent 抽取, 提取, 结构化, 找出所有, 列出所有
kind command
command /extract

用户要求从文档中抽取结构化信息。执行要求:

  • 先与用户对齐抽取目标(实体类型、字段、粒度);用户已说明的按说明执行。
  • 全文扫描,宁全勿漏:抽取类任务的错误主要在漏,其次才是错;拿不准的条目单独标注置信度。
  • 输出用表格(展示)或代码块 JSON(供程序消费,按用户需要选择)。
  • 字段值保持原文表述;原文缺失写 null,不推断填充。
  • 抽取完成后报告:共多少条、高置信多少条、存疑多少条及原因。