agent-router
전문 에이전트 자동 라우팅. 법률, 재무, 특허, SEO, 마케팅, 기획, BM 설계(BMC/Lean/JTBD/Wardley/Blue Ocean/Lightning Sprint), 코드리뷰, 아키텍처, 견적, CRM, HR/인사, 노무(노동법/해고/산재/취업규칙), 리서치, 데이터…
Classify task size (S/M/L/XL) and recommend the appropriate workflow pipeline.
> /plugin marketplace add sangrokjung/claude-forge > /plugin install claude-forge@claude-forge
How it fires
How this command gets triggered: by you, by Claude, or both.
/workflow-classifyContext preview
What this command does when you run it.
Classify task size (S/M/L/XL) and recommend the appropriate workflow pipeline.
description: Classify task size (S/M/L/XL) and recommend the appropriate workflow pipeline. allowed-tools: Read, Glob, Grep
Classify task size and recommend the appropriate pipeline. Use this **before starting work** to avoid over-engineering small tasks or under-preparing large ones.
Size alone doesn't tell you what to write down or how many independent eyes look at the change before it counts as done. `rules/task-grade-routing.md` maps each grade to a documentation and verification obligation, and the classification report below always prints both.
| Size | Criteria | Pipeline | |------|----------|----------| | **S** | Single file, no logic change | Implement directly → `/quick-commit` | | **M** | 2-5 files, within existing patterns | `/plan` → `/tdd` → `/handoff-verify` → `/commit-push-pr` | | **L** | 5+ files or new patterns introduced | Full pipeline with phased implementation | | **XL** | Data model, infrastructure, or security changes | Full pipeline + security review |
(implement) → /quick-commit
/plan → /tdd → /code-review → /handoff-verify → /commit-push-pr
/plan (master, gated by planner's Restate Gate) → (human review)
→ [Per Phase]
Phase N: /explore → /plan → /tdd → /code-review
→ /handoff-verify
→ /commit-push-pr(same as L, plus:) → /security-review (CWE + STRIDE, once after all phases) → /handoff-verify → /commit-push-pr
The key to L/XL tasks is **splitting each Phase to M-size**.
| Principle | Description | |-----------|-------------| | **M-size target** | 5-15 changed/new files per sub-Phase. Exceeding this triggers further splitting | | **Naming** | `Phase N-A`, `N-B`, `N-C` (parent Phase number + alpha suffix) | | **One-session completion** | Each sub-Phase must complete research→plan→implement→verify in a single session | | **Maximize independence** | Minimize dependencies between sub-Phases to enable parallel work | | **Explicit merge points** | Clearly define integration Phases where parallel work converges |
Split triggers:
1. Does the change touch implicit system contracts? 2. Can failure NOT be rolled back with simple `git reset`? → auto XL 3. Does it affect user data or auth/authorization? → auto XL 4. Does it touch payments, PII, RLS policies, or a secrets boundary? → auto XL 5. Is it a non-destructive schema or API contract change with none of the risk signals above? → minimum L
Rules 4-5 are the escalation floor from `rules/task-grade-routing.md`; that file also has the documentation and verification obligation that comes with each grade.
Search `docs/plans/` for related `prd-*.md`.
1. Analyze $ARGUMENTS (and PRD scope if available) 2. Pre-scan affected files with grep/glob 3. Assess confidence:
If any of these are true, run Phase 2: 1. Grep hits span 3+ different domain directories 2. Target identifier is imported/used in 2+ files 3. User request doesn't specify exact files/functions 4. Estimated file impact range has 2x uncertainty (e.g., 3-8 files) 5. Changes involve hooks/settings/agents/pipeline files
Read up to **3 key files** to check:
1. Classify based on Phase 1 or Phase 2 results 2. **If Phase 2 is still uncertain, upgrade one level** (under-classification costs more than over-classification) 3. Look up the assigned grade's row in `rules/task-grade-routing.md` for its documentation and verification obligation 4. Report in this format:
## Classification Result - **Task**: (description) - **PRD**: (path or "none") - **Size**: S / M / L / XL - **Rationale**: (why this size) - **Estimated files**: N - **Key files checked**: (Phase 2 only) file1 (exported N places), file2 (integration) - **Escalation**: (if applied, which rule triggered it) - **Documentation**: (from `rules/task-grade-routing.md`, e.g. "M: micro-spec — Goal/Non-goals/Acceptance/Test") - **Verification**: (from `rules/task-grade-routing.md`, e.g. "M: targeted check + 1 independent review lane") - **Recommended next step**: (next command to run)
Do not implement. Classification and reporting only.
$ARGUMENTS
oh-my-zsh for Claude Code — 16 agents, 35 commands, 32 skills, 21 safety hooks in one install. v4.0 adds an adversarial review loop: a second agent that never sees the first one's reasoning. MIT.
Repo: sangrokjung/claude-forge
전문 에이전트 자동 라우팅. 법률, 재무, 특허, SEO, 마케팅, 기획, BM 설계(BMC/Lean/JTBD/Wardley/Blue Ocean/Lightning Sprint), 코드리뷰, 아키텍처, 견적, CRM, HR/인사, 노무(노동법/해고/산재/취업규칙), 리서치, 데이터…
머지 전 /sync-docs 문서 동기화 의무 게이트 → 검증 → 커밋 & PR & 머지 + MCP 알림 (v7)