pi-maestro-flow 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +124 -0
- package/agents/aggregator.md +27 -0
- package/agents/cli-explore-agent.md +188 -0
- package/agents/cross-role-reviewer.md +171 -0
- package/agents/delegate.md +19 -0
- package/agents/explorer.md +23 -0
- package/agents/impeccable-agent.md +99 -0
- package/agents/ralph-executor.md +81 -0
- package/agents/reference.md +24 -0
- package/agents/role-design-author.md +220 -0
- package/agents/team-supervisor.md +143 -0
- package/agents/team-worker.md +237 -0
- package/agents/ui-design-agent.md +270 -0
- package/agents/workflow-analyzer.md +116 -0
- package/agents/workflow-codebase-mapper.md +77 -0
- package/agents/workflow-collab-planner.md +147 -0
- package/agents/workflow-debugger.md +104 -0
- package/agents/workflow-executor.md +133 -0
- package/agents/workflow-external-researcher.md +86 -0
- package/agents/workflow-integration-checker.md +83 -0
- package/agents/workflow-nyquist-auditor.md +85 -0
- package/agents/workflow-phase-researcher.md +85 -0
- package/agents/workflow-plan-checker.md +100 -0
- package/agents/workflow-planner.md +200 -0
- package/agents/workflow-project-researcher.md +74 -0
- package/agents/workflow-research-synthesizer.md +70 -0
- package/agents/workflow-reviewer.md +82 -0
- package/agents/workflow-roadmapper.md +81 -0
- package/agents/workflow-verifier.md +120 -0
- package/package.json +58 -0
- package/skills/codify-to-knowhow/SKILL.md +167 -0
- package/skills/delegation-check/SKILL.md +297 -0
- package/skills/domain-add/SKILL.md +75 -0
- package/skills/insight-challenge/SKILL.md +226 -0
- package/skills/learn-decompose/SKILL.md +124 -0
- package/skills/learn-follow/SKILL.md +163 -0
- package/skills/learn-investigate/SKILL.md +160 -0
- package/skills/learn-second-opinion/SKILL.md +128 -0
- package/skills/maestro/SKILL.md +239 -0
- package/skills/maestro-amend/SKILL.md +169 -0
- package/skills/maestro-analyze/SKILL.md +173 -0
- package/skills/maestro-blueprint/SKILL.md +159 -0
- package/skills/maestro-brainstorm/SKILL.md +193 -0
- package/skills/maestro-collab/SKILL.md +181 -0
- package/skills/maestro-companion/SKILL.md +536 -0
- package/skills/maestro-composer/SKILL.md +192 -0
- package/skills/maestro-execute/SKILL.md +193 -0
- package/skills/maestro-fork/SKILL.md +104 -0
- package/skills/maestro-grill/SKILL.md +151 -0
- package/skills/maestro-guard/SKILL.md +124 -0
- package/skills/maestro-help/SKILL.md +328 -0
- package/skills/maestro-impeccable/SKILL.md +302 -0
- package/skills/maestro-init/SKILL.md +151 -0
- package/skills/maestro-merge/SKILL.md +90 -0
- package/skills/maestro-milestone-audit/SKILL.md +117 -0
- package/skills/maestro-milestone-complete/SKILL.md +133 -0
- package/skills/maestro-milestone-release/SKILL.md +131 -0
- package/skills/maestro-next/SKILL.md +269 -0
- package/skills/maestro-overlay/SKILL.md +203 -0
- package/skills/maestro-plan/SKILL.md +194 -0
- package/skills/maestro-player/SKILL.md +184 -0
- package/skills/maestro-quick/SKILL.md +117 -0
- package/skills/maestro-ralph/SKILL.md +905 -0
- package/skills/maestro-ralph-cli/SKILL.md +976 -0
- package/skills/maestro-ralph-cli-execute/SKILL.md +229 -0
- package/skills/maestro-ralph-execute/SKILL.md +409 -0
- package/skills/maestro-ralph-v2/SKILL.md +1198 -0
- package/skills/maestro-roadmap/SKILL.md +157 -0
- package/skills/maestro-swarm-workflow/SKILL.md +272 -0
- package/skills/maestro-tools-execute/SKILL.md +143 -0
- package/skills/maestro-tools-register/SKILL.md +192 -0
- package/skills/maestro-ui-codify/SKILL.md +127 -0
- package/skills/maestro-universal-workflow/SKILL.md +622 -0
- package/skills/maestro-update/SKILL.md +156 -0
- package/skills/manage-codebase-rebuild/SKILL.md +111 -0
- package/skills/manage-drift-realign/SKILL.md +159 -0
- package/skills/manage-harvest/SKILL.md +121 -0
- package/skills/manage-issue/SKILL.md +88 -0
- package/skills/manage-issue-discover/SKILL.md +104 -0
- package/skills/manage-kg-extractors/SKILL.md +147 -0
- package/skills/manage-knowhow/SKILL.md +102 -0
- package/skills/manage-knowhow-capture/SKILL.md +109 -0
- package/skills/manage-knowledge-audit/SKILL.md +147 -0
- package/skills/manage-status/SKILL.md +80 -0
- package/skills/manage-wiki/SKILL.md +104 -0
- package/skills/odyssey-debug/SKILL.md +344 -0
- package/skills/odyssey-improve/SKILL.md +423 -0
- package/skills/odyssey-planex/SKILL.md +542 -0
- package/skills/odyssey-review-test-fix/SKILL.md +392 -0
- package/skills/odyssey-ui/SKILL.md +388 -0
- package/skills/prompt-generator/SKILL.md +470 -0
- package/skills/quality-auto-test/SKILL.md +168 -0
- package/skills/quality-debug/SKILL.md +176 -0
- package/skills/quality-refactor/SKILL.md +108 -0
- package/skills/quality-retrospective/SKILL.md +134 -0
- package/skills/quality-review/SKILL.md +169 -0
- package/skills/quality-sync/SKILL.md +90 -0
- package/skills/quality-test/SKILL.md +183 -0
- package/skills/scholar-anti-ai-writing/SKILL.md +173 -0
- package/skills/scholar-anti-ai-writing/references/patterns-chinese.md +242 -0
- package/skills/scholar-anti-ai-writing/references/patterns-english.md +242 -0
- package/skills/scholar-citation-verify/SKILL.md +166 -0
- package/skills/scholar-citation-verify/references/api-usage.md +372 -0
- package/skills/scholar-citation-verify/references/common-errors.md +384 -0
- package/skills/scholar-citation-verify/references/verification-rules.md +399 -0
- package/skills/scholar-experiment/SKILL.md +321 -0
- package/skills/scholar-ideation/SKILL.md +288 -0
- package/skills/scholar-latex-organizer/SKILL.md +186 -0
- package/skills/scholar-publish/SKILL.md +220 -0
- package/skills/scholar-rebuttal-pro/README.md +313 -0
- package/skills/scholar-rebuttal-pro/SKILL.md +511 -0
- package/skills/scholar-review/SKILL.md +227 -0
- package/skills/scholar-thesis-docx/README.md +111 -0
- package/skills/scholar-thesis-docx/README_EN.md +108 -0
- package/skills/scholar-thesis-docx/SKILL.md +212 -0
- package/skills/scholar-thesis-docx/references/failure-patterns-and-quality-gates.md +178 -0
- package/skills/scholar-thesis-docx/references/figure-and-code-rules.md +33 -0
- package/skills/scholar-thesis-docx/references/paper-format-workflow.md +68 -0
- package/skills/scholar-thesis-docx/references/script-usage.md +157 -0
- package/skills/scholar-thesis-docx/scripts/audit_docx_ooxml.py +429 -0
- package/skills/scholar-thesis-docx/scripts/check_word_com.ps1 +50 -0
- package/skills/scholar-thesis-docx/scripts/export_word_pdf.ps1 +62 -0
- package/skills/scholar-thesis-docx/scripts/normalize_word_styles.ps1 +498 -0
- package/skills/scholar-thesis-docx/scripts/render_mermaid_figure.ps1 +148 -0
- package/skills/scholar-writing/SKILL.md +296 -0
- package/skills/security-audit/SKILL.md +244 -0
- package/skills/skill-generator/SKILL.md +472 -0
- package/skills/skill-iter-tune/SKILL.md +382 -0
- package/skills/skill-simplify/SKILL.md +63 -0
- package/skills/skill-tuning/SKILL.md +174 -0
- package/skills/spec-add/SKILL.md +105 -0
- package/skills/spec-load/SKILL.md +98 -0
- package/skills/spec-remove/SKILL.md +74 -0
- package/skills/spec-setup/SKILL.md +75 -0
- package/skills/team-adversarial-swarm/SKILL.md +233 -0
- package/skills/team-adversarial-swarm/scripts/__pycache__/pheromone.cpython-313.pyc +0 -0
- package/skills/team-adversarial-swarm/scripts/__pycache__/scoring.cpython-313.pyc +0 -0
- package/skills/team-adversarial-swarm/scripts/aco.py +473 -0
- package/skills/team-adversarial-swarm/scripts/pheromone.py +144 -0
- package/skills/team-adversarial-swarm/scripts/scoring.py +92 -0
- package/skills/team-adversarial-swarm/scripts/test_aco.py +475 -0
- package/skills/team-arch-opt/SKILL.md +158 -0
- package/skills/team-brainstorm/SKILL.md +171 -0
- package/skills/team-coordinate/SKILL.md +266 -0
- package/skills/team-designer/SKILL.md +160 -0
- package/skills/team-executor/SKILL.md +189 -0
- package/skills/team-frontend/SKILL.md +136 -0
- package/skills/team-frontend-debug/SKILL.md +198 -0
- package/skills/team-interactive-craft/SKILL.md +141 -0
- package/skills/team-issue/SKILL.md +171 -0
- package/skills/team-lifecycle-v4/SKILL.md +209 -0
- package/skills/team-motion-design/SKILL.md +142 -0
- package/skills/team-perf-opt/SKILL.md +175 -0
- package/skills/team-planex/SKILL.md +137 -0
- package/skills/team-quality-assurance/SKILL.md +147 -0
- package/skills/team-review/SKILL.md +147 -0
- package/skills/team-roadmap-dev/SKILL.md +169 -0
- package/skills/team-swarm/SKILL.md +178 -0
- package/skills/team-swarm/scripts/aco.py +473 -0
- package/skills/team-swarm/scripts/pheromone.py +144 -0
- package/skills/team-swarm/scripts/scoring.py +92 -0
- package/skills/team-swarm/scripts/test_aco.py +475 -0
- package/skills/team-tech-debt/SKILL.md +128 -0
- package/skills/team-testing/SKILL.md +143 -0
- package/skills/team-ui-polish/SKILL.md +141 -0
- package/skills/team-uidesign/SKILL.md +144 -0
- package/skills/team-ultra-analyze/SKILL.md +173 -0
- package/skills/team-ux-improve/SKILL.md +151 -0
- package/skills/team-visual-a11y/SKILL.md +156 -0
- package/skills/workflow-skill-designer/SKILL.md +496 -0
- package/src/extension/index.ts +222 -0
- package/src/extension/schemas.ts +131 -0
- package/src/providers/cli-tools-loader.ts +74 -0
- package/src/providers/provider-registry.ts +130 -0
- package/src/tools/delegate.ts +85 -0
- package/src/tools/explore.ts +134 -0
- package/src/tools/moa.ts +213 -0
- package/src/tools/status.ts +99 -0
- package/src/tools/wait.ts +166 -0
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: team-designer
|
|
3
|
+
description: "Meta-skill for generating team skills following the v4 architecture pattern. Produces complete skill packages with SKILL.md router, coordinator, worker roles, specs, and templates. Triggers on \"team-designer\", \"design team\"."
|
|
4
|
+
allowed-tools: Agent AskUserQuestion Read Write Edit Bash Glob Grep mcp__maestro__team_msg
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Team Skill Designer
|
|
8
|
+
|
|
9
|
+
Generate complete team skills following the team-lifecycle-v4 architecture: SKILL.md as universal router, coordinator with beat model, worker roles with optional commands/, shared specs, and templates.
|
|
10
|
+
|
|
11
|
+
## Architecture Overview
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
┌─────────────────────────────────────────────────────────────────┐
|
|
15
|
+
│ Team Skill Designer (SKILL.md) │
|
|
16
|
+
│ → Orchestrator: gather requirements, generate files, validate │
|
|
17
|
+
└───────────────────────────┬──────────────────────────────────────┘
|
|
18
|
+
│
|
|
19
|
+
┌───────────┬───────────┼───────────┬───────────┐
|
|
20
|
+
↓ ↓ ↓ ↓
|
|
21
|
+
┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐
|
|
22
|
+
│ Phase 1 │ │ Phase 2 │ │ Phase 3 │ │ Phase 4 │
|
|
23
|
+
│ Require │ │ Scaffold│ │ Content │ │ Valid │
|
|
24
|
+
│ Analysis│ │ Gen │ │ Gen │ │ & Report│
|
|
25
|
+
└─────────┘ └─────────┘ └─────────┘ └─────────┘
|
|
26
|
+
↓ ↓ ↓ ↓
|
|
27
|
+
teamConfig SKILL.md roles/ Validated
|
|
28
|
+
+ dirs specs/ skill pkg
|
|
29
|
+
templates/
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Key Design Principles
|
|
33
|
+
|
|
34
|
+
1. **v4 Architecture Compliance**: Generated skills follow team-lifecycle-v4 pattern — SKILL.md = pure router, beat model = coordinator-only, unified structure (roles/ + specs/ + templates/)
|
|
35
|
+
2. **Golden Sample Reference**: Uses `team-lifecycle-v4` as reference implementation at `~ or <project>/.claude/skills/team-lifecycle-v4/`
|
|
36
|
+
3. **Intelligent Commands Distribution**: Auto-determines which roles need `commands/` (2+ commands) vs inline logic (1 command)
|
|
37
|
+
4. **team-worker Compatibility**: Role.md files include correct YAML frontmatter for team-worker agent parsing
|
|
38
|
+
|
|
39
|
+
## Pre-load (before execution)
|
|
40
|
+
|
|
41
|
+
1. **Codebase docs**: If `.workflow/codebase/ARCHITECTURE.md` exists, read for module boundaries
|
|
42
|
+
2. **Specs (coding)**: `maestro load --type spec --category coding` — load coding constraints as shared context
|
|
43
|
+
3. **Wiki knowledge**: `maestro search "skill design team architecture" --json` — top 5 entries as prior context
|
|
44
|
+
4. All optional — proceed without if unavailable
|
|
45
|
+
|
|
46
|
+
## Execution Flow
|
|
47
|
+
|
|
48
|
+
```
|
|
49
|
+
Input Parsing:
|
|
50
|
+
└─ Parse user requirements (skill name, roles, pipelines, domain)
|
|
51
|
+
|
|
52
|
+
Phase 1: Requirements Analysis
|
|
53
|
+
└─ Ref: phases/01-requirements-analysis.md
|
|
54
|
+
├─ Tasks: Detect input → Gather roles → Define pipelines → Build teamConfig
|
|
55
|
+
└─ Output: teamConfig
|
|
56
|
+
|
|
57
|
+
Phase 2: Scaffold Generation
|
|
58
|
+
└─ Ref: phases/02-scaffold-generation.md
|
|
59
|
+
├─ Tasks: Create dirs → Generate SKILL.md router → Verify
|
|
60
|
+
└─ Output: SKILL.md + directory structure
|
|
61
|
+
|
|
62
|
+
Phase 3: Content Generation
|
|
63
|
+
└─ Ref: phases/03-content-generation.md
|
|
64
|
+
├─ Tasks: Coordinator → Workers → Specs → Templates
|
|
65
|
+
└─ Output: roles/**/*.md, specs/*.md, templates/*.md
|
|
66
|
+
|
|
67
|
+
Phase 4: Validation
|
|
68
|
+
└─ Ref: phases/04-validation.md
|
|
69
|
+
└─ Output: Validation report (PASS/REVIEW/FAIL)
|
|
70
|
+
|
|
71
|
+
Return:
|
|
72
|
+
└─ Summary with skill location and usage instructions
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
**Phase Reference Documents** (read on-demand when phase executes):
|
|
76
|
+
|
|
77
|
+
| Phase | Document | Purpose |
|
|
78
|
+
|-------|----------|---------|
|
|
79
|
+
| 1 | [phases/01-requirements-analysis.md](phases/01-requirements-analysis.md) | Gather team skill requirements, build teamConfig |
|
|
80
|
+
| 2 | [phases/02-scaffold-generation.md](phases/02-scaffold-generation.md) | Generate SKILL.md router and directory structure |
|
|
81
|
+
| 3 | [phases/03-content-generation.md](phases/03-content-generation.md) | Generate coordinator, workers, specs, templates |
|
|
82
|
+
| 4 | [phases/04-validation.md](phases/04-validation.md) | Validate structure, references, and consistency |
|
|
83
|
+
|
|
84
|
+
## Golden Sample
|
|
85
|
+
|
|
86
|
+
Generated skills follow the architecture of `~ or <project>/.claude/skills/team-lifecycle-v4/`:
|
|
87
|
+
|
|
88
|
+
```
|
|
89
|
+
.claude/skills/<skill-name>/
|
|
90
|
+
├── SKILL.md # Universal router (all roles read)
|
|
91
|
+
├── roles/
|
|
92
|
+
│ ├── coordinator/
|
|
93
|
+
│ │ ├── role.md # Orchestrator + beat model + entry router
|
|
94
|
+
│ │ └── commands/
|
|
95
|
+
│ │ ├── analyze.md # Task analysis
|
|
96
|
+
│ │ ├── dispatch.md # Task chain creation
|
|
97
|
+
│ │ └── monitor.md # Beat control + callbacks
|
|
98
|
+
│ ├── <inline-worker>/
|
|
99
|
+
│ │ └── role.md # Phase 2-4 embedded (simple role)
|
|
100
|
+
│ └── <command-worker>/
|
|
101
|
+
│ ├── role.md # Phase 2-4 dispatcher
|
|
102
|
+
│ └── commands/
|
|
103
|
+
│ ├── <cmd-1>.md
|
|
104
|
+
│ └── <cmd-2>.md
|
|
105
|
+
├── specs/
|
|
106
|
+
│ ├── pipelines.md # Pipeline definitions + task registry
|
|
107
|
+
│ └── <domain-specs>.md # Domain-specific specifications
|
|
108
|
+
└── templates/ # Optional document templates
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
## Data Flow
|
|
112
|
+
|
|
113
|
+
```
|
|
114
|
+
User Input (skill name, roles, pipelines)
|
|
115
|
+
↓
|
|
116
|
+
Phase 1: Requirements Analysis
|
|
117
|
+
↓ Output: teamConfig
|
|
118
|
+
↓
|
|
119
|
+
Phase 2: Scaffold Generation
|
|
120
|
+
↓ Input: teamConfig
|
|
121
|
+
↓ Output: SKILL.md + skillDir
|
|
122
|
+
↓
|
|
123
|
+
Phase 3: Content Generation
|
|
124
|
+
↓ Input: teamConfig + skillDir
|
|
125
|
+
↓ Output: roles/, specs/, templates/
|
|
126
|
+
↓
|
|
127
|
+
Phase 4: Validation
|
|
128
|
+
↓ Input: teamConfig + all files
|
|
129
|
+
↓ Output: validation report
|
|
130
|
+
↓
|
|
131
|
+
Return summary to user
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
## Core Rules
|
|
135
|
+
|
|
136
|
+
1. **Start Immediately**: First action is Phase 1 execution
|
|
137
|
+
2. **Parse Every Output**: Extract teamConfig from Phase 1 for subsequent phases
|
|
138
|
+
3. **Auto-Continue**: After each phase, automatically execute next phase
|
|
139
|
+
4. **Progressive Phase Loading**: Read phase docs ONLY when that phase is about to execute
|
|
140
|
+
5. **Golden Sample Fidelity**: Generated files must match team-lifecycle-v4 patterns
|
|
141
|
+
6. **DO NOT STOP**: Continuous workflow until all 4 phases complete
|
|
142
|
+
|
|
143
|
+
## Input Processing
|
|
144
|
+
|
|
145
|
+
Convert user input to structured format:
|
|
146
|
+
|
|
147
|
+
```
|
|
148
|
+
SKILL_NAME: [kebab-case name, e.g., team-code-review]
|
|
149
|
+
DOMAIN: [what this team does, e.g., "multi-stage code review with security analysis"]
|
|
150
|
+
ROLES: [worker roles beyond coordinator, e.g., "analyst, reviewer, security-expert"]
|
|
151
|
+
PIPELINES: [pipeline types and flows, e.g., "review-only: SCAN-001 → REVIEW-001 → REPORT-001"]
|
|
152
|
+
SESSION_PREFIX: [3-4 char, e.g., TCR]
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
## Error Handling
|
|
156
|
+
|
|
157
|
+
- **Invalid role name**: Must be lowercase alphanumeric with hyphens, max 20 chars
|
|
158
|
+
- **Circular dependencies**: Detect and report in pipeline validation
|
|
159
|
+
- **Missing golden sample**: Fall back to embedded templates in phase files
|
|
160
|
+
- **Directory conflict**: Warn if skill directory already exists, ask user to confirm overwrite
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: team-executor
|
|
3
|
+
description: "Lightweight session execution skill. Resumes existing team-coordinate sessions for pure execution via team-worker agents. No analysis, no role generation -- only loads and executes. Session path required. Triggers on \"Team Executor\"."
|
|
4
|
+
allowed-tools: TeamCreate TeamDelete SendMessage TaskCreate TaskUpdate TaskList TaskGet Agent AskUserQuestion Read Write Edit Bash Glob Grep mcp__maestro__team_msg
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Team Executor
|
|
8
|
+
|
|
9
|
+
Lightweight session execution skill: load session -> reconcile state -> spawn team-worker agents -> execute -> deliver. **No analysis, no role generation** -- only executes existing team-coordinate sessions.
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## Architecture
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
+---------------------------------------------------+
|
|
16
|
+
| Skill(skill="team-executor") |
|
|
17
|
+
| args="--session=<path>" [REQUIRED] |
|
|
18
|
+
+-------------------+-------------------------------+
|
|
19
|
+
| Session Validation
|
|
20
|
+
+---- --session valid? ----+
|
|
21
|
+
| NO | YES
|
|
22
|
+
v v
|
|
23
|
+
Error immediately Orchestration Mode
|
|
24
|
+
(no session) -> executor
|
|
25
|
+
|
|
|
26
|
+
+-------+-------+-------+
|
|
27
|
+
v v v v
|
|
28
|
+
[team-worker agents loaded from session role-specs]
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## Session Validation (BEFORE routing)
|
|
34
|
+
|
|
35
|
+
**CRITICAL**: Session validation MUST occur before any execution.
|
|
36
|
+
|
|
37
|
+
### Parse Arguments
|
|
38
|
+
|
|
39
|
+
Extract from `$ARGUMENTS`:
|
|
40
|
+
- `--session=<path>`: Path to team-coordinate session folder (REQUIRED)
|
|
41
|
+
|
|
42
|
+
### Validation Steps
|
|
43
|
+
|
|
44
|
+
1. **Check `--session` provided**:
|
|
45
|
+
- If missing -> **ERROR**: "Session required. Usage: --session=<path-to-TC-folder>"
|
|
46
|
+
|
|
47
|
+
2. **Validate session structure** (see specs/session-schema.md):
|
|
48
|
+
- Directory exists at path
|
|
49
|
+
- `team-session.json` exists and valid JSON
|
|
50
|
+
- `task-analysis.json` exists and valid JSON
|
|
51
|
+
- `role-specs/` directory has at least one `.md` file
|
|
52
|
+
- Each role in `team-session.json#roles` has corresponding `.md` file in `role-specs/`
|
|
53
|
+
|
|
54
|
+
3. **Validation failure**:
|
|
55
|
+
- Report specific missing component
|
|
56
|
+
- Suggest re-running team-coordinate or checking path
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## Role Router
|
|
61
|
+
|
|
62
|
+
This skill is **executor-only**. Workers do NOT invoke this skill -- they are spawned as `team-worker` agents directly.
|
|
63
|
+
|
|
64
|
+
### Dispatch Logic
|
|
65
|
+
|
|
66
|
+
| Scenario | Action |
|
|
67
|
+
|----------|--------|
|
|
68
|
+
| No `--session` | **ERROR** immediately |
|
|
69
|
+
| `--session` invalid | **ERROR** with specific reason |
|
|
70
|
+
| Valid session | Orchestration Mode -> executor |
|
|
71
|
+
|
|
72
|
+
### Orchestration Mode
|
|
73
|
+
|
|
74
|
+
**Invocation**: `Skill(skill="team-executor", args="--session=<session-folder>")`
|
|
75
|
+
|
|
76
|
+
**Lifecycle**:
|
|
77
|
+
```
|
|
78
|
+
Validate session
|
|
79
|
+
-> executor Phase 0: Reconcile state (reset interrupted, detect orphans)
|
|
80
|
+
-> executor Phase 1: Spawn first batch team-worker agents (background) -> STOP
|
|
81
|
+
-> Worker executes -> SendMessage callback -> executor advances next step
|
|
82
|
+
-> Loop until pipeline complete -> Phase 2 report + completion action
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
**User Commands** (wake paused executor):
|
|
86
|
+
|
|
87
|
+
| Command | Action |
|
|
88
|
+
|---------|--------|
|
|
89
|
+
| `check` / `status` | Output execution status graph, no advancement |
|
|
90
|
+
| `resume` / `continue` | Check worker states, advance next step |
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
## Role Registry
|
|
95
|
+
|
|
96
|
+
| Role | File | Type |
|
|
97
|
+
|------|------|------|
|
|
98
|
+
| executor | [roles/executor/role.md](roles/executor/role.md) | built-in orchestrator |
|
|
99
|
+
| (dynamic) | `<session>/role-specs/<role-name>.md` | loaded from session |
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
## Executor Spawn Template
|
|
104
|
+
|
|
105
|
+
### v2 Worker Spawn (all roles)
|
|
106
|
+
|
|
107
|
+
When executor spawns workers, use `team-worker` agent with role-spec path:
|
|
108
|
+
|
|
109
|
+
```
|
|
110
|
+
Agent({
|
|
111
|
+
subagent_type: "team-worker",
|
|
112
|
+
description: "Spawn <role> worker",
|
|
113
|
+
team_name: <team-name>,
|
|
114
|
+
name: "<role>",
|
|
115
|
+
run_in_background: true,
|
|
116
|
+
prompt: `## Role Assignment
|
|
117
|
+
role: <role>
|
|
118
|
+
role_spec: <session-folder>/role-specs/<role>.md
|
|
119
|
+
session: <session-folder>
|
|
120
|
+
session_id: <session-id>
|
|
121
|
+
team_name: <team-name>
|
|
122
|
+
requirement: <task-description>
|
|
123
|
+
inner_loop: <true|false>
|
|
124
|
+
|
|
125
|
+
## Progress Milestones
|
|
126
|
+
session_id: <session-id>
|
|
127
|
+
Report progress via team_msg at natural phase boundaries (context loaded -> core work done -> verification).
|
|
128
|
+
Report blockers immediately via team_msg type="blocker".
|
|
129
|
+
Report completion via team_msg type="task_complete" after final SendMessage.
|
|
130
|
+
|
|
131
|
+
Read role_spec file to load Phase 2-4 domain instructions.`
|
|
132
|
+
})
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
## Completion Action
|
|
138
|
+
|
|
139
|
+
When pipeline completes (all tasks done), executor presents an interactive choice:
|
|
140
|
+
|
|
141
|
+
```
|
|
142
|
+
AskUserQuestion({
|
|
143
|
+
questions: [{
|
|
144
|
+
question: "Team pipeline complete. What would you like to do?",
|
|
145
|
+
header: "Completion",
|
|
146
|
+
multiSelect: false,
|
|
147
|
+
options: [
|
|
148
|
+
{ label: "Archive & Clean (Recommended)", description: "Archive session, clean up team" },
|
|
149
|
+
{ label: "Keep Active", description: "Keep session for follow-up work" },
|
|
150
|
+
{ label: "Export Results", description: "Export deliverables to target directory, then clean" }
|
|
151
|
+
]
|
|
152
|
+
}]
|
|
153
|
+
})
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
### Action Handlers
|
|
157
|
+
|
|
158
|
+
| Choice | Steps |
|
|
159
|
+
|--------|-------|
|
|
160
|
+
| Archive & Clean | Update session status="completed" -> TeamDelete -> output final summary with artifact paths |
|
|
161
|
+
| Keep Active | Update session status="paused" -> output: "Resume with: Skill(skill='team-executor', args='--session=<path>')" |
|
|
162
|
+
| Export Results | AskUserQuestion(target path) -> copy artifacts to target -> Archive & Clean |
|
|
163
|
+
|
|
164
|
+
---
|
|
165
|
+
|
|
166
|
+
## Integration with team-coordinate
|
|
167
|
+
|
|
168
|
+
| Scenario | Skill |
|
|
169
|
+
|----------|-------|
|
|
170
|
+
| New task, no session | team-coordinate |
|
|
171
|
+
| Existing session, resume execution | **team-executor** |
|
|
172
|
+
| Session needs new roles | team-coordinate (with resume) |
|
|
173
|
+
| Pure execution, no analysis | **team-executor** |
|
|
174
|
+
|
|
175
|
+
---
|
|
176
|
+
|
|
177
|
+
## Error Handling
|
|
178
|
+
|
|
179
|
+
| Scenario | Resolution |
|
|
180
|
+
|----------|------------|
|
|
181
|
+
| No --session provided | ERROR immediately with usage message |
|
|
182
|
+
| Session directory not found | ERROR with path, suggest checking path |
|
|
183
|
+
| team-session.json missing | ERROR, session incomplete, suggest re-run team-coordinate |
|
|
184
|
+
| task-analysis.json missing | ERROR, session incomplete, suggest re-run team-coordinate |
|
|
185
|
+
| No role-specs in session | ERROR, session incomplete, suggest re-run team-coordinate |
|
|
186
|
+
| Role-spec file not found | ERROR with expected path |
|
|
187
|
+
| capability_gap reported | Warn only, cannot generate new role-specs |
|
|
188
|
+
| Fast-advance spawns wrong task | Executor reconciles on next callback |
|
|
189
|
+
| Completion action fails | Default to Keep Active, log warning |
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: team-frontend
|
|
3
|
+
description: "Unified team skill for frontend development. Pure router — all roles read this file. Beat model is coordinator-only in monitor.md. Built-in ui-ux-pro-max design intelligence. Triggers on \"team frontend\"."
|
|
4
|
+
allowed-tools: Agent TaskCreate TaskList TaskGet TaskUpdate TeamCreate TeamDelete SendMessage AskUserQuestion Read Write Edit Bash Glob Grep WebFetch WebSearch mcp__maestro__team_msg
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Team Frontend Development
|
|
8
|
+
|
|
9
|
+
Unified team skill: frontend development with built-in ui-ux-pro-max design intelligence. Covers requirement analysis, design system generation, frontend implementation, and quality assurance. Built on **team-worker agent architecture** — all worker roles share a single agent definition with role-specific Phase 2-4 loaded from role.md specs.
|
|
10
|
+
|
|
11
|
+
## Architecture
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
Skill(skill="team-frontend", args="task description")
|
|
15
|
+
|
|
|
16
|
+
SKILL.md (this file) = Router
|
|
17
|
+
|
|
|
18
|
+
+--------------+--------------+
|
|
19
|
+
| |
|
|
20
|
+
no --role flag --role <name>
|
|
21
|
+
| |
|
|
22
|
+
Coordinator Worker
|
|
23
|
+
roles/coordinator/role.md roles/<name>/role.md
|
|
24
|
+
|
|
|
25
|
+
+-- analyze -> dispatch -> spawn workers -> STOP
|
|
26
|
+
|
|
|
27
|
+
+-------+-------+-------+
|
|
28
|
+
v v v v
|
|
29
|
+
[analyst] [architect] [developer] [qa]
|
|
30
|
+
(team-worker agents, each loads roles/<role>/role.md)
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Role Registry
|
|
34
|
+
|
|
35
|
+
| Role | Path | Prefix | Inner Loop |
|
|
36
|
+
|------|------|--------|------------|
|
|
37
|
+
| coordinator | [roles/coordinator/role.md](roles/coordinator/role.md) | — | — |
|
|
38
|
+
| analyst | [roles/analyst/role.md](roles/analyst/role.md) | ANALYZE-* | false |
|
|
39
|
+
| architect | [roles/architect/role.md](roles/architect/role.md) | ARCH-* | false |
|
|
40
|
+
| developer | [roles/developer/role.md](roles/developer/role.md) | DEV-* | true |
|
|
41
|
+
| qa | [roles/qa/role.md](roles/qa/role.md) | QA-* | false |
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
## Pre-load (coordinator, before dispatch)
|
|
45
|
+
|
|
46
|
+
1. **Codebase docs**: If `.workflow/codebase/ARCHITECTURE.md` exists, read for module boundaries
|
|
47
|
+
2. **Specs (coding)**: `maestro load --type spec --category coding` — load coding constraints as shared context
|
|
48
|
+
3. **Specs (ui)**: `maestro load --type spec --category ui` — load ui constraints as shared context
|
|
49
|
+
4. **Wiki knowledge**: `maestro search "frontend component UI" --json` — top 5 entries as prior context
|
|
50
|
+
5. All optional — proceed without if unavailable
|
|
51
|
+
## Role Router
|
|
52
|
+
|
|
53
|
+
Parse `$ARGUMENTS`:
|
|
54
|
+
- Has `--role <name>` → Read `roles/<name>/role.md`, execute Phase 2-4
|
|
55
|
+
- No `--role` → `@roles/coordinator/role.md`, execute entry router
|
|
56
|
+
|
|
57
|
+
## Shared Constants
|
|
58
|
+
|
|
59
|
+
- **Session prefix**: `FE`
|
|
60
|
+
- **Session path**: `.workflow/.team/FE-<slug>-<date>/`
|
|
61
|
+
- **CLI tools**: `maestro delegate --mode analysis` (read-only), `maestro delegate --mode write` (modifications)
|
|
62
|
+
- **Message bus**: `mcp__maestro__team_msg(session_id=<session-id>, ...)`
|
|
63
|
+
|
|
64
|
+
## Worker Spawn Template
|
|
65
|
+
|
|
66
|
+
Coordinator spawns workers using this template:
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
Agent({
|
|
70
|
+
subagent_type: "team-worker",
|
|
71
|
+
description: "Spawn <role> worker",
|
|
72
|
+
team_name: "frontend",
|
|
73
|
+
name: "<role>",
|
|
74
|
+
run_in_background: true,
|
|
75
|
+
prompt: `## Role Assignment
|
|
76
|
+
role: <role>
|
|
77
|
+
role_spec: <skill_root>/roles/<role>/role.md
|
|
78
|
+
session: <session-folder>
|
|
79
|
+
session_id: <session-id>
|
|
80
|
+
team_name: frontend
|
|
81
|
+
requirement: <task-description>
|
|
82
|
+
inner_loop: <true|false>
|
|
83
|
+
|
|
84
|
+
## Progress Milestones
|
|
85
|
+
session_id: <session-id>
|
|
86
|
+
Report progress via team_msg at natural phase boundaries (context loaded -> core work done -> verification).
|
|
87
|
+
Report blockers immediately via team_msg type="blocker".
|
|
88
|
+
Report completion via team_msg type="task_complete" after final SendMessage.
|
|
89
|
+
|
|
90
|
+
Read role_spec file (@<skill_root>/roles/<role>/role.md) to load Phase 2-4 domain instructions.
|
|
91
|
+
Execute built-in Phase 1 (task discovery) -> role Phase 2-4 -> built-in Phase 5 (report).`
|
|
92
|
+
})
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## User Commands
|
|
96
|
+
|
|
97
|
+
| Command | Action |
|
|
98
|
+
|---------|--------|
|
|
99
|
+
| `check` / `status` | View execution status graph |
|
|
100
|
+
| `resume` / `continue` | Advance to next step |
|
|
101
|
+
|
|
102
|
+
## Session Directory
|
|
103
|
+
|
|
104
|
+
```
|
|
105
|
+
.workflow/.team/FE-<slug>-<YYYY-MM-DD>/
|
|
106
|
+
├── .msg/
|
|
107
|
+
│ ├── messages.jsonl # Message bus log
|
|
108
|
+
│ └── meta.json # Session state + cross-role state
|
|
109
|
+
├── task-analysis.json # Coordinator analyze output
|
|
110
|
+
├── wisdom/ # Cross-task knowledge
|
|
111
|
+
├── analysis/ # Analyst output
|
|
112
|
+
│ ├── design-intelligence.json
|
|
113
|
+
│ └── requirements.md
|
|
114
|
+
├── architecture/ # Architect output
|
|
115
|
+
│ ├── design-tokens.json
|
|
116
|
+
│ ├── component-specs/
|
|
117
|
+
│ └── project-structure.md
|
|
118
|
+
├── qa/ # QA output
|
|
119
|
+
│ └── audit-<NNN>.md
|
|
120
|
+
└── build/ # Developer output
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
## Specs Reference
|
|
124
|
+
|
|
125
|
+
- [specs/pipelines.md](specs/pipelines.md) — Pipeline definitions and task registry
|
|
126
|
+
|
|
127
|
+
## Error Handling
|
|
128
|
+
|
|
129
|
+
| Scenario | Resolution |
|
|
130
|
+
|----------|------------|
|
|
131
|
+
| Unknown command | Error with available command list |
|
|
132
|
+
| Role not found | Error with role registry |
|
|
133
|
+
| QA score < 6 over 2 GC rounds | Escalate to user |
|
|
134
|
+
| ui-ux-pro-max unavailable | Degrade to LLM general design knowledge |
|
|
135
|
+
| Worker no response | Report waiting task, suggest user `resume` |
|
|
136
|
+
| Pipeline deadlock | Check blockedBy chain, report blocking point |
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: team-frontend-debug
|
|
3
|
+
description: "Frontend debugging team using Chrome DevTools MCP. Dual-mode — feature-list testing or bug-report debugging. Triggers on \"team-frontend-debug\", \"frontend debug\"."
|
|
4
|
+
allowed-tools: TeamCreate TeamDelete SendMessage TaskCreate TaskUpdate TaskList TaskGet Agent AskUserQuestion Read Write Edit Bash Glob Grep mcp__maestro__team_msg mcp__chrome-devtools__*
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Frontend Debug Team
|
|
8
|
+
|
|
9
|
+
Dual-mode frontend debugging: feature-list testing or bug-report debugging, powered by Chrome DevTools MCP.
|
|
10
|
+
|
|
11
|
+
## Architecture
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
Skill(skill="team-frontend-debug", args="feature list or bug description")
|
|
15
|
+
|
|
|
16
|
+
SKILL.md (this file) = Router
|
|
17
|
+
|
|
|
18
|
+
+--------------+--------------+
|
|
19
|
+
| |
|
|
20
|
+
no --role flag --role <name>
|
|
21
|
+
| |
|
|
22
|
+
Coordinator Worker
|
|
23
|
+
roles/coordinator/role.md roles/<name>/role.md
|
|
24
|
+
|
|
|
25
|
+
+-- analyze input → select pipeline → dispatch → spawn → STOP
|
|
26
|
+
|
|
|
27
|
+
┌──────────────────────────┼──────────────────────┐
|
|
28
|
+
v v v
|
|
29
|
+
[test-pipeline] [debug-pipeline] [shared]
|
|
30
|
+
tester(DevTools) reproducer(DevTools) analyzer
|
|
31
|
+
fixer
|
|
32
|
+
verifier
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Pipeline Modes
|
|
36
|
+
|
|
37
|
+
| Input | Pipeline | Flow |
|
|
38
|
+
|-------|----------|------|
|
|
39
|
+
| Feature list / 功能清单 | `test-pipeline` | TEST → ANALYZE → FIX → VERIFY |
|
|
40
|
+
| Bug report / 错误描述 | `debug-pipeline` | REPRODUCE → ANALYZE → FIX → VERIFY |
|
|
41
|
+
|
|
42
|
+
## Role Registry
|
|
43
|
+
|
|
44
|
+
| Role | Path | Prefix | Inner Loop |
|
|
45
|
+
|------|------|--------|------------|
|
|
46
|
+
| coordinator | [roles/coordinator/role.md](roles/coordinator/role.md) | — | — |
|
|
47
|
+
| tester | [roles/tester/role.md](roles/tester/role.md) | TEST-* | true |
|
|
48
|
+
| reproducer | [roles/reproducer/role.md](roles/reproducer/role.md) | REPRODUCE-* | false |
|
|
49
|
+
| analyzer | [roles/analyzer/role.md](roles/analyzer/role.md) | ANALYZE-* | false |
|
|
50
|
+
| fixer | [roles/fixer/role.md](roles/fixer/role.md) | FIX-* | true |
|
|
51
|
+
| verifier | [roles/verifier/role.md](roles/verifier/role.md) | VERIFY-* | false |
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
## Pre-load (coordinator, before dispatch)
|
|
55
|
+
|
|
56
|
+
1. **Codebase docs**: If `.workflow/codebase/ARCHITECTURE.md` exists, read for module boundaries
|
|
57
|
+
2. **Specs (debug)**: `maestro load --type spec --category debug` — load debug constraints as shared context
|
|
58
|
+
3. **Specs (ui)**: `maestro load --type spec --category ui` — load ui constraints as shared context
|
|
59
|
+
4. **Wiki knowledge**: `maestro search "frontend debug devtools" --json` — top 5 entries as prior context
|
|
60
|
+
5. All optional — proceed without if unavailable
|
|
61
|
+
## Role Router
|
|
62
|
+
|
|
63
|
+
Parse `$ARGUMENTS`:
|
|
64
|
+
- Has `--role <name>` → Read `roles/<name>/role.md`, execute Phase 2-4
|
|
65
|
+
- No `--role` → `@roles/coordinator/role.md`, execute entry router
|
|
66
|
+
|
|
67
|
+
## Shared Constants
|
|
68
|
+
|
|
69
|
+
- **Session prefix**: `TFD`
|
|
70
|
+
- **Session path**: `.workflow/.team/TFD-<slug>-<date>/`
|
|
71
|
+
- **CLI tools**: `maestro delegate --mode analysis` (read-only), `maestro delegate --mode write` (modifications)
|
|
72
|
+
- **Message bus**: `mcp__maestro__team_msg(session_id=<session-id>, ...)`
|
|
73
|
+
|
|
74
|
+
## Workspace Resolution
|
|
75
|
+
|
|
76
|
+
Coordinator MUST resolve paths at Phase 2 before TeamCreate:
|
|
77
|
+
|
|
78
|
+
1. Run `Bash({ command: "pwd" })` → capture `project_root` (absolute path)
|
|
79
|
+
2. `skill_root = <project_root>/.claude/skills/team-frontend-debug`
|
|
80
|
+
3. Store in `team-session.json`:
|
|
81
|
+
```json
|
|
82
|
+
{ "project_root": "/abs/path/to/project", "skill_root": "/abs/path/to/skill" }
|
|
83
|
+
```
|
|
84
|
+
4. All worker `role_spec` values MUST use `<skill_root>/roles/<role>/role.md` (absolute)
|
|
85
|
+
|
|
86
|
+
This ensures workers spawned with `run_in_background: true` always receive an absolute, resolvable path regardless of their working directory.
|
|
87
|
+
|
|
88
|
+
## Chrome DevTools MCP Tools
|
|
89
|
+
|
|
90
|
+
All browser inspection operations use Chrome DevTools MCP. Reproducer and Verifier are primary consumers.
|
|
91
|
+
|
|
92
|
+
| Tool | Purpose |
|
|
93
|
+
|------|---------|
|
|
94
|
+
| `mcp__chrome-devtools__navigate_page` | Navigate to target URL |
|
|
95
|
+
| `mcp__chrome-devtools__take_screenshot` | Capture visual state |
|
|
96
|
+
| `mcp__chrome-devtools__take_snapshot` | Capture DOM/a11y tree |
|
|
97
|
+
| `mcp__chrome-devtools__list_console_messages` | Read console logs |
|
|
98
|
+
| `mcp__chrome-devtools__get_console_message` | Get specific console message |
|
|
99
|
+
| `mcp__chrome-devtools__list_network_requests` | Monitor network activity |
|
|
100
|
+
| `mcp__chrome-devtools__get_network_request` | Inspect request/response detail |
|
|
101
|
+
| `mcp__chrome-devtools__performance_start_trace` | Start performance recording |
|
|
102
|
+
| `mcp__chrome-devtools__performance_stop_trace` | Stop and analyze trace |
|
|
103
|
+
| `mcp__chrome-devtools__click` | Simulate user click |
|
|
104
|
+
| `mcp__chrome-devtools__fill` | Fill form inputs |
|
|
105
|
+
| `mcp__chrome-devtools__hover` | Hover over elements |
|
|
106
|
+
| `mcp__chrome-devtools__evaluate_script` | Execute JavaScript in page |
|
|
107
|
+
| `mcp__chrome-devtools__wait_for` | Wait for element/text |
|
|
108
|
+
| `mcp__chrome-devtools__list_pages` | List open browser tabs |
|
|
109
|
+
| `mcp__chrome-devtools__select_page` | Switch active tab |
|
|
110
|
+
|
|
111
|
+
## Worker Spawn Template
|
|
112
|
+
|
|
113
|
+
Coordinator spawns workers using this template:
|
|
114
|
+
|
|
115
|
+
```
|
|
116
|
+
Agent({
|
|
117
|
+
subagent_type: "team-worker",
|
|
118
|
+
description: "Spawn <role> worker",
|
|
119
|
+
team_name: <team-name>,
|
|
120
|
+
name: "<role>",
|
|
121
|
+
run_in_background: true,
|
|
122
|
+
prompt: `## Role Assignment
|
|
123
|
+
role: <role>
|
|
124
|
+
role_spec: <skill_root>/roles/<role>/role.md
|
|
125
|
+
session: <session-folder>
|
|
126
|
+
session_id: <session-id>
|
|
127
|
+
team_name: <team-name>
|
|
128
|
+
requirement: <task-description>
|
|
129
|
+
inner_loop: <true|false>
|
|
130
|
+
|
|
131
|
+
## Progress Milestones
|
|
132
|
+
session_id: <session-id>
|
|
133
|
+
Report progress via team_msg at natural phase boundaries (context loaded -> core work done -> verification).
|
|
134
|
+
Report blockers immediately via team_msg type="blocker".
|
|
135
|
+
Report completion via team_msg type="task_complete" after final SendMessage.
|
|
136
|
+
|
|
137
|
+
Read role_spec file (@<skill_root>/roles/<role>/role.md) to load Phase 2-4 domain instructions.
|
|
138
|
+
Execute built-in Phase 1 (task discovery) -> role Phase 2-4 -> built-in Phase 5 (report).`
|
|
139
|
+
})
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
## User Commands
|
|
143
|
+
|
|
144
|
+
| Command | Action |
|
|
145
|
+
|---------|--------|
|
|
146
|
+
| `check` / `status` | View execution status graph |
|
|
147
|
+
| `resume` / `continue` | Advance to next step |
|
|
148
|
+
| `revise <TASK-ID> [feedback]` | Revise specific task |
|
|
149
|
+
| `feedback <text>` | Inject feedback for revision |
|
|
150
|
+
| `retry <TASK-ID>` | Re-run a failed task |
|
|
151
|
+
|
|
152
|
+
## Completion Action
|
|
153
|
+
|
|
154
|
+
When pipeline completes, coordinator presents:
|
|
155
|
+
|
|
156
|
+
```
|
|
157
|
+
AskUserQuestion({
|
|
158
|
+
questions: [{
|
|
159
|
+
question: "Pipeline complete. What would you like to do?",
|
|
160
|
+
header: "Completion",
|
|
161
|
+
multiSelect: false,
|
|
162
|
+
options: [
|
|
163
|
+
{ label: "Archive & Clean (Recommended)", description: "Archive session, clean up team" },
|
|
164
|
+
{ label: "Keep Active", description: "Keep session for follow-up debugging" },
|
|
165
|
+
{ label: "Export Results", description: "Export debug report and patches" }
|
|
166
|
+
]
|
|
167
|
+
}]
|
|
168
|
+
})
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
## Specs Reference
|
|
172
|
+
|
|
173
|
+
- [specs/pipelines.md](specs/pipelines.md) — Pipeline definitions and task registry
|
|
174
|
+
- [specs/debug-tools.md](specs/debug-tools.md) — Chrome DevTools MCP usage patterns and evidence collection
|
|
175
|
+
|
|
176
|
+
## Session Directory
|
|
177
|
+
|
|
178
|
+
```
|
|
179
|
+
.workflow/.team/TFD-<slug>-<date>/
|
|
180
|
+
├── team-session.json # Session state + role registry
|
|
181
|
+
├── evidence/ # Screenshots, snapshots, network logs
|
|
182
|
+
├── artifacts/ # Test reports, RCA reports, patches, verification reports
|
|
183
|
+
├── wisdom/ # Cross-task debug knowledge
|
|
184
|
+
└── .msg/ # Team message bus
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
## Error Handling
|
|
188
|
+
|
|
189
|
+
| Scenario | Resolution |
|
|
190
|
+
|----------|------------|
|
|
191
|
+
| All features pass test | Report success, pipeline completes without ANALYZE/FIX/VERIFY |
|
|
192
|
+
| Bug not reproducible | Reproducer reports failure, coordinator asks user for more details |
|
|
193
|
+
| Browser not available | Report error, suggest manual reproduction steps |
|
|
194
|
+
| Analysis inconclusive | Analyzer requests more evidence via iteration loop |
|
|
195
|
+
| Fix introduces regression | Verifier reports fail, coordinator dispatches re-fix |
|
|
196
|
+
| No issues found in test | Skip downstream tasks, report all-pass |
|
|
197
|
+
| Unknown command | Error with available command list |
|
|
198
|
+
| Role not found | Error with role registry |
|