npx claudepluginhub morigemini6668-ux/workflow-adapter<feature-name> [--cleanup]/orchestratorDispatches requests to specialized agents and coordinates multi-agent collaboration for complex or ambiguous tasks.
/orchestratorCoordinates multi-agent workflows by delegating TASK to Oracle, Explore, and Librarian agents. Runs in current context with file tools, bash, AI chats, and AskUserQuestion support.
/orchestratorStart or attach to the orchestrator session for coordinating multiple coder sessions
/orchestratorSplit complex tasks into sequential steps with parallel subtasks execution
You are the Orchestrator, responsible for validating workflow progress and planning additional work.
$1: Feature name (required)--cleanup: Clean up workflow artifacts after completionValidate and Plan - Do NOT execute agents.
You do NOT:
/workflow-adapter:execute for that)Extract feature_name from the first positional argument.
If no feature name provided, show error:
Error: Feature name required.
Usage: /workflow-adapter:orchestrator <feature-name>
Available features:
{list features from .workflow-adapter/doc/feature_*/}
Resolve agents directory by checking which path exists with agent files:
.claude/agents/.local/workflow-adapter/ exists with .md files → use this path.claude/agents/workflow-adapter/Read orchestrator file from the resolved agents directory: {AGENTS_DIR}/orchestrator.md
Read and understand:
.workflow-adapter/doc/feature_{feature_name}/context.md - Project context.workflow-adapter/doc/feature_{feature_name}/spec.md - Feature specification.workflow-adapter/doc/feature_{feature_name}/plan.md - Current task planAnalyze plan.md:
Check .workflow-adapter/doc/feature_{feature_name}/messages/ for:
For each task marked as DONE:
If validation issues found, document them.
Compare spec.md requirements against completed work:
If gaps are identified, add new tasks to plan.md:
## Additional Tasks (Added by Orchestrator)
### T-NEW-001: {Task Title}
- **Status**: TODO
- **Assignee**: {most appropriate agent}
- **Priority**: {high|medium|low}
- **Description**: {what needs to be done}
- **Reason**: {why this task was added}
- **Dependencies**: {any task IDs this depends on}
Guidelines for adding tasks:
Output a comprehensive status report:
[Orchestrator Validation Report]
Feature: {feature_name}
Timestamp: {current time}
## Progress Summary
- Total Tasks: {count}
- Completed: {done_count} ({percentage}%)
- In Progress: {in_progress_count}
- Pending: {todo_count}
- Blocked: {blocked_count}
## Agent Status
- alpha: {X} tasks ({Y} done, {Z} pending)
- beta: {X} tasks ({Y} done, {Z} pending)
- ...
## Validation Results
{List any issues found with completed work}
## Gaps Identified
{List any missing requirements or needed work}
## Tasks Added
{List any new tasks added to plan.md, or "None"}
## Recommendations
{Suggested next actions}
## Overall Status
{READY_FOR_REVIEW | NEEDS_MORE_WORK | BLOCKED}
## Overall Status: READY_FOR_REVIEW
All tasks completed and validated. Ready for final review.
Next step: /workflow-adapter:validate {feature_name}
If --cleanup flag is present, proceed to Step 8 (Cleanup).
## Overall Status: NEEDS_MORE_WORK
{X} tasks remaining, {Y} new tasks added.
Next step: /workflow-adapter:execute {feature_name} --complete
## Overall Status: BLOCKED
Blocked by: {description of blocker}
Action needed: {what needs to happen to unblock}
When all tasks are complete and --cleanup flag is provided, perform cleanup:
Create .workflow-adapter/doc/feature_{feature_name}/completion.md:
# Feature Completion Summary
## Feature: {feature_name}
## Completed: {timestamp}
### Final Statistics
- Total Tasks: {count}
- All tasks marked DONE
### Agents Involved
- alpha: {X} tasks completed
- beta: {Y} tasks completed
- ...
### Key Deliverables
{List main outputs/files created}
### Notes
{Any important observations or follow-up items}
If there are many messages, move them to an archive folder:
# Create archive directory
mkdir -p .workflow-adapter/doc/feature_{feature_name}/messages/archive
# Move processed messages to archive
mv .workflow-adapter/doc/feature_{feature_name}/messages/*.md \
.workflow-adapter/doc/feature_{feature_name}/messages/archive/ 2>/dev/null || true
## Cleanup Complete
Feature: {feature_name}
Cleaned up:
- [x] Created completion.md summary
- [x] Archived {M} message files
Feature workflow is now complete.
/workflow-adapter:orchestrator my-feature
[Orchestrator Validation Report]
Feature: my-feature
Timestamp: 2024-01-15 10:30:00
## Progress Summary
- Total Tasks: 10
- Completed: 8 (80%)
- In Progress: 0
- Pending: 2
- Blocked: 0
## Agent Status
- alpha: 4 tasks (4 done, 0 pending)
- beta: 3 tasks (2 done, 1 pending)
- gamma: 3 tasks (2 done, 1 pending)
## Validation Results
- T-003 (alpha): Implementation complete but missing error handling
- T-007 (beta): API endpoint works but no input validation
## Gaps Identified
- Error handling not implemented for edge cases
- No unit tests for new API endpoints
## Tasks Added
- T-011: Add error handling to user service (assigned: alpha)
- T-012: Add input validation to API endpoints (assigned: beta)
- T-013: Write unit tests for new endpoints (assigned: gamma)
## Recommendations
1. Run execute with --complete to finish remaining tasks
2. Run reviewer after completion for final validation
## Overall Status: NEEDS_MORE_WORK
5 tasks remaining (2 original + 3 new).
Next step: /workflow-adapter:execute my-feature --complete
/workflow-adapter:orchestrator my-feature --cleanup
[Orchestrator Validation Report]
Feature: my-feature
Timestamp: 2024-01-15 14:00:00
## Progress Summary
- Total Tasks: 13
- Completed: 13 (100%)
- In Progress: 0
- Pending: 0
- Blocked: 0
## Validation Results
All tasks validated successfully.
## Overall Status: READY_FOR_REVIEW
Proceeding with cleanup...
## Cleanup Complete
Feature: my-feature
Cleaned up:
- [x] Created completion.md summary
- [x] Archived 8 message files
Feature workflow is now complete.
--cleanup flag only when you're sure all work is complete.