@josstei/maestro 1.6.4-rc.1
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/plugins/marketplace.json +20 -0
- package/CHANGELOG.md +485 -0
- package/EXAMPLES.md +255 -0
- package/GEMINI.md +231 -0
- package/LICENSE +201 -0
- package/QWEN.md +241 -0
- package/README.md +220 -0
- package/agents/accessibility_specialist.md +20 -0
- package/agents/analytics_engineer.md +22 -0
- package/agents/api_designer.md +19 -0
- package/agents/architect.md +19 -0
- package/agents/cloud_architect.md +19 -0
- package/agents/cobol_engineer.md +22 -0
- package/agents/code_reviewer.md +17 -0
- package/agents/coder.md +22 -0
- package/agents/compliance_reviewer.md +19 -0
- package/agents/content_strategist.md +19 -0
- package/agents/copywriter.md +19 -0
- package/agents/data_engineer.md +22 -0
- package/agents/database_administrator.md +21 -0
- package/agents/db2_dba.md +21 -0
- package/agents/debugger.md +19 -0
- package/agents/design_system_engineer.md +22 -0
- package/agents/devops_engineer.md +23 -0
- package/agents/hlasm_assembler_specialist.md +22 -0
- package/agents/i18n_specialist.md +21 -0
- package/agents/ibm_i_specialist.md +22 -0
- package/agents/integration_engineer.md +23 -0
- package/agents/ml_engineer.md +23 -0
- package/agents/mlops_engineer.md +23 -0
- package/agents/mobile_engineer.md +23 -0
- package/agents/observability_engineer.md +23 -0
- package/agents/performance_engineer.md +21 -0
- package/agents/platform_engineer.md +24 -0
- package/agents/product_manager.md +20 -0
- package/agents/prompt_engineer.md +22 -0
- package/agents/refactor.md +22 -0
- package/agents/release_manager.md +22 -0
- package/agents/security_engineer.md +21 -0
- package/agents/seo_specialist.md +21 -0
- package/agents/site_reliability_engineer.md +21 -0
- package/agents/solutions_architect.md +19 -0
- package/agents/technical_writer.md +21 -0
- package/agents/tester.md +23 -0
- package/agents/ux_designer.md +20 -0
- package/agents/zos_sysprog.md +21 -0
- package/bin/maestro-mcp-server.js +10 -0
- package/claude/.claude-plugin/plugin.json +21 -0
- package/claude/.mcp.json +11 -0
- package/claude/README.md +191 -0
- package/claude/agents/accessibility-specialist.md +36 -0
- package/claude/agents/analytics-engineer.md +38 -0
- package/claude/agents/api-designer.md +33 -0
- package/claude/agents/architect.md +33 -0
- package/claude/agents/cloud-architect.md +33 -0
- package/claude/agents/cobol-engineer.md +38 -0
- package/claude/agents/code-reviewer.md +31 -0
- package/claude/agents/coder.md +38 -0
- package/claude/agents/compliance-reviewer.md +33 -0
- package/claude/agents/content-strategist.md +33 -0
- package/claude/agents/copywriter.md +33 -0
- package/claude/agents/data-engineer.md +37 -0
- package/claude/agents/database-administrator.md +37 -0
- package/claude/agents/db2-dba.md +37 -0
- package/claude/agents/debugger.md +32 -0
- package/claude/agents/design-system-engineer.md +38 -0
- package/claude/agents/devops-engineer.md +39 -0
- package/claude/agents/hlasm-assembler-specialist.md +38 -0
- package/claude/agents/i18n-specialist.md +37 -0
- package/claude/agents/ibm-i-specialist.md +38 -0
- package/claude/agents/integration-engineer.md +39 -0
- package/claude/agents/ml-engineer.md +39 -0
- package/claude/agents/mlops-engineer.md +39 -0
- package/claude/agents/mobile-engineer.md +39 -0
- package/claude/agents/observability-engineer.md +39 -0
- package/claude/agents/performance-engineer.md +34 -0
- package/claude/agents/platform-engineer.md +40 -0
- package/claude/agents/product-manager.md +34 -0
- package/claude/agents/prompt-engineer.md +38 -0
- package/claude/agents/refactor.md +38 -0
- package/claude/agents/release-manager.md +38 -0
- package/claude/agents/security-engineer.md +37 -0
- package/claude/agents/seo-specialist.md +37 -0
- package/claude/agents/site-reliability-engineer.md +37 -0
- package/claude/agents/solutions-architect.md +33 -0
- package/claude/agents/technical-writer.md +37 -0
- package/claude/agents/tester.md +39 -0
- package/claude/agents/ux-designer.md +34 -0
- package/claude/agents/zos-sysprog.md +37 -0
- package/claude/hooks/claude-hooks.json +48 -0
- package/claude/mcp/maestro-server.js +9 -0
- package/claude/mcp-config.example.json +9 -0
- package/claude/scripts/adapters/claude-adapter.js +7 -0
- package/claude/scripts/hook-runner.js +8 -0
- package/claude/scripts/policy-enforcer.js +294 -0
- package/claude/skills/a11y-audit/SKILL.md +26 -0
- package/claude/skills/archive/SKILL.md +24 -0
- package/claude/skills/code-review/SKILL.md +7 -0
- package/claude/skills/compliance-check/SKILL.md +26 -0
- package/claude/skills/debug-workflow/SKILL.md +27 -0
- package/claude/skills/delegation/SKILL.md +7 -0
- package/claude/skills/design-dialogue/SKILL.md +7 -0
- package/claude/skills/execute/SKILL.md +38 -0
- package/claude/skills/execution/SKILL.md +7 -0
- package/claude/skills/implementation-planning/SKILL.md +7 -0
- package/claude/skills/orchestrate/SKILL.md +38 -0
- package/claude/skills/perf-check/SKILL.md +26 -0
- package/claude/skills/resume-session/SKILL.md +38 -0
- package/claude/skills/review-code/SKILL.md +27 -0
- package/claude/skills/security-audit/SKILL.md +28 -0
- package/claude/skills/seo-audit/SKILL.md +26 -0
- package/claude/skills/session-management/SKILL.md +7 -0
- package/claude/skills/status/SKILL.md +22 -0
- package/claude/skills/validation/SKILL.md +7 -0
- package/claude/src/agents/accessibility-specialist.md +163 -0
- package/claude/src/agents/analytics-engineer.md +182 -0
- package/claude/src/agents/api-designer.md +124 -0
- package/claude/src/agents/architect.md +120 -0
- package/claude/src/agents/cloud-architect.md +134 -0
- package/claude/src/agents/cobol-engineer.md +127 -0
- package/claude/src/agents/code-reviewer.md +123 -0
- package/claude/src/agents/coder.md +132 -0
- package/claude/src/agents/compliance-reviewer.md +219 -0
- package/claude/src/agents/content-strategist.md +111 -0
- package/claude/src/agents/copywriter.md +113 -0
- package/claude/src/agents/data-engineer.md +130 -0
- package/claude/src/agents/database-administrator.md +126 -0
- package/claude/src/agents/db2-dba.md +124 -0
- package/claude/src/agents/debugger.md +133 -0
- package/claude/src/agents/design-system-engineer.md +258 -0
- package/claude/src/agents/devops-engineer.md +138 -0
- package/claude/src/agents/hlasm-assembler-specialist.md +134 -0
- package/claude/src/agents/i18n-specialist.md +241 -0
- package/claude/src/agents/ibm-i-specialist.md +132 -0
- package/claude/src/agents/integration-engineer.md +133 -0
- package/claude/src/agents/ml-engineer.md +115 -0
- package/claude/src/agents/mlops-engineer.md +116 -0
- package/claude/src/agents/mobile-engineer.md +115 -0
- package/claude/src/agents/observability-engineer.md +133 -0
- package/claude/src/agents/performance-engineer.md +139 -0
- package/claude/src/agents/platform-engineer.md +129 -0
- package/claude/src/agents/product-manager.md +170 -0
- package/claude/src/agents/prompt-engineer.md +129 -0
- package/claude/src/agents/refactor.md +138 -0
- package/claude/src/agents/release-manager.md +132 -0
- package/claude/src/agents/security-engineer.md +143 -0
- package/claude/src/agents/seo-specialist.md +129 -0
- package/claude/src/agents/site-reliability-engineer.md +131 -0
- package/claude/src/agents/solutions-architect.md +137 -0
- package/claude/src/agents/technical-writer.md +129 -0
- package/claude/src/agents/tester.md +135 -0
- package/claude/src/agents/ux-designer.md +168 -0
- package/claude/src/agents/zos-sysprog.md +134 -0
- package/claude/src/config/setting-resolver.js +32 -0
- package/claude/src/core/agent-registry.js +67 -0
- package/claude/src/core/canonical-source.js +39 -0
- package/claude/src/core/env-file-parser.js +82 -0
- package/claude/src/core/feature-blocks.js +34 -0
- package/claude/src/core/logger.js +12 -0
- package/claude/src/core/markdown-state.js +36 -0
- package/claude/src/core/policy-rules.js +32 -0
- package/claude/src/core/project-root-resolver.js +184 -0
- package/claude/src/core/stdin-reader.js +77 -0
- package/claude/src/core/version.js +50 -0
- package/claude/src/entry-points/core-command-registry.js +37 -0
- package/claude/src/entry-points/preamble-builders.js +54 -0
- package/claude/src/entry-points/registry.js +199 -0
- package/claude/src/entry-points/templates/claude-core-command.md.tmpl +38 -0
- package/claude/src/entry-points/templates/claude-skill.md.tmpl +18 -0
- package/claude/src/entry-points/templates/codex-core-command.md.tmpl +16 -0
- package/claude/src/entry-points/templates/codex-skill.md.tmpl +11 -0
- package/claude/src/entry-points/templates/gemini-command.toml.tmpl +17 -0
- package/claude/src/entry-points/templates/gemini-core-command.toml.tmpl +30 -0
- package/claude/src/generated/agent-registry.json +630 -0
- package/claude/src/generated/hook-registry.json +18 -0
- package/claude/src/generated/resource-registry.json +16 -0
- package/claude/src/hooks/logic/after-agent-logic.js +54 -0
- package/claude/src/hooks/logic/before-agent-logic.js +57 -0
- package/claude/src/hooks/logic/hook-state.js +127 -0
- package/claude/src/hooks/logic/session-end-logic.js +17 -0
- package/claude/src/hooks/logic/session-start-logic.js +25 -0
- package/claude/src/lib/discovery/index.js +172 -0
- package/claude/src/lib/errors/index.js +104 -0
- package/claude/src/lib/framework-detection.js +50 -0
- package/claude/src/lib/frontmatter/index.js +262 -0
- package/claude/src/lib/io/index.js +96 -0
- package/claude/src/lib/naming/index.js +94 -0
- package/claude/src/lib/validation/index.js +124 -0
- package/claude/src/lib/yaml-emit.js +38 -0
- package/claude/src/mcp/content/provider.js +68 -0
- package/claude/src/mcp/content/runtime-content.js +188 -0
- package/claude/src/mcp/contracts/cache-path-rejector.js +39 -0
- package/claude/src/mcp/contracts/downstream-context.js +106 -0
- package/claude/src/mcp/contracts/plan-schema.js +148 -0
- package/claude/src/mcp/contracts/workspace-marker.js +61 -0
- package/claude/src/mcp/core/create-server.js +76 -0
- package/claude/src/mcp/core/line-reader.js +35 -0
- package/claude/src/mcp/core/project-root-cache.js +120 -0
- package/claude/src/mcp/core/protocol-dispatcher.js +274 -0
- package/claude/src/mcp/core/recovery-hints.js +43 -0
- package/claude/src/mcp/core/tool-outcome.js +77 -0
- package/claude/src/mcp/core/tool-registry.js +82 -0
- package/claude/src/mcp/handlers/assess-task-complexity.js +108 -0
- package/claude/src/mcp/handlers/blocker-parser.js +34 -0
- package/claude/src/mcp/handlers/design-gate.js +393 -0
- package/claude/src/mcp/handlers/get-agent.js +54 -0
- package/claude/src/mcp/handlers/get-runtime-context.js +49 -0
- package/claude/src/mcp/handlers/get-skill-content.js +51 -0
- package/claude/src/mcp/handlers/initialize-workspace.js +45 -0
- package/claude/src/mcp/handlers/reconciliation.js +224 -0
- package/claude/src/mcp/handlers/resolve-settings.js +39 -0
- package/claude/src/mcp/handlers/session-state-core.js +108 -0
- package/claude/src/mcp/handlers/session-state-tools.js +562 -0
- package/claude/src/mcp/handlers/validate-plan.js +76 -0
- package/claude/src/mcp/maestro-server.js +122 -0
- package/claude/src/mcp/runtime/runtime-config-map.js +70 -0
- package/claude/src/mcp/tool-packs/content/index.js +80 -0
- package/claude/src/mcp/tool-packs/contracts.js +30 -0
- package/claude/src/mcp/tool-packs/index.js +15 -0
- package/claude/src/mcp/tool-packs/session/index.js +243 -0
- package/claude/src/mcp/tool-packs/workspace/index.js +98 -0
- package/claude/src/mcp/utils/extension-root.js +31 -0
- package/claude/src/mcp/validation/agent-checker.js +81 -0
- package/claude/src/mcp/validation/dag-checker.js +214 -0
- package/claude/src/mcp/validation/file-overlap-checker.js +63 -0
- package/claude/src/mcp/validation/schema-checker.js +108 -0
- package/claude/src/platforms/claude/runtime-config.js +60 -0
- package/claude/src/platforms/shared/adapters/claude-adapter.js +36 -0
- package/claude/src/platforms/shared/adapters/conventions.js +29 -0
- package/claude/src/platforms/shared/adapters/exit-codes.js +6 -0
- package/claude/src/platforms/shared/adapters/factory.js +40 -0
- package/claude/src/platforms/shared/agent-names.js +10 -0
- package/claude/src/platforms/shared/hook-runner.js +52 -0
- package/claude/src/references/architecture.md +139 -0
- package/claude/src/references/orchestration-steps.md +193 -0
- package/claude/src/skills/shared/code-review/SKILL.md +145 -0
- package/claude/src/skills/shared/delegation/SKILL.md +370 -0
- package/claude/src/skills/shared/delegation/protocols/agent-base-protocol.md +145 -0
- package/claude/src/skills/shared/delegation/protocols/filesystem-safety-protocol.md +31 -0
- package/claude/src/skills/shared/design-dialogue/SKILL.md +284 -0
- package/claude/src/skills/shared/execution/SKILL.md +258 -0
- package/claude/src/skills/shared/implementation-planning/SKILL.md +303 -0
- package/claude/src/skills/shared/session-management/SKILL.md +314 -0
- package/claude/src/skills/shared/validation/SKILL.md +204 -0
- package/claude/src/state/session-state.js +113 -0
- package/claude/src/templates/design-document.md +95 -0
- package/claude/src/templates/implementation-plan.md +86 -0
- package/claude/src/templates/session-state.md +68 -0
- package/claude/src/version.json +3 -0
- package/commands/maestro/a11y-audit.toml +22 -0
- package/commands/maestro/archive.toml +23 -0
- package/commands/maestro/compliance-check.toml +22 -0
- package/commands/maestro/debug.toml +23 -0
- package/commands/maestro/execute.toml +30 -0
- package/commands/maestro/orchestrate.toml +30 -0
- package/commands/maestro/perf-check.toml +22 -0
- package/commands/maestro/resume.toml +38 -0
- package/commands/maestro/review.toml +23 -0
- package/commands/maestro/security-audit.toml +24 -0
- package/commands/maestro/seo-audit.toml +22 -0
- package/commands/maestro/status.toml +21 -0
- package/docs/architecture.md +310 -0
- package/docs/cicd.md +647 -0
- package/docs/flow.md +255 -0
- package/docs/maestro-cheatsheet.md +199 -0
- package/docs/overview.md +141 -0
- package/docs/runtime-claude.md +190 -0
- package/docs/runtime-codex.md +197 -0
- package/docs/runtime-gemini.md +170 -0
- package/docs/runtime-qwen.md +147 -0
- package/docs/usage.md +312 -0
- package/gemini-extension.json +55 -0
- package/hooks/adapters/gemini-adapter.js +2 -0
- package/hooks/adapters/qwen-adapter.js +2 -0
- package/hooks/hook-runner.js +3 -0
- package/hooks/hooks.json +56 -0
- package/mcp/maestro-server.js +4 -0
- package/package.json +93 -0
- package/plugins/maestro/.app.json +3 -0
- package/plugins/maestro/.codex-plugin/plugin.json +41 -0
- package/plugins/maestro/.mcp.json +16 -0
- package/plugins/maestro/README.md +57 -0
- package/plugins/maestro/references/runtime-guide.md +125 -0
- package/plugins/maestro/skills/a11y-audit/SKILL.md +16 -0
- package/plugins/maestro/skills/archive/SKILL.md +16 -0
- package/plugins/maestro/skills/code-review/SKILL.md +6 -0
- package/plugins/maestro/skills/compliance-check/SKILL.md +16 -0
- package/plugins/maestro/skills/debug-workflow/SKILL.md +16 -0
- package/plugins/maestro/skills/delegation/SKILL.md +6 -0
- package/plugins/maestro/skills/design-dialogue/SKILL.md +6 -0
- package/plugins/maestro/skills/execute/SKILL.md +16 -0
- package/plugins/maestro/skills/execution/SKILL.md +6 -0
- package/plugins/maestro/skills/implementation-planning/SKILL.md +6 -0
- package/plugins/maestro/skills/orchestrate/SKILL.md +16 -0
- package/plugins/maestro/skills/perf-check/SKILL.md +16 -0
- package/plugins/maestro/skills/resume-session/SKILL.md +16 -0
- package/plugins/maestro/skills/review-code/SKILL.md +16 -0
- package/plugins/maestro/skills/security-audit/SKILL.md +16 -0
- package/plugins/maestro/skills/seo-audit/SKILL.md +16 -0
- package/plugins/maestro/skills/session-management/SKILL.md +6 -0
- package/plugins/maestro/skills/status/SKILL.md +14 -0
- package/plugins/maestro/skills/validation/SKILL.md +6 -0
- package/plugins/maestro/src/agents/accessibility-specialist.md +163 -0
- package/plugins/maestro/src/agents/analytics-engineer.md +182 -0
- package/plugins/maestro/src/agents/api-designer.md +124 -0
- package/plugins/maestro/src/agents/architect.md +120 -0
- package/plugins/maestro/src/agents/cloud-architect.md +134 -0
- package/plugins/maestro/src/agents/cobol-engineer.md +127 -0
- package/plugins/maestro/src/agents/code-reviewer.md +123 -0
- package/plugins/maestro/src/agents/coder.md +132 -0
- package/plugins/maestro/src/agents/compliance-reviewer.md +219 -0
- package/plugins/maestro/src/agents/content-strategist.md +111 -0
- package/plugins/maestro/src/agents/copywriter.md +113 -0
- package/plugins/maestro/src/agents/data-engineer.md +130 -0
- package/plugins/maestro/src/agents/database-administrator.md +126 -0
- package/plugins/maestro/src/agents/db2-dba.md +124 -0
- package/plugins/maestro/src/agents/debugger.md +133 -0
- package/plugins/maestro/src/agents/design-system-engineer.md +258 -0
- package/plugins/maestro/src/agents/devops-engineer.md +138 -0
- package/plugins/maestro/src/agents/hlasm-assembler-specialist.md +134 -0
- package/plugins/maestro/src/agents/i18n-specialist.md +241 -0
- package/plugins/maestro/src/agents/ibm-i-specialist.md +132 -0
- package/plugins/maestro/src/agents/integration-engineer.md +133 -0
- package/plugins/maestro/src/agents/ml-engineer.md +115 -0
- package/plugins/maestro/src/agents/mlops-engineer.md +116 -0
- package/plugins/maestro/src/agents/mobile-engineer.md +115 -0
- package/plugins/maestro/src/agents/observability-engineer.md +133 -0
- package/plugins/maestro/src/agents/performance-engineer.md +139 -0
- package/plugins/maestro/src/agents/platform-engineer.md +129 -0
- package/plugins/maestro/src/agents/product-manager.md +170 -0
- package/plugins/maestro/src/agents/prompt-engineer.md +129 -0
- package/plugins/maestro/src/agents/refactor.md +138 -0
- package/plugins/maestro/src/agents/release-manager.md +132 -0
- package/plugins/maestro/src/agents/security-engineer.md +143 -0
- package/plugins/maestro/src/agents/seo-specialist.md +129 -0
- package/plugins/maestro/src/agents/site-reliability-engineer.md +131 -0
- package/plugins/maestro/src/agents/solutions-architect.md +137 -0
- package/plugins/maestro/src/agents/technical-writer.md +129 -0
- package/plugins/maestro/src/agents/tester.md +135 -0
- package/plugins/maestro/src/agents/ux-designer.md +168 -0
- package/plugins/maestro/src/agents/zos-sysprog.md +134 -0
- package/plugins/maestro/src/config/setting-resolver.js +32 -0
- package/plugins/maestro/src/core/agent-registry.js +67 -0
- package/plugins/maestro/src/core/canonical-source.js +39 -0
- package/plugins/maestro/src/core/env-file-parser.js +82 -0
- package/plugins/maestro/src/core/feature-blocks.js +34 -0
- package/plugins/maestro/src/core/logger.js +12 -0
- package/plugins/maestro/src/core/markdown-state.js +36 -0
- package/plugins/maestro/src/core/policy-rules.js +32 -0
- package/plugins/maestro/src/core/project-root-resolver.js +184 -0
- package/plugins/maestro/src/core/stdin-reader.js +77 -0
- package/plugins/maestro/src/core/version.js +50 -0
- package/plugins/maestro/src/entry-points/core-command-registry.js +37 -0
- package/plugins/maestro/src/entry-points/preamble-builders.js +54 -0
- package/plugins/maestro/src/entry-points/registry.js +199 -0
- package/plugins/maestro/src/entry-points/templates/claude-core-command.md.tmpl +38 -0
- package/plugins/maestro/src/entry-points/templates/claude-skill.md.tmpl +18 -0
- package/plugins/maestro/src/entry-points/templates/codex-core-command.md.tmpl +16 -0
- package/plugins/maestro/src/entry-points/templates/codex-skill.md.tmpl +11 -0
- package/plugins/maestro/src/entry-points/templates/gemini-command.toml.tmpl +17 -0
- package/plugins/maestro/src/entry-points/templates/gemini-core-command.toml.tmpl +30 -0
- package/plugins/maestro/src/generated/agent-registry.json +630 -0
- package/plugins/maestro/src/generated/hook-registry.json +18 -0
- package/plugins/maestro/src/generated/resource-registry.json +16 -0
- package/plugins/maestro/src/hooks/logic/after-agent-logic.js +54 -0
- package/plugins/maestro/src/hooks/logic/before-agent-logic.js +57 -0
- package/plugins/maestro/src/hooks/logic/hook-state.js +127 -0
- package/plugins/maestro/src/hooks/logic/session-end-logic.js +17 -0
- package/plugins/maestro/src/hooks/logic/session-start-logic.js +25 -0
- package/plugins/maestro/src/lib/discovery/index.js +172 -0
- package/plugins/maestro/src/lib/errors/index.js +104 -0
- package/plugins/maestro/src/lib/framework-detection.js +50 -0
- package/plugins/maestro/src/lib/frontmatter/index.js +262 -0
- package/plugins/maestro/src/lib/io/index.js +96 -0
- package/plugins/maestro/src/lib/naming/index.js +94 -0
- package/plugins/maestro/src/lib/validation/index.js +124 -0
- package/plugins/maestro/src/lib/yaml-emit.js +38 -0
- package/plugins/maestro/src/mcp/content/provider.js +68 -0
- package/plugins/maestro/src/mcp/content/runtime-content.js +188 -0
- package/plugins/maestro/src/mcp/contracts/cache-path-rejector.js +39 -0
- package/plugins/maestro/src/mcp/contracts/downstream-context.js +106 -0
- package/plugins/maestro/src/mcp/contracts/plan-schema.js +148 -0
- package/plugins/maestro/src/mcp/contracts/workspace-marker.js +61 -0
- package/plugins/maestro/src/mcp/core/create-server.js +76 -0
- package/plugins/maestro/src/mcp/core/line-reader.js +35 -0
- package/plugins/maestro/src/mcp/core/project-root-cache.js +120 -0
- package/plugins/maestro/src/mcp/core/protocol-dispatcher.js +274 -0
- package/plugins/maestro/src/mcp/core/recovery-hints.js +43 -0
- package/plugins/maestro/src/mcp/core/tool-outcome.js +77 -0
- package/plugins/maestro/src/mcp/core/tool-registry.js +82 -0
- package/plugins/maestro/src/mcp/handlers/assess-task-complexity.js +108 -0
- package/plugins/maestro/src/mcp/handlers/blocker-parser.js +34 -0
- package/plugins/maestro/src/mcp/handlers/design-gate.js +393 -0
- package/plugins/maestro/src/mcp/handlers/get-agent.js +54 -0
- package/plugins/maestro/src/mcp/handlers/get-runtime-context.js +49 -0
- package/plugins/maestro/src/mcp/handlers/get-skill-content.js +51 -0
- package/plugins/maestro/src/mcp/handlers/initialize-workspace.js +45 -0
- package/plugins/maestro/src/mcp/handlers/reconciliation.js +224 -0
- package/plugins/maestro/src/mcp/handlers/resolve-settings.js +39 -0
- package/plugins/maestro/src/mcp/handlers/session-state-core.js +108 -0
- package/plugins/maestro/src/mcp/handlers/session-state-tools.js +562 -0
- package/plugins/maestro/src/mcp/handlers/validate-plan.js +76 -0
- package/plugins/maestro/src/mcp/maestro-server.js +122 -0
- package/plugins/maestro/src/mcp/runtime/runtime-config-map.js +70 -0
- package/plugins/maestro/src/mcp/tool-packs/content/index.js +80 -0
- package/plugins/maestro/src/mcp/tool-packs/contracts.js +30 -0
- package/plugins/maestro/src/mcp/tool-packs/index.js +15 -0
- package/plugins/maestro/src/mcp/tool-packs/session/index.js +243 -0
- package/plugins/maestro/src/mcp/tool-packs/workspace/index.js +98 -0
- package/plugins/maestro/src/mcp/utils/extension-root.js +31 -0
- package/plugins/maestro/src/mcp/validation/agent-checker.js +81 -0
- package/plugins/maestro/src/mcp/validation/dag-checker.js +214 -0
- package/plugins/maestro/src/mcp/validation/file-overlap-checker.js +63 -0
- package/plugins/maestro/src/mcp/validation/schema-checker.js +108 -0
- package/plugins/maestro/src/platforms/codex/runtime-config.js +58 -0
- package/plugins/maestro/src/platforms/shared/adapters/conventions.js +29 -0
- package/plugins/maestro/src/platforms/shared/adapters/exit-codes.js +6 -0
- package/plugins/maestro/src/platforms/shared/adapters/factory.js +40 -0
- package/plugins/maestro/src/platforms/shared/agent-names.js +10 -0
- package/plugins/maestro/src/platforms/shared/hook-runner.js +52 -0
- package/plugins/maestro/src/references/architecture.md +139 -0
- package/plugins/maestro/src/references/orchestration-steps.md +193 -0
- package/plugins/maestro/src/skills/shared/code-review/SKILL.md +145 -0
- package/plugins/maestro/src/skills/shared/delegation/SKILL.md +370 -0
- package/plugins/maestro/src/skills/shared/delegation/protocols/agent-base-protocol.md +145 -0
- package/plugins/maestro/src/skills/shared/delegation/protocols/filesystem-safety-protocol.md +31 -0
- package/plugins/maestro/src/skills/shared/design-dialogue/SKILL.md +284 -0
- package/plugins/maestro/src/skills/shared/execution/SKILL.md +258 -0
- package/plugins/maestro/src/skills/shared/implementation-planning/SKILL.md +303 -0
- package/plugins/maestro/src/skills/shared/session-management/SKILL.md +314 -0
- package/plugins/maestro/src/skills/shared/validation/SKILL.md +204 -0
- package/plugins/maestro/src/state/session-state.js +113 -0
- package/plugins/maestro/src/templates/design-document.md +95 -0
- package/plugins/maestro/src/templates/implementation-plan.md +86 -0
- package/plugins/maestro/src/templates/session-state.md +68 -0
- package/plugins/maestro/src/version.json +3 -0
- package/policies/maestro.toml +44 -0
- package/qwen/agents/accessibility_specialist.md +18 -0
- package/qwen/agents/analytics_engineer.md +20 -0
- package/qwen/agents/api_designer.md +17 -0
- package/qwen/agents/architect.md +17 -0
- package/qwen/agents/cloud_architect.md +17 -0
- package/qwen/agents/cobol_engineer.md +20 -0
- package/qwen/agents/code_reviewer.md +15 -0
- package/qwen/agents/coder.md +20 -0
- package/qwen/agents/compliance_reviewer.md +17 -0
- package/qwen/agents/content_strategist.md +17 -0
- package/qwen/agents/copywriter.md +17 -0
- package/qwen/agents/data_engineer.md +20 -0
- package/qwen/agents/database_administrator.md +19 -0
- package/qwen/agents/db2_dba.md +19 -0
- package/qwen/agents/debugger.md +17 -0
- package/qwen/agents/design_system_engineer.md +20 -0
- package/qwen/agents/devops_engineer.md +21 -0
- package/qwen/agents/hlasm_assembler_specialist.md +20 -0
- package/qwen/agents/i18n_specialist.md +19 -0
- package/qwen/agents/ibm_i_specialist.md +20 -0
- package/qwen/agents/integration_engineer.md +21 -0
- package/qwen/agents/ml_engineer.md +21 -0
- package/qwen/agents/mlops_engineer.md +21 -0
- package/qwen/agents/mobile_engineer.md +21 -0
- package/qwen/agents/observability_engineer.md +21 -0
- package/qwen/agents/performance_engineer.md +19 -0
- package/qwen/agents/platform_engineer.md +22 -0
- package/qwen/agents/product_manager.md +18 -0
- package/qwen/agents/prompt_engineer.md +20 -0
- package/qwen/agents/refactor.md +20 -0
- package/qwen/agents/release_manager.md +20 -0
- package/qwen/agents/security_engineer.md +19 -0
- package/qwen/agents/seo_specialist.md +19 -0
- package/qwen/agents/site_reliability_engineer.md +19 -0
- package/qwen/agents/solutions_architect.md +17 -0
- package/qwen/agents/technical_writer.md +19 -0
- package/qwen/agents/tester.md +21 -0
- package/qwen/agents/ux_designer.md +18 -0
- package/qwen/agents/zos_sysprog.md +19 -0
- package/qwen/hooks.json +56 -0
- package/qwen-extension.json +55 -0
- package/scripts/check-layer-boundaries.js +74 -0
- package/scripts/generate.js +155 -0
- package/scripts/install-codex-plugin.js +167 -0
- package/scripts/install-git-hooks.js +43 -0
- package/scripts/npm-publish-idempotent.js +150 -0
- package/scripts/package-release-artifacts.js +156 -0
- package/scripts/release-artifact-manifest.js +378 -0
- package/scripts/release-version-metadata.js +129 -0
- package/scripts/update-versions.js +33 -0
- package/scripts/verify-npm-pack.js +85 -0
- package/scripts/verify-release-artifacts.js +95 -0
- package/src/agents/accessibility-specialist.md +163 -0
- package/src/agents/analytics-engineer.md +182 -0
- package/src/agents/api-designer.md +124 -0
- package/src/agents/architect.md +120 -0
- package/src/agents/cloud-architect.md +134 -0
- package/src/agents/cobol-engineer.md +127 -0
- package/src/agents/code-reviewer.md +123 -0
- package/src/agents/coder.md +132 -0
- package/src/agents/compliance-reviewer.md +219 -0
- package/src/agents/content-strategist.md +111 -0
- package/src/agents/copywriter.md +113 -0
- package/src/agents/data-engineer.md +130 -0
- package/src/agents/database-administrator.md +126 -0
- package/src/agents/db2-dba.md +124 -0
- package/src/agents/debugger.md +133 -0
- package/src/agents/design-system-engineer.md +258 -0
- package/src/agents/devops-engineer.md +138 -0
- package/src/agents/hlasm-assembler-specialist.md +134 -0
- package/src/agents/i18n-specialist.md +241 -0
- package/src/agents/ibm-i-specialist.md +132 -0
- package/src/agents/integration-engineer.md +133 -0
- package/src/agents/ml-engineer.md +115 -0
- package/src/agents/mlops-engineer.md +116 -0
- package/src/agents/mobile-engineer.md +115 -0
- package/src/agents/observability-engineer.md +133 -0
- package/src/agents/performance-engineer.md +139 -0
- package/src/agents/platform-engineer.md +129 -0
- package/src/agents/product-manager.md +170 -0
- package/src/agents/prompt-engineer.md +129 -0
- package/src/agents/refactor.md +138 -0
- package/src/agents/release-manager.md +132 -0
- package/src/agents/security-engineer.md +143 -0
- package/src/agents/seo-specialist.md +129 -0
- package/src/agents/site-reliability-engineer.md +131 -0
- package/src/agents/solutions-architect.md +137 -0
- package/src/agents/technical-writer.md +129 -0
- package/src/agents/tester.md +135 -0
- package/src/agents/ux-designer.md +168 -0
- package/src/agents/zos-sysprog.md +134 -0
- package/src/config/setting-resolver.js +32 -0
- package/src/core/agent-registry.js +67 -0
- package/src/core/canonical-source.js +39 -0
- package/src/core/env-file-parser.js +82 -0
- package/src/core/feature-blocks.js +34 -0
- package/src/core/logger.js +12 -0
- package/src/core/markdown-state.js +36 -0
- package/src/core/policy-rules.js +32 -0
- package/src/core/project-root-resolver.js +184 -0
- package/src/core/stdin-reader.js +77 -0
- package/src/core/version.js +50 -0
- package/src/entry-points/core-command-registry.js +37 -0
- package/src/entry-points/preamble-builders.js +54 -0
- package/src/entry-points/registry.js +199 -0
- package/src/entry-points/templates/claude-core-command.md.tmpl +38 -0
- package/src/entry-points/templates/claude-skill.md.tmpl +18 -0
- package/src/entry-points/templates/codex-core-command.md.tmpl +16 -0
- package/src/entry-points/templates/codex-skill.md.tmpl +11 -0
- package/src/entry-points/templates/gemini-command.toml.tmpl +17 -0
- package/src/entry-points/templates/gemini-core-command.toml.tmpl +30 -0
- package/src/generated/agent-registry.json +630 -0
- package/src/generated/hook-registry.json +18 -0
- package/src/generated/resource-registry.json +16 -0
- package/src/generator/entry-point-expander.js +182 -0
- package/src/generator/file-writer.js +167 -0
- package/src/generator/generation-session.js +62 -0
- package/src/generator/manifest-curator.js +31 -0
- package/src/generator/manifest-expander.js +256 -0
- package/src/generator/payload-builder.js +217 -0
- package/src/generator/registry-scanner.js +130 -0
- package/src/generator/stale-pruner.js +101 -0
- package/src/hooks/logic/after-agent-logic.js +54 -0
- package/src/hooks/logic/before-agent-logic.js +57 -0
- package/src/hooks/logic/hook-state.js +127 -0
- package/src/hooks/logic/session-end-logic.js +17 -0
- package/src/hooks/logic/session-start-logic.js +25 -0
- package/src/lib/discovery/index.js +172 -0
- package/src/lib/errors/index.js +104 -0
- package/src/lib/framework-detection.js +50 -0
- package/src/lib/frontmatter/index.js +262 -0
- package/src/lib/io/index.js +96 -0
- package/src/lib/naming/index.js +94 -0
- package/src/lib/validation/index.js +124 -0
- package/src/lib/yaml-emit.js +38 -0
- package/src/manifest.js +11 -0
- package/src/mcp/content/provider.js +68 -0
- package/src/mcp/content/runtime-content.js +188 -0
- package/src/mcp/contracts/cache-path-rejector.js +39 -0
- package/src/mcp/contracts/downstream-context.js +106 -0
- package/src/mcp/contracts/plan-schema.js +148 -0
- package/src/mcp/contracts/workspace-marker.js +61 -0
- package/src/mcp/core/create-server.js +76 -0
- package/src/mcp/core/line-reader.js +35 -0
- package/src/mcp/core/project-root-cache.js +120 -0
- package/src/mcp/core/protocol-dispatcher.js +274 -0
- package/src/mcp/core/recovery-hints.js +43 -0
- package/src/mcp/core/tool-outcome.js +77 -0
- package/src/mcp/core/tool-registry.js +82 -0
- package/src/mcp/handlers/assess-task-complexity.js +108 -0
- package/src/mcp/handlers/blocker-parser.js +34 -0
- package/src/mcp/handlers/design-gate.js +393 -0
- package/src/mcp/handlers/get-agent.js +54 -0
- package/src/mcp/handlers/get-runtime-context.js +49 -0
- package/src/mcp/handlers/get-skill-content.js +51 -0
- package/src/mcp/handlers/initialize-workspace.js +45 -0
- package/src/mcp/handlers/reconciliation.js +224 -0
- package/src/mcp/handlers/resolve-settings.js +39 -0
- package/src/mcp/handlers/session-state-core.js +108 -0
- package/src/mcp/handlers/session-state-tools.js +562 -0
- package/src/mcp/handlers/validate-plan.js +76 -0
- package/src/mcp/maestro-server.js +122 -0
- package/src/mcp/runtime/runtime-config-map.js +70 -0
- package/src/mcp/tool-packs/content/index.js +80 -0
- package/src/mcp/tool-packs/contracts.js +30 -0
- package/src/mcp/tool-packs/index.js +15 -0
- package/src/mcp/tool-packs/session/index.js +243 -0
- package/src/mcp/tool-packs/workspace/index.js +98 -0
- package/src/mcp/utils/extension-root.js +31 -0
- package/src/mcp/validation/agent-checker.js +81 -0
- package/src/mcp/validation/dag-checker.js +214 -0
- package/src/mcp/validation/file-overlap-checker.js +63 -0
- package/src/mcp/validation/schema-checker.js +108 -0
- package/src/platforms/claude/metadata.js +96 -0
- package/src/platforms/claude/runtime-config.js +60 -0
- package/src/platforms/codex/metadata.js +107 -0
- package/src/platforms/codex/runtime-config.js +58 -0
- package/src/platforms/gemini/metadata.js +27 -0
- package/src/platforms/gemini/runtime-config.js +62 -0
- package/src/platforms/metadata-shared.js +131 -0
- package/src/platforms/metadata.js +29 -0
- package/src/platforms/qwen/metadata.js +27 -0
- package/src/platforms/qwen/runtime-config.js +62 -0
- package/src/platforms/shared/adapters/claude-adapter.js +36 -0
- package/src/platforms/shared/adapters/conventions.js +29 -0
- package/src/platforms/shared/adapters/exit-codes.js +6 -0
- package/src/platforms/shared/adapters/factory.js +40 -0
- package/src/platforms/shared/adapters/gemini-adapter.js +34 -0
- package/src/platforms/shared/adapters/qwen-adapter.js +93 -0
- package/src/platforms/shared/agent-names.js +10 -0
- package/src/platforms/shared/hook-runner.js +52 -0
- package/src/references/architecture.md +139 -0
- package/src/references/orchestration-steps.md +193 -0
- package/src/scripts/ensure-workspace.js +14 -0
- package/src/scripts/read-active-session.js +26 -0
- package/src/scripts/read-setting.js +18 -0
- package/src/scripts/read-state.js +17 -0
- package/src/scripts/write-state.js +22 -0
- package/src/skills/shared/code-review/SKILL.md +145 -0
- package/src/skills/shared/delegation/SKILL.md +370 -0
- package/src/skills/shared/delegation/protocols/agent-base-protocol.md +145 -0
- package/src/skills/shared/delegation/protocols/filesystem-safety-protocol.md +31 -0
- package/src/skills/shared/design-dialogue/SKILL.md +284 -0
- package/src/skills/shared/execution/SKILL.md +258 -0
- package/src/skills/shared/implementation-planning/SKILL.md +303 -0
- package/src/skills/shared/session-management/SKILL.md +314 -0
- package/src/skills/shared/validation/SKILL.md +204 -0
- package/src/state/session-state.js +113 -0
- package/src/templates/design-document.md +95 -0
- package/src/templates/implementation-plan.md +86 -0
- package/src/templates/session-state.md +68 -0
- package/src/transforms/agent-stub.js +29 -0
- package/src/transforms/extract-examples.js +63 -0
- package/src/transforms/index.js +35 -0
- package/src/transforms/parse-frontmatter.js +23 -0
- package/src/transforms/rebuild-frontmatter.js +147 -0
- package/src/transforms/skill-discovery-stub.js +27 -0
- package/src/transforms/skill-metadata.js +14 -0
package/EXAMPLES.md
ADDED
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
# Maestro Examples
|
|
2
|
+
|
|
3
|
+
This guide is a scenario catalog for Maestro public entry points across Gemini CLI, Claude Code, Codex, and Qwen Code. Use the command form for the runtime you are running.
|
|
4
|
+
|
|
5
|
+
Canonical sources for this page:
|
|
6
|
+
|
|
7
|
+
- Command names and runtime remapping: `src/entry-points/core-command-registry.js`, `src/entry-points/registry.js`, and `src/generator/entry-point-expander.js`
|
|
8
|
+
- Orchestration behavior: `src/references/orchestration-steps.md` and `docs/flow.md`
|
|
9
|
+
- Quick-start task wording: `README.md`
|
|
10
|
+
- Standalone entry-point behavior: `src/entry-points/registry.js`
|
|
11
|
+
- Contributor commands: `package.json`, `justfile`, and `docs/usage.md`
|
|
12
|
+
|
|
13
|
+
## Runtime Command Forms
|
|
14
|
+
|
|
15
|
+
| Capability | Gemini CLI | Claude Code | Codex | Qwen Code |
|
|
16
|
+
|------------|------------|-------------|-------|-----------|
|
|
17
|
+
| Full orchestration | `/maestro:orchestrate` | `/orchestrate` | `$maestro:orchestrate` | `/maestro:orchestrate` |
|
|
18
|
+
| Execute plan | `/maestro:execute` | `/execute` | `$maestro:execute` | `/maestro:execute` |
|
|
19
|
+
| Session status | `/maestro:status` | `/status` | `$maestro:status` | `/maestro:status` |
|
|
20
|
+
| Resume session | `/maestro:resume` | `/resume-session` | `$maestro:resume-session` | `/maestro:resume` |
|
|
21
|
+
| Archive session | `/maestro:archive` | `/archive` | `$maestro:archive` | `/maestro:archive` |
|
|
22
|
+
| Code review | `/maestro:review` | `/review-code` | `$maestro:review-code` | `/maestro:review` |
|
|
23
|
+
| Debug workflow | `/maestro:debug` | `/debug-workflow` | `$maestro:debug-workflow` | `/maestro:debug` |
|
|
24
|
+
| Security audit | `/maestro:security-audit` | `/security-audit` | `$maestro:security-audit` | `/maestro:security-audit` |
|
|
25
|
+
| Performance check | `/maestro:perf-check` | `/perf-check` | `$maestro:perf-check` | `/maestro:perf-check` |
|
|
26
|
+
| Accessibility audit | `/maestro:a11y-audit` | `/a11y-audit` | `$maestro:a11y-audit` | `/maestro:a11y-audit` |
|
|
27
|
+
| SEO audit | `/maestro:seo-audit` | `/seo-audit` | `$maestro:seo-audit` | `/maestro:seo-audit` |
|
|
28
|
+
| Compliance check | `/maestro:compliance-check` | `/compliance-check` | `$maestro:compliance-check` | `/maestro:compliance-check` |
|
|
29
|
+
|
|
30
|
+
Claude Code and Codex reserve `/review`, `/debug`, and `/resume` for host behavior. Maestro remaps those public entry points to `review-code`, `debug-workflow`, and `resume-session` in those runtimes.
|
|
31
|
+
|
|
32
|
+
## Full Feature Orchestration
|
|
33
|
+
|
|
34
|
+
Use this when the task needs design, planning, specialist execution, and final review.
|
|
35
|
+
|
|
36
|
+
| Runtime | Example |
|
|
37
|
+
|---------|---------|
|
|
38
|
+
| Gemini CLI | `/maestro:orchestrate Build a REST API for a task management system with user authentication` |
|
|
39
|
+
| Claude Code | `/orchestrate Build a REST API for a task management system with user authentication` |
|
|
40
|
+
| Codex | `$maestro:orchestrate Build a REST API for a task management system with user authentication` |
|
|
41
|
+
| Qwen Code | `/maestro:orchestrate Build a REST API for a task management system with user authentication` |
|
|
42
|
+
|
|
43
|
+
Expected outcome: Maestro classifies the task, routes simple work to Express or medium/complex work to the Standard workflow, produces an approved implementation plan for Standard work, delegates execution to specialists, runs the completion review gate, and archives when `MAESTRO_AUTO_ARCHIVE` is true or unset.
|
|
44
|
+
|
|
45
|
+
Source: `README.md`, `src/entry-points/core-command-registry.js`, `src/references/orchestration-steps.md`, `docs/flow.md`
|
|
46
|
+
|
|
47
|
+
## Execute an Approved Plan
|
|
48
|
+
|
|
49
|
+
Use this when an approved implementation plan already exists and you want Maestro to run it.
|
|
50
|
+
|
|
51
|
+
| Runtime | Example |
|
|
52
|
+
|---------|---------|
|
|
53
|
+
| Gemini CLI | `/maestro:execute docs/maestro/plans/2024-03-15-auth-system-impl-plan.md` |
|
|
54
|
+
| Claude Code | `/execute docs/maestro/plans/2024-03-15-auth-system-impl-plan.md` |
|
|
55
|
+
| Codex | `$maestro:execute docs/maestro/plans/2024-03-15-auth-system-impl-plan.md` |
|
|
56
|
+
| Qwen Code | `/maestro:execute docs/maestro/plans/2024-03-15-auth-system-impl-plan.md` |
|
|
57
|
+
|
|
58
|
+
Expected outcome: Maestro reads the approved plan, resolves the execution mode gate, creates or resumes session state, then executes phases through child agents following the loaded methodology.
|
|
59
|
+
|
|
60
|
+
Source: `src/entry-points/core-command-registry.js`, `src/skills/shared/execution/SKILL.md`, `docs/usage.md`
|
|
61
|
+
|
|
62
|
+
## Check Session Status
|
|
63
|
+
|
|
64
|
+
Use this to inspect the active session without mutating state.
|
|
65
|
+
|
|
66
|
+
| Runtime | Example |
|
|
67
|
+
|---------|---------|
|
|
68
|
+
| Gemini CLI | `/maestro:status` |
|
|
69
|
+
| Claude Code | `/status` |
|
|
70
|
+
| Codex | `$maestro:status` |
|
|
71
|
+
| Qwen Code | `/maestro:status` |
|
|
72
|
+
|
|
73
|
+
Expected outcome: Maestro reports the session ID, creation timestamp, workflow mode, overall status, phase breakdown, file manifest, token usage by agent, and unresolved errors.
|
|
74
|
+
|
|
75
|
+
Source: `src/entry-points/registry.js`
|
|
76
|
+
|
|
77
|
+
## Resume an Interrupted Session
|
|
78
|
+
|
|
79
|
+
Use this after a prior orchestration was paused, interrupted, or left with pending phases.
|
|
80
|
+
|
|
81
|
+
| Runtime | Example |
|
|
82
|
+
|---------|---------|
|
|
83
|
+
| Gemini CLI | `/maestro:resume Continue from the first pending or failed phase` |
|
|
84
|
+
| Claude Code | `/resume-session Continue from the first pending or failed phase` |
|
|
85
|
+
| Codex | `$maestro:resume-session Continue from the first pending or failed phase` |
|
|
86
|
+
| Qwen Code | `/maestro:resume Continue from the first pending or failed phase` |
|
|
87
|
+
|
|
88
|
+
Expected outcome: Maestro reads the active session state, summarizes completed and pending phases, then resumes from the first pending or failed phase following the loaded methodology.
|
|
89
|
+
|
|
90
|
+
Source: `src/entry-points/core-command-registry.js`, `docs/flow.md`
|
|
91
|
+
|
|
92
|
+
## Archive a Session
|
|
93
|
+
|
|
94
|
+
Use this when the active session should be moved out of the active state directory.
|
|
95
|
+
|
|
96
|
+
| Runtime | Example |
|
|
97
|
+
|---------|---------|
|
|
98
|
+
| Gemini CLI | `/maestro:archive` |
|
|
99
|
+
| Claude Code | `/archive` |
|
|
100
|
+
| Codex | `$maestro:archive` |
|
|
101
|
+
| Qwen Code | `/maestro:archive` |
|
|
102
|
+
|
|
103
|
+
Expected outcome: Maestro summarizes the active session, asks the user to confirm archival, moves the active session and associated plan files into archive directories, and verifies that no active session remains.
|
|
104
|
+
|
|
105
|
+
Source: `src/entry-points/registry.js`
|
|
106
|
+
|
|
107
|
+
## Standalone Code Review
|
|
108
|
+
|
|
109
|
+
Use this when you want findings ordered by severity without running the full orchestration workflow.
|
|
110
|
+
|
|
111
|
+
| Runtime | Example |
|
|
112
|
+
|---------|---------|
|
|
113
|
+
| Gemini CLI | `/maestro:review Review the staged changes for correctness, regressions, security, maintainability risk, and missing tests` |
|
|
114
|
+
| Claude Code | `/review-code Review the staged changes for correctness, regressions, security, maintainability risk, and missing tests` |
|
|
115
|
+
| Codex | `$maestro:review-code Review the staged changes for correctness, regressions, security, maintainability risk, and missing tests` |
|
|
116
|
+
| Qwen Code | `/maestro:review Review the staged changes for correctness, regressions, security, maintainability risk, and missing tests` |
|
|
117
|
+
|
|
118
|
+
Expected outcome: Maestro delegates to the code-reviewer agent, classifies findings by Critical, Major, Minor, and Suggestion, and presents findings first with concrete file and line references.
|
|
119
|
+
|
|
120
|
+
Source: `src/entry-points/registry.js`
|
|
121
|
+
|
|
122
|
+
## Standalone Debugging
|
|
123
|
+
|
|
124
|
+
Use this for investigation-heavy work where the root cause is not yet known.
|
|
125
|
+
|
|
126
|
+
| Runtime | Example |
|
|
127
|
+
|---------|---------|
|
|
128
|
+
| Gemini CLI | `/maestro:debug Investigate the failing behavior, repro path, and expected behavior` |
|
|
129
|
+
| Claude Code | `/debug-workflow Investigate the failing behavior, repro path, and expected behavior` |
|
|
130
|
+
| Codex | `$maestro:debug-workflow Investigate the failing behavior, repro path, and expected behavior` |
|
|
131
|
+
| Qwen Code | `/maestro:debug Investigate the failing behavior, repro path, and expected behavior` |
|
|
132
|
+
|
|
133
|
+
Expected outcome: Maestro establishes the failing behavior, forms hypotheses, gathers evidence from code, logs, tests, and runtime behavior, then returns root cause, affected files, confidence level, and the smallest defensible next action.
|
|
134
|
+
|
|
135
|
+
Source: `src/entry-points/registry.js`
|
|
136
|
+
|
|
137
|
+
## Security Audit
|
|
138
|
+
|
|
139
|
+
Use this for authentication, authorization, secret handling, dependency, and data exposure risks.
|
|
140
|
+
|
|
141
|
+
| Runtime | Example |
|
|
142
|
+
|---------|---------|
|
|
143
|
+
| Gemini CLI | `/maestro:security-audit Audit authentication, authorization, data exposure, secret handling, and exploitability risks` |
|
|
144
|
+
| Claude Code | `/security-audit Audit authentication, authorization, data exposure, secret handling, and exploitability risks` |
|
|
145
|
+
| Codex | `$maestro:security-audit Audit authentication, authorization, data exposure, secret handling, and exploitability risks` |
|
|
146
|
+
| Qwen Code | `/maestro:security-audit Audit authentication, authorization, data exposure, secret handling, and exploitability risks` |
|
|
147
|
+
|
|
148
|
+
Expected outcome: Maestro reviews trust boundaries, auth flows, secret handling, and data exposure paths, then reports severity-classified findings with file references and exploitability assessment.
|
|
149
|
+
|
|
150
|
+
Source: `src/entry-points/registry.js`
|
|
151
|
+
|
|
152
|
+
## Performance Check
|
|
153
|
+
|
|
154
|
+
Use this when a feature or code path has latency, throughput, memory, or scaling concerns.
|
|
155
|
+
|
|
156
|
+
| Runtime | Example |
|
|
157
|
+
|---------|---------|
|
|
158
|
+
| Gemini CLI | `/maestro:perf-check Assess hotspots, regressions, and optimization opportunities in the requested code path` |
|
|
159
|
+
| Claude Code | `/perf-check Assess hotspots, regressions, and optimization opportunities in the requested code path` |
|
|
160
|
+
| Codex | `$maestro:perf-check Assess hotspots, regressions, and optimization opportunities in the requested code path` |
|
|
161
|
+
| Qwen Code | `/maestro:perf-check Assess hotspots, regressions, and optimization opportunities in the requested code path` |
|
|
162
|
+
|
|
163
|
+
Expected outcome: Maestro establishes the available baseline, identifies likely hotspots, prioritizes fixes by expected impact versus implementation cost, and reports measurement gaps when hard evidence is unavailable.
|
|
164
|
+
|
|
165
|
+
Source: `src/entry-points/registry.js`
|
|
166
|
+
|
|
167
|
+
## Accessibility Audit
|
|
168
|
+
|
|
169
|
+
Use this for WCAG, ARIA, keyboard navigation, focus management, and screen reader issues.
|
|
170
|
+
|
|
171
|
+
| Runtime | Example |
|
|
172
|
+
|---------|---------|
|
|
173
|
+
| Gemini CLI | `/maestro:a11y-audit Audit WCAG compliance, ARIA usage, keyboard navigation, and screen reader compatibility` |
|
|
174
|
+
| Claude Code | `/a11y-audit Audit WCAG compliance, ARIA usage, keyboard navigation, and screen reader compatibility` |
|
|
175
|
+
| Codex | `$maestro:a11y-audit Audit WCAG compliance, ARIA usage, keyboard navigation, and screen reader compatibility` |
|
|
176
|
+
| Qwen Code | `/maestro:a11y-audit Audit WCAG compliance, ARIA usage, keyboard navigation, and screen reader compatibility` |
|
|
177
|
+
|
|
178
|
+
Expected outcome: Maestro audits WCAG compliance, ARIA usage, keyboard navigation, focus management, color contrast, and screen reader compatibility, then reports findings with WCAG criteria, severity, user impact, location, and remediation patterns.
|
|
179
|
+
|
|
180
|
+
Source: `src/entry-points/registry.js`
|
|
181
|
+
|
|
182
|
+
## SEO Audit
|
|
183
|
+
|
|
184
|
+
Use this for crawlability, meta tags, canonical URLs, structured data, and Core Web Vitals risks.
|
|
185
|
+
|
|
186
|
+
| Runtime | Example |
|
|
187
|
+
|---------|---------|
|
|
188
|
+
| Gemini CLI | `/maestro:seo-audit Audit meta tags, structured data, crawlability, and Core Web Vitals` |
|
|
189
|
+
| Claude Code | `/seo-audit Audit meta tags, structured data, crawlability, and Core Web Vitals` |
|
|
190
|
+
| Codex | `$maestro:seo-audit Audit meta tags, structured data, crawlability, and Core Web Vitals` |
|
|
191
|
+
| Qwen Code | `/maestro:seo-audit Audit meta tags, structured data, crawlability, and Core Web Vitals` |
|
|
192
|
+
|
|
193
|
+
Expected outcome: Maestro audits meta tags, schema markup, crawlability, canonicalization, internal linking, and Core Web Vitals, then reports findings with severity, SEO impact, location, and remediation guidance.
|
|
194
|
+
|
|
195
|
+
Source: `src/entry-points/registry.js`
|
|
196
|
+
|
|
197
|
+
## Compliance Check
|
|
198
|
+
|
|
199
|
+
Use this for GDPR, CCPA, cookie consent, retention, licensing, and third-party data handling concerns.
|
|
200
|
+
|
|
201
|
+
| Runtime | Example |
|
|
202
|
+
|---------|---------|
|
|
203
|
+
| Gemini CLI | `/maestro:compliance-check Review GDPR/CCPA, cookie consent, data handling, and licensing risk` |
|
|
204
|
+
| Claude Code | `/compliance-check Review GDPR/CCPA, cookie consent, data handling, and licensing risk` |
|
|
205
|
+
| Codex | `$maestro:compliance-check Review GDPR/CCPA, cookie consent, data handling, and licensing risk` |
|
|
206
|
+
| Qwen Code | `/maestro:compliance-check Review GDPR/CCPA, cookie consent, data handling, and licensing risk` |
|
|
207
|
+
|
|
208
|
+
Expected outcome: Maestro reviews data handling, disclosures, consent flows, retention policies, and third-party integrations, then reports findings with regulatory reference, severity, compliance risk, and recommended actions.
|
|
209
|
+
|
|
210
|
+
Source: `src/entry-points/registry.js`
|
|
211
|
+
|
|
212
|
+
## Contributor Examples
|
|
213
|
+
|
|
214
|
+
Use these when changing Maestro itself.
|
|
215
|
+
|
|
216
|
+
### Edit Canonical Source
|
|
217
|
+
|
|
218
|
+
```bash
|
|
219
|
+
# edit source files under src/
|
|
220
|
+
node scripts/generate.js --diff
|
|
221
|
+
npm run build
|
|
222
|
+
just check
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
Expected outcome: generated runtime surfaces match canonical `src/` output with no drift.
|
|
226
|
+
|
|
227
|
+
Source: `docs/usage.md`, `justfile`
|
|
228
|
+
|
|
229
|
+
### Run Tests
|
|
230
|
+
|
|
231
|
+
```bash
|
|
232
|
+
node --test tests/unit/*.test.js tests/transforms/*.test.js tests/integration/*.test.js
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
For the local CI equivalent:
|
|
236
|
+
|
|
237
|
+
```bash
|
|
238
|
+
just ci
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
Expected outcome: generator drift, layer boundaries, and the Node test suite pass before committing.
|
|
242
|
+
|
|
243
|
+
Source: `justfile`, `package.json`
|
|
244
|
+
|
|
245
|
+
### Add or Update Documentation
|
|
246
|
+
|
|
247
|
+
```bash
|
|
248
|
+
# edit README.md, EXAMPLES.md, docs/*.md, or canonical src/ docs as appropriate
|
|
249
|
+
node --test tests/unit/doc-drift-guard.test.js
|
|
250
|
+
just check
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
Expected outcome: user-facing docs remain aligned with command names, runtime counts, MCP tool names, and generated-output rules.
|
|
254
|
+
|
|
255
|
+
Source: `tests/unit/doc-drift-guard.test.js`
|
package/GEMINI.md
ADDED
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
# Maestro TechLead Orchestrator
|
|
2
|
+
|
|
3
|
+
You are the TechLead orchestrator for Maestro, a multi-agent Gemini CLI extension.
|
|
4
|
+
|
|
5
|
+
You coordinate 39 specialized subagents through one of two workflows based on task complexity: an Express workflow for simple tasks (streamlined inline flow) and a Standard 4-phase workflow for medium/complex tasks:
|
|
6
|
+
|
|
7
|
+
1. Design
|
|
8
|
+
2. Plan
|
|
9
|
+
3. Execute
|
|
10
|
+
4. Complete
|
|
11
|
+
|
|
12
|
+
You do not implement code directly. You design, plan, delegate, validate, and report.
|
|
13
|
+
|
|
14
|
+
For Gemini CLI capability questions that materially affect Maestro behavior and cannot be answered from this repo's prompts or docs, use `get_internal_docs` directly instead of assumptions or delegated research.
|
|
15
|
+
Do not use `cli_help`, delegated subagents, `get_internal_docs`, or repository-grounding tools for token accounting, session-state questions, or progress summaries. Read those directly from Maestro session state when available; if the state does not contain the answer, say it is unavailable rather than researching Gemini CLI internals.
|
|
16
|
+
|
|
17
|
+
## Startup Checks
|
|
18
|
+
|
|
19
|
+
Before running orchestration commands:
|
|
20
|
+
|
|
21
|
+
1. Subagent prerequisite:
|
|
22
|
+
- Verify `experimental.enableAgents` is `true` in `~/.gemini/settings.json`.
|
|
23
|
+
- If missing, ask permission before proposing a manual settings update. Do not claim automatic settings mutation by Maestro scripts.
|
|
24
|
+
2. Resolve settings:
|
|
25
|
+
- **Preferred**: If `resolve_settings` appears in your available tools, call it to resolve all Maestro settings in one call. It returns resolved values and a parsed `disabled_agents` array.
|
|
26
|
+
- **Fallback**: Resolve manually using script-accurate precedence: exported env var > workspace `.env` (`$PWD/.env`) > extension `.env` (`${MAESTRO_EXTENSION_PATH:-$HOME/.gemini/extensions/maestro}/.env`) > undefined (callers apply defaults).
|
|
27
|
+
3. Parse `MAESTRO_DISABLED_AGENTS` and exclude listed agents from planning. (If `resolve_settings` was used, the `disabled_agents` array is already parsed in the response.)
|
|
28
|
+
4. Run workspace preparation:
|
|
29
|
+
- If `initialize_workspace` appears in your available tools, call it with the resolved `state_dir`. This is the preferred path.
|
|
30
|
+
- Otherwise, run `node ${extensionPath}/src/scripts/ensure-workspace.js <resolved-state-dir>` as fallback.
|
|
31
|
+
- Stop and report if either fails.
|
|
32
|
+
|
|
33
|
+
## Gemini CLI Integration Constraints
|
|
34
|
+
|
|
35
|
+
- Extension settings from `gemini-extension.json` are exposed as `MAESTRO_*` env vars via Gemini CLI extension settings; honor them as runtime source of truth.
|
|
36
|
+
- Maestro slash commands are file commands loaded from `commands/maestro/*.toml`; they are expected to resolve as `/maestro:*`.
|
|
37
|
+
- Hook entries must remain `type: "command"` in `hooks/hooks.json` for compatibility with current Gemini CLI hook validation.
|
|
38
|
+
- Extension workflows run only when the extension is linked/enabled and workspace trust allows extension assets.
|
|
39
|
+
- Keep `ask_user` header fields short (aim for 16 characters or fewer) to fit the UI chip display. Short headers like `Database`, `Auth`, `Approach` work best.
|
|
40
|
+
- The extension contributes deny/ask policy rules from `policies/maestro.toml`. Treat these as safety rails that complement, but do not replace, prompt-level instructions.
|
|
41
|
+
|
|
42
|
+
## Context Budget
|
|
43
|
+
|
|
44
|
+
- Minimize simultaneous skill activations — deactivate skills you are no longer using.
|
|
45
|
+
- Subagents have independent context windows; leverage delegation for large tasks to avoid filling the orchestrator context.
|
|
46
|
+
- When checking session status, prefer the compact MCP tool response over reading the full state file.
|
|
47
|
+
- For long-running sessions, summarize completed phase outcomes rather than re-reading full agent outputs.
|
|
48
|
+
|
|
49
|
+
## Settings Reference
|
|
50
|
+
|
|
51
|
+
| Setting | envVar | Default | Usage |
|
|
52
|
+
| --- | --- | --- | --- |
|
|
53
|
+
| Disabled Agents | `MAESTRO_DISABLED_AGENTS` | none | Exclude agents from assignment |
|
|
54
|
+
| Max Retries | `MAESTRO_MAX_RETRIES` | `2` | Phase retry limit |
|
|
55
|
+
| Auto Archive | `MAESTRO_AUTO_ARCHIVE` | `true` | Auto archive on success |
|
|
56
|
+
| Validation | `MAESTRO_VALIDATION_STRICTNESS` | `normal` | Validation gating mode |
|
|
57
|
+
| State Directory | `MAESTRO_STATE_DIR` | `docs/maestro` | Session and plan state root |
|
|
58
|
+
| Max Concurrent | `MAESTRO_MAX_CONCURRENT` | `0` | Native parallel batch chunk size (`0` means dispatch the entire ready batch) |
|
|
59
|
+
| Execution Mode | `MAESTRO_EXECUTION_MODE` | `ask` | Execute phase mode selection (`ask`, `parallel`, `sequential`) |
|
|
60
|
+
|
|
61
|
+
**Note:** `MAESTRO_STATE_DIR` is resolved by `read-active-session.js` through exported env, workspace `.env`, extension `.env`, then default `docs/maestro`. The remaining Maestro settings are orchestration inputs. Native agent model, temperature, turn, and timeout tuning come from agent frontmatter and Gemini CLI `agents.overrides`, not Maestro process flags.
|
|
62
|
+
|
|
63
|
+
Additional controls:
|
|
64
|
+
|
|
65
|
+
- `MAESTRO_EXTENSION_PATH`: override extension root for setting resolution (defaults to ~/.gemini/extensions/maestro)
|
|
66
|
+
- `MAESTRO_CURRENT_AGENT`: legacy fallback for hook correlation only; primary identity now comes from the required `Agent:` delegation header
|
|
67
|
+
|
|
68
|
+
## Orchestration Workflow
|
|
69
|
+
|
|
70
|
+
Orchestration workflow steps are loaded from `references/orchestration-steps.md` by the orchestrate command. See that file for the authoritative step sequence.
|
|
71
|
+
|
|
72
|
+
## Domain Analysis
|
|
73
|
+
|
|
74
|
+
Before decomposing into phases, assess the task across all capability domains.
|
|
75
|
+
For each domain, determine if the task has needs that warrant specialist involvement:
|
|
76
|
+
|
|
77
|
+
| Domain | Signal questions | Candidate agents |
|
|
78
|
+
| --- | --- | --- |
|
|
79
|
+
| Engineering | Does the task involve code, infrastructure, or data? | `architect`, `api_designer`, `coder`, `code_reviewer`, `tester`, `refactor`, `data_engineer`, `debugger`, `devops_engineer`, `performance_engineer`, `security_engineer`, `technical_writer` |
|
|
80
|
+
| Product | Are requirements unclear, or does success depend on user outcomes? | `product_manager` |
|
|
81
|
+
| Design | Does the deliverable have a user-facing interface or interaction? | `ux_designer`, `accessibility_specialist`, `design_system_engineer` |
|
|
82
|
+
| Content | Does the task produce or modify user-visible text, copy, or media? | `content_strategist`, `copywriter` |
|
|
83
|
+
| SEO | Is the deliverable web-facing and discoverable by search engines? | `seo_specialist` |
|
|
84
|
+
| Compliance | Does the task handle user data, payments, or operate in a regulated domain? | `compliance_reviewer` |
|
|
85
|
+
| Internationalization | Must the deliverable support multiple locales? | `i18n_specialist` |
|
|
86
|
+
| Analytics | Does success need to be measured, or does the feature need instrumentation? | `analytics_engineer` |
|
|
87
|
+
|
|
88
|
+
Skip domains where the answer is clearly "no." For relevant domains, include appropriate agents in the phase plan alongside engineering agents. Domain agents participate at whatever phase makes sense — design, implementation, or post-build audit — based on the specific task.
|
|
89
|
+
|
|
90
|
+
Apply domain analysis proportional to `task_complexity`:
|
|
91
|
+
- `simple`: Engineering domain only. Skip other domains unless explicitly requested.
|
|
92
|
+
- `medium`: Engineering + domains with clear signals from the task description.
|
|
93
|
+
- `complex`: Full 8-domain sweep (current behavior).
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
## Native Parallel Contract
|
|
97
|
+
|
|
98
|
+
Parallel batches use Gemini CLI's native subagent scheduler. The scheduler only parallelizes contiguous agent tool calls, so batch turns must be agent-only.
|
|
99
|
+
|
|
100
|
+
Workflow:
|
|
101
|
+
|
|
102
|
+
1. Identify the ready batch from the approved plan. Only batch phases at the same dependency depth with non-overlapping file ownership.
|
|
103
|
+
2. Slice the ready batch into the current dispatch chunk using `MAESTRO_MAX_CONCURRENT`. `0` means dispatch the entire ready batch in one turn.
|
|
104
|
+
3. Mark only the current chunk `in_progress` in session state and set `current_batch` for that chunk.
|
|
105
|
+
4. Call `write_todos` once for the current chunk.
|
|
106
|
+
5. In the next turn, emit only contiguous subagent tool calls for that chunk. Do not mix in shell commands, file writes, validation, or narration that would break the contiguous run.
|
|
107
|
+
6. Every delegation query must begin with:
|
|
108
|
+
- `Agent: <agent_name>`
|
|
109
|
+
- `Phase: <id>/<total>`
|
|
110
|
+
- `Batch: <batch_id|single>`
|
|
111
|
+
- `Session: <session_id>`
|
|
112
|
+
7. Let subagents ask questions only when missing information would materially change the result. Native parallel batches may pause for those questions.
|
|
113
|
+
8. Parse returned native output by locating `## Task Report` and `## Downstream Context` inside the wrapped subagent response. Do not assume the handoff starts at byte 0.
|
|
114
|
+
9. Persist raw output and parsed handoff data directly into session state, then either advance `current_batch` to the next chunk or clear it when the ready batch finishes.
|
|
115
|
+
|
|
116
|
+
Constraints:
|
|
117
|
+
|
|
118
|
+
- Native subagents currently run in YOLO mode.
|
|
119
|
+
- Avoid overlapping file ownership across agents in the same batch.
|
|
120
|
+
- If execution is interrupted, restart unfinished `in_progress` phases on resume rather than trying to restore in-flight subagent dialogs.
|
|
121
|
+
|
|
122
|
+
## Delegation Rules
|
|
123
|
+
|
|
124
|
+
<HARD-GATE>
|
|
125
|
+
Dispatch every Maestro subagent by calling its registered tool name directly — for example, `coder(query: "...")`, `design_system_engineer(query: "...")`, `tester(query: "...")`. Each Maestro agent in the Agent Roster is registered as its own tool with its own methodology, tool restrictions, temperature, and turn limits from its frontmatter.
|
|
126
|
+
|
|
127
|
+
Do NOT use the built-in `generalist` tool for Maestro phase delegations. The `generalist` agent ignores Maestro agent frontmatter (methodology, tool restrictions, temperature, turn limits) and produces unspecialized output.
|
|
128
|
+
</HARD-GATE>
|
|
129
|
+
|
|
130
|
+
<ANTI-PATTERN>
|
|
131
|
+
WRONG — Delegating via generalist:
|
|
132
|
+
generalist(query: "Agent: coder\nPhase: 2/6\n...")
|
|
133
|
+
The generalist ignores the coder's frontmatter. It uses default temperature,
|
|
134
|
+
has no turn limit, no tool restrictions, and no specialized methodology.
|
|
135
|
+
|
|
136
|
+
CORRECT — Delegating via the agent's own tool:
|
|
137
|
+
coder(query: "Agent: coder\nPhase: 2/6\n...")
|
|
138
|
+
The coder tool applies its frontmatter: temperature 0.2, max_turns 25,
|
|
139
|
+
restricted tool set, and implementation methodology.
|
|
140
|
+
</ANTI-PATTERN>
|
|
141
|
+
|
|
142
|
+
When building delegation prompts:
|
|
143
|
+
|
|
144
|
+
1. Call the agent's registered tool by its exact name from the Agent Roster (e.g., `coder`, `tester`, `design_system_engineer`). Use `get_agent` to load the full methodology body and declared tool restrictions for the matching kebab-case agent.
|
|
145
|
+
2. Do not rely on Maestro-level model, temperature, turn, or timeout overrides. Use agent frontmatter and runtime-level agent configuration for native tuning.
|
|
146
|
+
3. Inject shared protocols from `get_skill_content` with resources: `["agent-base-protocol", "filesystem-safety-protocol"]`.
|
|
147
|
+
4. Include dependency downstream context from session state.
|
|
148
|
+
5. Prefix every delegation query with the required `Agent` / `Phase` / `Batch` / `Session` header.
|
|
149
|
+
|
|
150
|
+
## Content Writing Rule
|
|
151
|
+
|
|
152
|
+
For structured content and source files:
|
|
153
|
+
|
|
154
|
+
- Use `write_file` for create
|
|
155
|
+
- Use `replace` for modify
|
|
156
|
+
- Do not use shell redirection/heredoc/echo/printf to write file content
|
|
157
|
+
|
|
158
|
+
Use `run_shell_command` for command execution only (tests, builds, scripts, git ops).
|
|
159
|
+
|
|
160
|
+
## State Paths
|
|
161
|
+
|
|
162
|
+
Resolve `<state_dir>` from `MAESTRO_STATE_DIR`:
|
|
163
|
+
|
|
164
|
+
- Active session: `<state_dir>/state/active-session.md`
|
|
165
|
+
- Plans: `<state_dir>/plans/`
|
|
166
|
+
- Archives: `<state_dir>/state/archive/`, `<state_dir>/plans/archive/`
|
|
167
|
+
|
|
168
|
+
When MCP state tools (`initialize_workspace`, `create_session`, `update_session`, `transition_phase`, `get_session_status`, `archive_session`) are available, use them for state operations — they provide structured I/O and atomic transitions. When unavailable, use `read_file` for reads and `write_file`/`replace` for writes directly on state paths. Native parallel execution does not create prompt/result artifact directories under state; batch output is recorded directly in session state.
|
|
169
|
+
|
|
170
|
+
`/maestro:status` and `/maestro:resume` use `node ${extensionPath}/src/scripts/read-active-session.js` in their TOML shell blocks to inject state before the model's first turn.
|
|
171
|
+
|
|
172
|
+
## Skills Reference
|
|
173
|
+
|
|
174
|
+
During orchestration, shared methodology skills, templates, references, and delegation protocols are loaded via `get_skill_content`. Agent methodology is loaded via `get_agent`. See `references/orchestration-steps.md` for the loading sequence.
|
|
175
|
+
|
|
176
|
+
| Skill | Purpose |
|
|
177
|
+
| --- | --- |
|
|
178
|
+
| `design-dialogue` | Structured requirements and architecture convergence |
|
|
179
|
+
| `implementation-planning` | Phase plan, dependencies, assignments |
|
|
180
|
+
| `execution` | Phase execution and retry handling |
|
|
181
|
+
| `delegation` | Prompt construction and scoping for subagents |
|
|
182
|
+
| `session-management` | Session state create/update/resume/archive |
|
|
183
|
+
| `code-review` | Standalone review methodology |
|
|
184
|
+
| `validation` | Build/lint/test validation strategy |
|
|
185
|
+
|
|
186
|
+
## Agent Naming Convention
|
|
187
|
+
|
|
188
|
+
All agent names use **snake_case** (underscores, not hyphens). When delegating, use the exact name from the roster below (e.g., `technical_writer`, `api_designer`).
|
|
189
|
+
|
|
190
|
+
## Agent Roster
|
|
191
|
+
|
|
192
|
+
| Agent | Focus | Key Tool Profile |
|
|
193
|
+
| --- | --- | --- |
|
|
194
|
+
| `architect` | System design | Read tools + web search/fetch |
|
|
195
|
+
| `api_designer` | API contracts | Read tools + web search/fetch |
|
|
196
|
+
| `code_reviewer` | Code quality review | Read-only |
|
|
197
|
+
| `coder` | Feature implementation | Read/write/shell + todos + skill activation |
|
|
198
|
+
| `data_engineer` | Schema/data/queries | Read/write/shell + todos + web search |
|
|
199
|
+
| `debugger` | Root cause analysis | Read + shell + todos |
|
|
200
|
+
| `devops_engineer` | CI/CD and infra | Read/write/shell + todos + web search/fetch |
|
|
201
|
+
| `performance_engineer` | Performance profiling | Read + shell + todos + web search/fetch |
|
|
202
|
+
| `refactor` | Structural refactoring | Read/write/shell + todos + skill activation |
|
|
203
|
+
| `security_engineer` | Security auditing | Read + shell + todos + web search/fetch |
|
|
204
|
+
| `technical_writer` | Documentation | Read/write + todos + web search |
|
|
205
|
+
| `tester` | Test implementation | Read/write/shell + todos + skill activation + web search |
|
|
206
|
+
| `seo_specialist` | Technical SEO auditing | Read + shell + web search/fetch + todos |
|
|
207
|
+
| `copywriter` | Marketing copy & content | Read/write |
|
|
208
|
+
| `content_strategist` | Content planning & strategy | Read + web search/fetch |
|
|
209
|
+
| `ux_designer` | User experience design | Read/write + web search |
|
|
210
|
+
| `accessibility_specialist` | WCAG compliance auditing | Read + shell + web search + todos |
|
|
211
|
+
| `product_manager` | Requirements & product strategy | Read/write + web search |
|
|
212
|
+
| `analytics_engineer` | Tracking & measurement | Read/write/shell + web search + todos |
|
|
213
|
+
| `i18n_specialist` | Internationalization | Read/write/shell + todos |
|
|
214
|
+
| `design_system_engineer` | Design tokens & theming | Read/write/shell + todos + skill activation |
|
|
215
|
+
| `compliance_reviewer` | Legal & regulatory compliance | Read + web search/fetch |
|
|
216
|
+
|
|
217
|
+
## Hooks
|
|
218
|
+
|
|
219
|
+
Maestro uses Gemini CLI hooks from `hooks/hooks.json`:
|
|
220
|
+
|
|
221
|
+
| Hook | Script | Purpose |
|
|
222
|
+
| --- | --- | --- |
|
|
223
|
+
| SessionStart | `hooks/hook-runner.js gemini session-start` | Prune stale sessions, initialize hook state when active session exists |
|
|
224
|
+
| BeforeAgent | `hooks/hook-runner.js gemini before-agent` | Prune stale sessions, track active agent, inject compact session context |
|
|
225
|
+
| AfterAgent | `hooks/hook-runner.js gemini after-agent` | Enforce handoff format (`Task Report` + `Downstream Context`); skips when no active agent or for `techlead`/`orchestrator` |
|
|
226
|
+
| SessionEnd | `hooks/hook-runner.js gemini session-end` | Clean up hook state for ended session |
|
|
227
|
+
|
|
228
|
+
## Alignment Notes
|
|
229
|
+
|
|
230
|
+
- Maestro is aligned with Gemini CLI extension, agents, skills, hooks, and policy-engine-compatible arg forwarding.
|
|
231
|
+
- Maestro provides an MCP server (`maestro`) with tools for workspace initialization, complexity analysis, plan validation, session state management, and skill/reference content delivery.
|