Agent Skill
2/7/2026

workflow-team

Workflow for Agent Teams autonomous parallel development. Provides team lead orchestration guide and teammate execution protocol. Covers file ownership, communication, and merge strategy.

O
onepunch
0GitHub Stars
1Views
npx skills add onepunch-tk/cc-test-notion-invoice-web

SKILL.md

Nameworkflow-team
DescriptionWorkflow for Agent Teams autonomous parallel development. Provides team lead orchestration guide and teammate execution protocol. Covers file ownership, communication, and merge strategy.

name: workflow-team description: | Workflow for Agent Teams autonomous parallel development. Provides team lead orchestration guide and teammate execution protocol. Covers file ownership, communication, and merge strategy. argument-hint: "[lead|teammate]"

Agent Teams Workflow

Autonomous parallel development workflow for Agent Teams. Invoke with: /workflow-team lead or /workflow-team teammate


For Team Lead (/workflow-team lead)

Phase 1: Plan

StepAction
1Enter PlanMode
2Read CLAUDE.md, docs/PROJECT-STRUCTURE.md, docs/ROADMAP.md
3Analyze task scope, identify required files and dependencies
4Break work into tasks with clear file ownership (no overlapping files)
5Create detailed step-by-step plan with task breakdown
6Exit PlanMode → wait for plan approval

After plan approval, create tasks via TaskCreate and spawn teammates immediately. No separate confirmation needed.

Phase 2: Execute (after user approval)

StepAction
1Switch to development branch, create a working branch for the team
2Spawn teammates with detailed prompts (see Spawn Example below)
3Use Delegate Mode (Shift+Tab) — do NOT implement yourself
4Monitor teammate progress, unblock as needed

Enable Plan Approval for complex/risky tasks. All teammates work on the same feature branch (file ownership prevents conflicts).

Spawn Example

Create an agent team with N teammates:
1. "{name}" — Read {task-file-path}. Own files: {file-list}.
2. "{name}" — Read {task-file-path}. Own files: {file-list}.
Use Opus for all teammates. Require plan approval.

Phase 3: Review & Merge (after all teammates complete)

StepAction
1Run the project's test command (see CLAUDE.md Commands) to verify integration
2Run code-reviewer sub-agent on all changed files
3Run e2e-tester sub-agent to validate user flows
4Read report in /docs/reports/code-review/ → fix ALL issues where status ≠ "complete"
5Merge working branch → development
6Update ROADMAP.md and PROJECT-STRUCTURE.md

Merge Strategy

main
 └── development
      └── {working-branch}  ← single branch, all teammates work here
           ├── teammate-A commits (owns: file-list-A)
           ├── teammate-B commits (owns: file-list-B)
           └── teammate-C commits (owns: file-list-C)

After all teammates done → Phase 3

Git Conventions

See workflow-commits.md


For Teammates (/workflow-team teammate)

Execution Steps

StepAction
1Read CLAUDE.md, docs/PROJECT-STRUCTURE.md, assigned task file
2Run unit-test-writer sub-agent (Red Phase). NEVER analyze patterns or write test code yourself — always delegate to the unit-test-writer subagent.
3Implement code to pass tests (Green Phase) → run the project's test command (see CLAUDE.md Commands)
4Run the project's coverage command (see CLAUDE.md Commands)
5Commit per workflow-commits.md
6Message lead: files changed, test results, remaining issues

Teammate Rules

  • ONLY modify files assigned to you
  • NEVER touch files owned by another teammate
  • Shared files (barrel index.ts, routes.ts): message lead before modifying
  • New files: create freely within your task scope
  • Do NOT create branches — work on the feature branch created by lead

Failure Recovery (Autonomous)

IF any step fails:
  1. Log to docs/reports/failures/{teammate-name}-{timestamp}.md
  2. Retry SAME approach (1 attempt)
  3. Retry DIFFERENT approach (1 attempt)
  4. After 3 failures:
     → Message lead: "Blocked on [issue]. Attempted [approaches]."
     → Pick up next available task
     → DO NOT STOP

Communication

EventAction
Task completeMessage lead with summary
Blocked by another taskMessage lead, pick up next task
Found issue in shared codeMessage lead (don't fix directly)
Need design decisionMessage lead with options + recommendation

Cost Notes

  • Use opus model for teammates
  • Teammates: NO code-reviewer — TDD cycle is the quality gate, lead handles all review in Phase 3
  • Lead runs code-reviewer + e2e-tester as the single review gate post-merge
  • Minimize sub-agent calls per teammate
  • Avoid broadcast messages — message lead directly
Skills Info
Original Name:workflow-teamAuthor:onepunch