The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(skills): brace the documented tool placeholder in bundled SKILL.md docs
赵桂雄42d40a150344
diff --git a/optional-skills/creative/unreal-mcp/SKILL.md b/optional-skills/creative/unreal-mcp/SKILL.mdindex 2d1dad0015b..4b749219299 100644--- a/optional-skills/creative/unreal-mcp/SKILL.md+++ b/optional-skills/creative/unreal-mcp/SKILL.md@@ -112,7 +112,7 @@ Cache what you learn for the session; re-list only after the editor sidechanges (new plugin enabled, toolset authored, `RefreshTools` run).The alternative eager mode (`Enable Tool Search` off in Editor Preferences)-advertises every tool as its own `mcp_unreal_engine_<tool>` entry. Discovery+advertises every tool as its own `mcp_unreal_engine_{tool}` entry. Discoverythen happens at `hermes mcp install`/`configure` time instead. Tool-searchmode is the default and what this skill assumes; it also keeps schema tokensout of every API call, so prefer it.diff --git a/skills/autonomous-ai-agents/claude-code/SKILL.md b/skills/autonomous-ai-agents/claude-code/SKILL.mdindex 105f43fac94..ba06f2ac22e 100644--- a/skills/autonomous-ai-agents/claude-code/SKILL.md+++ b/skills/autonomous-ai-agents/claude-code/SKILL.md@@ -339,7 +339,7 @@ Bash(git commit *) # Only git commit commandsBash(npm run lint:*) # Pattern matching with wildcardsWebSearch # Web search capabilityWebFetch # Web page fetching-mcp__<server>__<tool> # Specific MCP tool+mcp__<server>__{tool} # Specific MCP tool```## Settings & Configurationdiff --git a/skills/software-development/hermes-agent-skill-authoring/SKILL.md b/skills/software-development/hermes-agent-skill-authoring/SKILL.mdindex 929b1dd05e2..1d39a900b37 100644--- a/skills/software-development/hermes-agent-skill-authoring/SKILL.md+++ b/skills/software-development/hermes-agent-skill-authoring/SKILL.md@@ -129,7 +129,7 @@ Not every section applies to every skill (a pure-procedure task skill may have n### Reference Hermes tools, not raw shell-When the skill needs a capability, name the proper Hermes tool in backticks: `terminal`, `read_file`, `write_file`, `patch`, `search_files`, `web_search`, `web_extract`, `browser_navigate`, `vision_analyze`, `delegate_task`, `cronjob`. Do NOT name shell utilities the agent already has wrapped (`grep` → `search_files`, `cat` → `read_file`, `sed`/`awk` → `patch`, `find`/`ls` → `search_files target='files'`). A CLI-wrapper skill should frame invocations as `terminal(command="<tool> ...", timeout=...)` — bare shell prose ("run `foo --version`") is a review-blocking non-conformance. If the skill depends on an MCP server, name it and document setup in Prerequisites.+When the skill needs a capability, name the proper Hermes tool in backticks: `terminal`, `read_file`, `write_file`, `patch`, `search_files`, `web_search`, `web_extract`, `browser_navigate`, `vision_analyze`, `delegate_task`, `cronjob`. Do NOT name shell utilities the agent already has wrapped (`grep` → `search_files`, `cat` → `read_file`, `sed`/`awk` → `patch`, `find`/`ls` → `search_files target='files'`). A CLI-wrapper skill should frame invocations as `terminal(command="{tool} ...", timeout=...)` — bare shell prose ("run `foo --version`") is a review-blocking non-conformance. If the skill depends on an MCP server, name it and document setup in Prerequisites.### Never use machine-local pathsdiff --git a/tests/tools/test_bundled_skill_doc_placeholders.py b/tests/tools/test_bundled_skill_doc_placeholders.pynew file mode 100644index 00000000000..4d4c04a5411--- /dev/null+++ b/tests/tools/test_bundled_skill_doc_placeholders.py@@ -0,0 +1,52 @@+"""Bundled skills must not carry angle-bracket tool placeholders.++skill_view returns a skill's full text, so any bundled SKILL.md containing+the literal placeholder token reported in #132504 (an angle-bracket tool+name, the exact shape provider gateways classify as role-tag injection)+makes every later request that carries that skill content unrecoverable on+affected providers. Documented placeholders use brace form instead,+matching the precedent in+skills/autonomous-ai-agents/hermes-agent/references/native-mcp.md.++The scanned token is assembled from fragments so this source file never+contains the literal itself.+"""++import re+from pathlib import Path++REPO_ROOT = Path(__file__).resolve().parents[2]++ROLE_TAG_PLACEHOLDER = re.compile("<" + "tool" + ">")+++def bundled_skill_files() -> list[Path]:+ paths = sorted(+ p+ for p in (REPO_ROOT / "skills").rglob("SKILL.md")+ if ".hub" not in p.parts+ )+ optional = REPO_ROOT / "optional-skills"+ if optional.is_dir():+ paths += sorted(+ p+ for p in optional.rglob("SKILL.md")+ if ".hub" not in p.parts+ )+ assert paths, "bundled skills tree not found under skills/ or optional-skills/"+ return paths+++def test_bundled_skills_have_no_role_tag_tool_placeholder():+ offenders = []+ for path in bundled_skill_files():+ for lineno, line in enumerate(+ path.read_text(encoding="utf-8").splitlines(), start=1+ ):+ if ROLE_TAG_PLACEHOLDER.search(line):+ offenders.append(f"{path.relative_to(REPO_ROOT)}:{lineno}")+ assert offenders == [], (+ "bundled SKILL.md files contain the angle-bracket tool placeholder"+ " reported in #132504; use the brace form ({tool}) instead:"+ f" {offenders}"+ )