AgentSkillsCN

phase-router

意图识别与工作流路由。通过分析用户输入,精准判断任务类型并将其路由至相应代理,构成核心决策层。

SKILL.md
--- frontmatter
name: phase-router
description: |
  Intent recognition and workflow routing. Analyzes user input to determine
  task type and routes to appropriate agent. Core decision layer.

Phase Router Skill

Routing Rules

Input PatternRoute ToWorkflow
No task ID + new keywordsrequirement-mgr需求创建
Task ID + change keywordsrequirement-mgr变更管理
Task ID + design keywordsdesign-mgr方案设计
Task ID + develop keywordsimpl-executor开发实施
Task ID onlyQuery status智能推断

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

PathCriteriaWorkflowDuration
A单文件, <30行R1→E→R230-60分
B2-10文件R1→I→P→E→R22-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]