maestro-flow 0.4.9 → 0.4.11
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/.agents/agents/cli-explore-agent.md +189 -0
- package/.agents/agents/conceptual-planning-agent.md +247 -0
- package/.agents/agents/impeccable-agent.md +101 -0
- package/.agents/agents/team-supervisor.md +145 -0
- package/.agents/agents/team-worker.md +239 -0
- package/.agents/agents/ui-design-agent.md +289 -0
- package/.agents/agents/workflow-analyzer.md +117 -0
- package/.agents/agents/workflow-codebase-mapper.md +79 -0
- package/.agents/agents/workflow-collab-planner.md +145 -0
- package/.agents/agents/workflow-debugger.md +105 -0
- package/.agents/agents/workflow-executor.md +134 -0
- package/.agents/agents/workflow-external-researcher.md +88 -0
- package/.agents/agents/workflow-integration-checker.md +85 -0
- package/.agents/agents/workflow-nyquist-auditor.md +87 -0
- package/.agents/agents/workflow-phase-researcher.md +87 -0
- package/.agents/agents/workflow-plan-checker.md +92 -0
- package/.agents/agents/workflow-planner.md +197 -0
- package/.agents/agents/workflow-project-researcher.md +76 -0
- package/.agents/agents/workflow-research-synthesizer.md +72 -0
- package/.agents/agents/workflow-reviewer.md +84 -0
- package/.agents/agents/workflow-roadmapper.md +83 -0
- package/.agents/agents/workflow-verifier.md +122 -0
- package/.agents/skills/codify-to-knowhow/SKILL.md +169 -0
- package/.agents/skills/codify-to-knowhow/phases/01-load-manifest.md +101 -0
- package/.agents/skills/codify-to-knowhow/phases/02-generate-knowhow.md +97 -0
- package/.agents/skills/codify-to-knowhow/phases/03-generate-specs.md +92 -0
- package/.agents/skills/codify-to-knowhow/phases/04-index-verify.md +119 -0
- package/.agents/skills/learn-decompose/SKILL.md +118 -0
- package/.agents/skills/learn-follow/SKILL.md +129 -0
- package/.agents/skills/learn-investigate/SKILL.md +154 -0
- package/.agents/skills/learn-retro/SKILL.md +159 -0
- package/.agents/skills/learn-second-opinion/SKILL.md +124 -0
- package/.agents/skills/maestro/SKILL.md +224 -0
- package/.agents/skills/maestro-amend/SKILL.md +165 -0
- package/.agents/skills/maestro-analyze/SKILL.md +135 -0
- package/.agents/skills/maestro-brainstorm/SKILL.md +118 -0
- package/.agents/skills/maestro-collab/SKILL.md +174 -0
- package/.agents/skills/maestro-composer/SKILL.md +181 -0
- package/.agents/skills/maestro-execute/SKILL.md +133 -0
- package/.agents/skills/maestro-fork/SKILL.md +88 -0
- package/.agents/skills/maestro-guard/SKILL.md +103 -0
- package/.agents/skills/maestro-help/SKILL.md +266 -0
- package/.agents/skills/maestro-help/index/catalog.json +184 -0
- package/.agents/skills/maestro-help/phases/01-parse-intent.md +122 -0
- package/.agents/skills/maestro-help/phases/02-search-present.md +181 -0
- package/.agents/skills/maestro-help/phases/03-workflow-guide.md +186 -0
- package/.agents/skills/maestro-impeccable/SKILL.md +251 -0
- package/.agents/skills/maestro-init/SKILL.md +80 -0
- package/.agents/skills/maestro-learn/SKILL.md +142 -0
- package/.agents/skills/maestro-merge/SKILL.md +66 -0
- package/.agents/skills/maestro-milestone-audit/SKILL.md +70 -0
- package/.agents/skills/maestro-milestone-complete/SKILL.md +77 -0
- package/.agents/skills/maestro-milestone-release/SKILL.md +98 -0
- package/.agents/skills/maestro-overlay/SKILL.md +180 -0
- package/.agents/skills/maestro-plan/SKILL.md +172 -0
- package/.agents/skills/maestro-player/SKILL.md +177 -0
- package/.agents/skills/maestro-quick/SKILL.md +67 -0
- package/.agents/skills/maestro-ralph/SKILL.md +685 -0
- package/.agents/skills/maestro-ralph-execute/SKILL.md +259 -0
- package/.agents/skills/maestro-roadmap/SKILL.md +170 -0
- package/.agents/skills/maestro-tools-execute/SKILL.md +119 -0
- package/.agents/skills/maestro-tools-register/SKILL.md +159 -0
- package/.agents/skills/maestro-ui-codify/SKILL.md +82 -0
- package/.agents/skills/maestro-update/SKILL.md +178 -0
- package/.agents/skills/maestro-verify/SKILL.md +111 -0
- package/.agents/skills/manage-codebase-rebuild/SKILL.md +77 -0
- package/.agents/skills/manage-codebase-refresh/SKILL.md +59 -0
- package/.agents/skills/manage-harvest/SKILL.md +96 -0
- package/.agents/skills/manage-issue/SKILL.md +75 -0
- package/.agents/skills/manage-issue-discover/SKILL.md +83 -0
- package/.agents/skills/manage-knowhow/SKILL.md +79 -0
- package/.agents/skills/manage-knowhow-capture/SKILL.md +81 -0
- package/.agents/skills/manage-learn/SKILL.md +67 -0
- package/.agents/skills/manage-status/SKILL.md +54 -0
- package/.agents/skills/manage-wiki/SKILL.md +64 -0
- package/.agents/skills/quality-auto-test/SKILL.md +138 -0
- package/.agents/skills/quality-debug/SKILL.md +122 -0
- package/.agents/skills/quality-refactor/SKILL.md +69 -0
- package/.agents/skills/quality-retrospective/SKILL.md +79 -0
- package/.agents/skills/quality-review/SKILL.md +130 -0
- package/.agents/skills/quality-sync/SKILL.md +53 -0
- package/.agents/skills/quality-test/SKILL.md +119 -0
- package/.agents/skills/security-audit/SKILL.md +157 -0
- package/.agents/skills/skill-iter-tune/SKILL.md +384 -0
- package/.agents/skills/skill-iter-tune/phases/01-setup.md +144 -0
- package/.agents/skills/skill-iter-tune/phases/02-execute.md +292 -0
- package/.agents/skills/skill-iter-tune/phases/03-evaluate.md +312 -0
- package/.agents/skills/skill-iter-tune/phases/04-improve.md +186 -0
- package/.agents/skills/skill-iter-tune/phases/05-report.md +166 -0
- package/.agents/skills/skill-iter-tune/specs/evaluation-criteria.md +63 -0
- package/.agents/skills/skill-iter-tune/templates/eval-prompt.md +134 -0
- package/.agents/skills/skill-iter-tune/templates/execute-prompt.md +97 -0
- package/.agents/skills/spec-add/SKILL.md +70 -0
- package/.agents/skills/spec-load/SKILL.md +73 -0
- package/.agents/skills/spec-remove/SKILL.md +53 -0
- package/.agents/skills/spec-setup/SKILL.md +50 -0
- package/.agents/skills/team-coordinate/SKILL.md +268 -0
- package/.agents/skills/team-coordinate/roles/coordinator/commands/analyze-task.md +247 -0
- package/.agents/skills/team-coordinate/roles/coordinator/commands/dispatch.md +131 -0
- package/.agents/skills/team-coordinate/roles/coordinator/commands/monitor.md +358 -0
- package/.agents/skills/team-coordinate/roles/coordinator/role.md +365 -0
- package/.agents/skills/team-coordinate/specs/knowledge-transfer.md +111 -0
- package/.agents/skills/team-coordinate/specs/pipelines.md +97 -0
- package/.agents/skills/team-coordinate/specs/quality-gates.md +112 -0
- package/.agents/skills/team-coordinate/specs/role-spec-template.md +198 -0
- package/.agents/skills/team-executor/SKILL.md +191 -0
- package/.agents/skills/team-executor/roles/executor/commands/monitor.md +239 -0
- package/.agents/skills/team-executor/roles/executor/role.md +171 -0
- package/.agents/skills/team-executor/specs/session-schema.md +264 -0
- package/.agents/skills/team-lifecycle-v4/SKILL.md +211 -0
- package/.agents/skills/team-lifecycle-v4/roles/analyst/role.md +96 -0
- package/.agents/skills/team-lifecycle-v4/roles/coordinator/commands/analyze.md +56 -0
- package/.agents/skills/team-lifecycle-v4/roles/coordinator/commands/dispatch.md +56 -0
- package/.agents/skills/team-lifecycle-v4/roles/coordinator/commands/monitor.md +206 -0
- package/.agents/skills/team-lifecycle-v4/roles/coordinator/role.md +130 -0
- package/.agents/skills/team-lifecycle-v4/roles/executor/commands/fix.md +35 -0
- package/.agents/skills/team-lifecycle-v4/roles/executor/commands/implement.md +62 -0
- package/.agents/skills/team-lifecycle-v4/roles/executor/role.md +69 -0
- package/.agents/skills/team-lifecycle-v4/roles/planner/role.md +87 -0
- package/.agents/skills/team-lifecycle-v4/roles/reviewer/commands/review-code.md +34 -0
- package/.agents/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +44 -0
- package/.agents/skills/team-lifecycle-v4/roles/reviewer/role.md +71 -0
- package/.agents/skills/team-lifecycle-v4/roles/supervisor/role.md +194 -0
- package/.agents/skills/team-lifecycle-v4/roles/tester/role.md +89 -0
- package/.agents/skills/team-lifecycle-v4/roles/writer/role.md +97 -0
- package/.agents/skills/team-lifecycle-v4/specs/knowledge-transfer.md +114 -0
- package/.agents/skills/team-lifecycle-v4/specs/pipelines.md +140 -0
- package/.agents/skills/team-lifecycle-v4/specs/quality-gates.md +130 -0
- package/.agents/skills/team-lifecycle-v4/templates/architecture.md +254 -0
- package/.agents/skills/team-lifecycle-v4/templates/epics.md +196 -0
- package/.agents/skills/team-lifecycle-v4/templates/product-brief.md +133 -0
- package/.agents/skills/team-lifecycle-v4/templates/requirements.md +224 -0
- package/.agents/skills/team-quality-assurance/SKILL.md +149 -0
- package/.agents/skills/team-quality-assurance/roles/analyst/role.md +90 -0
- package/.agents/skills/team-quality-assurance/roles/coordinator/commands/analyze.md +72 -0
- package/.agents/skills/team-quality-assurance/roles/coordinator/commands/dispatch.md +111 -0
- package/.agents/skills/team-quality-assurance/roles/coordinator/commands/monitor.md +250 -0
- package/.agents/skills/team-quality-assurance/roles/coordinator/role.md +143 -0
- package/.agents/skills/team-quality-assurance/roles/executor/role.md +68 -0
- package/.agents/skills/team-quality-assurance/roles/generator/role.md +70 -0
- package/.agents/skills/team-quality-assurance/roles/scout/role.md +77 -0
- package/.agents/skills/team-quality-assurance/roles/strategist/role.md +73 -0
- package/.agents/skills/team-quality-assurance/specs/pipelines.md +115 -0
- package/.agents/skills/team-quality-assurance/specs/team-config.json +131 -0
- package/.agents/skills/team-review/SKILL.md +149 -0
- package/.agents/skills/team-review/roles/coordinator/commands/analyze.md +71 -0
- package/.agents/skills/team-review/roles/coordinator/commands/dispatch.md +91 -0
- package/.agents/skills/team-review/roles/coordinator/commands/monitor.md +224 -0
- package/.agents/skills/team-review/roles/coordinator/role.md +132 -0
- package/.agents/skills/team-review/roles/fixer/role.md +78 -0
- package/.agents/skills/team-review/roles/reviewer/role.md +70 -0
- package/.agents/skills/team-review/roles/scanner/role.md +81 -0
- package/.agents/skills/team-review/specs/dimensions.md +82 -0
- package/.agents/skills/team-review/specs/finding-schema.json +82 -0
- package/.agents/skills/team-review/specs/pipelines.md +102 -0
- package/.agents/skills/team-review/specs/team-config.json +27 -0
- package/.agents/skills/team-tech-debt/SKILL.md +130 -0
- package/.agents/skills/team-tech-debt/roles/assessor/role.md +79 -0
- package/.agents/skills/team-tech-debt/roles/coordinator/commands/analyze.md +47 -0
- package/.agents/skills/team-tech-debt/roles/coordinator/commands/dispatch.md +156 -0
- package/.agents/skills/team-tech-debt/roles/coordinator/commands/monitor.md +209 -0
- package/.agents/skills/team-tech-debt/roles/coordinator/role.md +123 -0
- package/.agents/skills/team-tech-debt/roles/executor/role.md +78 -0
- package/.agents/skills/team-tech-debt/roles/planner/role.md +71 -0
- package/.agents/skills/team-tech-debt/roles/scanner/role.md +92 -0
- package/.agents/skills/team-tech-debt/roles/validator/role.md +80 -0
- package/.agents/skills/team-tech-debt/specs/pipelines.md +47 -0
- package/.agents/skills/team-tech-debt/specs/team-config.json +129 -0
- package/.agents/skills/team-testing/SKILL.md +145 -0
- package/.agents/skills/team-testing/roles/analyst/role.md +105 -0
- package/.agents/skills/team-testing/roles/coordinator/commands/analyze.md +70 -0
- package/.agents/skills/team-testing/roles/coordinator/commands/dispatch.md +108 -0
- package/.agents/skills/team-testing/roles/coordinator/commands/monitor.md +257 -0
- package/.agents/skills/team-testing/roles/coordinator/role.md +134 -0
- package/.agents/skills/team-testing/roles/executor/role.md +101 -0
- package/.agents/skills/team-testing/roles/generator/role.md +100 -0
- package/.agents/skills/team-testing/roles/strategist/role.md +85 -0
- package/.agents/skills/team-testing/specs/pipelines.md +101 -0
- package/.agents/skills/team-testing/specs/team-config.json +93 -0
- package/.agents/skills/wiki-connect/SKILL.md +64 -0
- package/.agents/skills/wiki-digest/SKILL.md +70 -0
- package/.agents/skills/workflow-skill-designer/SKILL.md +498 -0
- package/.agents/skills/workflow-skill-designer/phases/01-requirements-analysis.md +356 -0
- package/.agents/skills/workflow-skill-designer/phases/02-orchestrator-design.md +444 -0
- package/.agents/skills/workflow-skill-designer/phases/03-phase-design.md +458 -0
- package/.agents/skills/workflow-skill-designer/phases/04-validation.md +471 -0
- package/.agy/agents/cli-explore-agent.md +186 -0
- package/.agy/agents/conceptual-planning-agent.md +244 -0
- package/.agy/agents/impeccable-agent.md +97 -0
- package/.agy/agents/team-supervisor.md +142 -0
- package/.agy/agents/team-worker.md +236 -0
- package/.agy/agents/ui-design-agent.md +286 -0
- package/.agy/agents/workflow-analyzer.md +114 -0
- package/.agy/agents/workflow-codebase-mapper.md +76 -0
- package/.agy/agents/workflow-collab-planner.md +142 -0
- package/.agy/agents/workflow-debugger.md +102 -0
- package/.agy/agents/workflow-executor.md +131 -0
- package/.agy/agents/workflow-external-researcher.md +86 -0
- package/.agy/agents/workflow-integration-checker.md +82 -0
- package/.agy/agents/workflow-nyquist-auditor.md +84 -0
- package/.agy/agents/workflow-phase-researcher.md +84 -0
- package/.agy/agents/workflow-plan-checker.md +89 -0
- package/.agy/agents/workflow-planner.md +194 -0
- package/.agy/agents/workflow-project-researcher.md +73 -0
- package/.agy/agents/workflow-research-synthesizer.md +70 -0
- package/.agy/agents/workflow-reviewer.md +81 -0
- package/.agy/agents/workflow-roadmapper.md +81 -0
- package/.agy/agents/workflow-verifier.md +119 -0
- package/.agy/skills/codify-to-knowhow/SKILL.md +172 -0
- package/.agy/skills/codify-to-knowhow/phases/01-load-manifest.md +101 -0
- package/.agy/skills/codify-to-knowhow/phases/02-generate-knowhow.md +97 -0
- package/.agy/skills/codify-to-knowhow/phases/03-generate-specs.md +92 -0
- package/.agy/skills/codify-to-knowhow/phases/04-index-verify.md +119 -0
- package/.agy/skills/learn-decompose/SKILL.md +118 -0
- package/.agy/skills/learn-follow/SKILL.md +129 -0
- package/.agy/skills/learn-investigate/SKILL.md +154 -0
- package/.agy/skills/learn-retro/SKILL.md +159 -0
- package/.agy/skills/learn-second-opinion/SKILL.md +124 -0
- package/.agy/skills/maestro/SKILL.md +223 -0
- package/.agy/skills/maestro-amend/SKILL.md +162 -0
- package/.agy/skills/maestro-analyze/SKILL.md +135 -0
- package/.agy/skills/maestro-brainstorm/SKILL.md +118 -0
- package/.agy/skills/maestro-collab/SKILL.md +174 -0
- package/.agy/skills/maestro-composer/SKILL.md +180 -0
- package/.agy/skills/maestro-execute/SKILL.md +133 -0
- package/.agy/skills/maestro-fork/SKILL.md +88 -0
- package/.agy/skills/maestro-guard/SKILL.md +101 -0
- package/.agy/skills/maestro-help/SKILL.md +267 -0
- package/.agy/skills/maestro-help/index/catalog.json +184 -0
- package/.agy/skills/maestro-help/phases/01-parse-intent.md +122 -0
- package/.agy/skills/maestro-help/phases/02-search-present.md +181 -0
- package/.agy/skills/maestro-help/phases/03-workflow-guide.md +186 -0
- package/.agy/skills/maestro-impeccable/SKILL.md +250 -0
- package/.agy/skills/maestro-init/SKILL.md +80 -0
- package/.agy/skills/maestro-learn/SKILL.md +142 -0
- package/.agy/skills/maestro-merge/SKILL.md +66 -0
- package/.agy/skills/maestro-milestone-audit/SKILL.md +70 -0
- package/.agy/skills/maestro-milestone-complete/SKILL.md +77 -0
- package/.agy/skills/maestro-milestone-release/SKILL.md +98 -0
- package/.agy/skills/maestro-overlay/SKILL.md +177 -0
- package/.agy/skills/maestro-plan/SKILL.md +172 -0
- package/.agy/skills/maestro-player/SKILL.md +176 -0
- package/.agy/skills/maestro-quick/SKILL.md +67 -0
- package/.agy/skills/maestro-ralph/SKILL.md +681 -0
- package/.agy/skills/maestro-ralph-execute/SKILL.md +255 -0
- package/.agy/skills/maestro-roadmap/SKILL.md +170 -0
- package/.agy/skills/maestro-tools-execute/SKILL.md +119 -0
- package/.agy/skills/maestro-tools-register/SKILL.md +159 -0
- package/.agy/skills/maestro-ui-codify/SKILL.md +81 -0
- package/.agy/skills/maestro-update/SKILL.md +175 -0
- package/.agy/skills/maestro-verify/SKILL.md +111 -0
- package/.agy/skills/manage-codebase-rebuild/SKILL.md +77 -0
- package/.agy/skills/manage-codebase-refresh/SKILL.md +59 -0
- package/.agy/skills/manage-harvest/SKILL.md +96 -0
- package/.agy/skills/manage-issue/SKILL.md +72 -0
- package/.agy/skills/manage-issue-discover/SKILL.md +83 -0
- package/.agy/skills/manage-knowhow/SKILL.md +76 -0
- package/.agy/skills/manage-knowhow-capture/SKILL.md +78 -0
- package/.agy/skills/manage-learn/SKILL.md +64 -0
- package/.agy/skills/manage-status/SKILL.md +51 -0
- package/.agy/skills/manage-wiki/SKILL.md +61 -0
- package/.agy/skills/quality-auto-test/SKILL.md +135 -0
- package/.agy/skills/quality-debug/SKILL.md +122 -0
- package/.agy/skills/quality-refactor/SKILL.md +69 -0
- package/.agy/skills/quality-retrospective/SKILL.md +79 -0
- package/.agy/skills/quality-review/SKILL.md +130 -0
- package/.agy/skills/quality-sync/SKILL.md +53 -0
- package/.agy/skills/quality-test/SKILL.md +119 -0
- package/.agy/skills/security-audit/SKILL.md +157 -0
- package/.agy/skills/skill-iter-tune/SKILL.md +381 -0
- package/.agy/skills/skill-iter-tune/phases/01-setup.md +144 -0
- package/.agy/skills/skill-iter-tune/phases/02-execute.md +292 -0
- package/.agy/skills/skill-iter-tune/phases/03-evaluate.md +312 -0
- package/.agy/skills/skill-iter-tune/phases/04-improve.md +198 -0
- package/.agy/skills/skill-iter-tune/phases/05-report.md +166 -0
- package/.agy/skills/skill-iter-tune/specs/evaluation-criteria.md +63 -0
- package/.agy/skills/skill-iter-tune/templates/eval-prompt.md +134 -0
- package/.agy/skills/skill-iter-tune/templates/execute-prompt.md +97 -0
- package/.agy/skills/spec-add/SKILL.md +67 -0
- package/.agy/skills/spec-load/SKILL.md +70 -0
- package/.agy/skills/spec-remove/SKILL.md +50 -0
- package/.agy/skills/spec-setup/SKILL.md +47 -0
- package/.agy/skills/team-coordinate/SKILL.md +267 -0
- package/.agy/skills/team-coordinate/roles/coordinator/commands/analyze-task.md +247 -0
- package/.agy/skills/team-coordinate/roles/coordinator/commands/dispatch.md +131 -0
- package/.agy/skills/team-coordinate/roles/coordinator/commands/monitor.md +348 -0
- package/.agy/skills/team-coordinate/roles/coordinator/role.md +362 -0
- package/.agy/skills/team-coordinate/specs/knowledge-transfer.md +111 -0
- package/.agy/skills/team-coordinate/specs/pipelines.md +97 -0
- package/.agy/skills/team-coordinate/specs/quality-gates.md +112 -0
- package/.agy/skills/team-coordinate/specs/role-spec-template.md +198 -0
- package/.agy/skills/team-executor/SKILL.md +180 -0
- package/.agy/skills/team-executor/roles/executor/commands/monitor.md +235 -0
- package/.agy/skills/team-executor/roles/executor/role.md +171 -0
- package/.agy/skills/team-executor/specs/session-schema.md +264 -0
- package/.agy/skills/team-lifecycle-v4/SKILL.md +189 -0
- package/.agy/skills/team-lifecycle-v4/roles/analyst/role.md +92 -0
- package/.agy/skills/team-lifecycle-v4/roles/coordinator/commands/analyze.md +56 -0
- package/.agy/skills/team-lifecycle-v4/roles/coordinator/commands/dispatch.md +56 -0
- package/.agy/skills/team-lifecycle-v4/roles/coordinator/commands/monitor.md +206 -0
- package/.agy/skills/team-lifecycle-v4/roles/coordinator/role.md +130 -0
- package/.agy/skills/team-lifecycle-v4/roles/executor/commands/fix.md +35 -0
- package/.agy/skills/team-lifecycle-v4/roles/executor/commands/implement.md +62 -0
- package/.agy/skills/team-lifecycle-v4/roles/executor/role.md +64 -0
- package/.agy/skills/team-lifecycle-v4/roles/planner/role.md +82 -0
- package/.agy/skills/team-lifecycle-v4/roles/reviewer/commands/review-code.md +34 -0
- package/.agy/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +44 -0
- package/.agy/skills/team-lifecycle-v4/roles/reviewer/role.md +65 -0
- package/.agy/skills/team-lifecycle-v4/roles/supervisor/role.md +188 -0
- package/.agy/skills/team-lifecycle-v4/roles/tester/role.md +84 -0
- package/.agy/skills/team-lifecycle-v4/roles/writer/role.md +92 -0
- package/.agy/skills/team-lifecycle-v4/specs/knowledge-transfer.md +114 -0
- package/.agy/skills/team-lifecycle-v4/specs/pipelines.md +140 -0
- package/.agy/skills/team-lifecycle-v4/specs/quality-gates.md +130 -0
- package/.agy/skills/team-lifecycle-v4/templates/architecture.md +254 -0
- package/.agy/skills/team-lifecycle-v4/templates/epics.md +196 -0
- package/.agy/skills/team-lifecycle-v4/templates/product-brief.md +133 -0
- package/.agy/skills/team-lifecycle-v4/templates/requirements.md +224 -0
- package/.agy/skills/team-quality-assurance/SKILL.md +148 -0
- package/.agy/skills/team-quality-assurance/roles/analyst/role.md +85 -0
- package/.agy/skills/team-quality-assurance/roles/coordinator/commands/analyze.md +72 -0
- package/.agy/skills/team-quality-assurance/roles/coordinator/commands/dispatch.md +111 -0
- package/.agy/skills/team-quality-assurance/roles/coordinator/commands/monitor.md +235 -0
- package/.agy/skills/team-quality-assurance/roles/coordinator/role.md +143 -0
- package/.agy/skills/team-quality-assurance/roles/executor/role.md +62 -0
- package/.agy/skills/team-quality-assurance/roles/generator/role.md +65 -0
- package/.agy/skills/team-quality-assurance/roles/scout/role.md +72 -0
- package/.agy/skills/team-quality-assurance/roles/strategist/role.md +69 -0
- package/.agy/skills/team-quality-assurance/specs/pipelines.md +115 -0
- package/.agy/skills/team-quality-assurance/specs/team-config.json +131 -0
- package/.agy/skills/team-review/SKILL.md +149 -0
- package/.agy/skills/team-review/roles/coordinator/commands/analyze.md +71 -0
- package/.agy/skills/team-review/roles/coordinator/commands/dispatch.md +91 -0
- package/.agy/skills/team-review/roles/coordinator/commands/monitor.md +209 -0
- package/.agy/skills/team-review/roles/coordinator/role.md +132 -0
- package/.agy/skills/team-review/roles/fixer/role.md +74 -0
- package/.agy/skills/team-review/roles/reviewer/role.md +66 -0
- package/.agy/skills/team-review/roles/scanner/role.md +77 -0
- package/.agy/skills/team-review/specs/dimensions.md +82 -0
- package/.agy/skills/team-review/specs/finding-schema.json +82 -0
- package/.agy/skills/team-review/specs/pipelines.md +102 -0
- package/.agy/skills/team-review/specs/team-config.json +27 -0
- package/.agy/skills/team-tech-debt/SKILL.md +133 -0
- package/.agy/skills/team-tech-debt/roles/assessor/role.md +76 -0
- package/.agy/skills/team-tech-debt/roles/coordinator/commands/analyze.md +47 -0
- package/.agy/skills/team-tech-debt/roles/coordinator/commands/dispatch.md +156 -0
- package/.agy/skills/team-tech-debt/roles/coordinator/commands/monitor.md +198 -0
- package/.agy/skills/team-tech-debt/roles/coordinator/role.md +123 -0
- package/.agy/skills/team-tech-debt/roles/executor/role.md +76 -0
- package/.agy/skills/team-tech-debt/roles/planner/role.md +68 -0
- package/.agy/skills/team-tech-debt/roles/scanner/role.md +90 -0
- package/.agy/skills/team-tech-debt/roles/validator/role.md +78 -0
- package/.agy/skills/team-tech-debt/specs/pipelines.md +47 -0
- package/.agy/skills/team-tech-debt/specs/team-config.json +129 -0
- package/.agy/skills/team-testing/SKILL.md +144 -0
- package/.agy/skills/team-testing/roles/analyst/role.md +101 -0
- package/.agy/skills/team-testing/roles/coordinator/commands/analyze.md +70 -0
- package/.agy/skills/team-testing/roles/coordinator/commands/dispatch.md +108 -0
- package/.agy/skills/team-testing/roles/coordinator/commands/monitor.md +242 -0
- package/.agy/skills/team-testing/roles/coordinator/role.md +134 -0
- package/.agy/skills/team-testing/roles/executor/role.md +95 -0
- package/.agy/skills/team-testing/roles/generator/role.md +95 -0
- package/.agy/skills/team-testing/roles/strategist/role.md +81 -0
- package/.agy/skills/team-testing/specs/pipelines.md +101 -0
- package/.agy/skills/team-testing/specs/team-config.json +93 -0
- package/.agy/skills/wiki-connect/SKILL.md +64 -0
- package/.agy/skills/wiki-digest/SKILL.md +70 -0
- package/.agy/skills/workflow-skill-designer/SKILL.md +506 -0
- package/.agy/skills/workflow-skill-designer/phases/01-requirements-analysis.md +356 -0
- package/.agy/skills/workflow-skill-designer/phases/02-orchestrator-design.md +444 -0
- package/.agy/skills/workflow-skill-designer/phases/03-phase-design.md +458 -0
- package/.agy/skills/workflow-skill-designer/phases/04-validation.md +471 -0
- package/.claude/commands/maestro-ralph.md +222 -87
- package/.claude/commands/maestro.md +13 -11
- package/.codex/skills/maestro/SKILL.md +23 -17
- package/.codex/skills/maestro-ralph/SKILL.md +177 -67
- package/dist/src/commands/install-backend.d.ts +12 -0
- package/dist/src/commands/install-backend.d.ts.map +1 -1
- package/dist/src/commands/install-backend.js +144 -0
- package/dist/src/commands/install-backend.js.map +1 -1
- package/dist/src/core/component-defs.d.ts +6 -0
- package/dist/src/core/component-defs.d.ts.map +1 -1
- package/dist/src/core/component-defs.js +97 -0
- package/dist/src/core/component-defs.js.map +1 -1
- package/dist/src/tui/install-ui/ExtraMcpConfig.d.ts +11 -0
- package/dist/src/tui/install-ui/ExtraMcpConfig.d.ts.map +1 -0
- package/dist/src/tui/install-ui/ExtraMcpConfig.js +61 -0
- package/dist/src/tui/install-ui/ExtraMcpConfig.js.map +1 -0
- package/dist/src/tui/install-ui/InstallConfirm.d.ts +3 -0
- package/dist/src/tui/install-ui/InstallConfirm.d.ts.map +1 -1
- package/dist/src/tui/install-ui/InstallConfirm.js +1 -1
- package/dist/src/tui/install-ui/InstallConfirm.js.map +1 -1
- package/dist/src/tui/install-ui/InstallExecution.d.ts +2 -0
- package/dist/src/tui/install-ui/InstallExecution.d.ts.map +1 -1
- package/dist/src/tui/install-ui/InstallExecution.js +14 -2
- package/dist/src/tui/install-ui/InstallExecution.js.map +1 -1
- package/dist/src/tui/install-ui/InstallFlow.d.ts +1 -1
- package/dist/src/tui/install-ui/InstallFlow.d.ts.map +1 -1
- package/dist/src/tui/install-ui/InstallFlow.js +16 -3
- package/dist/src/tui/install-ui/InstallFlow.js.map +1 -1
- package/dist/src/tui/install-ui/InstallHub.d.ts +2 -0
- package/dist/src/tui/install-ui/InstallHub.d.ts.map +1 -1
- package/dist/src/tui/install-ui/InstallHub.js +8 -0
- package/dist/src/tui/install-ui/InstallHub.js.map +1 -1
- package/dist/src/tui/install-ui/InstallResult.d.ts.map +1 -1
- package/dist/src/tui/install-ui/InstallResult.js +3 -1
- package/dist/src/tui/install-ui/InstallResult.js.map +1 -1
- package/dist/src/utils/update-notices.js +19 -0
- package/dist/src/utils/update-notices.js.map +1 -1
- package/package.json +7 -2
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: team-review
|
|
3
|
+
description: "Unified team skill for code review. 3-role pipeline: scanner, reviewer, fixer. Triggers on team-review."
|
|
4
|
+
allowed-tools: team_create(*), team_delete(*), send_message(*), task_create(*), task_update(*), task_list(*), task_get(*), agent(*), ask_user_question(*), read(*), write(*), edit(*), bash(*), glob(*), grep(*), mcp__ace-tool__search_context(*), mcp__ccw-tools__team_msg(*)
|
|
5
|
+
---
|
|
6
|
+
<!-- Open-standard mirror generated by scripts/build-agents-standard.mjs — do not edit; re-run after editing .claude/ source. -->
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
# Team Review
|
|
10
|
+
|
|
11
|
+
Orchestrate multi-agent code review: scanner -> reviewer -> fixer. Toolchain + LLM scan, deep analysis with root cause enrichment, and automated fix with rollback-on-failure.
|
|
12
|
+
|
|
13
|
+
## Architecture
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
invoke_skill(skill="team-review", args="task description")
|
|
17
|
+
|
|
|
18
|
+
SKILL.md (this file) = Router
|
|
19
|
+
|
|
|
20
|
+
+--------------+--------------+
|
|
21
|
+
| |
|
|
22
|
+
no --role flag --role <name>
|
|
23
|
+
| |
|
|
24
|
+
Coordinator Worker
|
|
25
|
+
roles/coordinator/role.md roles/<name>/role.md
|
|
26
|
+
|
|
|
27
|
+
+-- analyze -> dispatch -> spawn workers -> STOP
|
|
28
|
+
|
|
|
29
|
+
+-------+-------+-------+
|
|
30
|
+
v v v
|
|
31
|
+
[scan] [review] [fix]
|
|
32
|
+
team-worker agents, each loads roles/<role>/role.md
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Role Registry
|
|
36
|
+
|
|
37
|
+
| Role | Path | Prefix | Inner Loop |
|
|
38
|
+
|------|------|--------|------------|
|
|
39
|
+
| coordinator | [roles/coordinator/role.md](roles/coordinator/role.md) | — | — |
|
|
40
|
+
| scanner | [roles/scanner/role.md](roles/scanner/role.md) | SCAN-* | false |
|
|
41
|
+
| reviewer | [roles/reviewer/role.md](roles/reviewer/role.md) | REV-* | false |
|
|
42
|
+
| fixer | [roles/fixer/role.md](roles/fixer/role.md) | FIX-* | true |
|
|
43
|
+
|
|
44
|
+
## Role Router
|
|
45
|
+
|
|
46
|
+
Parse `$ARGUMENTS`:
|
|
47
|
+
- Has `--role <name>` -> Read `roles/<name>/role.md`, execute Phase 2-4
|
|
48
|
+
- No `--role` -> `@roles/coordinator/role.md`, execute entry router
|
|
49
|
+
|
|
50
|
+
## Shared Constants
|
|
51
|
+
|
|
52
|
+
- **Session prefix**: `RV`
|
|
53
|
+
- **Session path**: `.workflow/.team/RV-<slug>-<date>/`
|
|
54
|
+
- **Team name**: `review`
|
|
55
|
+
- **CLI tools**: `maestro delegate --mode analysis` (read-only), `maestro delegate --mode write` (modifications)
|
|
56
|
+
- **Message bus**: `mcp__ccw-tools__team_msg(session_id=<session-id>, ...)`
|
|
57
|
+
|
|
58
|
+
## Worker Spawn Template
|
|
59
|
+
|
|
60
|
+
Coordinator spawns workers using this template:
|
|
61
|
+
|
|
62
|
+
```
|
|
63
|
+
delegate_subagent({
|
|
64
|
+
subagent_type: "team-worker",
|
|
65
|
+
description: "Spawn <role> worker",
|
|
66
|
+
team_name: "review",
|
|
67
|
+
name: "<role>",
|
|
68
|
+
run_in_background: true,
|
|
69
|
+
prompt: `## Role Assignment
|
|
70
|
+
role: <role>
|
|
71
|
+
role_spec: <skill_root>/roles/<role>/role.md
|
|
72
|
+
session: <session-folder>
|
|
73
|
+
session_id: <session-id>
|
|
74
|
+
team_name: review
|
|
75
|
+
requirement: <task-description>
|
|
76
|
+
inner_loop: <true|false>
|
|
77
|
+
|
|
78
|
+
## Progress Milestones
|
|
79
|
+
session_id: <session-id>
|
|
80
|
+
Report progress via team_msg at natural phase boundaries (context loaded -> core work done -> verification).
|
|
81
|
+
Report blockers immediately via team_msg type="blocker".
|
|
82
|
+
Report completion via team_msg type="task_complete" after final send_message.
|
|
83
|
+
|
|
84
|
+
Read role_spec file (@<skill_root>/roles/<role>/role.md) to load Phase 2-4 domain instructions.
|
|
85
|
+
Execute built-in Phase 1 (task discovery) -> role Phase 2-4 -> built-in Phase 5 (report).`
|
|
86
|
+
})
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
## User Commands
|
|
90
|
+
|
|
91
|
+
| Command | Action |
|
|
92
|
+
|---------|--------|
|
|
93
|
+
| `check` / `status` | View pipeline status graph |
|
|
94
|
+
| `resume` / `continue` | Advance to next step |
|
|
95
|
+
| `--full` | Enable scan + review + fix pipeline |
|
|
96
|
+
| `--fix` | Fix-only mode (skip scan/review) |
|
|
97
|
+
| `-q` / `--quick` | Quick scan only |
|
|
98
|
+
| `--dimensions=sec,cor,prf,mnt` | Custom dimensions |
|
|
99
|
+
| `-y` / `--yes` | Skip confirmations |
|
|
100
|
+
|
|
101
|
+
## Completion Action
|
|
102
|
+
|
|
103
|
+
When pipeline completes, coordinator presents:
|
|
104
|
+
|
|
105
|
+
```
|
|
106
|
+
ask_user({
|
|
107
|
+
questions: [{
|
|
108
|
+
question: "Review pipeline complete. What would you like to do?",
|
|
109
|
+
header: "Completion",
|
|
110
|
+
multiSelect: false,
|
|
111
|
+
options: [
|
|
112
|
+
{ label: "Archive & Clean (Recommended)", description: "Archive session, clean up team" },
|
|
113
|
+
{ label: "Keep Active", description: "Keep session for follow-up work" },
|
|
114
|
+
{ label: "Export Results", description: "Export deliverables to target directory" }
|
|
115
|
+
]
|
|
116
|
+
}]
|
|
117
|
+
})
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
## Session Directory
|
|
121
|
+
|
|
122
|
+
```
|
|
123
|
+
.workflow/.team/RV-<slug>-<date>/
|
|
124
|
+
├── .msg/messages.jsonl # Team message bus
|
|
125
|
+
├── .msg/meta.json # Session state + cross-role state
|
|
126
|
+
├── wisdom/ # Cross-task knowledge
|
|
127
|
+
├── scan/ # Scanner output
|
|
128
|
+
├── review/ # Reviewer output
|
|
129
|
+
└── fix/ # Fixer output
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
## Specs Reference
|
|
133
|
+
|
|
134
|
+
- [specs/pipelines.md](specs/pipelines.md) — Pipeline definitions and task registry
|
|
135
|
+
- [specs/dimensions.md](specs/dimensions.md) — Review dimension definitions (SEC/COR/PRF/MNT)
|
|
136
|
+
- [specs/finding-schema.json](specs/finding-schema.json) — Finding data schema
|
|
137
|
+
- [specs/team-config.json](specs/team-config.json) — Team configuration
|
|
138
|
+
|
|
139
|
+
## Error Handling
|
|
140
|
+
|
|
141
|
+
| Scenario | Resolution |
|
|
142
|
+
|----------|------------|
|
|
143
|
+
| Unknown --role value | Error with available role list |
|
|
144
|
+
| Role not found | Error with expected path (roles/<name>/role.md) |
|
|
145
|
+
| CLI tool fails | Worker fallback to direct implementation |
|
|
146
|
+
| Scanner finds 0 findings | Report clean, skip review + fix |
|
|
147
|
+
| User declines fix | Delete FIX tasks, complete with review-only results |
|
|
148
|
+
| Fast-advance conflict | Coordinator reconciles on next callback |
|
|
149
|
+
| Completion action fails | Default to Keep Active |
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# Analyze Task
|
|
2
|
+
|
|
3
|
+
Parse user task -> detect review capabilities -> build dependency graph -> design pipeline.
|
|
4
|
+
|
|
5
|
+
**CONSTRAINT**: Text-level analysis only. NO source code reading, NO codebase exploration.
|
|
6
|
+
|
|
7
|
+
## Signal Detection
|
|
8
|
+
|
|
9
|
+
| Keywords | Capability | Prefix |
|
|
10
|
+
|----------|------------|--------|
|
|
11
|
+
| scan, lint, static analysis, toolchain | scanner | SCAN |
|
|
12
|
+
| review, analyze, audit, findings | reviewer | REV |
|
|
13
|
+
| fix, repair, remediate, patch | fixer | FIX |
|
|
14
|
+
|
|
15
|
+
## Pipeline Mode Detection
|
|
16
|
+
|
|
17
|
+
| Condition | Mode |
|
|
18
|
+
|-----------|------|
|
|
19
|
+
| Flag `--fix` | fix-only |
|
|
20
|
+
| Flag `--full` | full |
|
|
21
|
+
| Flag `-q` or `--quick` | quick |
|
|
22
|
+
| (none) | default |
|
|
23
|
+
|
|
24
|
+
## Dependency Graph
|
|
25
|
+
|
|
26
|
+
Natural ordering for review pipeline:
|
|
27
|
+
- Tier 0: scanner (toolchain + semantic scan, no upstream dependency)
|
|
28
|
+
- Tier 1: reviewer (deep analysis, requires scan findings)
|
|
29
|
+
- Tier 2: fixer (apply fixes, requires reviewed findings + user confirm)
|
|
30
|
+
|
|
31
|
+
## Pipeline Definitions
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
quick: SCAN(quick=true)
|
|
35
|
+
default: SCAN -> REV
|
|
36
|
+
full: SCAN -> REV -> [user confirm] -> FIX
|
|
37
|
+
fix-only: FIX
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Complexity Scoring
|
|
41
|
+
|
|
42
|
+
| Factor | Points |
|
|
43
|
+
|--------|--------|
|
|
44
|
+
| Per capability | +1 |
|
|
45
|
+
| Large target scope (>20 files) | +2 |
|
|
46
|
+
| Multiple dimensions | +1 |
|
|
47
|
+
| Fix phase included | +1 |
|
|
48
|
+
|
|
49
|
+
Results: 1-2 Low, 3-4 Medium, 5+ High
|
|
50
|
+
|
|
51
|
+
## Role Minimization
|
|
52
|
+
|
|
53
|
+
- Cap at 4 roles (coordinator + 3 workers)
|
|
54
|
+
- Sequential pipeline: scanner -> reviewer -> fixer
|
|
55
|
+
|
|
56
|
+
## Output
|
|
57
|
+
|
|
58
|
+
Write <session>/task-analysis.json:
|
|
59
|
+
```json
|
|
60
|
+
{
|
|
61
|
+
"task_description": "<original>",
|
|
62
|
+
"pipeline_mode": "<quick|default|full|fix-only>",
|
|
63
|
+
"target": "<path>",
|
|
64
|
+
"dimensions": ["sec", "cor", "prf", "mnt"],
|
|
65
|
+
"auto_confirm": false,
|
|
66
|
+
"capabilities": [{ "name": "<cap>", "prefix": "<PREFIX>" }],
|
|
67
|
+
"dependency_graph": { "<TASK-ID>": { "role": "<role>", "blockedBy": ["..."] } },
|
|
68
|
+
"roles": [{ "name": "<role>", "prefix": "<PREFIX>", "inner_loop": false }],
|
|
69
|
+
"complexity": { "score": 0, "level": "Low|Medium|High" }
|
|
70
|
+
}
|
|
71
|
+
```
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# Dispatch Tasks
|
|
2
|
+
|
|
3
|
+
Create task chains from pipeline mode with proper blockedBy relationships.
|
|
4
|
+
|
|
5
|
+
## Workflow
|
|
6
|
+
|
|
7
|
+
1. Read task-analysis.json -> extract pipeline_mode and parameters
|
|
8
|
+
2. Read specs/pipelines.md -> get task registry for selected pipeline
|
|
9
|
+
3. Topological sort tasks (respect blockedBy)
|
|
10
|
+
4. Validate all owners exist in role registry (SKILL.md)
|
|
11
|
+
5. For each task (in order):
|
|
12
|
+
- create_task with structured description (see template below)
|
|
13
|
+
- update_task with blockedBy + owner assignment
|
|
14
|
+
6. Update session meta.json with pipeline.tasks_total
|
|
15
|
+
7. Validate chain (no orphans, no cycles, all refs valid)
|
|
16
|
+
|
|
17
|
+
## Task Description Template
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
PURPOSE: <goal> | Success: <criteria>
|
|
21
|
+
TASK:
|
|
22
|
+
- <step 1>
|
|
23
|
+
- <step 2>
|
|
24
|
+
CONTEXT:
|
|
25
|
+
- Session: <session-folder>
|
|
26
|
+
- Target: <target>
|
|
27
|
+
- Dimensions: <dimensions>
|
|
28
|
+
- Upstream artifacts: <list>
|
|
29
|
+
EXPECTED: <artifact path> + <quality criteria>
|
|
30
|
+
CONSTRAINTS: <scope limits>
|
|
31
|
+
---
|
|
32
|
+
InnerLoop: <true|false>
|
|
33
|
+
RoleSpec: ~ or <project>/.claude/skills/team-review/roles/<role>/role.md
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Pipeline Task Registry
|
|
37
|
+
|
|
38
|
+
### default Mode
|
|
39
|
+
```
|
|
40
|
+
SCAN-001 (scanner): Multi-dimension code scan
|
|
41
|
+
blockedBy: [], meta: target=<target>, dimensions=<dims>
|
|
42
|
+
REV-001 (reviewer): Deep finding analysis and review
|
|
43
|
+
blockedBy: [SCAN-001]
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### full Mode
|
|
47
|
+
```
|
|
48
|
+
SCAN-001 (scanner): Multi-dimension code scan
|
|
49
|
+
blockedBy: [], meta: target=<target>, dimensions=<dims>
|
|
50
|
+
REV-001 (reviewer): Deep finding analysis and review
|
|
51
|
+
blockedBy: [SCAN-001]
|
|
52
|
+
FIX-001 (fixer): Plan and execute fixes
|
|
53
|
+
blockedBy: [REV-001]
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### fix-only Mode
|
|
57
|
+
```
|
|
58
|
+
FIX-001 (fixer): Execute fixes from manifest
|
|
59
|
+
blockedBy: [], meta: input=<fix-manifest>
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### quick Mode
|
|
63
|
+
```
|
|
64
|
+
SCAN-001 (scanner): Quick scan (fast mode)
|
|
65
|
+
blockedBy: [], meta: target=<target>, quick=true
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## InnerLoop Flag Rules
|
|
69
|
+
|
|
70
|
+
- true: fixer role (iterative fix cycles)
|
|
71
|
+
- false: scanner, reviewer roles
|
|
72
|
+
|
|
73
|
+
## Dependency Validation
|
|
74
|
+
|
|
75
|
+
- No orphan tasks (all tasks have valid owner)
|
|
76
|
+
- No circular dependencies
|
|
77
|
+
- All blockedBy references exist
|
|
78
|
+
- Session reference in every task description
|
|
79
|
+
- RoleSpec reference in every task description
|
|
80
|
+
|
|
81
|
+
## Log After Creation
|
|
82
|
+
|
|
83
|
+
```
|
|
84
|
+
mcp__ccw-tools__team_msg({
|
|
85
|
+
operation: "log",
|
|
86
|
+
session_id: <session-id>,
|
|
87
|
+
from: "coordinator",
|
|
88
|
+
type: "dispatch_ready",
|
|
89
|
+
data: { pipeline: "<mode>", task_count: <N>, target: "<target>" }
|
|
90
|
+
})
|
|
91
|
+
```
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
# monitor_process Pipeline
|
|
2
|
+
|
|
3
|
+
Event-driven pipeline coordination. Beat model: coordinator wake -> process -> spawn -> STOP.
|
|
4
|
+
|
|
5
|
+
## Constants
|
|
6
|
+
|
|
7
|
+
- SPAWN_MODE: background
|
|
8
|
+
- ONE_STEP_PER_INVOCATION: true
|
|
9
|
+
- FAST_ADVANCE_AWARE: true
|
|
10
|
+
- WORKER_AGENT: team-worker
|
|
11
|
+
|
|
12
|
+
## Handler Router
|
|
13
|
+
|
|
14
|
+
| Source | Handler |
|
|
15
|
+
|--------|---------|
|
|
16
|
+
| Message contains [scanner], [reviewer], [fixer] | handleCallback |
|
|
17
|
+
| "capability_gap" | handleAdapt |
|
|
18
|
+
| "check" or "status" | handleCheck |
|
|
19
|
+
| "resume" or "continue" | handleResume |
|
|
20
|
+
| All tasks completed | handleComplete |
|
|
21
|
+
| Default | handleSpawnNext |
|
|
22
|
+
|
|
23
|
+
## Role-Worker Map
|
|
24
|
+
|
|
25
|
+
| Prefix | Role | Role Spec | inner_loop |
|
|
26
|
+
|--------|------|-----------|------------|
|
|
27
|
+
| SCAN-* | scanner | `~ or <project>/.claude/skills/team-review/roles/scanner/role.md` | false |
|
|
28
|
+
| REV-* | reviewer | `~ or <project>/.claude/skills/team-review/roles/reviewer/role.md` | false |
|
|
29
|
+
| FIX-* | fixer | `~ or <project>/.claude/skills/team-review/roles/fixer/role.md` | true |
|
|
30
|
+
|
|
31
|
+
## handleCallback
|
|
32
|
+
|
|
33
|
+
Worker completed. Verify completion, check pipeline conditions, advance.
|
|
34
|
+
|
|
35
|
+
1. Parse message to identify role and task ID:
|
|
36
|
+
|
|
37
|
+
| Message Pattern | Role Detection |
|
|
38
|
+
|----------------|---------------|
|
|
39
|
+
| `[scanner]` or task ID `SCAN-*` | scanner |
|
|
40
|
+
| `[reviewer]` or task ID `REV-*` | reviewer |
|
|
41
|
+
| `[fixer]` or task ID `FIX-*` | fixer |
|
|
42
|
+
|
|
43
|
+
2. Check if progress update (inner loop) or final completion
|
|
44
|
+
3. Progress -> update session state, STOP
|
|
45
|
+
4. Completion -> mark task done via update_task(status="completed"), remove from active_workers
|
|
46
|
+
5. Check for checkpoints:
|
|
47
|
+
- scanner completes -> read meta.json for findings_count:
|
|
48
|
+
- findings_count === 0 -> delete remaining REV-*/FIX-* tasks -> handleComplete
|
|
49
|
+
- findings_count > 0 -> proceed to handleSpawnNext
|
|
50
|
+
- reviewer completes AND pipeline_mode === 'full':
|
|
51
|
+
- autoYes flag set -> write fix-manifest.json, set fix_scope='all' -> handleSpawnNext
|
|
52
|
+
- NO autoYes -> ask_user:
|
|
53
|
+
```
|
|
54
|
+
question: "<N> findings reviewed. Proceed with fix?"
|
|
55
|
+
options:
|
|
56
|
+
- "Fix all": set fix_scope='all'
|
|
57
|
+
- "Fix critical/high only": set fix_scope='critical,high'
|
|
58
|
+
- "Skip fix": delete FIX-* tasks -> handleComplete
|
|
59
|
+
```
|
|
60
|
+
Write fix_scope to meta.json, write fix-manifest.json, -> handleSpawnNext
|
|
61
|
+
- fixer completes -> handleSpawnNext (checks for completion naturally)
|
|
62
|
+
|
|
63
|
+
6. -> handleSpawnNext
|
|
64
|
+
|
|
65
|
+
## handleCheck
|
|
66
|
+
|
|
67
|
+
Read-only status report, then STOP.
|
|
68
|
+
|
|
69
|
+
**Worker Progress** (from message bus):
|
|
70
|
+
|
|
71
|
+
Before generating status output, read worker milestones:
|
|
72
|
+
|
|
73
|
+
```javascript
|
|
74
|
+
const progressMsgs = mcp__ccw-tools__team_msg({
|
|
75
|
+
operation: "list", session_id: sessionId, type: "progress", last: 50
|
|
76
|
+
})
|
|
77
|
+
const blockerMsgs = mcp__ccw-tools__team_msg({
|
|
78
|
+
operation: "list", session_id: sessionId, type: "blocker", last: 10
|
|
79
|
+
})
|
|
80
|
+
|
|
81
|
+
// Aggregate latest milestone per task
|
|
82
|
+
const taskProgress = {}
|
|
83
|
+
for (const msg of (progressMsgs.result?.messages || [])) {
|
|
84
|
+
const tid = msg.data?.task_id
|
|
85
|
+
if (tid && (!taskProgress[tid] || msg.ts > taskProgress[tid].ts)) {
|
|
86
|
+
taskProgress[tid] = { phase: msg.data.phase, pct: msg.data.progress_pct, ts: msg.ts }
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
Include in status output:
|
|
92
|
+
- Per-worker latest milestone (phase + progress_pct) next to task status
|
|
93
|
+
- Active blockers section (if any blockerMsgs found)
|
|
94
|
+
|
|
95
|
+
Output:
|
|
96
|
+
```
|
|
97
|
+
[coordinator] Review Pipeline Status
|
|
98
|
+
[coordinator] Mode: <pipeline_mode>
|
|
99
|
+
[coordinator] Progress: <completed>/<total> (<percent>%)
|
|
100
|
+
|
|
101
|
+
[coordinator] Pipeline Graph:
|
|
102
|
+
SCAN-001: <done|run|wait|deleted> <summary>
|
|
103
|
+
REV-001: <done|run|wait|deleted> <summary>
|
|
104
|
+
FIX-001: <done|run|wait|deleted> <summary>
|
|
105
|
+
|
|
106
|
+
done=completed >>>=running o=pending x=deleted
|
|
107
|
+
|
|
108
|
+
[coordinator] Active Workers: <list with elapsed time>
|
|
109
|
+
[coordinator] Ready to spawn: <subjects>
|
|
110
|
+
[coordinator] Commands: 'resume' to advance | 'check' to refresh
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
Then STOP.
|
|
114
|
+
|
|
115
|
+
## handleResume
|
|
116
|
+
|
|
117
|
+
1. No active workers -> handleSpawnNext
|
|
118
|
+
2. Has active -> check each status
|
|
119
|
+
- completed -> mark done via update_task
|
|
120
|
+
- in_progress -> still running
|
|
121
|
+
- other -> worker failure -> reset to pending
|
|
122
|
+
3. Some completed -> handleSpawnNext
|
|
123
|
+
4. All running -> report status, STOP
|
|
124
|
+
|
|
125
|
+
## handleSpawnNext
|
|
126
|
+
|
|
127
|
+
Find ready tasks, spawn workers, STOP.
|
|
128
|
+
|
|
129
|
+
1. Collect from list_tasks():
|
|
130
|
+
- completedSubjects: status = completed
|
|
131
|
+
- inProgressSubjects: status = in_progress
|
|
132
|
+
- deletedSubjects: status = deleted
|
|
133
|
+
- readySubjects: status = pending AND all blockedBy in completedSubjects
|
|
134
|
+
|
|
135
|
+
2. No ready + work in progress -> report waiting, STOP
|
|
136
|
+
3. No ready + nothing in progress -> handleComplete
|
|
137
|
+
4. Has ready -> take first ready task:
|
|
138
|
+
a. Determine role from prefix (use Role-Worker Map)
|
|
139
|
+
b. update_task -> in_progress
|
|
140
|
+
c. team_msg log -> task_unblocked
|
|
141
|
+
d. Spawn team-worker:
|
|
142
|
+
|
|
143
|
+
```
|
|
144
|
+
delegate_subagent({
|
|
145
|
+
subagent_type: "team-worker",
|
|
146
|
+
description: "Spawn <role> worker for <subject>",
|
|
147
|
+
team_name: "review",
|
|
148
|
+
name: "<role>",
|
|
149
|
+
run_in_background: true,
|
|
150
|
+
prompt: `## Role Assignment
|
|
151
|
+
role: <role>
|
|
152
|
+
role_spec: ~ or <project>/.claude/skills/team-review/roles/<role>/role.md
|
|
153
|
+
session: <session-folder>
|
|
154
|
+
session_id: <session-id>
|
|
155
|
+
team_name: review
|
|
156
|
+
requirement: <task-description>
|
|
157
|
+
inner_loop: <true|false>
|
|
158
|
+
|
|
159
|
+
## Current Task
|
|
160
|
+
- Task ID: <task-id>
|
|
161
|
+
- Task: <subject>
|
|
162
|
+
|
|
163
|
+
## Progress Milestones
|
|
164
|
+
session_id: <session-id>
|
|
165
|
+
Report progress via team_msg at natural phase boundaries (context loaded -> core work done -> verification).
|
|
166
|
+
Report blockers immediately via team_msg type="blocker".
|
|
167
|
+
Report completion via team_msg type="task_complete" after final send_message.
|
|
168
|
+
|
|
169
|
+
Read role_spec file to load Phase 2-4 domain instructions.
|
|
170
|
+
Execute built-in Phase 1 (task discovery) -> role Phase 2-4 -> built-in Phase 5 (report).`
|
|
171
|
+
})
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
e. Add to active_workers
|
|
175
|
+
5. Update session meta.json, output summary, STOP
|
|
176
|
+
|
|
177
|
+
## handleComplete
|
|
178
|
+
|
|
179
|
+
Pipeline done. Generate report and completion action.
|
|
180
|
+
|
|
181
|
+
1. All tasks completed or deleted (no pending, no in_progress)
|
|
182
|
+
2. Read final session state from meta.json
|
|
183
|
+
3. Generate pipeline summary: mode, target, findings_count, stages_completed, fix results (if applicable), deliverable paths
|
|
184
|
+
4. Update session: pipeline_status='complete', completed_at=<timestamp>
|
|
185
|
+
5. Read session.completion_action:
|
|
186
|
+
- interactive -> ask_user (Archive/Keep/Export)
|
|
187
|
+
- auto_archive -> Archive & Clean (status=completed, delete_team)
|
|
188
|
+
- auto_keep -> Keep Active (status=paused)
|
|
189
|
+
|
|
190
|
+
## handleAdapt
|
|
191
|
+
|
|
192
|
+
Capability gap reported mid-pipeline.
|
|
193
|
+
|
|
194
|
+
1. Parse gap description
|
|
195
|
+
2. Check if existing role covers it -> redirect
|
|
196
|
+
3. Role count < 4 -> generate dynamic role-spec in <session>/role-specs/
|
|
197
|
+
4. Create new task, spawn worker
|
|
198
|
+
5. Role count >= 4 -> merge or pause
|
|
199
|
+
|
|
200
|
+
## Fast-Advance Reconciliation
|
|
201
|
+
|
|
202
|
+
On every coordinator wake:
|
|
203
|
+
1. Read team_msg entries with type="fast_advance"
|
|
204
|
+
2. Sync active_workers with spawned successors
|
|
205
|
+
3. No duplicate spawns
|
|
206
|
+
|
|
207
|
+
## Phase 4: State Persistence
|
|
208
|
+
|
|
209
|
+
After every handler execution:
|
|
210
|
+
1. Reconcile active_workers with actual list_tasks states
|
|
211
|
+
2. Remove entries for completed/deleted tasks
|
|
212
|
+
3. Write updated meta.json
|
|
213
|
+
4. STOP (wait for next callback)
|
|
214
|
+
|
|
215
|
+
## Error Handling
|
|
216
|
+
|
|
217
|
+
| Scenario | Resolution |
|
|
218
|
+
|----------|------------|
|
|
219
|
+
| Session file not found | Error, suggest re-initialization |
|
|
220
|
+
| Worker callback from unknown role | Log info, scan for other completions |
|
|
221
|
+
| 0 findings after scan | Delete remaining stages, complete pipeline |
|
|
222
|
+
| User declines fix | Delete FIX-* tasks, complete with review-only results |
|
|
223
|
+
| Pipeline stall | Check blockedBy chains, report to user |
|
|
224
|
+
| Worker failure | Reset task to pending, respawn on next resume |
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
# Coordinator Role
|
|
2
|
+
|
|
3
|
+
Orchestrate team-review: parse target -> detect mode -> dispatch task chain -> monitor -> report.
|
|
4
|
+
|
|
5
|
+
## Identity
|
|
6
|
+
- Name: coordinator | Tag: [coordinator]
|
|
7
|
+
- Responsibility: Target parsing, mode detection, task creation/dispatch, stage monitoring, result aggregation
|
|
8
|
+
|
|
9
|
+
## Boundaries
|
|
10
|
+
|
|
11
|
+
### MUST
|
|
12
|
+
- All output prefixed with `[coordinator]`
|
|
13
|
+
- Parse task description and detect pipeline mode
|
|
14
|
+
- Create team and spawn team-worker agents in background
|
|
15
|
+
- Dispatch task chain with proper dependencies
|
|
16
|
+
- monitor_process progress via callbacks and route messages
|
|
17
|
+
- Maintain session state
|
|
18
|
+
- Execute completion action when pipeline finishes
|
|
19
|
+
|
|
20
|
+
### MUST NOT
|
|
21
|
+
- Run analysis tools directly (semgrep, eslint, tsc, etc.)
|
|
22
|
+
- Modify source code files
|
|
23
|
+
- Perform code review or scanning directly
|
|
24
|
+
- Bypass worker roles
|
|
25
|
+
- Spawn workers with general-purpose agent (MUST use team-worker)
|
|
26
|
+
|
|
27
|
+
## Command Execution Protocol
|
|
28
|
+
When coordinator needs to execute a specific phase:
|
|
29
|
+
1. Read `commands/<command>.md`
|
|
30
|
+
2. Follow the workflow defined in the command
|
|
31
|
+
3. Commands are inline execution guides, NOT separate agents
|
|
32
|
+
4. Execute synchronously, complete before proceeding
|
|
33
|
+
|
|
34
|
+
## Entry Router
|
|
35
|
+
|
|
36
|
+
| Detection | Condition | Handler |
|
|
37
|
+
|-----------|-----------|---------|
|
|
38
|
+
| Worker callback | Message contains [scanner], [reviewer], [fixer] | -> handleCallback (monitor.md) |
|
|
39
|
+
| Status check | Args contain "check" or "status" | -> handleCheck (monitor.md) |
|
|
40
|
+
| Manual resume | Args contain "resume" or "continue" | -> handleResume (monitor.md) |
|
|
41
|
+
| Capability gap | Message contains "capability_gap" | -> handleAdapt (monitor.md) |
|
|
42
|
+
| Pipeline complete | All tasks completed | -> handleComplete (monitor.md) |
|
|
43
|
+
| Interrupted session | Active session in .workflow/.team/RV-* | -> Phase 0 |
|
|
44
|
+
| New session | None of above | -> Phase 1 |
|
|
45
|
+
|
|
46
|
+
For callback/check/resume/adapt/complete: load @commands/monitor.md, execute handler, STOP.
|
|
47
|
+
|
|
48
|
+
## Phase 0: Session Resume Check
|
|
49
|
+
|
|
50
|
+
1. Scan .workflow/.team/RV-*/.msg/meta.json for active/paused sessions
|
|
51
|
+
2. No sessions -> Phase 1
|
|
52
|
+
3. Single session -> reconcile (audit list_tasks, reset in_progress->pending, rebuild team, kick first ready task)
|
|
53
|
+
4. Multiple -> ask_user for selection
|
|
54
|
+
|
|
55
|
+
## Phase 1: Requirement Clarification
|
|
56
|
+
|
|
57
|
+
TEXT-LEVEL ONLY. No source code reading.
|
|
58
|
+
|
|
59
|
+
1. Parse arguments for explicit settings:
|
|
60
|
+
|
|
61
|
+
| Flag | Mode | Description |
|
|
62
|
+
|------|------|-------------|
|
|
63
|
+
| `--fix` | fix-only | Skip scan/review, go directly to fixer |
|
|
64
|
+
| `--full` | full | scan + review + fix pipeline |
|
|
65
|
+
| `-q` / `--quick` | quick | Quick scan only, no review/fix |
|
|
66
|
+
| (none) | default | scan + review pipeline |
|
|
67
|
+
|
|
68
|
+
2. Extract parameters: target, dimensions, auto-confirm flag
|
|
69
|
+
3. Clarify if ambiguous (ask_user for target path)
|
|
70
|
+
4. Delegate to @commands/analyze.md
|
|
71
|
+
5. Output: task-analysis.json
|
|
72
|
+
6. CRITICAL: Always proceed to Phase 2, never skip team workflow
|
|
73
|
+
|
|
74
|
+
## Phase 2: Create Team + Initialize Session
|
|
75
|
+
|
|
76
|
+
1. Resolve workspace paths (MUST do first):
|
|
77
|
+
- `project_root` = result of `shell({ command: "pwd" })`
|
|
78
|
+
- `skill_root` = `<project_root>/.claude/skills/team-review`
|
|
79
|
+
2. Generate session ID: RV-<slug>-<date>
|
|
80
|
+
3. Create session folder structure (scan/, review/, fix/, wisdom/)
|
|
81
|
+
4. create_team with team name "review"
|
|
82
|
+
5. Read specs/pipelines.md -> select pipeline based on mode
|
|
83
|
+
6. Initialize pipeline via team_msg state_update:
|
|
84
|
+
```
|
|
85
|
+
mcp__ccw-tools__team_msg({
|
|
86
|
+
operation: "log", session_id: "<id>", from: "coordinator",
|
|
87
|
+
type: "state_update", summary: "Session initialized",
|
|
88
|
+
data: {
|
|
89
|
+
pipeline_mode: "<default|full|fix-only|quick>",
|
|
90
|
+
pipeline_stages: ["scanner", "reviewer", "fixer"],
|
|
91
|
+
team_name: "review",
|
|
92
|
+
target: "<target>",
|
|
93
|
+
dimensions: "<dimensions>",
|
|
94
|
+
auto_confirm: "<auto_confirm>"
|
|
95
|
+
}
|
|
96
|
+
})
|
|
97
|
+
```
|
|
98
|
+
7. Write session meta.json
|
|
99
|
+
|
|
100
|
+
## Phase 3: Create Task Chain
|
|
101
|
+
|
|
102
|
+
Delegate to @commands/dispatch.md:
|
|
103
|
+
1. Read specs/pipelines.md for selected pipeline's task registry
|
|
104
|
+
2. Create tasks via create_task with blockedBy
|
|
105
|
+
3. Update session meta.json with pipeline.tasks_total
|
|
106
|
+
|
|
107
|
+
## Phase 4: Spawn-and-Stop
|
|
108
|
+
|
|
109
|
+
Delegate to @commands/monitor.md#handleSpawnNext:
|
|
110
|
+
1. Find ready tasks (pending + blockedBy resolved)
|
|
111
|
+
2. Spawn team-worker agents (see SKILL.md Spawn Template)
|
|
112
|
+
3. Output status summary
|
|
113
|
+
4. STOP
|
|
114
|
+
|
|
115
|
+
## Phase 5: Report + Completion Action
|
|
116
|
+
|
|
117
|
+
1. Generate summary (mode, target, findings_total, by_severity, fix_rate if applicable)
|
|
118
|
+
2. Execute completion action per session.completion_action:
|
|
119
|
+
- interactive -> ask_user (Archive/Keep/Export)
|
|
120
|
+
- auto_archive -> Archive & Clean
|
|
121
|
+
- auto_keep -> Keep Active
|
|
122
|
+
|
|
123
|
+
## Error Handling
|
|
124
|
+
|
|
125
|
+
| Error | Resolution |
|
|
126
|
+
|-------|------------|
|
|
127
|
+
| Task too vague | ask_user for clarification |
|
|
128
|
+
| Session corruption | Attempt recovery, fallback to manual |
|
|
129
|
+
| Worker crash | Reset task to pending, respawn |
|
|
130
|
+
| Scanner finds 0 findings | Report clean, skip review + fix stages |
|
|
131
|
+
| Fix verification fails | Log warning, report partial results |
|
|
132
|
+
| Target path invalid | ask_user for corrected path |
|