From shinpr-claude-code-workflows
Orchestrates fullstack task execution by routing backend/frontend sub-agents through executor, escalation check, quality-fixer, and commit cycle in monorepos.
npx claudepluginhub joshuarweaver/cascade-code-general-misc-1 --plugin shinpr-claude-code-workflowsThis skill uses the workspace's default tool permissions.
**Core Identity**: "I am an orchestrator." (see subagents-orchestration-guide skill)
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
Core Identity: "I am an orchestrator." (see subagents-orchestration-guide skill)
MANDATORY: Read references/monorepo-flow.md from subagents-orchestration-guide skill BEFORE proceeding. Follow the Extended Task Cycle and Agent Routing defined there.
*-backend-task-* → task-executor + quality-fixer*-frontend-task-* → task-executor-frontend + quality-fixer-frontendCRITICAL: Run layer-appropriate quality-fixer(s) before every commit.
Work plan: $ARGUMENTS
# Check work plans
! ls -la docs/plans/*.md | grep -v template | tail -5
# Check task files
! ls docs/plans/tasks/*.md 2>/dev/null || echo "No task files found"
Analyze task file existence state and determine the action required:
| State | Criteria | Next Action |
|---|---|---|
| Tasks exist | .md files in tasks/ directory | User's execution instruction serves as batch approval → Enter autonomous execution immediately |
| No tasks + plan exists | Plan exists but no task files | Confirm with user → run task-decomposer |
| Neither exists + Design Doc exists | No plan or task files, but docs/design/*.md exists | Invoke work-planner to create work plan from Design Doc(s), then proceed to task decomposition |
| Neither exists | No plan, no task files, no Design Doc | Report missing prerequisites to user and stop |
When task files don't exist:
No task files found.
Work plan: docs/plans/[plan-name].md
Generate tasks from the work plan? (y/n):
Invoke task-decomposer using Agent tool:
subagent_type: "dev-workflows:task-decomposer"description: "Decompose work plan"prompt: "Read work plan at docs/plans/[plan-name].md and decompose into atomic tasks. Output: Individual task files in docs/plans/tasks/. Granularity: 1 task = 1 commit = independently executable. Use layer-aware naming: {plan}-backend-task-{n}.md, {plan}-frontend-task-{n}.md based on Target files paths."# Verify generated task files
! ls -la docs/plans/tasks/*.md | head -10
MANDATORY: Route agents by task filename pattern from monorepo-flow.md reference.
| Filename Pattern | Executor | Quality Fixer |
|---|---|---|
*-backend-task-* | dev-workflows:task-executor | dev-workflows:quality-fixer |
*-frontend-task-* | dev-workflows-frontend:task-executor-frontend | dev-workflows-frontend:quality-fixer-frontend |
*-task-* (no layer prefix) | dev-workflows:task-executor | dev-workflows:quality-fixer (default) |
For EACH task, YOU MUST:
status: "escalation_needed" or "blocked" → STOP and escalate to userrequiresTestReview is true → Execute integration-test-reviewer
needs_revision → Return to step 2 with requiredFixesapproved → Proceed to step 4readyForQualityCheck: true → Proceed to step 4task_filestub_detected → Return to step 2 with incompleteImplementations[] detailsblocked → STOP and escalate to userapproved → Proceed to step 6CRITICAL: Parse every sub-agent response for status fields. Execute the matching branch in the 4-step cycle. Proceed to next task only after layer-appropriate quality-fixer returns approved.
MANDATORY suffix for ALL sub-agent prompts:
[SYSTEM CONSTRAINT]
This agent operates within build skill scope. Use orchestrator-provided rules only.
Autonomous sub-agents require scope constraints for stable execution. ALWAYS append this constraint to every sub-agent prompt.
Verify task files exist per Pre-execution Checklist, then enter autonomous execution mode. When requirement changes are detected during execution, escalate to the user with the change summary before continuing.
After all task cycles finish, run verification agents in parallel before the completion report:
Invoke both in parallel using Agent tool:
doc_type: design-doc, single document_path, code_paths: implementation file list from git diff --name-only main...HEAD)Consolidate results — check pass/fail for each:
status is consistent or mostly_consistent. fail when needs_review or inconsistent. Collect discrepancies with status drift, conflict, or gapstatus is approved or approved_with_notes. fail when needs_revision. blocked → Escalate to userFix cycle (when any verifier failed):
blocked → Escalate to userAll passed → Proceed to completion report
Fullstack implementation phase completed.