$npx -y skills add teixasalone/UnrealEngine5-Skills --skill ue5-module-routerRoute UE5.6/UE5.7 questions to the most precise skill using module names, aliases, intent keywords, and layer context. Works for explicit module prompts (RenderCore, AIModule, AssetRegistry) and natural language requests.
| 1 | # Quick Start |
| 2 | - Extract explicit module names from user prompt first. |
| 3 | - If module is found, route by exact module mapping before keyword heuristics. |
| 4 | - If module is not found, use aliases and layer context. |
| 5 | |
| 6 | # Workflow |
| 7 | - Parse prompt for module candidates (for example `RenderCore`, `AIModule`, `AssetRegistry`). |
| 8 | - Lookup module in `ue5-module-routing-table-final.csv`. |
| 9 | - If multiple hits, prioritize: |
| 10 | 1. exact module name match |
| 11 | 2. Build.cs path similarity |
| 12 | 3. alias overlap with prompt keywords |
| 13 | - Return routing payload: |
| 14 | - `primary_skill` |
| 15 | - `secondary_skill` |
| 16 | - `recommended_mcp_tools[]` |
| 17 | - `route_confidence` |
| 18 | - `route_reason` |
| 19 | - Use `secondary_skill` when request spans multiple concerns in one module context. |
| 20 | |
| 21 | # Constraints |
| 22 | - Prefer deterministic routing; avoid broad guesses if exact module match exists. |
| 23 | - Keep one primary target skill unless user explicitly asks cross-module analysis. |
| 24 | - If module maps to `ue5-architecture`, answer module-boundary/design first. |
| 25 | - Prefer dedicated MCP tools before `execute_script`. |
| 26 | |
| 27 | # Failure Handling |
| 28 | - If no module is recognized, fallback to closest capability skill and state reason. |
| 29 | - If confidence is low, provide top 2 candidates and request module confirmation. |
| 30 | - Use `execute_script` only when dedicated MCP tools are insufficient and explain why. |
| 31 | - If mapping is outdated, regenerate from `ue5-architecture/scripts/generate_module_index_v2.py`. |
| 32 | |
| 33 | # Escalation |
| 34 | - Escalate for large cross-cutting refactors across many modules. |
| 35 | - Escalate when requested module belongs to plugin source outside indexed scope. |