/looplia:skill-capability-matcherfrom looplia
Matches user requirements to available skills from a registry by scoring capability alignment, then designs an optimal workflow step sequence with missions and data flow.
Ships in looplia. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Match natural language requirements to available skills, designing an optimal workflow step sequence.
Parse user's workflow description, understand their intent, and recommend which skills should handle each part of the workflow. Output includes step IDs, skill names, missions, and data flow.
Extract from the user's description:
Input Types:
Processing Goals:
Output Format:
Read the plugin registry from registry-loader output (v0.7.0):
{
"plugins": [...],
"summary": { "totalSkills": N, "installedSkills": N, "availableSkills": N }
}
Build a capability index from skill descriptions and inferred capabilities.
Include installed status when scoring - prefer installed skills for immediate execution.
Score each skill by:
For each matched skill:
needs:)Order skills logically:
Ensure proper data dependencies.
If requirements can't be fully satisfied:
Provide:
{
"requirements": {
"inputType": "video transcript",
"goals": ["extract key points", "generate outline"],
"outputFormat": "structured JSON"
},
"recommendations": [
{
"skill": "media-reviewer",
"suggestedStepId": "analyze-content",
"goalId": "analyze",
"matchScore": 0.92,
"capabilities": ["content analysis", "theme extraction"],
"mission": "Deep analysis of video transcript. Extract key themes, quotes, and narrative structure.",
"rationale": "Primary skill for content understanding"
},
{
"skill": "idea-synthesis",
"suggestedStepId": "generate-ideas",
"goalId": "generate",
"matchScore": 0.85,
"capabilities": ["idea generation", "hooks and angles"],
"mission": "Generate hooks, angles, and questions from the analysis. Read user profile for personalization.",
"rationale": "Creates engaging content ideas from analysis"
}
],
"suggestedSequence": ["analyze-content", "generate-ideas", "build-output"],
"dataFlow": {
"analyze-content": {
"needs": [],
"provides": "analysis.json"
},
"generate-ideas": {
"needs": ["analyze-content"],
"provides": "ideas.json"
},
"build-output": {
"needs": ["analyze-content", "generate-ideas"],
"provides": "output.json"
}
},
"gaps": [],
"customSkillNeeded": false,
"clarificationNeeded": true,
"clarifications": {
"sections": [
{
"id": "input",
"title": "Input",
"completed": false,
"questions": [
{
"id": "content-type",
"text": "What type of content will this workflow process?",
"type": "single-select",
"options": [
{ "id": "video", "label": "Video transcripts", "inferred": true },
{ "id": "audio", "label": "Audio transcripts" },
{ "id": "text", "label": "Text articles" },
{ "id": "web", "label": "Web pages (fetched via search)" }
],
"reason": "Inferred 'video' from description, confirm or change"
}
]
},
{
"id": "goals",
"title": "Goals",
"completed": false,
"questions": [
{
"id": "primary-goal",
"text": "What are the primary goals for this workflow?",
"type": "multi-select",
"options": [
{ "id": "analyze", "label": "Analyze and extract key insights" },
{ "id": "summarize", "label": "Create structured summaries" },
{ "id": "generate", "label": "Generate creative content ideas" },
{ "id": "document", "label": "Build comprehensive reports" }
]
},
{
"id": "depth",
"text": "How deep should the analysis be?",
"type": "single-select",
"options": [
{ "id": "quick", "label": "Quick overview (1-2 key points)" },
{ "id": "standard", "label": "Standard analysis (5-7 key points)" },
{ "id": "deep", "label": "Deep analysis (comprehensive)" }
]
}
]
},
{
"id": "output",
"title": "Output",
"completed": false,
"questions": [
{
"id": "format",
"text": "What output format do you need?",
"type": "single-select",
"options": [
{ "id": "json", "label": "Structured JSON" },
{ "id": "markdown", "label": "Markdown document" },
{ "id": "both", "label": "Both JSON and Markdown" }
]
}
]
},
{
"id": "review",
"title": "Review",
"completed": false,
"questions": []
}
]
}
}
| Match Type | Score |
|---|---|
| Exact capability match | 0.9-1.0 |
| Strong description overlap | 0.7-0.9 |
| Partial capability match | 0.5-0.7 |
| Weak/inferred match | 0.3-0.5 |
| No clear match | < 0.3 |
Use these concrete criteria when assigning scores:
confidence = (relevance * 0.5) + (completeness * 0.3) + (specificity * 0.2)
Minimum threshold: 60% - Skills below this should not be recommended.
Match requirements to skills beyond simple keyword matching:
Match conceptually equivalent terms:
Understand skill scope and specificity:
Focus on what user wants to accomplish, not just keywords:
| Scenario | Handling |
|---|---|
| No matches above 60% threshold | Return empty recommendations[] with gaps listing unmet needs |
| Multiple skills with identical scores | Prefer more specific skill (higher specificity score) |
| Ambiguous user requirements | Set clarificationNeeded: true with targeted questions |
| Skill matches multiple requirements | Include once with highest-scoring requirement as primary |
| Installed vs available skills | Prefer installed skills when scores are within 10% |
Each mission should:
Good mission example:
Deep analysis of video transcript. Extract key themes, important quotes with timestamps, and narrative structure. Focus on insights that would interest the user based on their profile.
Bad mission example:
Analyze the content.
goalId linking it to a clarification goalWhen user requirements are ambiguous, include clarifying questions in the response. The wizard UI uses these to gather additional context before generating the final workflow.
| Field | Type | Description |
|---|---|---|
clarificationNeeded | boolean | Whether clarifying questions should be shown |
clarifications.sections | Section[] | Tab-based sections for wizard navigation |
{
"id": "goals",
"title": "Goals",
"completed": false,
"questions": [...]
}
{
"id": "primary-goal",
"text": "What are the primary goals for this workflow?",
"type": "single-select | multi-select | text",
"options": [
{ "id": "analyze", "label": "Analyze and extract key insights", "inferred": true }
],
"reason": "Optional explanation for why this was inferred"
}
| Type | Description | Use Case |
|---|---|---|
single-select | One option only (●/○) | Content type, depth level |
multi-select | Multiple options (✓/☐) | Goals, features to include |
text | Free-form input | Custom names, descriptions |
Set inferred: true on options that match keywords in the user's description:
Each recommendation must include a goalId that links to a goal option:
{
"skill": "media-reviewer",
"suggestedStepId": "analyze-content",
"goalId": "analyze",
"matchScore": 0.92
}
This allows the wizard to filter recommendations based on selected goals in real-time.
When wizard answers are included in the enriched prompt (via "User clarifications: Q: ... A: ..."), these become structured preferences that MUST be incorporated into the workflow.
| Preference Category | Example Questions | How to Use |
|---|---|---|
| PLATFORMS | "Which social media platforms?" | Inject into social/output step missions |
| ARTICLE_COUNT | "How many articles/items?" | Inject into search/filter step missions |
| FOCUS_AREAS | "Which topics/areas to focus on?" | Inject into search and analysis missions |
| OUTPUT_FORMAT | "What format should output be?" | Inject into final output step mission |
| DEPTH | "How deep should analysis be?" | Adjust analysis step detail level |
When receiving an enriched prompt like:
User clarifications: Q: Which platforms? A: twitter, linkedin. Q: How many articles? A: top5. Q: Focus areas? A: llm, adoption.
Extract as structured data:
PLATFORMS: twitter, linkedin
ARTICLE_COUNT: 5
FOCUS_AREAS: llm, adoption
WITHOUT preferences (BAD):
Search for AI news articles.
WITH preferences (GOOD):
Search for top 5 AI news articles focusing on LLM developments and adoption trends.
WITHOUT preferences (BAD):
Compile findings into a report.
WITH preferences (GOOD):
Create engaging social media posts optimized for twitter and linkedin, focusing on LLM and adoption angles.
What SKILL.md sets; muted values are Claude Code's defaults
haiku5 skills in this plugin
/registry-loaderLoad the skill catalog for workflow building. This skill should be used when
discovering available looplia skills or listing what capabilities are available. Use when
someone says "what looplia skills are installed", "list available skills", "/build",
"what can looplia do", or "show me all looplia capabilities".
v0.7.0: Replaces plugin-registry-scanner with skill catalog for faster access.
Auto-syncs from all sources on every build to ensure freshest skill catalog.
/workflow-executorThis skill should be used when the user wants to execute a looplia workflow, run workflow
steps, or process a workflow.md file. Use when someone says "run the looplia workflow",
"execute this looplia pipeline", "/run writing-kit", "start the looplia automation", or
"process these workflow steps".
Architecture: One workflow step triggers one general-purpose subagent call, which then
invokes skills to accomplish the step's mission. Each step = separate context window.
Handles sandbox management, per-step orchestration, and validation state tracking.
v0.6.9: Unified general-purpose subagent strategy for all providers (context offload).
/workflow-schema-composerThis skill should be used when the user wants to create a new looplia workflow, generate
a workflow definition file, or compose workflow steps from skill recommendations. Use when
someone says "create a looplia workflow", "generate workflow.md", "compose workflow steps",
"build me an automation pipeline", or "/build" (final step).
Final step in looplia workflow building: transforms skill recommendations into valid v0.7.0
workflow YAML/Markdown files. Each step uses skill: + mission: syntax, following the one
workflow step → one skill-executor → multiple skills architecture.
v0.7.0: Generates explicit `skills:` declaration for selective plugin loading.
v0.6.3: Supports input-less workflows using input-less capable skills (e.g., search).
/workflow-validatorThis skill should be used when the user wants to validate a looplia workflow output,
check if an artifact meets validation criteria, or debug validation failures. Use when
someone says "validate this looplia output", "check if the workflow output is valid",
"verify the artifact JSON", or "debug why validation failed".
Runs deterministic validation scripts against JSON artifacts. Primarily used for manual
retry/debugging since automatic validation is handled by PostToolUse hooks. Part of
looplia's one step → one skill-executor → multiple skills architecture.
npx claudepluginhub memorysaver/looplia-core --plugin looplia-coreOther plugins' skills for the same job