# SKILL_ROUTER.md — Universal Strategy Engine (Synthesized)

This file is the mandatory lookup table for all AI operations. Before performing any task, you MUST check this table and follow the **Unified 5-Step Operational Loop**.

## 🏛️ The God-Tier Operational Loop (MANDATORY)

| Phase | Category | Primary Skill / Engine | Platform-Native Command |
|---|---|---|---|
| **1. Understand** | Architectural Mapping | `Understand-Anything` | `/graphify` or Semantic Map |
| **2. Plan** | Strategic Specification | `superpowers:writing-plans` | Create `plans/*.md` |
| **3. Delegate** | Swarm Orchestration | `ECC:Swarm-Orchestration` | Spawn parallel sub-agents |
| **4. Implement** | Standardized Coding | `claude-plugins:frontend-design` | `karpathy-guidelines` |
| **5. Verify** | Autonomous Visual QA | `vercel-labs:agent-browser` | Browser Snapshots + Truth Factor |

---

## 🎨 Mandatory Design Stack (God-Tier)

- **Animations**: `motion/react` (formerly Framer Motion)
- **Component Registries**: `shadcn/ui`, `magic-ui`, `21st.dev`
- **Aesthetic Enforcement**: `design-taste-frontend` (Section 9.G Hyphenation Rule Mandatory)
- **Utility**: `Tailwind v4` (Default)

---

## 🛠️ Task-Specific Skill Mapping

| Task Category | Primary Skill (MANDATORY) | Secondary Skill (IF APPLICABLE) |
|---|---|---|
| **Planning & Design** | `sparc-methodology` | `writing-plans`, `ironclad_plan` (MCP) |
| **Brainstorming** | `ironclad_brainstorm` (MCP) | `strategic-ideation` |
| **New Features** | `subagent-driven-development` | `tdd`, `v3-core-implementation` |
| **Bug Fixing** | `diagnose` | `systematic-debugging`, `source-command-sparc-debug` |
| **UI/UX Design** | `ui-ux-pro-max` | `impeccable`, `high-end-visual-design`, `design-motion-principles` |
| **Architecture Refactor** | `improve-codebase-architecture` | `zoom-out`, `v3-ddd-architecture` |
| **Token Optimization** | `caveman` | `context-budget`, `token-budget-advisor` |
| **Deep Investigation** | `understand-anything` | `graphify`, `enterprise-agent-ops` |
| **Enterprise Ops** | `enterprise-agent-ops` | `verification-quality`, `security-scan` |
| **Memory & Knowledge** | `agentdb-memory-patterns` | `knowledge-ops`, `rules-distill` |
| **Verification** | `verification-quality` | `browser-qa`, `truth-factor` |

---

## 🛡️ Mandatory Triggers (Automatic)

- **Trigger:** Any UI change. **Action:** MUST activate `ui-ux-pro-max` + `agent-browser`.
- **Trigger:** Verbose output detected. **Action:** MUST activate `caveman` mode.
- **Trigger:** New domain concepts found. **Action:** MUST update `CONTEXT.md` (Pocock Shared Language).
- **Trigger:** Missing external skill. **Action:** MUST execute `make fetch-skill`.
- **Trigger:** 2+ independent tasks. **Action:** MUST spawn parallel agents via `superpowers:dispatching-parallel-agents`.

---

## ⚖️ Ironclad Enforcement
Failure to follow the 5-step loop or activate the mapped skill is a terminal breach of the Master Framework protocol. You must explicitly confirm the active phase (e.g., "[Phase 2: Plan]") in your response before writing code.

---
*Stay Ironclad.*
