9thlevelsoftware/legion/agent-registry

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Maps all 48 Legion agents by division, capability, and task type for intelligent team assembly

Install

npx vskill@latest install 9thlevelsoftware/legion/agent-registry

SKILL.md

Legion Agent Registry

Complete catalog of all agent personalities. Includes 48 built-in agents across 9 divisions plus any custom agents created via /legion:agent. Use this registry to assemble the right team for any project task.

Agent catalog and task-type index are in CATALOG.md in this directory.

Mandatory Persona Contract

All built-in and custom personas are governed by skills/agent-registry/MANDATORY-PERSONA-CONTRACT.md. When a command injects a persona, the task prompt must preserve that contract: read-before-write -> evidence-before-action -> minimal diff -> verify-before-report. Planner/reviewer personas must produce decision-complete contracts; executor personas must emit BLOCKED rather than fill high-impact gaps opportunistically.


Section 3: Recommendation Algorithm (v2 Four-Layer Scoring)

When assembling a team for a task, the engine applies four scoring layers in sequence. Each layer is additive; later layers only activate when the baseline (Layer 1 + Layer 2) is greater than zero.

total = semantic + heuristic + metadataBoost + memoryBoost + archetypeBoost

Gating rule: Layers 3 and 4 (metadata, memory, archetype) are only applied when baseline = semantic + heuristic > 0. This prevents irrelevant agents from being promoted by metadata or historical data alone.

Custom agents: Custom agents added via /legion:agent are first-class candidates in every layer.

Layer 1: Semantic Score (Primary Ranking)

Map natural-language intent to normalized concepts before any point scoring.

Baseline concept normalization:

  • scalability, latency, throughput -> performance
  • harden, exploit, vulnerability -> security
  • a11y, wcag, screen reader -> accessibility
  • funnel, conversion, growth loop -> growth
  • refactor, cleanup, maintainability -> code-quality
  • onboarding, activation, retention -> product

Scoring:

  • Exact taskType match: +4
  • Partial taskType match (substring): +2
  • Specialty text match: +1

Shortlist rules:

  1. Prefer agents with direct semantic overlap between normalized concepts and task_types.
  2. Include cross-division specialists when their specialty text clearly matches intent.
  3. Keep shortlist to top 6-8 agents before tie-breaking.
Layer 2: Heuristic Score (Tiebreak)

Use points only to break ties inside the semantic shortlist:

  • Exact task-type match: +3
  • Partial task-type match: +1
  • Partial specialty match: +1
  • Division alignment: +2

Notes:

  • Heuristics refine ranking; they do not replace semantic intent matching.
  • If no semantic shortlist forms, fall back to heuristic scoring across all agents and label low confidence.
Layer 3: Metadata Boost (from agent frontmatter)

Scores agents based on languages, frameworks, artifact_types, and review_strengths fields in agent .md frontmatter.

Scoring rules:

  • Exact language match: +3
  • Exact framework match: +3
  • Exact artifact_type match: +2
  • Exact review_strength match: +2
  • Partial match (substring in any field): +1

Only applied when baseline > 0.

Layer 4: Memory and Archetype Boost (from OUTCOMES.md)
Memory Boost

If .planning/memory/OUTCOMES.md exists:

  1. Recall agent scores via memory-manager (memoryScores).
  2. Add memory score to shortlisted agents only (gated behind baseline > 0).
Archetype Boost

If archetypeScores are provided by the caller for the detected task_type:

Task Type Detection: Prompt concepts are mapped to task types via TASK_TYPE_MAP:

  • react, frontend, css, html -> web-development
  • api, endpoint, rest, graphql -> api-development
  • mobile, ios, android, flutter -> mobile-development
  • ml, ai, model, training -> ai-ml
  • test, qa, benchmark -> quality-testing
  • campaign, social, content -> content-marketing
  • visionos, xr, webxr, spatial -> spatial-computing
  • security, owasp, stride -> security-audit
  • deploy, ci-cd, infrastructure -> devops
  • design, ui, ux -> design-ux

Archetype scoring formula:

base_boost = successRate * 3.0
volume_modifier = min(totalOutcomes / 5, 1.0)
top_agent_bonus = 1.0 if agent is topAgent, else 0
archetype_boost = clamp(base_boost * volume_modifier + top_agent_bonus, 0, 5)

Constraints:

  • Archetype boost is gated behind baseline > 0 (same as metadata and memory).
  • Memory/archetype boosts are additive and cannot override mandatory-role constraints.
  • Memory/archetype boosts cannot promote unrelated agents with zero semantic/heuristic relevance.
  • archetypeScores are consumed only when available; if absent, fall back to flat memoryScores.
  • If memory is unavailable, skip silently.
  • Engine produces identical results when metadata fields are absent and archetypeScores is not provided (backward compatible).
Step 3: Parse Intent and Constraints

Extract:

  • Primary objective (build, review, optimize, diagnose, launch)
  • Domain signals (engineering, design, marketing, testing, product, support, spatial)
  • Hard constraints (platform, runtime, deadline, no-new-dependencies, etc.)
Step 4: Confidence Classification

Classify confidence from top-candidate quality:

  • High confidence: strong semantic alignment (>= 6) or (semantic >= 4 and heuristic >= 8). Metadata boost >= 6 can elevate effective semantic to 4.
  • Medium confidence: partial semantic alignment (>= 2) or heuristic >= 5
  • Low confidence: weak semantic evidence

If confidence is low:

  1. Label recommendation explicitly as low confidence.
  2. Offer 2-3 alternatives from different divisions.
  3. Ask for user guidance before locking assignment.
Score Export

After scoring, produce a structured score breakdown for each recommended agent:

score_export:
task_type_detected: "{extracted task type from TASK_TYPE_MAP}"
candidates:
- agent_id: "{agent-id}"
semantic_score: {numeric from Layer 1}
heuristic_score: {numeric from Layer 2}
metadata_score: {numeric from Layer 3}
memory_boost: {numeric from OUTCOMES.md or 0}
archetype_boost: {numeric from archetype formula or 0}
total_score: {semantic + heuristic + metadata + memory + archetype}
confidence: "{HIGH|MEDIUM|LOW}"
- agent_id: "{agent-id-2}"
...
adapter: "{adapter name from current CLI}"
model_tier: "{planning|execution|check}"
recommendation_source: "{semantic|heuristic|memory|archetype|override}"

This score breakdown is:

  • Produced by agent-registry during recommendation
  • Consumed by wave-executor when writing SUMMARY.md (see OBS-01)
  • Optional — if recommendation was skipped (autonomous task), no export is generated
Step 5: Team Size and Composition Guardrails
  • 2 agents for single-domain tasks.
  • 3 agents for standard feature work.
  • 4 agents for cross-domain work.
  • Never exceed 4 agents for one discrete task; split larger efforts.
Step 6: Enforce Mandatory Roles
  • Execution teams (code-writing/deployment) MUST include at least one Testing-division agent.
  • Cross-division teams MUST include a coordinator: project-manager-senior, project-management-project-shepherd, or agents-orchestrator.
  • User-facing change teams SHOULD include a Design-division reviewer.

Mandatory role additions should be reflected in the score_export with recommendation_source: "mandatory".

Step 7: Conflict Resolution
  • If two agents remain tied in one division, prefer broader production reliability for delivery tasks.
  • For exploratory work, prefer rapid-learning profiles (engineering-rapid-prototyper, project-management-experiment-tracker).

Section 4: Team Assembly Patterns

Pre-configured team compositions for common project scenarios.

Feature Build (Web)
Standard web feature from design through deployment.
RoleAgentDivision
Lead Developerengineering-frontend-developerengineering
Backendengineering-backend-architectengineering
UI/UXdesign-ui-designerdesign
QAtesting-qa-verification-specialisttesting
API Development
Backend service, API endpoint, or integration work.
RoleAgentDivision
Architectengineering-backend-architectengineering
Integration Testingtesting-api-testertesting
Performancetesting-performance-benchmarkertesting
Design Sprint
User research through high-fidelity design delivery.
RoleAgentDivision
Researchdesign-ux-researcherdesign
Architecturedesign-ux-architectdesign
Visual Designdesign-ui-designerdesign
Brand Reviewdesign-brand-guardiandesign
Feedbackproduct-feedback-synthesizerproduct
Marketing Campaign
Multi-platform content campaign from strategy to execution.
RoleAgentDivision
Strategymarketing-content-social-strategistmarketing
Contentmarketing-content-social-strategistmarketing
Visualdesign-visual-storytellerdesign
Analyticsdata-analytics-engineerspecialized
Platform Lead (pick 1-2)marketing-social-platform-specialist / marketing-app-store-optimizer / marketing-growth-hackermarketing
Full Launch
End-to-end product launch spanning all divisions. Split into sub-tasks and coordinate.
RoleAgentDivision
Orchestratoragents-orchestratorspecialized
Producerproject-management-studio-producerproject-management
Frontendengineering-frontend-developerengineering
Backendengineering-backend-architectengineering
UI/UXdesign-ui-designerdesign
QA Leadtesting-qa-verification-specialisttesting
Marketingmarketing-growth-hackermarketing
Analyticsdata-analytics-engineerspecialized
Quick Fix / Bug Patch
Targeted bug fix or hotfix with minimal team.
RoleAgentDivision
Developerengineering-senior-developer / engineering-laravel-specialist (Laravel stacks)engineering
QA Verificationtesting-qa-verification-specialisttesting
XR / Spatial Computing Build
Immersive experience development for visionOS, WebXR, or spatial platforms.
RoleAgentDivision
Platform Engineervisionos-spatial-engineer / macos-spatial-metal-engineerspatial-computing
Interaction Designxr-interface-architectspatial-computing
Immersive Devxr-immersive-developerspatial-computing
QAtesting-performance-benchmarkertesting

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
62
Repository forks
7
7-day trend score
21

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/9thlevelsoftware/legion/agent-registry/badge)](https://verified-skill.com/skills/9thlevelsoftware/legion/agent-registry)

Something wrong with this skill or its page? Tell us.