Localsetup localsetup-task-skill-matcher
Match user tasks to installed Localsetup skills, recommend top matches, and run single-task or batch skill-selection flow with minimal interruption. Includes top-3 complementary public-skill suggestions and public-index refresh handling.
install
source · Clone the upstream repo
git clone https://github.com/CruxExperts/localsetup
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/CruxExperts/localsetup "$T" && mkdir -p ~/.claude/skills && cp -r "$T/_localsetup/skills/localsetup-task-skill-matcher" ~/.claude/skills/cruxexperts-localsetup-localsetup-task-skill-matcher && rm -rf "$T"
manifest:
_localsetup/skills/localsetup-task-skill-matcher/SKILL.mdsource content
Task-to-skill matcher
Purpose: Provide one consistent flow for choosing the best installed skill for a user task. Use this when the user asks "what skill should I use?", asks to "pick the best", or when skill choice is unclear.
When to use this skill
- User asks for skill recommendation or best-skill selection.
- Task-to-skill match is uncertain.
- User asks to auto-pick skills for a multi-step or batch run.
Do not use this skill
- If user names a specific skill to run, load that skill directly and skip this matcher.
Sources and scope
- Read installed-skill candidates from the current platform's context loader/index (see
)._localsetup/docs/PLATFORM_REGISTRY.md - Cursor:
(or skills section of.cursor/rules/localsetup-context-index.md
)..cursor/rules/localsetup-context.mdc - Claude Code:
..claude/CLAUDE.md - Codex:
.AGENTS.md - Other platforms: workspace context per platform registry (see PLATFORM_REGISTRY.md).
- Use public-skill suggestions from
._localsetup/docs/PUBLIC_SKILL_INDEX.yaml
Mode detection
- Treat as batch when user request includes multiple distinct subtasks, or says "batch", "multiple steps", or "run the whole thing".
- Otherwise treat as single task.
Workflow
-
Collect intent
- Extract user intent and any task constraints.
- If user already named a skill, stop matching and load that skill.
-
Rank installed skills
- Compare intent against each installed skill's "when to use" text.
- Rank by relevance (keyword and description relevance).
- If uncertain, prepare top 3 candidates with one-line "why it fits".
-
Single-task flow
- If one clear installed match exists, ask once: "Use this skill?"
- Same turn: include up to 3 complementary public skills (one-line reason each).
- If public index is missing or stale, still show match and "Use this skill?" first, then ask: "Complementary suggestions need the public index. Want me to refresh it now so I can recommend installable skills?"
-
Batch / long-running flow
- Prompt once at start with options:
- Auto-pick best skill for the whole run.
- Parcel-by-parcel prompts.
- Parcel auto-pick.
- If auto-pick is chosen, show planned skill sequence first (best-effort), then proceed without repeated skill prompts.
- If user chooses parcels and phases are unclear, propose one parcel (whole task), then ask prompt-vs-auto-pick for that parcel.
- Prompt once at start with options:
-
No installed fit
- State that no installed skill is a good fit.
- Offer up to 3 complementary public skills to import.
- Optionally suggest creating a new skill with
.localsetup-skill-creator
Public index rules
- Stale definition:
missing, missing_localsetup/docs/PUBLIC_SKILL_INDEX.yaml
, orupdated
older than 7 days.updated - For complementary suggestions: return up to 3 public skills, each with one-line fit reason.
- To import suggestions, point user to
(or run it if user asks).localsetup-skill-importer
Output style
- Keep outputs short, actionable, and consistently structured.
- For uncertain match: show top 3 installed candidates, each with one-line reason, then ask user to choose or say "pick the best".
- For single clear match: ask once, then show complementary public options in the same response.
- For public complementary suggestions, use available enriched fields from
:_localsetup/docs/PUBLIC_SKILL_INDEX.yaml- Prefer
over raw description.summary_short - Include notable
orrequirements
in one short line.risk_flags
- Prefer
- Rendering fallback:
- Rich/basic markdown: numbered list with labeled fields.
- Plain text/ascii: numbered list with
,Skill:
,Why:
.Risks:
References
_localsetup/docs/TASK_SKILL_MATCHING.md_localsetup/docs/SKILLS_AND_RULES.md_localsetup/docs/PLATFORM_REGISTRY.md_localsetup/docs/PUBLIC_SKILL_INDEX.yamllocalsetup-skill-importerlocalsetup-skill-creator