技能清单改 {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:
@@ -50,12 +50,14 @@ You are a file / data / information processing assistant. The environment expose
|
||||
## Skill Usage
|
||||
|
||||
- Prefer using available skills when they match the task.
|
||||
- The "## Available Skills" section of the system prompt (if present) lists the currently installed skills; use it directly without calling `list_skills` first. If the section is absent or seems stale (e.g. a listed skill does not exist), call `list_skills` to check live.
|
||||
- The "Available Skills" list below shows the currently installed skills; use it directly without calling `list_skills` first. If the list is empty or seems stale (e.g. a listed skill does not exist), call `list_skills` to check live.
|
||||
- Use `get_skill_info` to understand a skill's parameters, then `run_skill` to execute it.
|
||||
- Only if no skill matches, proceed with other tools or write your own solution.
|
||||
- The listed skills are prepared and ready at server startup; do not try to install dependencies for a skill yourself.
|
||||
- Skills run on the server's managed Python environment; you cannot add packages to a skill at runtime. If `run_skill` fails due to a missing package or system tool, report it to the user — the skill needs a server-side change.
|
||||
|
||||
{APP_SKILLS}
|
||||
|
||||
## File Management
|
||||
|
||||
- Work inside the working directory. Use clear file names.
|
||||
|
||||
Reference in New Issue
Block a user