# Phase Router

> Phase Router is an Agent Skill for agent building published in the WenJunDuan/Rlues repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Intent recognition and workflow routing. Analyzes user input to determine task type and routes to appropriate agent. Core decision layer.

- Skill name: `phase-router`
- Category: [Agent Building](https://www.openparable.com/skill/agent-building/1)
- Source: https://github.com/WenJunDuan/Rlues/blob/HEAD/vibeCoding/old-version/claude/config-agent_v7.8/.claude/skills/phase-router/SKILL.md
- Repository: WenJunDuan/Rlues (182 GitHub stars when collected)

## SKILL.md

# Phase Router Skill

## Routing Rules

| Input Pattern | Route To | Workflow |
|:---|:---|:---|
| No task ID + new keywords | requirement-mgr | 需求创建 |
| Task ID + change keywords | requirement-mgr | 变更管理 |
| Task ID + design keywords | design-mgr | 方案设计 |
| Task ID + develop keywords | impl-executor | 开发实施 |
| Task ID only | Query status | 智能推断 |

## Complexity Assessment (P.A.C.E.)

| Path | Criteria | Workflow | Duration |
|:---|:---|:---|:---|
| A | 单文件, <30行 | R1→E→R2 | 30-60分 |
| B | 2-10文件 | R1→I→P→E→R2 | 2-8小时 |
| C | >10文件, 跨模块 | 完整九步 | 数天+ |

## Output Format

```yaml
RouteDecision:
  intent: [new|change|design|develop|complete]
  task_id: REQ-xxx
  complexity: [A|B|C]
  agent: [requirement-mgr|design-mgr|impl-executor]
  workflow: [path-a|path-b|path-c]
```

---

Source: https://www.openparable.com/skill/agent-building/phase-router (OpenParable). Cite the canonical URL above.
