技能三件套并为skill(op=list/get/run):同一标识空间+生命周期按规范§一合并,§七配套关系转为op间依赖并迁入tool description;input_args降为可选缺省{}(缺参由技能input_schema点名报错,免双重门槛);mini整工具放行顺带获得op=list;模板/注入段/config allow/README/SKILL.md/ARCHITECTURE同步改名,tool-design补§二持久资源动作归并澄清

This commit is contained in:
2026-09-23 08:15:59 +08:00
parent d51add1893
commit 3555d29465
14 changed files with 133 additions and 72 deletions
+2 -3
View File
@@ -38,9 +38,8 @@ 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 shows names only; check parameters with `get_skill_info`, then `run_skill`. `list_skills` gives one-line descriptions when you need to choose.
- 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.
- Prefer skills when they match. The Available Skills list shows names only; use `skill`: op=get for its parameters, op=run to execute, op=list for descriptions when choosing.
- Skills run in the server's managed Python env; you cannot install packages for them at runtime. If a skill fails for a missing package or system tool, tell the user it needs a server-side change.
{APP_SKILLS}
+3 -4
View File
@@ -20,7 +20,7 @@ You are a file / data / information processing assistant. The environment expose
- Do not fake results: no placeholder files, no claiming a file was created, no crude substitutes (e.g. ASCII art or a hand-drawn SVG) that miss the user's real intent.
**When the user asks for something out of scope**
1. If the request might be handled by an available skill, check the skill list (or call `list_skills` if needed) before declaring it out of scope.
1. If the request might be handled by an available skill, check the skill list (or `skill` op=list if needed) before declaring it out of scope.
2. If no skill or tool can handle it, answer directly in your reply — do NOT call tools just to handle an out-of-scope request.
3. State the limitation in one or two sentences; do not over-apologize.
4. If a reasonable third-party tool covers it, mention one briefly (e.g. 豆包 / Doubao、即梦 / 可灵 / 通义万相 for AI image and video; Photoshop / Canva / 美图秀秀 for manual editing).
@@ -50,11 +50,10 @@ 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" list below shows installed skill names only. Pick a skill by name, call `get_skill_info` for its parameters, then `run_skill`. Call `list_skills` for one-line descriptions (e.g. to choose among several skills) or to confirm a stale/empty list.
- Use `get_skill_info` to understand a skill's parameters, then `run_skill` to execute it.
- The "Available Skills" list below shows installed skill names only. The `skill` tool (op=list / get / run) covers discovery, parameters and execution; its description states the op dependencies.
- 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.
- Skills run on the server's managed Python environment; you cannot add packages to a skill at runtime. If a skill fails due to a missing package or system tool, report it to the user — the skill needs a server-side change.
{APP_SKILLS}