Skip to content
Development
Command

/workflow-classify

Classify task size (S/M/L/XL) and recommend the appropriate workflow pipeline.

From plugin
claude-forge
83735 skills16 agents35 commands22 hooks
+1
Install
> /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.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/workflow-classify

Context preview

What this command does when you run it.

Classify task size (S/M/L/XL) and recommend the appropriate workflow pipeline.

Command definition

workflow-classify.md
description: Classify task size (S/M/L/XL) and recommend the appropriate workflow pipeline.
allowed-tools: Read, Glob, Grep

Workflow Classify Command

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.

Classification Criteria

| 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 |

Pipelines by Size

S — Direct Implementation

(implement) → /quick-commit

M — Standard Pipeline

/plan → /tdd → /code-review → /handoff-verify → /commit-push-pr
  • Use `/auto` to run this automatically

L — Phased Pipeline

/plan (master, gated by planner's Restate Gate) → (human review)
  → [Per Phase]
    Phase N: /explore → /plan → /tdd → /code-review
  → /handoff-verify
  → /commit-push-pr
  • Each Phase should be M-sized (5-15 files max)
  • One session = one Phase (prevent context exhaustion)
  • Phase failure: manual rollback to Phase branch
  • There is no separate `/plan-review` command. `agents/planner.md`'s Restate Gate already forces a one-sentence restatement and an explicit user confirmation before the master plan is handed off, so that gate stands in for the missing step above.

XL — Phased Pipeline + Security

(same as L, plus:)
  → /security-review (CWE + STRIDE, once after all phases)
  → /handoff-verify
  → /commit-push-pr

Sub-Phase Splitting (L/XL)

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:

  • Impact analysis shows 15+ files → must split
  • Changes span different layers (types, logic, UI, integration) → consider layer-based split
  • 3+ new modules can be implemented independently → separate sub-Phases

Escalation Rules (any YES → upgrade one level)

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.

Procedure (Graduated Observation)

Phase 0: PRD Check

Search `docs/plans/` for related `prd-*.md`.

  • If PRD exists: use its scope and criteria as classification input
  • If no PRD: proceed with $ARGUMENTS

Phase 1: Quick Triage

1. Analyze $ARGUMENTS (and PRD scope if available) 2. Pre-scan affected files with grep/glob 3. Assess confidence:

  • File count ≤1, pattern clear → **HIGH** → classify as S immediately
  • File count ≥6 or security/DB/infra keywords → **HIGH** → classify as L/XL immediately
  • Any LOW confidence condition below → proceed to Phase 2

LOW Confidence Conditions

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

Phase 2: Targeted Probe (conditional)

Read up to **3 key files** to check:

  • Import/export relationships (shared scope, consumer count)
  • Whether the change target is an interface/contract vs internal implementation
  • Do NOT analyze logic (that's `/explore`'s job)

Phase 3: Final Classification

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

Read more
Ships withclaude-forge

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.

Get the whole plugin

Other commands on claude-forge.

agent-router
Command

agent-router

전문 에이전트 자동 라우팅. 법률, 재무, 특허, SEO, 마케팅, 기획, BM 설계(BMC/Lean/JTBD/Wardley/Blue Ocean/Lightning Sprint), 코드리뷰, 아키텍처, 견적, CRM, HR/인사, 노무(노동법/해고/산재/취업규칙), 리서치, 데이터…