mcp-adr-analysis-server 2.0.21 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +94 -839
- package/dist/.tsbuildinfo +1 -1
- package/dist/src/config/ai-config.d.ts.map +1 -1
- package/dist/src/config/ai-config.js +9 -9
- package/dist/src/config/ai-config.js.map +1 -1
- package/dist/src/index.d.ts +15 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1594 -837
- package/dist/src/index.js.map +1 -1
- package/dist/src/prompts/analysis-prompts.d.ts +4 -1
- package/dist/src/prompts/analysis-prompts.d.ts.map +1 -1
- package/dist/src/prompts/analysis-prompts.js +61 -30
- package/dist/src/prompts/analysis-prompts.js.map +1 -1
- package/dist/src/prompts/index.d.ts +17 -1
- package/dist/src/prompts/index.d.ts.map +1 -1
- package/dist/src/prompts/index.js +325 -1
- package/dist/src/prompts/index.js.map +1 -1
- package/dist/src/prompts/rule-generation-prompts.d.ts +5 -1
- package/dist/src/prompts/rule-generation-prompts.d.ts.map +1 -1
- package/dist/src/prompts/rule-generation-prompts.js +5 -1
- package/dist/src/prompts/rule-generation-prompts.js.map +1 -1
- package/dist/src/prompts/security-prompts.d.ts +6 -1
- package/dist/src/prompts/security-prompts.d.ts.map +1 -1
- package/dist/src/prompts/security-prompts.js +6 -1
- package/dist/src/prompts/security-prompts.js.map +1 -1
- package/dist/src/prompts/todo-prompts.d.ts +49 -0
- package/dist/src/prompts/todo-prompts.d.ts.map +1 -0
- package/dist/src/prompts/todo-prompts.js +824 -0
- package/dist/src/prompts/todo-prompts.js.map +1 -0
- package/dist/src/resources/index.d.ts.map +1 -1
- package/dist/src/resources/index.js +9 -7
- package/dist/src/resources/index.js.map +1 -1
- package/dist/src/tools/adr-bootstrap-validation-tool.d.ts +47 -0
- package/dist/src/tools/adr-bootstrap-validation-tool.d.ts.map +1 -0
- package/dist/src/tools/adr-bootstrap-validation-tool.js +979 -0
- package/dist/src/tools/adr-bootstrap-validation-tool.js.map +1 -0
- package/dist/src/tools/adr-suggestion-tool.d.ts +1 -0
- package/dist/src/tools/adr-suggestion-tool.d.ts.map +1 -1
- package/dist/src/tools/adr-suggestion-tool.js +330 -32
- package/dist/src/tools/adr-suggestion-tool.js.map +1 -1
- package/dist/src/tools/content-masking-tool.d.ts +5 -0
- package/dist/src/tools/content-masking-tool.d.ts.map +1 -1
- package/dist/src/tools/content-masking-tool.js +631 -28
- package/dist/src/tools/content-masking-tool.js.map +1 -1
- package/dist/src/tools/deployment-readiness-tool.d.ts +8 -5
- package/dist/src/tools/deployment-readiness-tool.d.ts.map +1 -1
- package/dist/src/tools/deployment-readiness-tool.js +1017 -93
- package/dist/src/tools/deployment-readiness-tool.js.map +1 -1
- package/dist/src/tools/environment-analysis-tool.d.ts +4 -0
- package/dist/src/tools/environment-analysis-tool.d.ts.map +1 -1
- package/dist/src/tools/environment-analysis-tool.js +568 -24
- package/dist/src/tools/environment-analysis-tool.js.map +1 -1
- package/dist/src/tools/interactive-adr-planning-tool.d.ts.map +1 -1
- package/dist/src/tools/interactive-adr-planning-tool.js +270 -108
- package/dist/src/tools/interactive-adr-planning-tool.js.map +1 -1
- package/dist/src/tools/mcp-planning-tool.d.ts.map +1 -1
- package/dist/src/tools/mcp-planning-tool.js +316 -183
- package/dist/src/tools/mcp-planning-tool.js.map +1 -1
- package/dist/src/tools/memory-loading-tool.d.ts +60 -0
- package/dist/src/tools/memory-loading-tool.d.ts.map +1 -0
- package/dist/src/tools/memory-loading-tool.js +457 -0
- package/dist/src/tools/memory-loading-tool.js.map +1 -0
- package/dist/src/tools/research-integration-tool.d.ts +4 -1
- package/dist/src/tools/research-integration-tool.d.ts.map +1 -1
- package/dist/src/tools/research-integration-tool.js +5 -1
- package/dist/src/tools/research-integration-tool.js.map +1 -1
- package/dist/src/tools/review-existing-adrs-tool.d.ts +19 -0
- package/dist/src/tools/review-existing-adrs-tool.d.ts.map +1 -0
- package/dist/src/tools/review-existing-adrs-tool.js +1204 -0
- package/dist/src/tools/review-existing-adrs-tool.js.map +1 -0
- package/dist/src/tools/rule-generation-tool.d.ts +2 -0
- package/dist/src/tools/rule-generation-tool.d.ts.map +1 -1
- package/dist/src/tools/rule-generation-tool.js +274 -33
- package/dist/src/tools/rule-generation-tool.js.map +1 -1
- package/dist/src/tools/smart-git-push-tool-v2.d.ts +4 -0
- package/dist/src/tools/smart-git-push-tool-v2.d.ts.map +1 -1
- package/dist/src/tools/smart-git-push-tool-v2.js +423 -229
- package/dist/src/tools/smart-git-push-tool-v2.js.map +1 -1
- package/dist/src/tools/smart-git-push-tool.d.ts +3 -0
- package/dist/src/tools/smart-git-push-tool.d.ts.map +1 -1
- package/dist/src/tools/smart-git-push-tool.js +241 -235
- package/dist/src/tools/smart-git-push-tool.js.map +1 -1
- package/dist/src/tools/tool-chain-orchestrator.d.ts +2 -2
- package/dist/src/tools/tool-chain-orchestrator.d.ts.map +1 -1
- package/dist/src/tools/tool-chain-orchestrator.js +152 -93
- package/dist/src/tools/tool-chain-orchestrator.js.map +1 -1
- package/dist/src/tools/troubleshoot-guided-workflow-tool.d.ts +22 -13
- package/dist/src/tools/troubleshoot-guided-workflow-tool.d.ts.map +1 -1
- package/dist/src/tools/troubleshoot-guided-workflow-tool.js +660 -28
- package/dist/src/tools/troubleshoot-guided-workflow-tool.js.map +1 -1
- package/dist/src/types/ape-framework.d.ts +93 -0
- package/dist/src/types/ape-framework.d.ts.map +1 -1
- package/dist/src/types/ape-framework.js +10 -10
- package/dist/src/types/ape-framework.js.map +1 -1
- package/dist/src/types/enhanced-errors.d.ts +173 -0
- package/dist/src/types/enhanced-errors.d.ts.map +1 -0
- package/dist/src/types/enhanced-errors.js +668 -0
- package/dist/src/types/enhanced-errors.js.map +1 -0
- package/dist/src/types/index.d.ts +129 -3
- package/dist/src/types/index.d.ts.map +1 -1
- package/dist/src/types/index.js +15 -0
- package/dist/src/types/index.js.map +1 -1
- package/dist/src/types/knowledge-generation.d.ts +78 -0
- package/dist/src/types/knowledge-generation.d.ts.map +1 -1
- package/dist/src/types/knowledge-generation.js +10 -6
- package/dist/src/types/knowledge-generation.js.map +1 -1
- package/dist/src/types/knowledge-graph-schemas.d.ts +92 -0
- package/dist/src/types/knowledge-graph-schemas.d.ts.map +1 -1
- package/dist/src/types/knowledge-graph-schemas.js +45 -17
- package/dist/src/types/knowledge-graph-schemas.js.map +1 -1
- package/dist/src/types/memory-entities.d.ts +7209 -0
- package/dist/src/types/memory-entities.d.ts.map +1 -0
- package/dist/src/types/memory-entities.js +395 -0
- package/dist/src/types/memory-entities.js.map +1 -0
- package/dist/src/types/reflexion-framework.d.ts +44 -0
- package/dist/src/types/reflexion-framework.d.ts.map +1 -1
- package/dist/src/types/reflexion-framework.js +7 -7
- package/dist/src/types/reflexion-framework.js.map +1 -1
- package/dist/src/types/todo-json-schemas.d.ts +7 -653
- package/dist/src/types/todo-json-schemas.d.ts.map +1 -1
- package/dist/src/types/todo-json-schemas.js +6 -110
- package/dist/src/types/todo-json-schemas.js.map +1 -1
- package/dist/src/types/tool-arguments.d.ts +224 -0
- package/dist/src/types/tool-arguments.d.ts.map +1 -0
- package/dist/src/types/tool-arguments.js +6 -0
- package/dist/src/types/tool-arguments.js.map +1 -0
- package/dist/src/utils/actual-file-operations.d.ts.map +1 -1
- package/dist/src/utils/actual-file-operations.js +25 -9
- package/dist/src/utils/actual-file-operations.js.map +1 -1
- package/dist/src/utils/adr-discovery.d.ts +33 -1
- package/dist/src/utils/adr-discovery.d.ts.map +1 -1
- package/dist/src/utils/adr-discovery.js +14 -9
- package/dist/src/utils/adr-discovery.js.map +1 -1
- package/dist/src/utils/adr-suggestions.d.ts +72 -0
- package/dist/src/utils/adr-suggestions.d.ts.map +1 -1
- package/dist/src/utils/adr-suggestions.js +6 -0
- package/dist/src/utils/adr-suggestions.js.map +1 -1
- package/dist/src/utils/cache.d.ts.map +1 -1
- package/dist/src/utils/cache.js +22 -19
- package/dist/src/utils/cache.js.map +1 -1
- package/dist/src/utils/chain-of-thought-template.d.ts +13 -1
- package/dist/src/utils/chain-of-thought-template.d.ts.map +1 -1
- package/dist/src/utils/chain-of-thought-template.js +31 -22
- package/dist/src/utils/chain-of-thought-template.js.map +1 -1
- package/dist/src/utils/config.d.ts.map +1 -1
- package/dist/src/utils/config.js +1 -0
- package/dist/src/utils/config.js.map +1 -1
- package/dist/src/utils/directory-compat.js +1 -1
- package/dist/src/utils/directory-compat.js.map +1 -1
- package/dist/src/utils/enhanced-logging.d.ts +195 -0
- package/dist/src/utils/enhanced-logging.d.ts.map +1 -0
- package/dist/src/utils/enhanced-logging.js +449 -0
- package/dist/src/utils/enhanced-logging.js.map +1 -0
- package/dist/src/utils/file-system.d.ts +182 -34
- package/dist/src/utils/file-system.d.ts.map +1 -1
- package/dist/src/utils/file-system.js +648 -774
- package/dist/src/utils/file-system.js.map +1 -1
- package/dist/src/utils/gitleaks-detector.d.ts +50 -0
- package/dist/src/utils/gitleaks-detector.d.ts.map +1 -0
- package/dist/src/utils/gitleaks-detector.js +334 -0
- package/dist/src/utils/gitleaks-detector.js.map +1 -0
- package/dist/src/utils/interactive-approval.d.ts +1 -1
- package/dist/src/utils/interactive-approval.d.ts.map +1 -1
- package/dist/src/utils/interactive-approval.js +22 -17
- package/dist/src/utils/interactive-approval.js.map +1 -1
- package/dist/src/utils/json-safe.d.ts.map +1 -1
- package/dist/src/utils/json-safe.js +9 -6
- package/dist/src/utils/json-safe.js.map +1 -1
- package/dist/src/utils/knowledge-graph-manager.d.ts +37 -1
- package/dist/src/utils/knowledge-graph-manager.d.ts.map +1 -1
- package/dist/src/utils/knowledge-graph-manager.js +315 -70
- package/dist/src/utils/knowledge-graph-manager.js.map +1 -1
- package/dist/src/utils/location-filter.d.ts +35 -10
- package/dist/src/utils/location-filter.d.ts.map +1 -1
- package/dist/src/utils/location-filter.js +360 -94
- package/dist/src/utils/location-filter.js.map +1 -1
- package/dist/src/utils/mcp-response-validator.d.ts.map +1 -1
- package/dist/src/utils/mcp-response-validator.js +34 -19
- package/dist/src/utils/mcp-response-validator.js.map +1 -1
- package/dist/src/utils/memory-entity-manager.d.ts +134 -0
- package/dist/src/utils/memory-entity-manager.d.ts.map +1 -0
- package/dist/src/utils/memory-entity-manager.js +851 -0
- package/dist/src/utils/memory-entity-manager.js.map +1 -0
- package/dist/src/utils/memory-health-scoring.d.ts +125 -0
- package/dist/src/utils/memory-health-scoring.d.ts.map +1 -0
- package/dist/src/utils/memory-health-scoring.js +277 -0
- package/dist/src/utils/memory-health-scoring.js.map +1 -0
- package/dist/src/utils/memory-migration-manager.d.ts +93 -0
- package/dist/src/utils/memory-migration-manager.d.ts.map +1 -0
- package/dist/src/utils/memory-migration-manager.js +842 -0
- package/dist/src/utils/memory-migration-manager.js.map +1 -0
- package/dist/src/utils/memory-relationship-mapper.d.ts +87 -0
- package/dist/src/utils/memory-relationship-mapper.d.ts.map +1 -0
- package/dist/src/utils/memory-relationship-mapper.js +482 -0
- package/dist/src/utils/memory-relationship-mapper.js.map +1 -0
- package/dist/src/utils/memory-rollback-manager.d.ts +105 -0
- package/dist/src/utils/memory-rollback-manager.d.ts.map +1 -0
- package/dist/src/utils/memory-rollback-manager.js +575 -0
- package/dist/src/utils/memory-rollback-manager.js.map +1 -0
- package/dist/src/utils/memory-transformation.d.ts +59 -0
- package/dist/src/utils/memory-transformation.d.ts.map +1 -0
- package/dist/src/utils/memory-transformation.js +742 -0
- package/dist/src/utils/memory-transformation.js.map +1 -0
- package/dist/src/utils/output-masking.d.ts +12 -0
- package/dist/src/utils/output-masking.d.ts.map +1 -1
- package/dist/src/utils/output-masking.js +5 -0
- package/dist/src/utils/output-masking.js.map +1 -1
- package/dist/src/utils/prompt-execution.d.ts.map +1 -1
- package/dist/src/utils/prompt-execution.js +72 -51
- package/dist/src/utils/prompt-execution.js.map +1 -1
- package/dist/src/utils/release-readiness-detector.d.ts.map +1 -1
- package/dist/src/utils/release-readiness-detector.js +43 -42
- package/dist/src/utils/release-readiness-detector.js.map +1 -1
- package/dist/src/utils/research-integration.d.ts.map +1 -1
- package/dist/src/utils/research-integration.js +73 -44
- package/dist/src/utils/research-integration.js.map +1 -1
- package/dist/src/utils/research-questions.d.ts.map +1 -1
- package/dist/src/utils/research-questions.js +40 -14
- package/dist/src/utils/research-questions.js.map +1 -1
- package/dist/src/utils/ripgrep-wrapper.d.ts +84 -0
- package/dist/src/utils/ripgrep-wrapper.d.ts.map +1 -0
- package/dist/src/utils/ripgrep-wrapper.js +255 -0
- package/dist/src/utils/ripgrep-wrapper.js.map +1 -0
- package/dist/src/utils/rule-generation.d.ts.map +1 -1
- package/dist/src/utils/rule-generation.js +26 -15
- package/dist/src/utils/rule-generation.js.map +1 -1
- package/dist/src/utils/todo-file-watcher.d.ts +11 -23
- package/dist/src/utils/todo-file-watcher.d.ts.map +1 -1
- package/dist/src/utils/todo-file-watcher.js +18 -156
- package/dist/src/utils/todo-file-watcher.js.map +1 -1
- package/dist/src/utils/tree-sitter-analyzer.d.ts +185 -0
- package/dist/src/utils/tree-sitter-analyzer.d.ts.map +1 -0
- package/dist/src/utils/tree-sitter-analyzer.js +885 -0
- package/dist/src/utils/tree-sitter-analyzer.js.map +1 -0
- package/package.json +51 -10
- package/dist/src/tools/smart-score-tool.d.ts +0 -173
- package/dist/src/tools/smart-score-tool.d.ts.map +0 -1
- package/dist/src/tools/smart-score-tool.js +0 -681
- package/dist/src/tools/smart-score-tool.js.map +0 -1
- package/dist/src/tools/todo-management-tool-v2.d.ts +0 -368
- package/dist/src/tools/todo-management-tool-v2.d.ts.map +0 -1
- package/dist/src/tools/todo-management-tool-v2.js +0 -922
- package/dist/src/tools/todo-management-tool-v2.js.map +0 -1
- package/dist/src/utils/enhanced-sensitive-detector.d.ts +0 -61
- package/dist/src/utils/enhanced-sensitive-detector.d.ts.map +0 -1
- package/dist/src/utils/enhanced-sensitive-detector.js +0 -437
- package/dist/src/utils/enhanced-sensitive-detector.js.map +0 -1
- package/dist/src/utils/project-health-scoring.d.ts +0 -177
- package/dist/src/utils/project-health-scoring.d.ts.map +0 -1
- package/dist/src/utils/project-health-scoring.js +0 -370
- package/dist/src/utils/project-health-scoring.js.map +0 -1
- package/dist/src/utils/todo-json-manager.d.ts +0 -71
- package/dist/src/utils/todo-json-manager.d.ts.map +0 -1
- package/dist/src/utils/todo-json-manager.js +0 -396
- package/dist/src/utils/todo-json-manager.js.map +0 -1
- package/dist/src/utils/todo-markdown-converter.d.ts +0 -16
- package/dist/src/utils/todo-markdown-converter.d.ts.map +0 -1
- package/dist/src/utils/todo-markdown-converter.js +0 -362
- package/dist/src/utils/todo-markdown-converter.js.map +0 -1
- package/dist/src/utils/todo-migration.d.ts +0 -47
- package/dist/src/utils/todo-migration.d.ts.map +0 -1
- package/dist/src/utils/todo-migration.js +0 -261
- package/dist/src/utils/todo-migration.js.map +0 -1
|
@@ -0,0 +1,824 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Prompts for TODO management and task orchestration
|
|
3
|
+
* Converts TODO operations to LLM-executable prompts
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Generate prompt for creating TODO tasks from ADRs
|
|
7
|
+
*/
|
|
8
|
+
export function generateTodoCreationPrompt(args) {
|
|
9
|
+
const { adrDirectory = 'docs/adrs', scope = 'all', phase = 'both', linkAdrs = true, includeRules = true, ruleSource = 'both', projectPath = '.', } = args;
|
|
10
|
+
return `# Generate Development Tasks from ADRs
|
|
11
|
+
|
|
12
|
+
## Task Generation Instructions
|
|
13
|
+
|
|
14
|
+
You are an expert task planner specializing in breaking down Architectural Decision Records (ADRs) into actionable development tasks. Your goal is to create a comprehensive task list that will guide implementation of architectural decisions.
|
|
15
|
+
|
|
16
|
+
## Project Context
|
|
17
|
+
- **ADR Directory**: ${adrDirectory}
|
|
18
|
+
- **Project Path**: ${projectPath}
|
|
19
|
+
- **Task Scope**: ${scope}
|
|
20
|
+
- **Development Phase**: ${phase}
|
|
21
|
+
- **ADR Linking**: ${linkAdrs ? 'Enabled' : 'Disabled'}
|
|
22
|
+
- **Include Rules**: ${includeRules ? `Yes (${ruleSource})` : 'No'}
|
|
23
|
+
|
|
24
|
+
## Analysis Requirements
|
|
25
|
+
|
|
26
|
+
### 1. ADR Discovery and Analysis
|
|
27
|
+
First, discover and analyze all ADRs in the specified directory:
|
|
28
|
+
- Read all ADR files in ${adrDirectory}
|
|
29
|
+
- Parse ADR structure (title, status, context, decision, consequences)
|
|
30
|
+
- Identify implementation requirements from each ADR
|
|
31
|
+
- Extract architectural patterns and constraints
|
|
32
|
+
|
|
33
|
+
### 2. Task Categorization
|
|
34
|
+
Organize tasks by these categories:
|
|
35
|
+
|
|
36
|
+
**Infrastructure & Platform**
|
|
37
|
+
- Cloud provider setup (AWS, GCP, Azure)
|
|
38
|
+
- Container orchestration (Docker, Kubernetes)
|
|
39
|
+
- Infrastructure as Code (Terraform, CloudFormation)
|
|
40
|
+
- Monitoring and observability setup
|
|
41
|
+
|
|
42
|
+
**Backend Development**
|
|
43
|
+
- API design and implementation
|
|
44
|
+
- Database schema and migrations
|
|
45
|
+
- Service architecture and microservices
|
|
46
|
+
- Authentication and authorization
|
|
47
|
+
|
|
48
|
+
**Frontend Development**
|
|
49
|
+
- UI framework setup and configuration
|
|
50
|
+
- Component library development
|
|
51
|
+
- State management implementation
|
|
52
|
+
- Responsive design and accessibility
|
|
53
|
+
|
|
54
|
+
**DevOps & CI/CD**
|
|
55
|
+
- Pipeline configuration (GitHub Actions, GitLab CI, Jenkins)
|
|
56
|
+
- Deployment automation
|
|
57
|
+
- Environment management
|
|
58
|
+
- Security scanning and compliance
|
|
59
|
+
|
|
60
|
+
**Testing & Quality Assurance**
|
|
61
|
+
- Unit test setup and implementation
|
|
62
|
+
- Integration testing
|
|
63
|
+
- Performance testing
|
|
64
|
+
- Security testing
|
|
65
|
+
|
|
66
|
+
**Documentation & Governance**
|
|
67
|
+
- Technical documentation
|
|
68
|
+
- API documentation
|
|
69
|
+
- Architectural guides
|
|
70
|
+
- Compliance documentation
|
|
71
|
+
|
|
72
|
+
### 3. Task Prioritization Framework
|
|
73
|
+
Use this prioritization matrix:
|
|
74
|
+
|
|
75
|
+
**Critical (P0)** - Must be completed first:
|
|
76
|
+
- Security implementations
|
|
77
|
+
- Core infrastructure setup
|
|
78
|
+
- Database schema creation
|
|
79
|
+
- Essential API endpoints
|
|
80
|
+
|
|
81
|
+
**High (P1)** - Core functionality:
|
|
82
|
+
- Main feature implementations
|
|
83
|
+
- Integration points
|
|
84
|
+
- Performance optimizations
|
|
85
|
+
- Core testing suites
|
|
86
|
+
|
|
87
|
+
**Medium (P2)** - Important but not blocking:
|
|
88
|
+
- Enhanced features
|
|
89
|
+
- Additional integrations
|
|
90
|
+
- Advanced monitoring
|
|
91
|
+
- Extended testing
|
|
92
|
+
|
|
93
|
+
**Low (P3)** - Nice to have:
|
|
94
|
+
- UI polish
|
|
95
|
+
- Advanced analytics
|
|
96
|
+
- Optional integrations
|
|
97
|
+
- Documentation improvements
|
|
98
|
+
|
|
99
|
+
### 4. Task Dependencies
|
|
100
|
+
${linkAdrs
|
|
101
|
+
? `
|
|
102
|
+
Map dependencies between tasks:
|
|
103
|
+
- Identify prerequisite relationships
|
|
104
|
+
- Note ADR dependencies
|
|
105
|
+
- Mark blocking/non-blocking relationships
|
|
106
|
+
- Create implementation ordering
|
|
107
|
+
`
|
|
108
|
+
: 'Focus on individual task completion without complex dependencies.'}
|
|
109
|
+
|
|
110
|
+
### 5. Implementation Phases
|
|
111
|
+
${phase === 'both'
|
|
112
|
+
? `
|
|
113
|
+
Create tasks for both phases:
|
|
114
|
+
|
|
115
|
+
**Test Phase Tasks:**
|
|
116
|
+
- Test setup and configuration
|
|
117
|
+
- Mock data creation
|
|
118
|
+
- Test environment setup
|
|
119
|
+
- Automated testing implementation
|
|
120
|
+
|
|
121
|
+
**Production Phase Tasks:**
|
|
122
|
+
- Production environment setup
|
|
123
|
+
- Performance optimization
|
|
124
|
+
- Security hardening
|
|
125
|
+
- Monitoring and alerting
|
|
126
|
+
`
|
|
127
|
+
: phase === 'test'
|
|
128
|
+
? `
|
|
129
|
+
Focus on test-related tasks:
|
|
130
|
+
- Test framework setup
|
|
131
|
+
- Mock implementations
|
|
132
|
+
- Test data generation
|
|
133
|
+
- CI/CD testing integration
|
|
134
|
+
`
|
|
135
|
+
: `
|
|
136
|
+
Focus on production implementation:
|
|
137
|
+
- Production-ready code
|
|
138
|
+
- Performance optimization
|
|
139
|
+
- Security implementation
|
|
140
|
+
- Production deployment
|
|
141
|
+
`}
|
|
142
|
+
|
|
143
|
+
### 6. Architecture Rule Integration
|
|
144
|
+
${includeRules
|
|
145
|
+
? `
|
|
146
|
+
Include architectural rules and constraints from:
|
|
147
|
+
${ruleSource === 'both'
|
|
148
|
+
? '- ADR documents\n- Detected architectural patterns'
|
|
149
|
+
: ruleSource === 'adrs'
|
|
150
|
+
? '- ADR documents only'
|
|
151
|
+
: '- Architectural patterns only'}
|
|
152
|
+
|
|
153
|
+
For each task, ensure compliance with:
|
|
154
|
+
- Defined architectural principles
|
|
155
|
+
- Security requirements
|
|
156
|
+
- Performance standards
|
|
157
|
+
- Scalability constraints
|
|
158
|
+
- Technology stack decisions
|
|
159
|
+
`
|
|
160
|
+
: 'Skip architectural rules integration.'}
|
|
161
|
+
|
|
162
|
+
## Output Format
|
|
163
|
+
|
|
164
|
+
Provide a comprehensive task breakdown in this format:
|
|
165
|
+
|
|
166
|
+
\`\`\`markdown
|
|
167
|
+
# Development Task Plan - Generated from ADRs
|
|
168
|
+
|
|
169
|
+
## Executive Summary
|
|
170
|
+
- Total ADRs analyzed: [number]
|
|
171
|
+
- Total tasks created: [number]
|
|
172
|
+
- Estimated timeline: [timeline]
|
|
173
|
+
- Critical path items: [number]
|
|
174
|
+
|
|
175
|
+
## Critical Path (P0) - Must Complete First
|
|
176
|
+
### Infrastructure Setup
|
|
177
|
+
- [ ] **[Task Name]** (ADR: [ADR-001]) - [Description]
|
|
178
|
+
- Dependencies: [list]
|
|
179
|
+
- Estimated effort: [hours/days]
|
|
180
|
+
- Acceptance criteria: [criteria]
|
|
181
|
+
|
|
182
|
+
### Security Foundation
|
|
183
|
+
- [ ] **[Task Name]** (ADR: [ADR-002]) - [Description]
|
|
184
|
+
- Dependencies: [list]
|
|
185
|
+
- Estimated effort: [hours/days]
|
|
186
|
+
- Acceptance criteria: [criteria]
|
|
187
|
+
|
|
188
|
+
## High Priority (P1) - Core Implementation
|
|
189
|
+
### Backend Services
|
|
190
|
+
- [ ] **[Task Name]** (ADR: [ADR-003]) - [Description]
|
|
191
|
+
- Dependencies: [list]
|
|
192
|
+
- Estimated effort: [hours/days]
|
|
193
|
+
- Acceptance criteria: [criteria]
|
|
194
|
+
|
|
195
|
+
### API Development
|
|
196
|
+
- [ ] **[Task Name]** (ADR: [ADR-004]) - [Description]
|
|
197
|
+
- Dependencies: [list]
|
|
198
|
+
- Estimated effort: [hours/days]
|
|
199
|
+
- Acceptance criteria: [criteria]
|
|
200
|
+
|
|
201
|
+
## Medium Priority (P2) - Enhancement Features
|
|
202
|
+
### Advanced Features
|
|
203
|
+
- [ ] **[Task Name]** (ADR: [ADR-005]) - [Description]
|
|
204
|
+
- Dependencies: [list]
|
|
205
|
+
- Estimated effort: [hours/days]
|
|
206
|
+
- Acceptance criteria: [criteria]
|
|
207
|
+
|
|
208
|
+
## Low Priority (P3) - Polish & Optimization
|
|
209
|
+
### UI/UX Enhancements
|
|
210
|
+
- [ ] **[Task Name]** (ADR: [ADR-006]) - [Description]
|
|
211
|
+
- Dependencies: [list]
|
|
212
|
+
- Estimated effort: [hours/days]
|
|
213
|
+
- Acceptance criteria: [criteria]
|
|
214
|
+
|
|
215
|
+
## Implementation Timeline
|
|
216
|
+
### Phase 1 (Weeks 1-2): Foundation
|
|
217
|
+
- Complete all P0 tasks
|
|
218
|
+
- Begin P1 infrastructure tasks
|
|
219
|
+
|
|
220
|
+
### Phase 2 (Weeks 3-6): Core Development
|
|
221
|
+
- Complete P1 tasks
|
|
222
|
+
- Begin P2 feature development
|
|
223
|
+
|
|
224
|
+
### Phase 3 (Weeks 7-8): Enhancement & Polish
|
|
225
|
+
- Complete P2 tasks
|
|
226
|
+
- Address P3 items as time permits
|
|
227
|
+
|
|
228
|
+
## Risk Assessment
|
|
229
|
+
### High Risk Items
|
|
230
|
+
- [Task with significant complexity or dependencies]
|
|
231
|
+
- [Tasks requiring external dependencies]
|
|
232
|
+
|
|
233
|
+
### Mitigation Strategies
|
|
234
|
+
- [Specific strategies for high-risk items]
|
|
235
|
+
|
|
236
|
+
## Quality Gates
|
|
237
|
+
- [ ] All P0 tasks have passing tests
|
|
238
|
+
- [ ] Security review completed for critical components
|
|
239
|
+
- [ ] Performance benchmarks met
|
|
240
|
+
- [ ] Documentation complete for public APIs
|
|
241
|
+
|
|
242
|
+
## Success Metrics
|
|
243
|
+
- Feature completion rate: [target]
|
|
244
|
+
- Code coverage: [target]
|
|
245
|
+
- Performance benchmarks: [specific metrics]
|
|
246
|
+
- Security compliance: [checklist]
|
|
247
|
+
\`\`\`
|
|
248
|
+
|
|
249
|
+
## Special Instructions
|
|
250
|
+
|
|
251
|
+
1. **Cloud/DevOps Focus**: Given expertise in AWS, GCP, Azure, Docker, Kubernetes, and Terraform, provide detailed cloud-native implementation tasks.
|
|
252
|
+
|
|
253
|
+
2. **Security-First Approach**: Prioritize security tasks and ensure security considerations are embedded in all phases.
|
|
254
|
+
|
|
255
|
+
3. **Scalability Considerations**: Include tasks for horizontal scaling, load balancing, and performance optimization.
|
|
256
|
+
|
|
257
|
+
4. **Monitoring & Observability**: Include comprehensive monitoring, logging, and alerting tasks.
|
|
258
|
+
|
|
259
|
+
5. **Infrastructure as Code**: Prefer Infrastructure as Code approaches for all infrastructure tasks.
|
|
260
|
+
|
|
261
|
+
6. **Container-First**: Assume containerized deployments and include container optimization tasks.
|
|
262
|
+
|
|
263
|
+
7. **CI/CD Integration**: Include automated testing, building, and deployment pipeline tasks.
|
|
264
|
+
|
|
265
|
+
## Begin Analysis
|
|
266
|
+
|
|
267
|
+
Please analyze the ADRs in ${adrDirectory} and generate a comprehensive task plan following the above guidelines.`;
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* Generate prompt for task status management
|
|
271
|
+
*/
|
|
272
|
+
export function generateTaskStatusPrompt(args) {
|
|
273
|
+
const { action, taskId, newStatus, filters = [] } = args;
|
|
274
|
+
switch (action) {
|
|
275
|
+
case 'list':
|
|
276
|
+
return `# List Development Tasks
|
|
277
|
+
|
|
278
|
+
## Task Listing Instructions
|
|
279
|
+
|
|
280
|
+
You are a task manager reviewing the current development task status. Provide a comprehensive overview of all tasks with their current status and priorities.
|
|
281
|
+
|
|
282
|
+
## Filtering Criteria
|
|
283
|
+
${filters.length > 0
|
|
284
|
+
? `
|
|
285
|
+
Apply these filters:
|
|
286
|
+
${filters.map(filter => `- ${filter}`).join('\n')}
|
|
287
|
+
`
|
|
288
|
+
: 'Show all tasks without filtering.'}
|
|
289
|
+
|
|
290
|
+
## Output Format
|
|
291
|
+
|
|
292
|
+
Please provide a task status report in this format:
|
|
293
|
+
|
|
294
|
+
\`\`\`markdown
|
|
295
|
+
# Task Status Report - ${new Date().toLocaleDateString()}
|
|
296
|
+
|
|
297
|
+
## Summary
|
|
298
|
+
- Total tasks: [number]
|
|
299
|
+
- Completed: [number] ([percentage]%)
|
|
300
|
+
- In Progress: [number] ([percentage]%)
|
|
301
|
+
- Pending: [number] ([percentage]%)
|
|
302
|
+
- Blocked: [number] ([percentage]%)
|
|
303
|
+
|
|
304
|
+
## Critical Path Status
|
|
305
|
+
### P0 (Critical) Tasks
|
|
306
|
+
- ✅ [Completed Task] - [Brief description]
|
|
307
|
+
- 🔄 [In Progress Task] - [Brief description] - [% complete]
|
|
308
|
+
- ⏳ [Pending Task] - [Brief description]
|
|
309
|
+
- 🚫 [Blocked Task] - [Brief description] - [Blocking reason]
|
|
310
|
+
|
|
311
|
+
### P1 (High Priority) Tasks
|
|
312
|
+
- [Same format as above]
|
|
313
|
+
|
|
314
|
+
### P2 (Medium Priority) Tasks
|
|
315
|
+
- [Same format as above]
|
|
316
|
+
|
|
317
|
+
### P3 (Low Priority) Tasks
|
|
318
|
+
- [Same format as above]
|
|
319
|
+
|
|
320
|
+
## Upcoming Deadlines
|
|
321
|
+
- [Task name] - Due: [date]
|
|
322
|
+
- [Task name] - Due: [date]
|
|
323
|
+
|
|
324
|
+
## Blockers & Issues
|
|
325
|
+
- [Blocked task] - [Blocking issue] - [Resolution needed]
|
|
326
|
+
|
|
327
|
+
## Recommendations
|
|
328
|
+
- [Specific action items to maintain progress]
|
|
329
|
+
- [Resource allocation suggestions]
|
|
330
|
+
- [Risk mitigation recommendations]
|
|
331
|
+
\`\`\`
|
|
332
|
+
|
|
333
|
+
Please analyze the current task status and provide this report.`;
|
|
334
|
+
case 'update':
|
|
335
|
+
return `# Update Task Status
|
|
336
|
+
|
|
337
|
+
## Task Update Instructions
|
|
338
|
+
|
|
339
|
+
You are updating the status of a specific development task. Ensure the update is tracked properly and dependencies are considered.
|
|
340
|
+
|
|
341
|
+
## Task Information
|
|
342
|
+
- **Task ID**: ${taskId || 'Not specified'}
|
|
343
|
+
- **New Status**: ${newStatus || 'Not specified'}
|
|
344
|
+
|
|
345
|
+
## Update Process
|
|
346
|
+
|
|
347
|
+
1. **Validate Task**: Confirm the task exists and current status
|
|
348
|
+
2. **Check Dependencies**: Ensure status change doesn't conflict with dependent tasks
|
|
349
|
+
3. **Update Status**: Apply the new status with timestamp
|
|
350
|
+
4. **Update Dependents**: Notify or update dependent tasks if needed
|
|
351
|
+
5. **Log Changes**: Record the status change with reason
|
|
352
|
+
|
|
353
|
+
## Output Format
|
|
354
|
+
|
|
355
|
+
\`\`\`markdown
|
|
356
|
+
# Task Status Update - ${taskId || '[Task ID]'}
|
|
357
|
+
|
|
358
|
+
## Update Summary
|
|
359
|
+
- **Previous Status**: [previous status]
|
|
360
|
+
- **New Status**: ${newStatus || '[new status]'}
|
|
361
|
+
- **Updated By**: [user/system]
|
|
362
|
+
- **Timestamp**: ${new Date().toISOString()}
|
|
363
|
+
|
|
364
|
+
## Impact Analysis
|
|
365
|
+
### Dependent Tasks Affected
|
|
366
|
+
- [Task name] - [Impact description]
|
|
367
|
+
- [Task name] - [Impact description]
|
|
368
|
+
|
|
369
|
+
### Timeline Impact
|
|
370
|
+
- [Any schedule changes]
|
|
371
|
+
- [Critical path impact]
|
|
372
|
+
|
|
373
|
+
## Next Actions Required
|
|
374
|
+
- [Immediate actions needed]
|
|
375
|
+
- [Follow-up tasks to create]
|
|
376
|
+
|
|
377
|
+
## Validation Checklist
|
|
378
|
+
- [ ] Task exists in system
|
|
379
|
+
- [ ] Status change is valid
|
|
380
|
+
- [ ] Dependencies checked
|
|
381
|
+
- [ ] Timeline updated
|
|
382
|
+
- [ ] Stakeholders notified
|
|
383
|
+
\`\`\`
|
|
384
|
+
|
|
385
|
+
Please process this task status update.`;
|
|
386
|
+
case 'complete':
|
|
387
|
+
return `# Complete Development Task
|
|
388
|
+
|
|
389
|
+
## Task Completion Instructions
|
|
390
|
+
|
|
391
|
+
You are marking a development task as complete. Ensure all completion criteria are met and proper validation is performed.
|
|
392
|
+
|
|
393
|
+
## Task Information
|
|
394
|
+
- **Task ID**: ${taskId || 'Not specified'}
|
|
395
|
+
|
|
396
|
+
## Completion Validation Process
|
|
397
|
+
|
|
398
|
+
1. **Verify Completion Criteria**: Check that all acceptance criteria are met
|
|
399
|
+
2. **Test Validation**: Ensure all tests pass
|
|
400
|
+
3. **Code Review**: Confirm code review is complete (if applicable)
|
|
401
|
+
4. **Documentation**: Verify documentation is updated
|
|
402
|
+
5. **Deployment**: Confirm deployment is successful (if applicable)
|
|
403
|
+
6. **Update Dependencies**: Mark dependent tasks as ready
|
|
404
|
+
|
|
405
|
+
## Output Format
|
|
406
|
+
|
|
407
|
+
\`\`\`markdown
|
|
408
|
+
# Task Completion Report - ${taskId || '[Task ID]'}
|
|
409
|
+
|
|
410
|
+
## Completion Verification
|
|
411
|
+
- **Task**: [task name and description]
|
|
412
|
+
- **Completed By**: [user]
|
|
413
|
+
- **Completion Date**: ${new Date().toISOString()}
|
|
414
|
+
|
|
415
|
+
## Acceptance Criteria Verification
|
|
416
|
+
- [ ] [Criterion 1] - ✅ Met / ❌ Not Met
|
|
417
|
+
- [ ] [Criterion 2] - ✅ Met / ❌ Not Met
|
|
418
|
+
- [ ] [Criterion 3] - ✅ Met / ❌ Not Met
|
|
419
|
+
|
|
420
|
+
## Quality Gates
|
|
421
|
+
- [ ] All tests passing
|
|
422
|
+
- [ ] Code review approved
|
|
423
|
+
- [ ] Documentation updated
|
|
424
|
+
- [ ] Security review (if required)
|
|
425
|
+
- [ ] Performance benchmarks met
|
|
426
|
+
|
|
427
|
+
## Deployment Status
|
|
428
|
+
- [ ] Deployed to development
|
|
429
|
+
- [ ] Deployed to staging
|
|
430
|
+
- [ ] Deployed to production
|
|
431
|
+
|
|
432
|
+
## Impact on Project
|
|
433
|
+
### Unblocked Tasks
|
|
434
|
+
- [Task name] - Now ready to start
|
|
435
|
+
- [Task name] - Can proceed to next phase
|
|
436
|
+
|
|
437
|
+
### Milestone Progress
|
|
438
|
+
- [Milestone name] - [X]% complete
|
|
439
|
+
|
|
440
|
+
## Lessons Learned
|
|
441
|
+
- [What went well]
|
|
442
|
+
- [What could be improved]
|
|
443
|
+
- [Process improvements]
|
|
444
|
+
|
|
445
|
+
## Next Steps
|
|
446
|
+
- [Immediate follow-up actions]
|
|
447
|
+
- [Related tasks to prioritize]
|
|
448
|
+
\`\`\`
|
|
449
|
+
|
|
450
|
+
Please validate and process this task completion.`;
|
|
451
|
+
case 'prioritize':
|
|
452
|
+
return `# Prioritize Development Tasks
|
|
453
|
+
|
|
454
|
+
## Task Prioritization Instructions
|
|
455
|
+
|
|
456
|
+
You are reviewing and adjusting task priorities based on current project needs, blockers, and business requirements.
|
|
457
|
+
|
|
458
|
+
## Prioritization Framework
|
|
459
|
+
|
|
460
|
+
### Priority Levels
|
|
461
|
+
- **P0 (Critical)**: Must be completed immediately, blocks other work
|
|
462
|
+
- **P1 (High)**: Core functionality, needed for project success
|
|
463
|
+
- **P2 (Medium)**: Important features, enhances project value
|
|
464
|
+
- **P3 (Low)**: Nice to have, can be deferred
|
|
465
|
+
|
|
466
|
+
### Prioritization Criteria
|
|
467
|
+
1. **Business Impact**: Revenue/user impact
|
|
468
|
+
2. **Technical Dependencies**: What it blocks/enables
|
|
469
|
+
3. **Risk Level**: Implementation complexity and risk
|
|
470
|
+
4. **Resource Availability**: Team capacity and skills
|
|
471
|
+
5. **Timeline Constraints**: External deadlines
|
|
472
|
+
6. **Technical Debt**: Impact on code quality and maintainability
|
|
473
|
+
|
|
474
|
+
## Analysis Process
|
|
475
|
+
|
|
476
|
+
1. **Current Priority Review**: Assess current task priorities
|
|
477
|
+
2. **Dependency Analysis**: Map task dependencies and critical path
|
|
478
|
+
3. **Resource Analysis**: Consider team capacity and skills
|
|
479
|
+
4. **Business Value Assessment**: Evaluate business impact
|
|
480
|
+
5. **Risk Assessment**: Identify high-risk tasks
|
|
481
|
+
6. **Timeline Analysis**: Consider deadlines and milestones
|
|
482
|
+
|
|
483
|
+
## Output Format
|
|
484
|
+
|
|
485
|
+
\`\`\`markdown
|
|
486
|
+
# Task Prioritization Review - ${new Date().toLocaleDateString()}
|
|
487
|
+
|
|
488
|
+
## Executive Summary
|
|
489
|
+
- Tasks reviewed: [number]
|
|
490
|
+
- Priority changes: [number]
|
|
491
|
+
- Critical path changes: [yes/no]
|
|
492
|
+
- Timeline impact: [description]
|
|
493
|
+
|
|
494
|
+
## Priority Changes
|
|
495
|
+
### Elevated to P0 (Critical)
|
|
496
|
+
- [Task name] - **Reason**: [specific reason for elevation]
|
|
497
|
+
- [Task name] - **Reason**: [specific reason for elevation]
|
|
498
|
+
|
|
499
|
+
### Elevated to P1 (High)
|
|
500
|
+
- [Task name] - **Reason**: [specific reason]
|
|
501
|
+
|
|
502
|
+
### Lowered Priority
|
|
503
|
+
- [Task name] - **From P1 to P2** - **Reason**: [specific reason]
|
|
504
|
+
|
|
505
|
+
## Current Priority Distribution
|
|
506
|
+
- **P0 Tasks**: [number] - Focus: [focus area]
|
|
507
|
+
- **P1 Tasks**: [number] - Focus: [focus area]
|
|
508
|
+
- **P2 Tasks**: [number] - Focus: [focus area]
|
|
509
|
+
- **P3 Tasks**: [number] - Focus: [focus area]
|
|
510
|
+
|
|
511
|
+
## Critical Path Analysis
|
|
512
|
+
### Current Critical Path
|
|
513
|
+
1. [Task 1] → [Task 2] → [Task 3]
|
|
514
|
+
2. [Parallel path tasks]
|
|
515
|
+
|
|
516
|
+
### Bottlenecks Identified
|
|
517
|
+
- [Bottleneck description] - **Impact**: [impact] - **Mitigation**: [strategy]
|
|
518
|
+
|
|
519
|
+
## Resource Allocation Recommendations
|
|
520
|
+
### Immediate Focus (Next Sprint)
|
|
521
|
+
- [Team/Person]: [P0 tasks]
|
|
522
|
+
- [Team/Person]: [P1 tasks]
|
|
523
|
+
|
|
524
|
+
### Medium Term (Next Month)
|
|
525
|
+
- [Resource allocation strategy]
|
|
526
|
+
|
|
527
|
+
## Risk Mitigation
|
|
528
|
+
- **High Risk Tasks**: [list with mitigation strategies]
|
|
529
|
+
- **Dependencies**: [external dependencies to track]
|
|
530
|
+
|
|
531
|
+
## Success Metrics
|
|
532
|
+
- **Sprint Goal Achievement**: [target]
|
|
533
|
+
- **Critical Path Completion**: [target date]
|
|
534
|
+
- **Quality Gates**: [quality metrics to maintain]
|
|
535
|
+
\`\`\`
|
|
536
|
+
|
|
537
|
+
Please analyze current task priorities and provide recommendations.`;
|
|
538
|
+
default:
|
|
539
|
+
return `# Task Management Action
|
|
540
|
+
|
|
541
|
+
Please specify a valid action: list, update, complete, or prioritize.`;
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
/**
|
|
545
|
+
* Generate prompt for task dependency analysis
|
|
546
|
+
*/
|
|
547
|
+
export function generateDependencyAnalysisPrompt(args) {
|
|
548
|
+
const { taskId, includeUpstream = true, includeDownstream = true, analysisDepth = 'deep' } = args;
|
|
549
|
+
return `# Task Dependency Analysis
|
|
550
|
+
|
|
551
|
+
## Dependency Analysis Instructions
|
|
552
|
+
|
|
553
|
+
You are analyzing task dependencies to understand the impact of changes, identify bottlenecks, and optimize the development workflow.
|
|
554
|
+
|
|
555
|
+
## Analysis Configuration
|
|
556
|
+
- **Target Task**: ${taskId || 'All tasks'}
|
|
557
|
+
- **Include Upstream Dependencies**: ${includeUpstream ? 'Yes' : 'No'}
|
|
558
|
+
- **Include Downstream Dependencies**: ${includeDownstream ? 'Yes' : 'No'}
|
|
559
|
+
- **Analysis Depth**: ${analysisDepth}
|
|
560
|
+
|
|
561
|
+
## Analysis Framework
|
|
562
|
+
|
|
563
|
+
### Dependency Types
|
|
564
|
+
1. **Hard Dependencies**: Must be completed before this task can start
|
|
565
|
+
2. **Soft Dependencies**: Preferred to be completed first, but not blocking
|
|
566
|
+
3. **Resource Dependencies**: Require the same person/team
|
|
567
|
+
4. **Technical Dependencies**: Share code, infrastructure, or data
|
|
568
|
+
5. **Business Dependencies**: Share business logic or user flows
|
|
569
|
+
|
|
570
|
+
### Impact Categories
|
|
571
|
+
- **Critical Path Impact**: Affects project timeline
|
|
572
|
+
- **Quality Impact**: Affects deliverable quality
|
|
573
|
+
- **Risk Impact**: Increases project risk
|
|
574
|
+
- **Resource Impact**: Affects team productivity
|
|
575
|
+
|
|
576
|
+
## Output Format
|
|
577
|
+
|
|
578
|
+
\`\`\`markdown
|
|
579
|
+
# Dependency Analysis Report
|
|
580
|
+
|
|
581
|
+
## Analysis Summary
|
|
582
|
+
- **Target Task**: ${taskId || 'All tasks'}
|
|
583
|
+
- **Analysis Date**: ${new Date().toISOString()}
|
|
584
|
+
- **Dependencies Found**: [number]
|
|
585
|
+
- **Critical Path Impact**: [yes/no]
|
|
586
|
+
|
|
587
|
+
${includeUpstream
|
|
588
|
+
? `
|
|
589
|
+
## Upstream Dependencies (Prerequisites)
|
|
590
|
+
### Critical Dependencies
|
|
591
|
+
- **[Task Name]** - [Dependency Type] - [Impact Level]
|
|
592
|
+
- **Relationship**: [Description of dependency]
|
|
593
|
+
- **Status**: [Current status]
|
|
594
|
+
- **Risk**: [Risk if delayed]
|
|
595
|
+
- **Mitigation**: [How to reduce dependency]
|
|
596
|
+
|
|
597
|
+
### Soft Dependencies
|
|
598
|
+
- **[Task Name]** - [Dependency Type] - [Impact Level]
|
|
599
|
+
- **Relationship**: [Description]
|
|
600
|
+
- **Status**: [Current status]
|
|
601
|
+
- **Alternative**: [Workaround if needed]
|
|
602
|
+
`
|
|
603
|
+
: ''}
|
|
604
|
+
|
|
605
|
+
${includeDownstream
|
|
606
|
+
? `
|
|
607
|
+
## Downstream Dependencies (Blockers)
|
|
608
|
+
### Tasks Blocked by This Task
|
|
609
|
+
- **[Task Name]** - [Dependency Type] - [Impact Level]
|
|
610
|
+
- **Waiting For**: [What specifically they need]
|
|
611
|
+
- **Impact if Delayed**: [Business/technical impact]
|
|
612
|
+
- **Partial Delivery**: [What can be delivered early]
|
|
613
|
+
|
|
614
|
+
### Cascading Effects
|
|
615
|
+
- **[Task Chain]**: [Task A] → [Task B] → [Task C]
|
|
616
|
+
- **Total Impact**: [Timeline impact]
|
|
617
|
+
- **Risk Level**: [Assessment]
|
|
618
|
+
`
|
|
619
|
+
: ''}
|
|
620
|
+
|
|
621
|
+
## Critical Path Analysis
|
|
622
|
+
### Current Critical Path
|
|
623
|
+
1. [Task 1] - [Duration] - [Status]
|
|
624
|
+
2. [Task 2] - [Duration] - [Status]
|
|
625
|
+
3. [Task 3] - [Duration] - [Status]
|
|
626
|
+
|
|
627
|
+
**Total Critical Path Duration**: [time]
|
|
628
|
+
**Latest Acceptable Start**: [date]
|
|
629
|
+
|
|
630
|
+
### Alternative Paths
|
|
631
|
+
- **Path A**: [Task sequence] - Duration: [time]
|
|
632
|
+
- **Path B**: [Task sequence] - Duration: [time]
|
|
633
|
+
|
|
634
|
+
## Bottleneck Identification
|
|
635
|
+
### Current Bottlenecks
|
|
636
|
+
- **[Resource/Task]**: [Description of bottleneck]
|
|
637
|
+
- **Impact**: [How it affects timeline]
|
|
638
|
+
- **Mitigation**: [Specific actions to resolve]
|
|
639
|
+
|
|
640
|
+
### Potential Future Bottlenecks
|
|
641
|
+
- **[Resource/Task]**: [Predicted bottleneck]
|
|
642
|
+
- **When**: [Predicted timing]
|
|
643
|
+
- **Prevention**: [How to avoid]
|
|
644
|
+
|
|
645
|
+
## Optimization Recommendations
|
|
646
|
+
### Immediate Actions
|
|
647
|
+
1. **Parallel Execution**: [Tasks that can run in parallel]
|
|
648
|
+
2. **Early Starts**: [Tasks that can start with partial dependencies]
|
|
649
|
+
3. **Resource Reallocation**: [Specific resource moves]
|
|
650
|
+
|
|
651
|
+
### Strategic Improvements
|
|
652
|
+
1. **Dependency Reduction**: [How to reduce key dependencies]
|
|
653
|
+
2. **Process Improvements**: [Workflow optimizations]
|
|
654
|
+
3. **Technical Improvements**: [Architectural changes to reduce dependencies]
|
|
655
|
+
|
|
656
|
+
## Risk Assessment
|
|
657
|
+
### High-Risk Dependencies
|
|
658
|
+
- **[Dependency]**: [Risk description]
|
|
659
|
+
- **Probability**: [Low/Medium/High]
|
|
660
|
+
- **Impact**: [Low/Medium/High]
|
|
661
|
+
- **Mitigation**: [Specific plan]
|
|
662
|
+
|
|
663
|
+
### Contingency Plans
|
|
664
|
+
- **If [Task] is delayed**: [Alternative approach]
|
|
665
|
+
- **If [Resource] is unavailable**: [Backup plan]
|
|
666
|
+
|
|
667
|
+
## Monitoring Recommendations
|
|
668
|
+
### Key Metrics to Track
|
|
669
|
+
- [Task completion rate for critical path]
|
|
670
|
+
- [Dependency resolution time]
|
|
671
|
+
- [Bottleneck duration]
|
|
672
|
+
|
|
673
|
+
### Alert Triggers
|
|
674
|
+
- [Critical path delay > X days]
|
|
675
|
+
- [Bottleneck duration > Y hours]
|
|
676
|
+
- [Dependencies unresolved for > Z days]
|
|
677
|
+
\`\`\`
|
|
678
|
+
|
|
679
|
+
Please analyze the task dependencies and provide this comprehensive report.`;
|
|
680
|
+
}
|
|
681
|
+
/**
|
|
682
|
+
* Generate prompt for task estimation and planning
|
|
683
|
+
*/
|
|
684
|
+
export function generateTaskEstimationPrompt(args) {
|
|
685
|
+
const { taskId, estimationType = 'duration', includeUncertainty = true, granularity = 'medium', } = args;
|
|
686
|
+
return `# Task Estimation and Planning
|
|
687
|
+
|
|
688
|
+
## Estimation Instructions
|
|
689
|
+
|
|
690
|
+
You are providing effort and timeline estimates for development tasks. Use industry best practices and consider uncertainty factors.
|
|
691
|
+
|
|
692
|
+
## Estimation Configuration
|
|
693
|
+
- **Target Task**: ${taskId || 'All tasks'}
|
|
694
|
+
- **Estimation Type**: ${estimationType}
|
|
695
|
+
- **Include Uncertainty**: ${includeUncertainty ? 'Yes' : 'No'}
|
|
696
|
+
- **Granularity**: ${granularity}
|
|
697
|
+
|
|
698
|
+
## Estimation Framework
|
|
699
|
+
|
|
700
|
+
### Effort Categories
|
|
701
|
+
- **Development**: Core coding and implementation
|
|
702
|
+
- **Testing**: Unit, integration, and system testing
|
|
703
|
+
- **Documentation**: Technical and user documentation
|
|
704
|
+
- **Review**: Code review and feedback incorporation
|
|
705
|
+
- **Deployment**: Deployment and configuration
|
|
706
|
+
- **Buffer**: Contingency for unknowns (typically 20-30%)
|
|
707
|
+
|
|
708
|
+
### Complexity Factors
|
|
709
|
+
- **Technical Complexity**: Algorithm complexity, integration points
|
|
710
|
+
- **Domain Complexity**: Business logic complexity
|
|
711
|
+
- **Infrastructure Complexity**: Deployment and operational complexity
|
|
712
|
+
- **Team Familiarity**: Experience with technologies and domain
|
|
713
|
+
|
|
714
|
+
### Uncertainty Factors
|
|
715
|
+
- **Requirements Clarity**: How well-defined the requirements are
|
|
716
|
+
- **Technical Risk**: Likelihood of technical challenges
|
|
717
|
+
- **External Dependencies**: Reliance on external teams/systems
|
|
718
|
+
- **Resource Availability**: Team availability and skills
|
|
719
|
+
|
|
720
|
+
## Output Format
|
|
721
|
+
|
|
722
|
+
\`\`\`markdown
|
|
723
|
+
# Task Estimation Report
|
|
724
|
+
|
|
725
|
+
## Estimation Summary
|
|
726
|
+
- **Task**: ${taskId || 'All tasks'}
|
|
727
|
+
- **Estimation Date**: ${new Date().toISOString()}
|
|
728
|
+
- **Estimator**: [Name/Role]
|
|
729
|
+
- **Confidence Level**: [High/Medium/Low]
|
|
730
|
+
|
|
731
|
+
## Detailed Estimates
|
|
732
|
+
|
|
733
|
+
### ${taskId || '[Task Name]'}
|
|
734
|
+
**Description**: [Task description]
|
|
735
|
+
|
|
736
|
+
#### Effort Breakdown
|
|
737
|
+
- **Development**: [X hours] - [Details]
|
|
738
|
+
- **Testing**: [X hours] - [Details]
|
|
739
|
+
- **Documentation**: [X hours] - [Details]
|
|
740
|
+
- **Code Review**: [X hours] - [Details]
|
|
741
|
+
- **Deployment**: [X hours] - [Details]
|
|
742
|
+
- **Buffer (25%)**: [X hours] - [Uncertainty factors]
|
|
743
|
+
|
|
744
|
+
**Total Effort**: [X hours] ([X days])
|
|
745
|
+
|
|
746
|
+
#### Timeline Estimate
|
|
747
|
+
- **Best Case**: [X days] (everything goes well)
|
|
748
|
+
- **Most Likely**: [X days] (realistic scenario)
|
|
749
|
+
- **Worst Case**: [X days] (significant challenges)
|
|
750
|
+
|
|
751
|
+
${includeUncertainty
|
|
752
|
+
? `
|
|
753
|
+
#### Uncertainty Analysis
|
|
754
|
+
**High Uncertainty Factors**:
|
|
755
|
+
- [Factor 1]: [Impact description]
|
|
756
|
+
- [Factor 2]: [Impact description]
|
|
757
|
+
|
|
758
|
+
**Risk Mitigation**:
|
|
759
|
+
- [Strategy 1]: [How to reduce uncertainty]
|
|
760
|
+
- [Strategy 2]: [How to reduce uncertainty]
|
|
761
|
+
|
|
762
|
+
**Confidence Intervals**:
|
|
763
|
+
- 50% confidence: [X-Y days]
|
|
764
|
+
- 80% confidence: [X-Y days]
|
|
765
|
+
- 95% confidence: [X-Y days]
|
|
766
|
+
`
|
|
767
|
+
: ''}
|
|
768
|
+
|
|
769
|
+
#### Dependencies Impact
|
|
770
|
+
- **Prerequisites**: [List] - [Timeline impact]
|
|
771
|
+
- **Parallel Work**: [What can run in parallel]
|
|
772
|
+
- **Critical Path**: [Is this on critical path? Impact?]
|
|
773
|
+
|
|
774
|
+
#### Resource Requirements
|
|
775
|
+
- **Primary Developer**: [Skill level needed] - [X hours]
|
|
776
|
+
- **Secondary Developer**: [If pair programming] - [X hours]
|
|
777
|
+
- **Reviewer**: [Skill level needed] - [X hours]
|
|
778
|
+
- **QA/Tester**: [If specialized testing] - [X hours]
|
|
779
|
+
|
|
780
|
+
#### Assumptions
|
|
781
|
+
- [Assumption 1]: [Impact if wrong]
|
|
782
|
+
- [Assumption 2]: [Impact if wrong]
|
|
783
|
+
- [Assumption 3]: [Impact if wrong]
|
|
784
|
+
|
|
785
|
+
## Estimation Methodology
|
|
786
|
+
### Techniques Used
|
|
787
|
+
- **Historical Data**: [Reference to similar past tasks]
|
|
788
|
+
- **Expert Judgment**: [Expertise applied]
|
|
789
|
+
- **Decomposition**: [How task was broken down]
|
|
790
|
+
- **Three-Point Estimation**: [Best/Most Likely/Worst case reasoning]
|
|
791
|
+
|
|
792
|
+
### Validation Checks
|
|
793
|
+
- [ ] Compared with similar historical tasks
|
|
794
|
+
- [ ] Reviewed by team members
|
|
795
|
+
- [ ] Considered all complexity factors
|
|
796
|
+
- [ ] Included adequate buffer time
|
|
797
|
+
- [ ] Validated assumptions
|
|
798
|
+
|
|
799
|
+
## Recommendations
|
|
800
|
+
### For Improved Accuracy
|
|
801
|
+
1. **Spike Tasks**: [Recommend research tasks for high uncertainty items]
|
|
802
|
+
2. **Proof of Concept**: [Recommend POC for technical risks]
|
|
803
|
+
3. **Regular Re-estimation**: [When to re-estimate]
|
|
804
|
+
|
|
805
|
+
### For Risk Management
|
|
806
|
+
1. **Parallel Development**: [What can be done in parallel]
|
|
807
|
+
2. **Early Validation**: [How to validate assumptions early]
|
|
808
|
+
3. **Contingency Planning**: [Alternative approaches]
|
|
809
|
+
|
|
810
|
+
## Tracking and Updates
|
|
811
|
+
### Success Metrics
|
|
812
|
+
- **Estimate Accuracy**: [How to measure]
|
|
813
|
+
- **Progress Tracking**: [What to track daily/weekly]
|
|
814
|
+
- **Course Correction Triggers**: [When to adjust]
|
|
815
|
+
|
|
816
|
+
### Update Schedule
|
|
817
|
+
- **Daily**: [What to check daily]
|
|
818
|
+
- **Weekly**: [What to review weekly]
|
|
819
|
+
- **Milestone**: [When to do major re-estimation]
|
|
820
|
+
\`\`\`
|
|
821
|
+
|
|
822
|
+
Please provide detailed estimates for the specified task(s).`;
|
|
823
|
+
}
|
|
824
|
+
//# sourceMappingURL=todo-prompts.js.map
|