Install
openclaw skills install skill-invocationChoose the best OpenClaw skill by matching trigger keywords to the TOOLS.md index, then applying strict judgment rules (most specific first; if in doubt, use it).
openclaw skills install skill-invocationThis is a framework-style skill for "skill selection and invocation flow". It does not implement a specific tool; instead, it provides stable decision rules for an agent to choose the best skill (or skill combination) for a user request.
TOOLS.md (skills index) to quickly narrow down candidate skills.SKILL.md to confirm fit and constraints.When a user request arrives, follow this order:
TOOLS.md index.SKILL.md."if in doubt, use it".TOOLS.mdTo make this skill reusable by anyone, your workspace needs a TOOLS.md (or an equivalent index) that maps "user intent / trigger keywords" to "candidate skill ids".
In TOOLS.md, skillId should follow one of these rules (pick one and keep it consistent):
~/.openclaw/workspace/skills/<skillId>/SKILL.md)As long as skillId matches the actual callable skill identifier, this framework can be reused by anyone.
Suggested TOOLS.md format (minimum viable):
# TOOLS.md
## Skills Index
| skillId | triggers | summary |
|---|---|---|
| weather | current weather, forecast | Get weather & forecast |
| summarize | summarize, tl;dr | Summarize URLs/files/PDFs |
| stock-info-explorer | stock, quote, ticker | Analyze stock price & basics |
Matching rules (agent-side):
triggers by commas / delimiters into multiple trigger phrases.current weather is more specific than weather)summary (closer wording) is more specificWhen the index matches but you are still uncertain:
SKILL.md.When to Use, Decision Rules, or "Notes/Constraints" to validate fit."if in doubt, use it".To make orchestration easier, when making a decision this skill should output (order does not matter):
SELECTED_SKILLS: the list of selected skillIds (one or many)REASON: a short explanation of which triggers matched and why the choice is most specificNEXT_ACTION: the recommended calling plan for the orchestrator (for example: call the first skill, then the second)If you want a single request to map to multiple steps, you can define an additional "combination" section in TOOLS.md (not required). When the agent detects that triggers hit multiple steps:
(The exact definition format is up to you; the key is that TOOLS.md explains why the combination is needed.)
If you cannot decide which skill to use, check in order:
"if in doubt, use it"If you maintain the TOOLS.md index, keep it accurate so selection logic stays reliable:
SKILL.md for "when to use / trigger suggestions / constraints" (if available).skillId + triggers + summary in TOOLS.md.