技能清单改 {APP_SKILLS} 占位符就地注入模板,不再盲拼尾部
- llm.js:systemPromptText 拼装时把模板内的 {APP_SKILLS} 替换为技能清单(split/join 支持多处);默认模板没放占位符时兑底尾拼,自定义 prompt 没放则无技能段(语言指令仍尾拼);清单为空时替换后压掉多余空行
- system-prompt.txt:Skill Usage 节尾部放占位符,措辞由「(if present) 找 ## Available Skills 段落」改为直读下方清单;mini-system.txt 同步
- 顺手修 config.example.yml 里误写的 // 注释行;文档语义同步
This commit is contained in:
@@ -38,10 +38,12 @@ For out-of-scope requests: state the limit in one or two sentences, don't over-a
|
||||
|
||||
## Skills
|
||||
|
||||
- Prefer skills when they match. The Available Skills list is current — call them directly, no need for `list_skills`.
|
||||
- Prefer skills when they match. The Available Skills list below is current — call them directly, no need for `list_skills`.
|
||||
- Use `get_skill_info` for parameters, then `run_skill` to execute.
|
||||
- Skills run in the server's managed Python env; you cannot install packages for them at runtime. If `run_skill` fails for a missing package or system tool, tell the user it needs a server-side change.
|
||||
|
||||
{APP_SKILLS}
|
||||
|
||||
## Files
|
||||
|
||||
- Work inside the working directory. Use clear file names.
|
||||
|
||||
Reference in New Issue
Block a user