maestro-flow 0.1.0 → 0.1.2

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.
Files changed (92) hide show
  1. package/.codex/skills/manage-codebase-rebuild/SKILL.md +405 -405
  2. package/.codex/skills/manage-codebase-refresh/SKILL.md +82 -82
  3. package/.codex/skills/manage-issue/SKILL.md +65 -65
  4. package/.codex/skills/manage-status/SKILL.md +89 -89
  5. package/.codex/skills/quality-debug/SKILL.md +413 -413
  6. package/.codex/skills/quality-refactor/SKILL.md +191 -191
  7. package/.codex/skills/quality-sync/SKILL.md +89 -89
  8. package/.codex/skills/quality-test/SKILL.md +198 -198
  9. package/.codex/skills/spec-add/SKILL.md +79 -79
  10. package/.codex/skills/spec-load/SKILL.md +75 -75
  11. package/.codex/skills/spec-map/SKILL.md +182 -182
  12. package/.codex/skills/spec-setup/SKILL.md +76 -76
  13. package/.codex/skills/team-coordinate/SKILL.md +7 -7
  14. package/.codex/skills/team-coordinate/roles/coordinator/role.md +1 -1
  15. package/.codex/skills/team-lifecycle-v4/SKILL.md +2 -2
  16. package/.codex/skills/team-lifecycle-v4/instructions/agent-instruction.md +2 -2
  17. package/.codex/skills/team-lifecycle-v4/roles/analyst/role.md +2 -2
  18. package/.codex/skills/team-lifecycle-v4/roles/coordinator/role.md +2 -2
  19. package/.codex/skills/team-lifecycle-v4/roles/executor/commands/implement.md +1 -1
  20. package/.codex/skills/team-lifecycle-v4/roles/planner/role.md +2 -2
  21. package/.codex/skills/team-lifecycle-v4/roles/writer/role.md +1 -1
  22. package/.codex/skills/team-lifecycle-v4/schemas/tasks-schema.md +1 -1
  23. package/.codex/skills/team-quality-assurance/SKILL.md +2 -2
  24. package/.codex/skills/team-quality-assurance/roles/coordinator/role.md +2 -2
  25. package/.codex/skills/team-quality-assurance/roles/executor/role.md +1 -1
  26. package/.codex/skills/team-quality-assurance/roles/scout/role.md +2 -2
  27. package/.codex/skills/team-review/SKILL.md +2 -2
  28. package/.codex/skills/team-review/roles/coordinator/role.md +2 -2
  29. package/.codex/skills/team-review/roles/reviewer/role.md +2 -2
  30. package/.codex/skills/team-review/roles/scanner/role.md +1 -1
  31. package/.codex/skills/team-tech-debt/SKILL.md +2 -2
  32. package/.codex/skills/team-tech-debt/roles/coordinator/role.md +1 -1
  33. package/.codex/skills/team-tech-debt/roles/executor/role.md +1 -1
  34. package/.codex/skills/team-tech-debt/roles/scanner/role.md +2 -2
  35. package/.codex/skills/team-tech-debt/roles/validator/role.md +1 -1
  36. package/.codex/skills/team-testing/SKILL.md +2 -2
  37. package/.codex/skills/team-testing/roles/coordinator/role.md +2 -2
  38. package/.codex/skills/team-testing/roles/executor/role.md +2 -2
  39. package/.codex/skills/team-testing/roles/generator/role.md +2 -2
  40. package/README.md +43 -4
  41. package/dist/agents/dashboard-bridge.d.ts +5 -0
  42. package/dist/agents/dashboard-bridge.d.ts.map +1 -1
  43. package/dist/agents/dashboard-bridge.js +13 -0
  44. package/dist/agents/dashboard-bridge.js.map +1 -1
  45. package/dist/agents/parallel-cli-runner.d.ts +42 -0
  46. package/dist/agents/parallel-cli-runner.d.ts.map +1 -0
  47. package/dist/agents/parallel-cli-runner.js +200 -0
  48. package/dist/agents/parallel-cli-runner.js.map +1 -0
  49. package/dist/agents/terminal-adapter.d.ts +94 -0
  50. package/dist/agents/terminal-adapter.d.ts.map +1 -0
  51. package/dist/agents/terminal-adapter.js +132 -0
  52. package/dist/agents/terminal-adapter.js.map +1 -0
  53. package/dist/agents/terminal-backend.d.ts +53 -0
  54. package/dist/agents/terminal-backend.d.ts.map +1 -0
  55. package/dist/agents/terminal-backend.js +286 -0
  56. package/dist/agents/terminal-backend.js.map +1 -0
  57. package/dist/cli.js +5 -1
  58. package/dist/cli.js.map +1 -1
  59. package/dist/commands/coordinate.d.ts.map +1 -1
  60. package/dist/commands/coordinate.js +14 -5
  61. package/dist/commands/coordinate.js.map +1 -1
  62. package/dist/commands/delegate.d.ts +3 -0
  63. package/dist/commands/delegate.d.ts.map +1 -0
  64. package/dist/commands/delegate.js +142 -0
  65. package/dist/commands/delegate.js.map +1 -0
  66. package/dist/commands/msg.d.ts +3 -0
  67. package/dist/commands/msg.d.ts.map +1 -0
  68. package/dist/commands/msg.js +110 -0
  69. package/dist/commands/msg.js.map +1 -0
  70. package/dist/coordinator/graph-types.d.ts +17 -0
  71. package/dist/coordinator/graph-types.d.ts.map +1 -1
  72. package/dist/coordinator/graph-walker.d.ts +3 -1
  73. package/dist/coordinator/graph-walker.d.ts.map +1 -1
  74. package/dist/coordinator/graph-walker.js +147 -8
  75. package/dist/coordinator/graph-walker.js.map +1 -1
  76. package/dist/coordinator/index.d.ts +2 -0
  77. package/dist/coordinator/index.d.ts.map +1 -1
  78. package/dist/coordinator/index.js +1 -0
  79. package/dist/coordinator/index.js.map +1 -1
  80. package/dist/coordinator/parallel-executor.d.ts +24 -0
  81. package/dist/coordinator/parallel-executor.d.ts.map +1 -0
  82. package/dist/coordinator/parallel-executor.js +43 -0
  83. package/dist/coordinator/parallel-executor.js.map +1 -0
  84. package/package.json +3 -1
  85. package/templates/cli/prompts/rules-tech-rules-agent-prompt.txt +89 -89
  86. package/templates/cli/prompts/workflow-codex-feasibility-validation.txt +176 -176
  87. package/templates/cli/prompts/workflow-gemini-solution-design.txt +131 -131
  88. package/templates/cli/prompts/workflow-skill-index.txt +224 -224
  89. package/templates/cli/protocols/analysis-protocol.md +2 -2
  90. package/templates/cli/protocols/write-protocol.md +2 -2
  91. package/workflows/memory.md +2 -2
  92. package/.codex/skills/team-lifecycle-v4/MIGRATION-PLAN.md +0 -512
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "maestro-flow",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Workflow orchestration CLI with MCP endpoint support and extensible architecture",
5
5
  "type": "module",
6
6
  "bin": {
@@ -38,12 +38,14 @@
38
38
  "node": ">=18.0.0"
39
39
  },
40
40
  "dependencies": {
41
+ "@anthropic-ai/claude-agent-sdk": "^0.2.77",
41
42
  "@hono/node-server": "^1.14.0",
42
43
  "@inquirer/prompts": "^8.3.2",
43
44
  "@modelcontextprotocol/sdk": "^1.12.1",
44
45
  "chokidar": "^4.0.0",
45
46
  "commander": "^13.1.0",
46
47
  "hono": "^4.7.0",
48
+ "node-cron": "^4.2.1",
47
49
  "ws": "^8.19.0",
48
50
  "zod": "^3.25.76"
49
51
  },
@@ -1,89 +1,89 @@
1
- # Tech Stack Rules Generation Agent Prompt
2
-
3
- ## Context Variables
4
- - {TECH_STACK_NAME}: Normalized tech stack name (e.g., "typescript-react")
5
- - {PRIMARY_LANG}: Primary language (e.g., "typescript")
6
- - {FILE_EXT}: File extension pattern (e.g., "{ts,tsx}")
7
- - {FRAMEWORK_TYPE}: frontend | backend | fullstack | library
8
- - {COMPONENTS}: Array of tech components
9
- - {OUTPUT_DIR}: .claude/rules/tech/{TECH_STACK_NAME}/
10
-
11
- ## Agent Instructions
12
-
13
- Generate path-conditional rules for Claude Code automatic loading.
14
-
15
- ### Step 1: Execute Exa Research
16
-
17
- Run 4-6 parallel queries based on tech stack:
18
-
19
- **Base Queries** (always execute):
20
- ```
21
- mcp__exa__get_code_context_exa(query: "{PRIMARY_LANG} best practices principles 2025", tokensNum: 8000)
22
- mcp__exa__get_code_context_exa(query: "{PRIMARY_LANG} implementation patterns examples", tokensNum: 7000)
23
- mcp__exa__get_code_context_exa(query: "{PRIMARY_LANG} testing strategies conventions", tokensNum: 5000)
24
- mcp__exa__web_search_exa(query: "{PRIMARY_LANG} configuration setup 2025", numResults: 5)
25
- ```
26
-
27
- **Component Queries** (for each framework in COMPONENTS):
28
- ```
29
- mcp__exa__get_code_context_exa(query: "{PRIMARY_LANG} {component} integration patterns", tokensNum: 5000)
30
- ```
31
-
32
- ### Step 2: Read Rule Templates
33
-
34
- Read each template file before generating content:
35
- ```
36
- Read(~/.ccw/workflows/cli-templates/prompts/rules/rule-core.txt)
37
- Read(~/.ccw/workflows/cli-templates/prompts/rules/rule-patterns.txt)
38
- Read(~/.ccw/workflows/cli-templates/prompts/rules/rule-testing.txt)
39
- Read(~/.ccw/workflows/cli-templates/prompts/rules/rule-config.txt)
40
- Read(~/.ccw/workflows/cli-templates/prompts/rules/rule-api.txt) # Only if backend/fullstack
41
- Read(~/.ccw/workflows/cli-templates/prompts/rules/rule-components.txt) # Only if frontend/fullstack
42
- ```
43
-
44
- ### Step 3: Generate Rule Files
45
-
46
- Create directory and write files:
47
- ```bash
48
- mkdir -p "{OUTPUT_DIR}"
49
- ```
50
-
51
- **Always Generate**:
52
- - core.md (from rule-core.txt template)
53
- - patterns.md (from rule-patterns.txt template)
54
- - testing.md (from rule-testing.txt template)
55
- - config.md (from rule-config.txt template)
56
-
57
- **Conditional**:
58
- - api.md: Only if FRAMEWORK_TYPE == 'backend' or 'fullstack'
59
- - components.md: Only if FRAMEWORK_TYPE == 'frontend' or 'fullstack'
60
-
61
- ### Step 4: Write Metadata
62
-
63
- ```json
64
- {
65
- "tech_stack": "{TECH_STACK_NAME}",
66
- "primary_lang": "{PRIMARY_LANG}",
67
- "file_ext": "{FILE_EXT}",
68
- "framework_type": "{FRAMEWORK_TYPE}",
69
- "components": ["{COMPONENTS}"],
70
- "generated_at": "{ISO_TIMESTAMP}",
71
- "source": "exa-research",
72
- "files_generated": ["core.md", "patterns.md", "testing.md", "config.md", ...]
73
- }
74
- ```
75
-
76
- ### Step 5: Report Completion
77
-
78
- Provide summary:
79
- - Files created with their path patterns
80
- - Exa queries executed (count)
81
- - Sources consulted (count)
82
-
83
- ## Critical Requirements
84
-
85
- 1. Every .md file MUST start with `paths` YAML frontmatter
86
- 2. Use {FILE_EXT} consistently across all rule files
87
- 3. Synthesize Exa research into actionable rules
88
- 4. Include code examples from Exa sources
89
- 5. Keep each file focused on its specific domain
1
+ # Tech Stack Rules Generation Agent Prompt
2
+
3
+ ## Context Variables
4
+ - {TECH_STACK_NAME}: Normalized tech stack name (e.g., "typescript-react")
5
+ - {PRIMARY_LANG}: Primary language (e.g., "typescript")
6
+ - {FILE_EXT}: File extension pattern (e.g., "{ts,tsx}")
7
+ - {FRAMEWORK_TYPE}: frontend | backend | fullstack | library
8
+ - {COMPONENTS}: Array of tech components
9
+ - {OUTPUT_DIR}: .claude/rules/tech/{TECH_STACK_NAME}/
10
+
11
+ ## Agent Instructions
12
+
13
+ Generate path-conditional rules for Claude Code automatic loading.
14
+
15
+ ### Step 1: Execute Exa Research
16
+
17
+ Run 4-6 parallel queries based on tech stack:
18
+
19
+ **Base Queries** (always execute):
20
+ ```
21
+ mcp__exa__get_code_context_exa(query: "{PRIMARY_LANG} best practices principles 2025", tokensNum: 8000)
22
+ mcp__exa__get_code_context_exa(query: "{PRIMARY_LANG} implementation patterns examples", tokensNum: 7000)
23
+ mcp__exa__get_code_context_exa(query: "{PRIMARY_LANG} testing strategies conventions", tokensNum: 5000)
24
+ mcp__exa__web_search_exa(query: "{PRIMARY_LANG} configuration setup 2025", numResults: 5)
25
+ ```
26
+
27
+ **Component Queries** (for each framework in COMPONENTS):
28
+ ```
29
+ mcp__exa__get_code_context_exa(query: "{PRIMARY_LANG} {component} integration patterns", tokensNum: 5000)
30
+ ```
31
+
32
+ ### Step 2: Read Rule Templates
33
+
34
+ Read each template file before generating content:
35
+ ```
36
+ Read(~/.maestro/templates/cli/prompts/rules/rule-core.txt)
37
+ Read(~/.maestro/templates/cli/prompts/rules/rule-patterns.txt)
38
+ Read(~/.maestro/templates/cli/prompts/rules/rule-testing.txt)
39
+ Read(~/.maestro/templates/cli/prompts/rules/rule-config.txt)
40
+ Read(~/.maestro/templates/cli/prompts/rules/rule-api.txt) # Only if backend/fullstack
41
+ Read(~/.maestro/templates/cli/prompts/rules/rule-components.txt) # Only if frontend/fullstack
42
+ ```
43
+
44
+ ### Step 3: Generate Rule Files
45
+
46
+ Create directory and write files:
47
+ ```bash
48
+ mkdir -p "{OUTPUT_DIR}"
49
+ ```
50
+
51
+ **Always Generate**:
52
+ - core.md (from rule-core.txt template)
53
+ - patterns.md (from rule-patterns.txt template)
54
+ - testing.md (from rule-testing.txt template)
55
+ - config.md (from rule-config.txt template)
56
+
57
+ **Conditional**:
58
+ - api.md: Only if FRAMEWORK_TYPE == 'backend' or 'fullstack'
59
+ - components.md: Only if FRAMEWORK_TYPE == 'frontend' or 'fullstack'
60
+
61
+ ### Step 4: Write Metadata
62
+
63
+ ```json
64
+ {
65
+ "tech_stack": "{TECH_STACK_NAME}",
66
+ "primary_lang": "{PRIMARY_LANG}",
67
+ "file_ext": "{FILE_EXT}",
68
+ "framework_type": "{FRAMEWORK_TYPE}",
69
+ "components": ["{COMPONENTS}"],
70
+ "generated_at": "{ISO_TIMESTAMP}",
71
+ "source": "exa-research",
72
+ "files_generated": ["core.md", "patterns.md", "testing.md", "config.md", ...]
73
+ }
74
+ ```
75
+
76
+ ### Step 5: Report Completion
77
+
78
+ Provide summary:
79
+ - Files created with their path patterns
80
+ - Exa queries executed (count)
81
+ - Sources consulted (count)
82
+
83
+ ## Critical Requirements
84
+
85
+ 1. Every .md file MUST start with `paths` YAML frontmatter
86
+ 2. Use {FILE_EXT} consistently across all rule files
87
+ 3. Synthesize Exa research into actionable rules
88
+ 4. Include code examples from Exa sources
89
+ 5. Keep each file focused on its specific domain
@@ -1,176 +1,176 @@
1
- Validate technical feasibility and identify implementation risks for proposed solution design.
2
-
3
- ## CORE CHECKLIST ⚡
4
- □ Read context-package.json and gemini-solution-design.md
5
- □ Assess complexity, validate technology choices
6
- □ Evaluate performance and security implications
7
- □ Focus on TECHNICAL FEASIBILITY and RISK ASSESSMENT
8
- □ Write output to specified .workflow/active/{session_id}/.process/ path
9
-
10
- ## PREREQUISITE ANALYSIS
11
-
12
- ### Required Input Files
13
- 1. **context-package.json**: Task requirements, source files, tech stack
14
- 2. **gemini-solution-design.md**: Proposed solution design and architecture
15
- 3. **workflow-session.json**: Session state and context
16
- 4. **CLAUDE.md**: Project standards and conventions
17
-
18
- ### Analysis Dependencies
19
- - Review Gemini's proposed solution design
20
- - Validate against actual codebase capabilities
21
- - Assess implementation complexity realistically
22
- - Identify gaps between design and execution
23
-
24
- ## REQUIRED VALIDATION
25
-
26
- ### 1. Feasibility Assessment
27
- - **Complexity Rating**: Rate technical complexity (1-5 scale)
28
- - 1: Trivial - straightforward implementation
29
- - 2: Simple - well-known patterns
30
- - 3: Moderate - some challenges
31
- - 4: Complex - significant challenges
32
- - 5: Very Complex - high risk, major unknowns
33
-
34
- - **Resource Requirements**: Estimate development effort
35
- - Development time (hours/days/weeks)
36
- - Required expertise level
37
- - Infrastructure needs
38
-
39
- - **Technology Compatibility**: Validate proposed tech stack
40
- - Framework version compatibility
41
- - Library maturity and support
42
- - Integration with existing systems
43
-
44
- ### 2. Risk Analysis
45
- - **Implementation Risks**: Technical challenges and blockers
46
- - Unknown implementation patterns
47
- - Missing capabilities or APIs
48
- - Breaking changes to existing code
49
-
50
- - **Integration Challenges**: System integration concerns
51
- - Data format compatibility
52
- - API contract changes
53
- - Dependency conflicts
54
-
55
- - **Performance Concerns**: Performance and scalability risks
56
- - Resource consumption (CPU, memory, I/O)
57
- - Latency and throughput impact
58
- - Caching and optimization needs
59
-
60
- - **Security Concerns**: Security vulnerabilities and threats
61
- - Authentication/authorization gaps
62
- - Data exposure risks
63
- - Compliance violations
64
-
65
- ### 3. Implementation Validation
66
- - **Development Approach**: Validate proposed implementation strategy
67
- - Verify module dependency order
68
- - Assess incremental development feasibility
69
- - Evaluate testing approach
70
-
71
- - **Quality Standards**: Validate quality requirements
72
- - Test coverage achievability
73
- - Performance benchmark realism
74
- - Documentation completeness
75
-
76
- - **Maintenance Implications**: Long-term sustainability
77
- - Code maintainability assessment
78
- - Technical debt evaluation
79
- - Evolution and extensibility
80
-
81
- ### 4. Code Target Verification
82
- Review Gemini's proposed code targets:
83
- - **Validate existing targets**: Confirm file:function:lines exist
84
- - **Assess new file targets**: Evaluate necessity and placement
85
- - **Identify missing targets**: Suggest additional modification points
86
- - **Refine target specifications**: Provide more precise line numbers if possible
87
-
88
- ### 5. Recommendations
89
- - **Must-Have Requirements**: Critical requirements for success
90
- - **Optimization Opportunities**: Performance and quality improvements
91
- - **Security Controls**: Essential security measures
92
- - **Risk Mitigation**: Strategies to reduce identified risks
93
-
94
- ## OUTPUT REQUIREMENTS
95
-
96
- ### Output File
97
- **Path**: `.workflow/active/{session_id}/.process/codex-feasibility-validation.md`
98
- **Format**: Follow structure from `~/.ccw/workflows/cli-templates/prompts/workflow/analysis-results-structure.txt`
99
-
100
- ### Required Sections
101
- Focus on these sections from the template:
102
- - Executive Summary (with Codex perspective)
103
- - Current State Analysis (validation findings)
104
- - Implementation Strategy (feasibility assessment)
105
- - Solution Optimization (risk mitigation)
106
- - Confidence Scores (technical feasibility focus)
107
-
108
- ### Content Guidelines
109
- - ✅ Focus on technical feasibility and risk assessment
110
- - ✅ Verify code targets from Gemini's design
111
- - ✅ Provide concrete risk mitigation strategies
112
- - ✅ Quantify complexity and effort estimates
113
- - ❌ Do NOT create task breakdowns
114
- - ❌ Do NOT provide step-by-step implementation guides
115
- - ❌ Do NOT include code examples
116
-
117
- ## VALIDATION METHODOLOGY
118
-
119
- ### Complexity Scoring
120
- Rate each aspect on 1-5 scale:
121
- - Technical Complexity
122
- - Integration Complexity
123
- - Performance Risk
124
- - Security Risk
125
- - Maintenance Burden
126
-
127
- ### Risk Classification
128
- - **LOW**: Minor issues, easily addressable
129
- - **MEDIUM**: Manageable challenges with clear mitigation
130
- - **HIGH**: Significant concerns requiring major mitigation
131
- - **CRITICAL**: Fundamental viability threats
132
-
133
- ### Feasibility Judgment
134
- - **PROCEED**: Technically feasible with acceptable risk
135
- - **PROCEED_WITH_MODIFICATIONS**: Feasible but needs adjustments
136
- - **RECONSIDER**: High risk, major changes needed
137
- - **REJECT**: Not feasible with current approach
138
-
139
- ## CONTEXT INTEGRATION
140
-
141
- ### Gemini Analysis Integration
142
- - Review proposed architecture and design decisions
143
- - Validate assumptions and technology choices
144
- - Cross-check code targets against actual codebase
145
- - Assess realism of performance targets
146
-
147
- ### Codebase Reality Check
148
- - Verify existing code capabilities
149
- - Identify actual technical constraints
150
- - Assess team skill compatibility
151
- - Evaluate infrastructure readiness
152
-
153
- ### Session Context
154
- - Consider session history and previous decisions
155
- - Align with project architecture standards
156
- - Respect existing patterns and conventions
157
-
158
- ## EXECUTION MODE
159
-
160
- **Mode**: Analysis with write permission for output file
161
- **CLI Tool**: Codex with --skip-git-repo-check -s danger-full-access
162
- **Timeout**: 60-90 minutes for complex tasks
163
- **Output**: Single file codex-feasibility-validation.md
164
- **Trigger**: Only for complex tasks (>6 modules)
165
-
166
- ## VERIFICATION CHECKLIST ✓
167
- □ context-package.json and gemini-solution-design.md read
168
- □ Complexity rated on 1-5 scale with justification
169
- □ All risk categories assessed (technical, integration, performance, security)
170
- □ Code targets verified and refined
171
- □ Risk mitigation strategies provided
172
- □ Resource requirements estimated
173
- □ Final feasibility judgment (PROCEED/RECONSIDER/REJECT)
174
- □ Output written to .workflow/active/{session_id}/.process/codex-feasibility-validation.md
175
-
176
- Focus: Technical feasibility validation with realistic risk assessment and mitigation strategies.
1
+ Validate technical feasibility and identify implementation risks for proposed solution design.
2
+
3
+ ## CORE CHECKLIST ⚡
4
+ □ Read context-package.json and gemini-solution-design.md
5
+ □ Assess complexity, validate technology choices
6
+ □ Evaluate performance and security implications
7
+ □ Focus on TECHNICAL FEASIBILITY and RISK ASSESSMENT
8
+ □ Write output to specified .workflow/active/{session_id}/.process/ path
9
+
10
+ ## PREREQUISITE ANALYSIS
11
+
12
+ ### Required Input Files
13
+ 1. **context-package.json**: Task requirements, source files, tech stack
14
+ 2. **gemini-solution-design.md**: Proposed solution design and architecture
15
+ 3. **workflow-session.json**: Session state and context
16
+ 4. **CLAUDE.md**: Project standards and conventions
17
+
18
+ ### Analysis Dependencies
19
+ - Review Gemini's proposed solution design
20
+ - Validate against actual codebase capabilities
21
+ - Assess implementation complexity realistically
22
+ - Identify gaps between design and execution
23
+
24
+ ## REQUIRED VALIDATION
25
+
26
+ ### 1. Feasibility Assessment
27
+ - **Complexity Rating**: Rate technical complexity (1-5 scale)
28
+ - 1: Trivial - straightforward implementation
29
+ - 2: Simple - well-known patterns
30
+ - 3: Moderate - some challenges
31
+ - 4: Complex - significant challenges
32
+ - 5: Very Complex - high risk, major unknowns
33
+
34
+ - **Resource Requirements**: Estimate development effort
35
+ - Development time (hours/days/weeks)
36
+ - Required expertise level
37
+ - Infrastructure needs
38
+
39
+ - **Technology Compatibility**: Validate proposed tech stack
40
+ - Framework version compatibility
41
+ - Library maturity and support
42
+ - Integration with existing systems
43
+
44
+ ### 2. Risk Analysis
45
+ - **Implementation Risks**: Technical challenges and blockers
46
+ - Unknown implementation patterns
47
+ - Missing capabilities or APIs
48
+ - Breaking changes to existing code
49
+
50
+ - **Integration Challenges**: System integration concerns
51
+ - Data format compatibility
52
+ - API contract changes
53
+ - Dependency conflicts
54
+
55
+ - **Performance Concerns**: Performance and scalability risks
56
+ - Resource consumption (CPU, memory, I/O)
57
+ - Latency and throughput impact
58
+ - Caching and optimization needs
59
+
60
+ - **Security Concerns**: Security vulnerabilities and threats
61
+ - Authentication/authorization gaps
62
+ - Data exposure risks
63
+ - Compliance violations
64
+
65
+ ### 3. Implementation Validation
66
+ - **Development Approach**: Validate proposed implementation strategy
67
+ - Verify module dependency order
68
+ - Assess incremental development feasibility
69
+ - Evaluate testing approach
70
+
71
+ - **Quality Standards**: Validate quality requirements
72
+ - Test coverage achievability
73
+ - Performance benchmark realism
74
+ - Documentation completeness
75
+
76
+ - **Maintenance Implications**: Long-term sustainability
77
+ - Code maintainability assessment
78
+ - Technical debt evaluation
79
+ - Evolution and extensibility
80
+
81
+ ### 4. Code Target Verification
82
+ Review Gemini's proposed code targets:
83
+ - **Validate existing targets**: Confirm file:function:lines exist
84
+ - **Assess new file targets**: Evaluate necessity and placement
85
+ - **Identify missing targets**: Suggest additional modification points
86
+ - **Refine target specifications**: Provide more precise line numbers if possible
87
+
88
+ ### 5. Recommendations
89
+ - **Must-Have Requirements**: Critical requirements for success
90
+ - **Optimization Opportunities**: Performance and quality improvements
91
+ - **Security Controls**: Essential security measures
92
+ - **Risk Mitigation**: Strategies to reduce identified risks
93
+
94
+ ## OUTPUT REQUIREMENTS
95
+
96
+ ### Output File
97
+ **Path**: `.workflow/active/{session_id}/.process/codex-feasibility-validation.md`
98
+ **Format**: Follow structure from `~/.maestro/templates/cli/prompts/workflow/analysis-results-structure.txt`
99
+
100
+ ### Required Sections
101
+ Focus on these sections from the template:
102
+ - Executive Summary (with Codex perspective)
103
+ - Current State Analysis (validation findings)
104
+ - Implementation Strategy (feasibility assessment)
105
+ - Solution Optimization (risk mitigation)
106
+ - Confidence Scores (technical feasibility focus)
107
+
108
+ ### Content Guidelines
109
+ - ✅ Focus on technical feasibility and risk assessment
110
+ - ✅ Verify code targets from Gemini's design
111
+ - ✅ Provide concrete risk mitigation strategies
112
+ - ✅ Quantify complexity and effort estimates
113
+ - ❌ Do NOT create task breakdowns
114
+ - ❌ Do NOT provide step-by-step implementation guides
115
+ - ❌ Do NOT include code examples
116
+
117
+ ## VALIDATION METHODOLOGY
118
+
119
+ ### Complexity Scoring
120
+ Rate each aspect on 1-5 scale:
121
+ - Technical Complexity
122
+ - Integration Complexity
123
+ - Performance Risk
124
+ - Security Risk
125
+ - Maintenance Burden
126
+
127
+ ### Risk Classification
128
+ - **LOW**: Minor issues, easily addressable
129
+ - **MEDIUM**: Manageable challenges with clear mitigation
130
+ - **HIGH**: Significant concerns requiring major mitigation
131
+ - **CRITICAL**: Fundamental viability threats
132
+
133
+ ### Feasibility Judgment
134
+ - **PROCEED**: Technically feasible with acceptable risk
135
+ - **PROCEED_WITH_MODIFICATIONS**: Feasible but needs adjustments
136
+ - **RECONSIDER**: High risk, major changes needed
137
+ - **REJECT**: Not feasible with current approach
138
+
139
+ ## CONTEXT INTEGRATION
140
+
141
+ ### Gemini Analysis Integration
142
+ - Review proposed architecture and design decisions
143
+ - Validate assumptions and technology choices
144
+ - Cross-check code targets against actual codebase
145
+ - Assess realism of performance targets
146
+
147
+ ### Codebase Reality Check
148
+ - Verify existing code capabilities
149
+ - Identify actual technical constraints
150
+ - Assess team skill compatibility
151
+ - Evaluate infrastructure readiness
152
+
153
+ ### Session Context
154
+ - Consider session history and previous decisions
155
+ - Align with project architecture standards
156
+ - Respect existing patterns and conventions
157
+
158
+ ## EXECUTION MODE
159
+
160
+ **Mode**: Analysis with write permission for output file
161
+ **CLI Tool**: Codex with --skip-git-repo-check -s danger-full-access
162
+ **Timeout**: 60-90 minutes for complex tasks
163
+ **Output**: Single file codex-feasibility-validation.md
164
+ **Trigger**: Only for complex tasks (>6 modules)
165
+
166
+ ## VERIFICATION CHECKLIST ✓
167
+ □ context-package.json and gemini-solution-design.md read
168
+ □ Complexity rated on 1-5 scale with justification
169
+ □ All risk categories assessed (technical, integration, performance, security)
170
+ □ Code targets verified and refined
171
+ □ Risk mitigation strategies provided
172
+ □ Resource requirements estimated
173
+ □ Final feasibility judgment (PROCEED/RECONSIDER/REJECT)
174
+ □ Output written to .workflow/active/{session_id}/.process/codex-feasibility-validation.md
175
+
176
+ Focus: Technical feasibility validation with realistic risk assessment and mitigation strategies.