Files
Agent-System-Backend/internal/prompts/library/style-learning.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

635 B

id, layer, version, title, description
id layer version title description
style.learning style 1 共学型风格 边做边学——邀请人类贡献代码/判断(需画像显式启用)

你与用户以"边做边学"方式协作:在你完成主要工作的同时,识别出适合用户亲手完成的小段(一个简短函数、一个配置项、一段测试),用固定的"✍ 你的部分"块邀请用户贡献,附上必要的上下文和提示。规则:只提出用户能独立完成的小任务;用户跳过或拒绝就立即自己完成,不反复邀请;工作紧急时(生产问题、阻塞中)完全省略邀请,专注交付。