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,198 @@
|
|
|
1
|
+
# Dynamic Role-Spec Template
|
|
2
|
+
|
|
3
|
+
Template used by coordinator to generate lightweight worker role-spec files at runtime. Each generated role-spec is written to `<session>/role-specs/<role-name>.md`.
|
|
4
|
+
|
|
5
|
+
**Key difference from v1**: Role-specs contain ONLY Phase 2-4 domain logic + YAML frontmatter. All shared behavior (Phase 1 Task Discovery, Phase 5 Report/Fast-Advance, Message Bus, Consensus, Inner Loop) is built into the `team-worker` agent.
|
|
6
|
+
|
|
7
|
+
## Template
|
|
8
|
+
|
|
9
|
+
```markdown
|
|
10
|
+
---
|
|
11
|
+
role: <role_name>
|
|
12
|
+
prefix: <PREFIX>
|
|
13
|
+
inner_loop: <true|false>
|
|
14
|
+
CLI tools: [<CLI tool-names>]
|
|
15
|
+
message_types:
|
|
16
|
+
success: <prefix>_complete
|
|
17
|
+
error: error
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
# <Role Name> — Phase 2-4
|
|
21
|
+
|
|
22
|
+
## Phase 2: <phase2_name>
|
|
23
|
+
|
|
24
|
+
<phase2_content>
|
|
25
|
+
|
|
26
|
+
## Phase 3: <phase3_name>
|
|
27
|
+
|
|
28
|
+
<phase3_content>
|
|
29
|
+
|
|
30
|
+
## Phase 4: <phase4_name>
|
|
31
|
+
|
|
32
|
+
<phase4_content>
|
|
33
|
+
|
|
34
|
+
## Error Handling
|
|
35
|
+
|
|
36
|
+
| Scenario | Resolution |
|
|
37
|
+
|----------|------------|
|
|
38
|
+
<error_entries>
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Frontmatter Fields
|
|
42
|
+
|
|
43
|
+
| Field | Required | Description |
|
|
44
|
+
|-------|----------|-------------|
|
|
45
|
+
| `role` | Yes | Role name matching session registry |
|
|
46
|
+
| `prefix` | Yes | Task prefix to filter (e.g., RESEARCH, DRAFT, IMPL) |
|
|
47
|
+
| `inner_loop` | Yes | Whether team-worker loops through same-prefix tasks |
|
|
48
|
+
| `CLI tools` | No | Array of CLI tool types this role may call |
|
|
49
|
+
| `output_tag` | Yes | Output tag for all messages, e.g., `[researcher]` |
|
|
50
|
+
| `message_types` | Yes | Message type mapping for team_msg |
|
|
51
|
+
| `message_types.success` | Yes | Type string for successful completion |
|
|
52
|
+
| `message_types.error` | Yes | Type string for errors (usually "error") |
|
|
53
|
+
|
|
54
|
+
## Design Rules
|
|
55
|
+
|
|
56
|
+
| Rule | Description |
|
|
57
|
+
|------|-------------|
|
|
58
|
+
| Phase 2-4 only | No Phase 1 (Task Discovery) or Phase 5 (Report) — team-worker handles these |
|
|
59
|
+
| No message bus code | No team_msg calls — team-worker handles logging |
|
|
60
|
+
| No consensus handling | No consensus_reached/blocked logic — team-worker handles routing |
|
|
61
|
+
| No inner loop logic | No Phase 5-L/5-F — team-worker handles looping |
|
|
62
|
+
| ~80 lines target | Lightweight, domain-focused |
|
|
63
|
+
| No pseudocode | Decision tables + text + tool calls only |
|
|
64
|
+
| `<placeholder>` notation | Use angle brackets for variable substitution |
|
|
65
|
+
| Reference CLI tools by name | team-worker resolves invocation from its delegation templates |
|
|
66
|
+
|
|
67
|
+
## Generated Role-Spec Structure
|
|
68
|
+
|
|
69
|
+
Every generated role-spec MUST include these blocks:
|
|
70
|
+
|
|
71
|
+
### Identity Block (mandatory — first section of generated spec)
|
|
72
|
+
|
|
73
|
+
```
|
|
74
|
+
Tag: [<role_name>] | Prefix: <PREFIX>-*
|
|
75
|
+
Responsibility: <one-line from task analysis>
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### Boundaries Block (mandatory — after Identity)
|
|
79
|
+
|
|
80
|
+
```
|
|
81
|
+
### MUST
|
|
82
|
+
- <3-5 rules derived from task analysis>
|
|
83
|
+
|
|
84
|
+
### MUST NOT
|
|
85
|
+
- Execute work outside assigned prefix
|
|
86
|
+
- Modify artifacts from other roles
|
|
87
|
+
- Skip Phase 4 verification
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
## Behavioral Traits
|
|
91
|
+
|
|
92
|
+
All dynamically generated role-specs MUST embed these traits into Phase 4. Coordinator copies this section verbatim into every generated role-spec as a Phase 4 appendix.
|
|
93
|
+
|
|
94
|
+
**Design principle**: Constrain behavioral characteristics (accuracy, feedback, quality gates), NOT specific actions (which tool, which CLI tool, which path). Tasks are diverse — the coordinator composes task-specific Phase 2-3 instructions, while these traits ensure execution quality regardless of task type.
|
|
95
|
+
|
|
96
|
+
### Accuracy — outputs must be verifiable
|
|
97
|
+
|
|
98
|
+
- Files claimed as **created** → Read to confirm file exists and has content
|
|
99
|
+
- Files claimed as **modified** → Read to confirm content actually changed
|
|
100
|
+
- Analysis claimed as **complete** → artifact file exists in `<session>/artifacts/`
|
|
101
|
+
|
|
102
|
+
### Feedback Contract — completion report must include evidence
|
|
103
|
+
|
|
104
|
+
Phase 4 must produce a verification summary with these fields:
|
|
105
|
+
|
|
106
|
+
| Field | When Required | Content |
|
|
107
|
+
|-------|---------------|---------|
|
|
108
|
+
| `files_produced` | New files created | Path list |
|
|
109
|
+
| `files_modified` | Existing files changed | Path + before/after line count |
|
|
110
|
+
| `artifacts_written` | Always | Paths in `<session>/artifacts/` |
|
|
111
|
+
| `verification_method` | Always | How verified: Read confirm / syntax check / diff |
|
|
112
|
+
|
|
113
|
+
### Quality Gate — verify before reporting complete
|
|
114
|
+
|
|
115
|
+
- Phase 4 MUST verify Phase 3's **actual output** (not planned output)
|
|
116
|
+
- Verification fails → retry Phase 3 (max 2 retries)
|
|
117
|
+
- Still fails → report `partial_completion` with details, NOT `completed`
|
|
118
|
+
- Update shared state via `team_msg(operation="log", type="state_update", data={...})` after verification passes
|
|
119
|
+
|
|
120
|
+
Quality thresholds from [specs/quality-gates.md](quality-gates.md):
|
|
121
|
+
- Pass >= 80%: report completed
|
|
122
|
+
- Review 60-79%: report completed with warnings
|
|
123
|
+
- Fail < 60%: retry Phase 3 (max 2)
|
|
124
|
+
|
|
125
|
+
### Tech Profile Injection
|
|
126
|
+
|
|
127
|
+
When generating role-specs for analysis or exploration roles, append a Tech Profile Scan instruction after their Phase 3:
|
|
128
|
+
- Instruct the role to scan analysis results for codebase signals relevant to its domain
|
|
129
|
+
- Include `tech_profile` in state_update data for coordinator specialist injection evaluation
|
|
130
|
+
|
|
131
|
+
### Error Protocol
|
|
132
|
+
|
|
133
|
+
- Primary approach fails → try alternative (different CLI tool / different tool)
|
|
134
|
+
- 2 retries exhausted → escalate to coordinator with failure details
|
|
135
|
+
- NEVER: skip verification and report completed
|
|
136
|
+
|
|
137
|
+
---
|
|
138
|
+
|
|
139
|
+
## Reference Patterns
|
|
140
|
+
|
|
141
|
+
Coordinator MAY reference these patterns when composing Phase 2-4 content for a role-spec. These are **structural guidance, not mandatory templates**. The task description determines specific behavior — patterns only suggest common phase structures.
|
|
142
|
+
|
|
143
|
+
### Research / Exploration
|
|
144
|
+
|
|
145
|
+
- Phase 2: Define exploration scope + load prior knowledge from shared state and wisdom
|
|
146
|
+
- Phase 3: Explore via CLI tools, direct tool calls, or codebase search — approach chosen by agent
|
|
147
|
+
- Phase 4: Verify findings documented (Behavioral Traits) + update shared state
|
|
148
|
+
|
|
149
|
+
### Document / Content
|
|
150
|
+
|
|
151
|
+
- Phase 2: Load upstream artifacts + read target files (if modifying existing docs)
|
|
152
|
+
- Phase 3: Create new documents OR modify existing documents — determined by task, not template
|
|
153
|
+
- Phase 4: Verify documents exist with expected content (Behavioral Traits) + update shared state
|
|
154
|
+
|
|
155
|
+
### Code Implementation
|
|
156
|
+
|
|
157
|
+
- Phase 2: Load design/spec artifacts from upstream
|
|
158
|
+
- Phase 3: Implement code changes — CLI tool choice and approach determined by task complexity
|
|
159
|
+
- Phase 4: Syntax check + file verification (Behavioral Traits) + update shared state
|
|
160
|
+
|
|
161
|
+
### Analysis / Audit
|
|
162
|
+
|
|
163
|
+
- Phase 2: Load analysis targets (artifacts or source files)
|
|
164
|
+
- Phase 3: Multi-dimension analysis — perspectives and depth determined by task
|
|
165
|
+
- Phase 4: Verify report exists + severity classification (Behavioral Traits) + update shared state
|
|
166
|
+
|
|
167
|
+
### Validation / Testing
|
|
168
|
+
|
|
169
|
+
- Phase 2: Detect test framework + identify changed files from upstream
|
|
170
|
+
- Phase 3: Run test-fix cycle — iteration count and strategy determined by task
|
|
171
|
+
- Phase 4: Verify pass rate + coverage (Behavioral Traits) + update shared state
|
|
172
|
+
|
|
173
|
+
---
|
|
174
|
+
|
|
175
|
+
## Knowledge Transfer Protocol
|
|
176
|
+
|
|
177
|
+
Full protocol: [specs/knowledge-transfer.md](knowledge-transfer.md)
|
|
178
|
+
|
|
179
|
+
Generated role-specs Phase 2 MUST declare which upstream sources to load.
|
|
180
|
+
Generated role-specs Phase 4 MUST include state update and artifact publishing.
|
|
181
|
+
|
|
182
|
+
---
|
|
183
|
+
|
|
184
|
+
## Generated Role-Spec Validation
|
|
185
|
+
|
|
186
|
+
Coordinator verifies before writing each role-spec:
|
|
187
|
+
|
|
188
|
+
| Check | Criteria |
|
|
189
|
+
|-------|----------|
|
|
190
|
+
| Frontmatter complete | All required fields present (role, prefix, inner_loop, output_tag, message_types, CLI tools) |
|
|
191
|
+
| Identity block | Tag, prefix, responsibility defined |
|
|
192
|
+
| Boundaries | MUST and MUST NOT rules present |
|
|
193
|
+
| Phase 2 | Context loading sources specified |
|
|
194
|
+
| Phase 3 | Execution goal clear, not prescriptive about tools |
|
|
195
|
+
| Phase 4 | Behavioral Traits copied verbatim |
|
|
196
|
+
| Error Handling | Table with 3+ scenarios |
|
|
197
|
+
| Line count | Target ~80 lines (max 120) |
|
|
198
|
+
| No built-in overlap | No Phase 1/5, no message bus code, no consensus handling |
|
|
@@ -0,0 +1,180 @@
|
|
|
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
|
+
agy-subagents:
|
|
5
|
+
- team-worker
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Sub-Agent Registration (Antigravity)
|
|
9
|
+
|
|
10
|
+
Before any `invoke_subagent` call below, register each sub-agent type once per session by reading the system_prompt from `<agy-agents-dir>/<name>.md` and passing it to `define_subagent`. The `<agy-agents-dir>` is:
|
|
11
|
+
- global install: `~/.gemini/antigravity-cli/agents/`
|
|
12
|
+
- workspace install: `<project>/.agents/agents/`
|
|
13
|
+
|
|
14
|
+
- `define_subagent(name="team-worker", description="<from agents/team-worker.md frontmatter>", system_prompt=<contents of agents/team-worker.md body>, enable_write_tools=true, enable_mcp_tools=true, enable_subagent_tools=false)`
|
|
15
|
+
|
|
16
|
+
**ConversationId tracking**: `invoke_subagent` returns a ConversationId per spawned instance. Subsequent `send_message(Recipient=<ConversationId>, Message=...)` calls require that ConversationId — never use the role name as the recipient.
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
# Team Executor
|
|
21
|
+
|
|
22
|
+
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.
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## Architecture
|
|
26
|
+
|
|
27
|
+
```
|
|
28
|
+
+---------------------------------------------------+
|
|
29
|
+
| view_file(AbsolutePath="<agy-skills-dir>/team-executor/SKILL.md") + execute inline |
|
|
30
|
+
| args="--session=<path>" [REQUIRED] |
|
|
31
|
+
+-------------------+-------------------------------+
|
|
32
|
+
| Session Validation
|
|
33
|
+
+---- --session valid? ----+
|
|
34
|
+
| NO | YES
|
|
35
|
+
v v
|
|
36
|
+
Error immediately Orchestration Mode
|
|
37
|
+
(no session) -> executor
|
|
38
|
+
|
|
|
39
|
+
+-------+-------+-------+
|
|
40
|
+
v v v v
|
|
41
|
+
[team-worker agents loaded from session role-specs]
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
## Session Validation (BEFORE routing)
|
|
47
|
+
|
|
48
|
+
**CRITICAL**: Session validation MUST occur before any execution.
|
|
49
|
+
|
|
50
|
+
### Parse Arguments
|
|
51
|
+
|
|
52
|
+
Extract from `$ARGUMENTS`:
|
|
53
|
+
- `--session=<path>`: Path to team-coordinate session folder (REQUIRED)
|
|
54
|
+
|
|
55
|
+
### Validation Steps
|
|
56
|
+
|
|
57
|
+
1. **Check `--session` provided**:
|
|
58
|
+
- If missing -> **ERROR**: "Session required. Usage: --session=<path-to-TC-folder>"
|
|
59
|
+
|
|
60
|
+
2. **Validate session structure** (see specs/session-schema.md):
|
|
61
|
+
- Directory exists at path
|
|
62
|
+
- `team-session.json` exists and valid JSON
|
|
63
|
+
- `task-analysis.json` exists and valid JSON
|
|
64
|
+
- `role-specs/` directory has at least one `.md` file
|
|
65
|
+
- Each role in `team-session.json#roles` has corresponding `.md` file in `role-specs/`
|
|
66
|
+
|
|
67
|
+
3. **Validation failure**:
|
|
68
|
+
- Report specific missing component
|
|
69
|
+
- Suggest re-running team-coordinate or checking path
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## Role Router
|
|
74
|
+
|
|
75
|
+
This skill is **executor-only**. Workers do NOT invoke this skill -- they are spawned as `team-worker` agents directly.
|
|
76
|
+
|
|
77
|
+
### Dispatch Logic
|
|
78
|
+
|
|
79
|
+
| Scenario | Action |
|
|
80
|
+
|----------|--------|
|
|
81
|
+
| No `--session` | **ERROR** immediately |
|
|
82
|
+
| `--session` invalid | **ERROR** with specific reason |
|
|
83
|
+
| Valid session | Orchestration Mode -> executor |
|
|
84
|
+
|
|
85
|
+
### Orchestration Mode
|
|
86
|
+
|
|
87
|
+
**Invocation**: `view_file(AbsolutePath="<agy-skills-dir>/team-executor/SKILL.md") + execute inline (args: "--session=<session-folder>")`
|
|
88
|
+
|
|
89
|
+
**Lifecycle**:
|
|
90
|
+
```
|
|
91
|
+
Validate session
|
|
92
|
+
-> executor Phase 0: Reconcile state (reset interrupted, detect orphans)
|
|
93
|
+
-> executor Phase 1: Spawn first batch team-worker agents (background) -> STOP
|
|
94
|
+
-> Worker executes -> send_message callback -> executor advances next step
|
|
95
|
+
-> Loop until pipeline complete -> Phase 2 report + completion action
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
**User Commands** (wake paused executor):
|
|
99
|
+
|
|
100
|
+
| Command | Action |
|
|
101
|
+
|---------|--------|
|
|
102
|
+
| `check` / `status` | Output execution status graph, no advancement |
|
|
103
|
+
| `resume` / `continue` | Check worker states, advance next step |
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
## Role Registry
|
|
108
|
+
|
|
109
|
+
| Role | File | Type |
|
|
110
|
+
|------|------|------|
|
|
111
|
+
| executor | [roles/executor/role.md](roles/executor/role.md) | built-in orchestrator |
|
|
112
|
+
| (dynamic) | `<session>/role-specs/<role-name>.md` | loaded from session |
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## Executor Spawn Template
|
|
117
|
+
|
|
118
|
+
### v2 Worker Spawn (all roles)
|
|
119
|
+
|
|
120
|
+
When executor spawns workers, use `team-worker` agent with role-spec path:
|
|
121
|
+
|
|
122
|
+
```
|
|
123
|
+
invoke_subagent([{ TypeName: "team-worker", Role: "<role>", Prompt: "<Prompt>", Workspace: "inherit" }])
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
---
|
|
127
|
+
|
|
128
|
+
## Completion Action
|
|
129
|
+
|
|
130
|
+
When pipeline completes (all tasks done), executor presents an interactive choice:
|
|
131
|
+
|
|
132
|
+
```
|
|
133
|
+
ask_question({
|
|
134
|
+
questions: [{
|
|
135
|
+
question: "Team pipeline complete. What would you like to do?",
|
|
136
|
+
header: "Completion",
|
|
137
|
+
multiSelect: false,
|
|
138
|
+
options: [
|
|
139
|
+
{ label: "Archive & Clean (Recommended)", description: "Archive session, clean up team" },
|
|
140
|
+
{ label: "Keep Active", description: "Keep session for follow-up work" },
|
|
141
|
+
{ label: "Export Results", description: "Export deliverables to target directory, then clean" }
|
|
142
|
+
]
|
|
143
|
+
}]
|
|
144
|
+
})
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
### Action Handlers
|
|
148
|
+
|
|
149
|
+
| Choice | Steps |
|
|
150
|
+
|--------|-------|
|
|
151
|
+
| Archive & Clean | Update session status="completed" -> TeamDelete -> output final summary with artifact paths |
|
|
152
|
+
| Keep Active | Update session status="paused" -> output: "Resume with: view_file(AbsolutePath="<agy-skills-dir>/team-executor/SKILL.md") + execute inline (args: "--session=<path>")" |
|
|
153
|
+
| Export Results | ask_question(target path) -> copy artifacts to target -> Archive & Clean |
|
|
154
|
+
|
|
155
|
+
---
|
|
156
|
+
|
|
157
|
+
## Integration with team-coordinate
|
|
158
|
+
|
|
159
|
+
| Scenario | Skill |
|
|
160
|
+
|----------|-------|
|
|
161
|
+
| New task, no session | team-coordinate |
|
|
162
|
+
| Existing session, resume execution | **team-executor** |
|
|
163
|
+
| Session needs new roles | team-coordinate (with resume) |
|
|
164
|
+
| Pure execution, no analysis | **team-executor** |
|
|
165
|
+
|
|
166
|
+
---
|
|
167
|
+
|
|
168
|
+
## Error Handling
|
|
169
|
+
|
|
170
|
+
| Scenario | Resolution |
|
|
171
|
+
|----------|------------|
|
|
172
|
+
| No --session provided | ERROR immediately with usage message |
|
|
173
|
+
| Session directory not found | ERROR with path, suggest checking path |
|
|
174
|
+
| team-session.json missing | ERROR, session incomplete, suggest re-run team-coordinate |
|
|
175
|
+
| task-analysis.json missing | ERROR, session incomplete, suggest re-run team-coordinate |
|
|
176
|
+
| No role-specs in session | ERROR, session incomplete, suggest re-run team-coordinate |
|
|
177
|
+
| Role-spec file not found | ERROR with expected path |
|
|
178
|
+
| capability_gap reported | Warn only, cannot generate new role-specs |
|
|
179
|
+
| Fast-advance spawns wrong task | Executor reconciles on next callback |
|
|
180
|
+
| Completion action fails | Default to Keep Active, log warning |
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
|
|
2
|
+
## Sub-Agent Registration (Antigravity)
|
|
3
|
+
|
|
4
|
+
Before any `invoke_subagent` call below, register each sub-agent type once per session by reading the system_prompt from `<agy-agents-dir>/<name>.md` and passing it to `define_subagent`. The `<agy-agents-dir>` is:
|
|
5
|
+
- global install: `~/.gemini/antigravity-cli/agents/`
|
|
6
|
+
- workspace install: `<project>/.agents/agents/`
|
|
7
|
+
|
|
8
|
+
- `define_subagent(name="team-worker", description="<from agents/team-worker.md frontmatter>", system_prompt=<contents of agents/team-worker.md body>, enable_write_tools=true, enable_mcp_tools=true, enable_subagent_tools=false)`
|
|
9
|
+
|
|
10
|
+
**ConversationId tracking**: `invoke_subagent` returns a ConversationId per spawned instance. Subsequent `send_message(Recipient=<ConversationId>, Message=...)` calls require that ConversationId — never use the role name as the recipient.
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
# Command: monitor
|
|
14
|
+
|
|
15
|
+
## Purpose
|
|
16
|
+
|
|
17
|
+
Event-driven pipeline coordination with Spawn-and-Stop pattern for team-executor v2. Role names are read from `team-session.json#roles`. Workers are spawned as `team-worker` agents with role-spec paths. **handleAdapt is LIMITED**: only warns, cannot generate new role-specs. Includes `handleComplete` for pipeline completion action.
|
|
18
|
+
|
|
19
|
+
## Constants
|
|
20
|
+
|
|
21
|
+
| Constant | Value | Description |
|
|
22
|
+
|----------|-------|-------------|
|
|
23
|
+
| SPAWN_MODE | background | All workers spawned via `Task(run_in_background: true)` |
|
|
24
|
+
| ONE_STEP_PER_INVOCATION | true | Executor does one operation then STOPS |
|
|
25
|
+
| FAST_ADVANCE_AWARE | true | Workers may skip executor for simple linear successors |
|
|
26
|
+
| ROLE_GENERATION | disabled | handleAdapt cannot generate new role-specs |
|
|
27
|
+
| WORKER_AGENT | team-worker | All workers spawned as team-worker agents |
|
|
28
|
+
|
|
29
|
+
## Phase 2: Context Loading
|
|
30
|
+
|
|
31
|
+
| Input | Source | Required |
|
|
32
|
+
|-------|--------|----------|
|
|
33
|
+
| Session file | `<session-folder>/team-session.json` | Yes |
|
|
34
|
+
| Task list | `TaskList()` | Yes |
|
|
35
|
+
| Active workers | session.active_workers[] | Yes |
|
|
36
|
+
| Role registry | session.roles[] | Yes |
|
|
37
|
+
|
|
38
|
+
**Dynamic role resolution**: Known worker roles are loaded from `session.roles[].name`. Role-spec paths are in `session.roles[].role_spec`.
|
|
39
|
+
|
|
40
|
+
## Phase 3: Handler Routing
|
|
41
|
+
|
|
42
|
+
### Wake-up Source Detection
|
|
43
|
+
|
|
44
|
+
Parse `$ARGUMENTS` to determine handler:
|
|
45
|
+
|
|
46
|
+
| Priority | Condition | Handler |
|
|
47
|
+
|----------|-----------|---------|
|
|
48
|
+
| 1 | Message contains `[<role-name>]` from session roles | handleCallback |
|
|
49
|
+
| 2 | Contains "capability_gap" | handleAdapt |
|
|
50
|
+
| 3 | Contains "check" or "status" | handleCheck |
|
|
51
|
+
| 4 | Contains "resume", "continue", or "next" | handleResume |
|
|
52
|
+
| 5 | Pipeline detected as complete | handleComplete |
|
|
53
|
+
| 6 | None of the above (initial spawn after dispatch) | handleSpawnNext |
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
### Handler: handleCallback
|
|
58
|
+
|
|
59
|
+
Worker completed a task. Verify completion, update state, auto-advance.
|
|
60
|
+
|
|
61
|
+
```
|
|
62
|
+
Receive callback from [<role>]
|
|
63
|
+
+- Find matching active worker by role (from session.roles)
|
|
64
|
+
+- Is this a progress update (not final)?
|
|
65
|
+
| +- YES -> Update session state, do NOT remove from active_workers -> STOP
|
|
66
|
+
+- Task status = completed?
|
|
67
|
+
| +- YES -> remove from active_workers -> update session
|
|
68
|
+
| | +- -> handleSpawnNext
|
|
69
|
+
| +- NO -> progress message, do not advance -> STOP
|
|
70
|
+
+- No matching worker found
|
|
71
|
+
+- Scan all active workers for completed tasks
|
|
72
|
+
+- Found completed -> process each -> handleSpawnNext
|
|
73
|
+
+- None completed -> STOP
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
**Fast-advance note**: Check if expected next task is already `in_progress` (fast-advanced). If yes -> skip spawning, sync active_workers.
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
### Handler: handleCheck
|
|
81
|
+
|
|
82
|
+
Read-only status report. No pipeline advancement.
|
|
83
|
+
|
|
84
|
+
```
|
|
85
|
+
[executor] Pipeline Status
|
|
86
|
+
[executor] Progress: <completed>/<total> (<percent>%)
|
|
87
|
+
|
|
88
|
+
[executor] Execution Graph:
|
|
89
|
+
<visual representation with status icons>
|
|
90
|
+
|
|
91
|
+
done=completed >>>=running o=pending .=not created
|
|
92
|
+
|
|
93
|
+
[executor] Active Workers:
|
|
94
|
+
> <subject> (<role>) - running <elapsed>
|
|
95
|
+
|
|
96
|
+
[executor] Ready to spawn: <subjects>
|
|
97
|
+
[executor] Commands: 'resume' to advance | 'check' to refresh
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Then STOP.
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
### Handler: handleResume
|
|
105
|
+
|
|
106
|
+
Check active worker completion, process results, advance pipeline.
|
|
107
|
+
|
|
108
|
+
```
|
|
109
|
+
Load active_workers from session
|
|
110
|
+
+- No active workers -> handleSpawnNext
|
|
111
|
+
+- Has active workers -> check each:
|
|
112
|
+
+- status = completed -> mark done, log
|
|
113
|
+
+- status = in_progress -> still running, log
|
|
114
|
+
+- other status -> worker failure -> reset to pending
|
|
115
|
+
After processing:
|
|
116
|
+
+- Some completed -> handleSpawnNext
|
|
117
|
+
+- All still running -> report status -> STOP
|
|
118
|
+
+- All failed -> handleSpawnNext (retry)
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
---
|
|
122
|
+
|
|
123
|
+
### Handler: handleSpawnNext
|
|
124
|
+
|
|
125
|
+
Find all ready tasks, spawn team-worker agents in background, update session, STOP.
|
|
126
|
+
|
|
127
|
+
```
|
|
128
|
+
Collect task states from TaskList()
|
|
129
|
+
+- completedSubjects: status = completed
|
|
130
|
+
+- inProgressSubjects: status = in_progress
|
|
131
|
+
+- readySubjects: pending + all blockedBy in completedSubjects
|
|
132
|
+
|
|
133
|
+
Ready tasks found?
|
|
134
|
+
+- NONE + work in progress -> report waiting -> STOP
|
|
135
|
+
+- NONE + nothing in progress -> PIPELINE_COMPLETE -> handleComplete
|
|
136
|
+
+- HAS ready tasks -> for each:
|
|
137
|
+
+- Is task owner an Inner Loop role AND already has active_worker?
|
|
138
|
+
| +- YES -> SKIP spawn (existing worker picks it up)
|
|
139
|
+
| +- NO -> normal spawn below
|
|
140
|
+
+- TaskUpdate -> in_progress
|
|
141
|
+
+- team_msg log -> task_unblocked (session_id=<session-id>)
|
|
142
|
+
+- Spawn team-worker (see spawn tool call below)
|
|
143
|
+
+- Add to session.active_workers
|
|
144
|
+
Update session file -> output summary -> STOP
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
**Spawn worker tool call**:
|
|
148
|
+
|
|
149
|
+
```
|
|
150
|
+
invoke_subagent([{ TypeName: "team-worker", Role: "<role>", Prompt: "<Prompt>", Workspace: "inherit" }])
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
---
|
|
154
|
+
|
|
155
|
+
### Handler: handleComplete
|
|
156
|
+
|
|
157
|
+
Pipeline complete. Execute completion action.
|
|
158
|
+
|
|
159
|
+
```
|
|
160
|
+
All tasks completed (no pending, no in_progress)
|
|
161
|
+
+- Generate pipeline summary (deliverables, stats, duration)
|
|
162
|
+
+- Read session.completion_action:
|
|
163
|
+
|
|
|
164
|
+
+- "interactive":
|
|
165
|
+
| ask_question -> user choice:
|
|
166
|
+
| +- "Archive & Clean": session status="completed" -> TeamDelete -> summary
|
|
167
|
+
| +- "Keep Active": session status="paused" -> resume command
|
|
168
|
+
| +- "Export Results": copy artifacts -> Archive & Clean
|
|
169
|
+
|
|
|
170
|
+
+- "auto_archive": Execute Archive & Clean
|
|
171
|
+
+- "auto_keep": Execute Keep Active
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
**Fallback**: If completion action fails, default to Keep Active, log warning.
|
|
175
|
+
|
|
176
|
+
---
|
|
177
|
+
|
|
178
|
+
### Handler: handleAdapt (LIMITED)
|
|
179
|
+
|
|
180
|
+
**UNLIKE team-coordinate, executor CANNOT generate new role-specs.**
|
|
181
|
+
|
|
182
|
+
```
|
|
183
|
+
Receive capability_gap from [<role>]
|
|
184
|
+
+- Log via team_msg (type: warning)
|
|
185
|
+
+- Check existing roles -> does any cover this?
|
|
186
|
+
| +- YES -> redirect to that role -> STOP
|
|
187
|
+
| +- NO -> genuine gap, report to user:
|
|
188
|
+
| "Capability gap detected. team-executor cannot generate new role-specs.
|
|
189
|
+
| Options: 1. Continue 2. Re-run team-coordinate 3. Manually add role-spec"
|
|
190
|
+
+- Continue execution with existing roles
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
---
|
|
194
|
+
|
|
195
|
+
### Worker Failure Handling
|
|
196
|
+
|
|
197
|
+
1. Reset task -> pending via TaskUpdate
|
|
198
|
+
2. Log via team_msg (type: error)
|
|
199
|
+
3. Report to user: task reset, will retry on next resume
|
|
200
|
+
|
|
201
|
+
### Fast-Advance Failure Recovery
|
|
202
|
+
|
|
203
|
+
Detect orphaned tasks (in_progress without active_worker, > 5 minutes) -> reset to pending -> handleSpawnNext.
|
|
204
|
+
|
|
205
|
+
### Consensus-Blocked Handling
|
|
206
|
+
|
|
207
|
+
```
|
|
208
|
+
Route by severity:
|
|
209
|
+
+- HIGH: Create REVISION task (max 1). Already revised -> PAUSE for user
|
|
210
|
+
+- MEDIUM: Proceed with warning, log to wisdom/issues.md
|
|
211
|
+
+- LOW: Proceed normally as consensus_reached with notes
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
## Phase 4: Validation
|
|
215
|
+
|
|
216
|
+
| Check | Criteria |
|
|
217
|
+
|-------|----------|
|
|
218
|
+
| Session state consistent | active_workers matches TaskList in_progress tasks |
|
|
219
|
+
| No orphaned tasks | Every in_progress task has an active_worker entry |
|
|
220
|
+
| Dynamic roles valid | All task owners exist in session.roles |
|
|
221
|
+
| Completion detection | readySubjects=0 + inProgressSubjects=0 -> PIPELINE_COMPLETE |
|
|
222
|
+
| Fast-advance tracking | Detect fast-advanced tasks, sync to active_workers |
|
|
223
|
+
|
|
224
|
+
## Error Handling
|
|
225
|
+
|
|
226
|
+
| Scenario | Resolution |
|
|
227
|
+
|----------|------------|
|
|
228
|
+
| Session file not found | Error, suggest re-run team-coordinate |
|
|
229
|
+
| Worker callback from unknown role | Log info, scan for other completions |
|
|
230
|
+
| All workers still running on resume | Report status, suggest check later |
|
|
231
|
+
| Pipeline stall | Check for missing tasks, report to user |
|
|
232
|
+
| Fast-advance conflict | Executor reconciles, no duplicate spawns |
|
|
233
|
+
| Role-spec file not found | Error, cannot proceed |
|
|
234
|
+
| capability_gap | WARN only, cannot generate new role-specs |
|
|
235
|
+
| Completion action fails | Default to Keep Active, log warning |
|