| name | work |
| description | Unified entry point — auto-classifies tasks and routes to appropriate workflow. ALWAYS execute when invoked via slash command. |
NOTE: This is a multi-step workflow that invokes the task-classifier subagent and orchestrator skills at specific steps. The <command-name> tag refers to THIS command only — you MUST still use the Skill tool to invoke those other skills when instructed below. Follow ALL steps in order.
Unified Work Entry Point
Auto-classifies tasks and routes to the appropriate workflow orchestrator. Supports resuming existing tasks or starting new ones.
Usage
/work [task description | task folder path | issue identifier]
Input Types
| Input Type | Example |
|---|
| Task folder path | .flowbit/tasks/development/2025-10-23-login-timeout |
| Folder name only | 2025-10-26-user-auth (searches all task types) |
| Task description | "Fix login timeout error on mobile" |
| GitHub issue | #456, GH-456, https://github.com/owner/repo/issues/456 |
| Jira ticket | PROJ-456, https://company.atlassian.net/browse/PROJ-456 |
| Azure DevOps | AB#123, https://dev.azure.com/org/project/_workitems/edit/123 |
| No argument | Prompts for input |
Examples
/work ".flowbit/tasks/development/2025-10-23-login-timeout"
/work "2025-10-26-user-auth"
/work "Fix login timeout error on mobile devices"
/work "Add user authentication with email/password"
/work "Improve dashboard loading performance"
/work "#456"
/work "PROJ-123"
/work "AB#789"
How It Works
- Detect existing task - If input is a task folder path, route to resume
- Classify new task - Invoke task-classifier subagent to determine workflow type
- Route to workflow - Use Skill tool to invoke appropriate orchestrator skill
Workflow Type Routing
| Classification | Routes To (Skill) |
|---|
| development | flowbit-development |
| performance | flowbit-performance |
| migration | flowbit-migration |
| research | flowbit-research |
| product-design | flowbit-product-design |
Workflow
Step 1: Parse Input and Detect Task Folder
Check if input is an existing task folder:
- Try path as-is (absolute path)
- Try prepending
.flowbit/ (relative path)
- Search
.flowbit/tasks/*/ for folder name match
If folder exists AND contains orchestrator-state.yml:
- Go to Step 2: Resume Existing Task
If NOT a task folder:
- Go to Step 3: Classify & Route New Task
If no argument provided:
- Prompt user: "What would you like to work on?" with input examples
- Then check if input is task folder or description
Step 2: Resume Existing Task
When existing task detected:
- Read
orchestrator-state.yml from task folder
- Determine workflow type from folder path:
| Folder | Workflow Type |
|---|
development/ | development |
performance/ | performance |
migrations/ | migration |
research/ | research |
product-design/ | product-design |
-
Extract status from state file:
completed: null = in-progress, timestamp = finished
completed_phases: derive active phase as first phase not in this list
failed_phases: array of failed attempts
-
Present status to user with ask_user:
For In-Progress Tasks:
Options:
1. Resume from next incomplete phase
2. Restart from specific phase
3. Cancel
For Completed Tasks:
Options:
1. View task details
2. Create follow-up development task
3. Re-run verification phase
4. Cancel
For Failed Tasks:
Options:
1. Resume with fresh attempts (--reset-attempts --clear-failures)
2. Retry failed phase
3. Restart from specific phase
4. Cancel
- Route using Skill tool:
Use Skill tool:
skill: "flowbit-[orchestrator-name]"
args: "--resume [task_path] [flags]"
Examples:
- Resume development:
skill: "flowbit-development" with args: "--resume .flowbit/tasks/development/2025-10-23-fix"
- Restart from phase:
skill: "flowbit-development" with args: "--resume .flowbit/tasks/development/2025-10-26-auth --from=verify"
- Fresh attempts:
skill: "flowbit-migration" with args: "--resume .flowbit/tasks/migrations/2025-10-20-redux --reset-attempts"
- Optional visualization (when user wants flow clarity):
Use Skill tool:
skill: "flowbit-diagrams-mermaid"
args: "Visualize routing/resume flow using current task state.
IMPORTANT: refine existing status/context only; do not invent domain details."
Step 3: Classify & Route New Task
For new task descriptions:
- Invoke task-classifier subagent to determine workflow type:
Use Task tool:
subagent_type: "flowbit-task-classifier"
description: "Classify task type"
prompt: "Classify this task into a workflow type: [task description].
Return structured YAML classification result."
The subagent will:
- Detect issue identifiers (GitHub, Jira)
- Fetch issue details if available
- Analyze codebase context
- Match keywords and calculate confidence
- Confirm with user if needed
- Return classification in YAML format
- Parse classification result:
classification:
task_type: [development|performance|migration|research|product-design]
confidence: [percentage]
reasoning: [explanation]
- Route to appropriate workflow using Skill tool:
Display:
Task classified as: [task_type] ([confidence]% confidence)
Routing to [task_type] workflow...
Use Skill tool:
skill: "flowbit-[orchestrator-name]"
args: "[description]"
Routing examples:
- development (92%):
skill: "flowbit-development" with args: "Fix login timeout error"
- development (88%):
skill: "flowbit-development" with args: "Add filtering to user table"
- performance (95%):
skill: "flowbit-performance" with args: "Optimize slow dashboard queries"
- Optional visualization (when user asks for visual map):
Use Skill tool:
skill: "flowbit-diagrams-mermaid"
args: "Visualize classification -> orchestrator routing for this task.
Use only confirmed classification data."
Error Handling
Classification Fails
If task-classifier returns error:
Display:
"Unable to automatically classify this task. Please select manually:"
Use ask_user with options:
1. Development - Fix bugs, improve features, or add new capabilities
2. Performance - Optimize speed/efficiency
3. Migration - Move to new tech/pattern
4. Research - Investigate and document findings
5. Product Design - Design features or products before building them
Then route to selected workflow using Skill tool.
User Cancels
Display:
"Task cancelled. You can:
- Run /work again when ready
- Use specific workflow commands directly:
/flowbit-development, /flowbit-performance, etc."
Resume Skill Reference
| Workflow Type | Skill | Args |
|---|
| development | flowbit-development | --resume [path] [--from=PHASE] [--reset-attempts] |
| performance | flowbit-performance | --resume [path] [--from=PHASE] |
| migration | flowbit-migration | --resume [path] [--from=PHASE] |
| research | flowbit-research | --resume [path] [--from=PHASE] |
| product-design | flowbit-product-design | --resume [path] [--from=PHASE] |
Integration Notes
With Task Classifier
The /flowbit:work command delegates classification to the task-classifier subagent via Task tool, which:
- Fetches issue details from GitHub/Jira/Azure DevOps (via MCP, CLI tools, or WebFetch)
- Analyzes codebase context for better classification
- Uses confidence-based user confirmation
- Returns structured classification result
With Orchestrators
After classification/detection, this command routes to the appropriate orchestrator via Skill tool:
- Each orchestrator handles its specific workflow (spec, plan, implement, verify, etc.)
- State is persisted in
orchestrator-state.yml for pause/resume
- Auto-recovery handles common failures
With Project Documentation
Uses project documentation for context:
.flowbit/docs/INDEX.md - Project overview and standards
.flowbit/tasks/ - Existing task directories
Key Behaviors
- Single entry point - One command for all workflow types
- Auto-classification - Intelligent routing based on task description
- Resume support - Detects and resumes existing tasks
- Issue integration - Fetches details from GitHub/Jira/Azure DevOps
- Direct skill invocation - Uses Skill tool for immediate orchestrator loading
- Graceful fallback - Manual selection if classification fails