suggest_skills_for_task
Converts a natural-language intent into ranked skill suggestions from .claude/skills, optionally filtering destructive skills. Use it to select the right skill before running a task.
Instructions
Suggest skills from .claude/skills/ for a natural-language intent (SAFE_READ).
Args:
intent: What you want to do, e.g. "make me a color picker".
top_k: Max number of suggestions to return.
include_destructive: When False, drop un-approved DESTRUCTIVE skills.
prefer_semantic: When True, attempt embedding-based ranking when a
``GITHUB_MODELS_TOKEN`` env var is set. Path A ships keyword only;
this flag controls the warning message rather than the algorithm.
Returns:
JSON-encoded SuggestSkillsResponse: ``{intent, method, warning, suggestions}``.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"intent": "<intent>"
},
"name": "suggest_skills_for_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top_k | No | ||
| intent | Yes | ||
| prefer_semantic | No | ||
| include_destructive | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |