一键导入
agent-registry
Maps all 48 Legion agents by division, capability, and task type for intelligent team assembly
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Maps all 48 Legion agents by division, capability, and task type for intelligent team assembly
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
DEPRECATED compatibility shim; workflow-common-core is canonical for all conventions referenced here
Interprets --just-* and --skip-* command flags for /legion:build and /legion:review, validates flag combinations against rules, and resolves the matching team template from intent-teams.yaml. Use when the user passes intent flags to build or review commands, asks about flag combinations, or needs to filter agent teams by intent.
Dev-QA loop engine with structured feedback, fix routing, and user escalation for /legion:review
Executes wave-structured plans with personality-injected agents — parallel or sequential per CLI adapter
Engine for /legion:map. Analyzes an existing codebase, generates CODEBASE.md for backward-compatible architecture context, and writes .planning/codebase/ index artifacts consumed by /legion:start, /plan, /build, /review, /status, and /quick.
Design system creation, UX research workflows, and three-lens design review cycles for design-focused phases
基于 SOC 职业分类
| name | agent-registry |
| description | Maps all 48 Legion agents by division, capability, and task type for intelligent team assembly |
| triggers | ["agent","recommend","team","catalog","assign","match"] |
| token_cost | low |
| summary | Maps all 48 agents by division, capability, and task type. Recommendation algorithm is semantic-first with heuristic tiebreak scoring. Use when assembling teams or selecting agents for plans. |
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.mdin this directory.
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.
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.
Map natural-language intent to normalized concepts before any point scoring.
Baseline concept normalization:
scalability, latency, throughput -> performanceharden, exploit, vulnerability -> securitya11y, wcag, screen reader -> accessibilityfunnel, conversion, growth loop -> growthrefactor, cleanup, maintainability -> code-qualityonboarding, activation, retention -> productScoring:
Shortlist rules:
task_types.Use points only to break ties inside the semantic shortlist:
Notes:
Scores agents based on languages, frameworks, artifact_types, and review_strengths fields in agent .md frontmatter.
Scoring rules:
Only applied when baseline > 0.
If .planning/memory/OUTCOMES.md exists:
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-developmentapi, endpoint, rest, graphql -> api-developmentmobile, ios, android, flutter -> mobile-developmentml, ai, model, training -> ai-mltest, qa, benchmark -> quality-testingcampaign, social, content -> content-marketingvisionos, xr, webxr, spatial -> spatial-computingsecurity, owasp, stride -> security-auditdeploy, ci-cd, infrastructure -> devopsdesign, ui, ux -> design-uxArchetype 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:
Extract:
Classify confidence from top-candidate quality:
If confidence is low:
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:
project-manager-senior, project-management-project-shepherd, or agents-orchestrator.Mandatory role additions should be reflected in the score_export with recommendation_source: "mandatory".
engineering-rapid-prototyper, project-management-experiment-tracker).Pre-configured team compositions for common project scenarios.
Standard web feature from design through deployment.
| Role | Agent | Division |
|---|---|---|
| Lead Developer | engineering-frontend-developer | engineering |
| Backend | engineering-backend-architect | engineering |
| UI/UX | design-ui-designer | design |
| QA | testing-qa-verification-specialist | testing |
Backend service, API endpoint, or integration work.
| Role | Agent | Division |
|---|---|---|
| Architect | engineering-backend-architect | engineering |
| Integration Testing | testing-api-tester | testing |
| Performance | testing-performance-benchmarker | testing |
User research through high-fidelity design delivery.
| Role | Agent | Division |
|---|---|---|
| Research | design-ux-researcher | design |
| Architecture | design-ux-architect | design |
| Visual Design | design-ui-designer | design |
| Brand Review | design-brand-guardian | design |
| Feedback | product-feedback-synthesizer | product |
Multi-platform content campaign from strategy to execution.
| Role | Agent | Division |
|---|---|---|
| Strategy | marketing-content-social-strategist | marketing |
| Content | marketing-content-social-strategist | marketing |
| Visual | design-visual-storyteller | design |
| Analytics | data-analytics-engineer | specialized |
| Platform Lead (pick 1-2) | marketing-social-platform-specialist / marketing-app-store-optimizer / marketing-growth-hacker | marketing |
End-to-end product launch spanning all divisions. Split into sub-tasks and coordinate.
| Role | Agent | Division |
|---|---|---|
| Orchestrator | agents-orchestrator | specialized |
| Producer | project-management-studio-producer | project-management |
| Frontend | engineering-frontend-developer | engineering |
| Backend | engineering-backend-architect | engineering |
| UI/UX | design-ui-designer | design |
| QA Lead | testing-qa-verification-specialist | testing |
| Marketing | marketing-growth-hacker | marketing |
| Analytics | data-analytics-engineer | specialized |
Targeted bug fix or hotfix with minimal team.
| Role | Agent | Division |
|---|---|---|
| Developer | engineering-senior-developer / engineering-laravel-specialist (Laravel stacks) | engineering |
| QA Verification | testing-qa-verification-specialist | testing |
Immersive experience development for visionOS, WebXR, or spatial platforms.
| Role | Agent | Division |
|---|---|---|
| Platform Engineer | visionos-spatial-engineer / macos-spatial-metal-engineer | spatial-computing |
| Interaction Design | xr-interface-architect | spatial-computing |
| Immersive Dev | xr-immersive-developer | spatial-computing |
| QA | testing-performance-benchmarker | testing |