feat: migrate all codex team skills from spawn_agents_on_csv to spawn_agent + wait_agent architecture

- Delete 21 old team skill directories using CSV-wave pipeline pattern (~100+ files)
- Delete old team-lifecycle (v3) and team-planex-v2
- Create generic team-worker.toml and team-supervisor.toml (replacing tlv4-specific TOMLs)
- Convert 19 team skills from Claude Code format (Agent/SendMessage/TaskCreate)
  to Codex format (spawn_agent/wait_agent/tasks.json/request_user_input)
- Update team-lifecycle-v4 to use generic agent types (team_worker/team_supervisor)
- Convert all coordinator role files: dispatch.md, monitor.md, role.md
- Convert all worker role files: remove run_in_background, fix Bash syntax
- Convert all specs/pipelines.md references
- Final state: 20 team skills, 217 .md files, zero Claude Code API residuals

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
catlog22
2026-03-24 16:54:48 +08:00
parent 54283e5dbb
commit 1e560ab8e8
334 changed files with 28996 additions and 35516 deletions

View File

@@ -0,0 +1,76 @@
# Pipeline Definitions
UI design pipeline modes and task registry.
## Pipeline Modes
| Mode | Description | Task Count |
|------|-------------|------------|
| component | Single component: research -> design -> audit -> build | 4 tasks |
| system | Design system: dual-track with 2 sync points | 7 tasks |
| full-system | Full design system + final integrated audit | 8 tasks |
## Component Pipeline Task Registry
| Task ID | Role | blockedBy | Description |
|---------|------|-----------|-------------|
| RESEARCH-001 | researcher | [] | Design system analysis, component inventory, accessibility baseline |
| DESIGN-001 | designer | [RESEARCH-001] | Design tokens + component spec with all 5 interactive states |
| AUDIT-001 | reviewer | [DESIGN-001] | 5-dimension audit: consistency, accessibility, completeness, quality, compliance |
| BUILD-001 | implementer | [AUDIT-001] | CSS custom properties + component code + ARIA + keyboard navigation |
## System Pipeline Task Registry
| Task ID | Role | blockedBy | Description |
|---------|------|-----------|-------------|
| RESEARCH-001 | researcher | [] | Design system analysis across all components |
| DESIGN-001 | designer | [RESEARCH-001] | Token system design |
| AUDIT-001 | reviewer | [DESIGN-001] | Token audit [Sync Point 1: QUALITY-001] |
| DESIGN-002 | designer | [AUDIT-001] | Component specification (parallel) |
| BUILD-001 | implementer | [AUDIT-001] | Token code implementation (parallel) |
| AUDIT-002 | reviewer | [DESIGN-002] | Component audit [Sync Point 2] |
| BUILD-002 | implementer | [AUDIT-002, BUILD-001] | Component code implementation |
## Full-System Pipeline Task Registry
Same as System pipeline, plus:
| Task ID | Role | blockedBy | Description |
|---------|------|-----------|-------------|
| AUDIT-003 | reviewer | [BUILD-002] | Final integrated audit (cross-cutting) |
## Checkpoints / Sync Points
| Checkpoint | Task | Condition | Action |
|------------|------|-----------|--------|
| QUALITY-001: Sync Point 1 | AUDIT-001 completes | Score >= 8, critical == 0 | Unblock DESIGN-002 + BUILD-001 (parallel) |
| QUALITY-001: GC Loop | AUDIT-* completes | Score < 8 or critical > 0 | Create DESIGN-fix task, new AUDIT task (max 2 rounds) |
## GC Loop Behavior
| Signal | Condition | Action |
|--------|-----------|--------|
| audit_passed | Score >= 8, critical == 0 | GC converged -> record sync_point -> unblock downstream |
| audit_result | Score 6-7, no critical | gc_rounds < max -> create DESIGN-fix task |
| fix_required | Score < 6 or critical > 0 | gc_rounds < max -> create DESIGN-fix task (CRITICAL) |
| Any | gc_rounds >= max | Escalate to user: accept / try one more / terminate |
## Parallel Spawn Rules
| Mode | After | Spawn Behavior |
|------|-------|----------------|
| component | Sequential | One task at a time |
| system | Sync Point 1 (AUDIT-001) | Spawn DESIGN-002 + BUILD-001 in parallel |
| system | AUDIT-002 | Spawn BUILD-002 |
| full-system | Sync Point 1 (AUDIT-001) | Spawn DESIGN-002 + BUILD-001 in parallel |
| full-system | BUILD-002 | Spawn AUDIT-003 |
## Output Artifacts
| Task | Output Path |
|------|-------------|
| RESEARCH-001 | <session>/research/*.json |
| DESIGN-001 | <session>/design/design-tokens.json + component-specs/*.md |
| AUDIT-* | <session>/audit/audit-<NNN>.md |
| BUILD-001 | <session>/build/token-files/* |
| BUILD-002 | <session>/build/component-files/* |

View File

@@ -0,0 +1,107 @@
{
"team_name": "uidesign",
"team_display_name": "UI Design",
"description": "UI design team with CP-9 Dual-Track for parallel design and implementation",
"version": "1.0.0",
"roles": {
"coordinator": {
"task_prefix": null,
"responsibility": "Scope assessment, dual-track orchestration, sync point management, GC loop control",
"message_types": ["task_unblocked", "sync_checkpoint", "fix_required", "error", "shutdown"]
},
"researcher": {
"task_prefix": "RESEARCH",
"responsibility": "Design system analysis, component inventory, accessibility baseline audit",
"message_types": ["research_ready", "research_progress", "error"]
},
"designer": {
"task_prefix": "DESIGN",
"responsibility": "Design token definition, component specifications, layout design",
"message_types": ["design_ready", "design_revision", "design_progress", "error"]
},
"reviewer": {
"task_prefix": "AUDIT",
"additional_prefixes": [],
"responsibility": "Design consistency audit, accessibility compliance, visual review",
"message_types": ["audit_result", "audit_passed", "fix_required", "error"]
},
"implementer": {
"task_prefix": "BUILD",
"responsibility": "Component code implementation, CSS generation, design token consumption",
"message_types": ["build_complete", "build_progress", "error"]
}
},
"pipelines": {
"component": {
"description": "Single component: research → design → audit → build",
"task_chain": ["RESEARCH-001", "DESIGN-001", "AUDIT-001", "BUILD-001"],
"complexity": "low"
},
"system": {
"description": "Design system with dual-track: design tokens → audit → parallel build+components → audit → build components",
"task_chain": [
"RESEARCH-001",
"DESIGN-001:tokens", "AUDIT-001",
"DESIGN-002:components || BUILD-001:tokens",
"AUDIT-002", "BUILD-002:components"
],
"sync_points": ["AUDIT-001", "AUDIT-002"],
"complexity": "medium"
},
"full-system": {
"description": "Complete design system with 3 audit checkpoints",
"task_chain": [
"RESEARCH-001",
"DESIGN-001:tokens", "AUDIT-001",
"DESIGN-002:components || BUILD-001:tokens",
"AUDIT-002",
"BUILD-002:components", "AUDIT-003"
],
"sync_points": ["AUDIT-001", "AUDIT-002", "AUDIT-003"],
"complexity": "high"
}
},
"innovation_patterns": {
"generator_critic": {
"generator": "designer",
"critic": "reviewer",
"max_rounds": 2,
"convergence": "audit.score >= 8 && audit.critical_count === 0",
"escalation": "Coordinator intervenes after max rounds"
},
"shared_memory": {
"file": "shared-memory.json",
"fields": {
"researcher": ["component_inventory", "accessibility_patterns"],
"designer": ["design_token_registry", "style_decisions"],
"reviewer": ["audit_history"],
"implementer": ["component_inventory"]
}
},
"dynamic_pipeline": {
"criteria": {
"component": "scope.component_count <= 1",
"system": "scope.component_count <= 5 && scope.has_token_system",
"full-system": "scope.component_count > 5 || scope.is_full_redesign"
}
},
"dual_track": {
"pattern": "CP-9",
"description": "Design and implementation proceed in parallel after sync checkpoints",
"sync_mechanism": "AUDIT tasks serve as sync points between tracks",
"fallback": "If dual-track fails, coordinator falls back to sequential execution"
}
},
"session_dirs": {
"base": ".workflow/.team/UDS-{slug}-{YYYY-MM-DD}/",
"research": "research/",
"design": "design/",
"audit": "audit/",
"build": "build/",
"messages": ".workflow/.team-msg/{team-name}/"
}
}