owflow 0.1.1 → 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.
- package/README.md +8 -1
- package/dist/agents/bottleneck-analyzer.md +329 -0
- package/dist/agents/code-quality-pragmatist.md +354 -0
- package/dist/agents/code-reviewer.md +239 -0
- package/dist/agents/codebase-analysis-reporter.md +246 -0
- package/dist/agents/docs-operator.md +23 -0
- package/dist/agents/e2e-test-verifier.md +448 -0
- package/dist/agents/gap-analyzer.md +502 -0
- package/dist/agents/implementation-completeness-checker.md +220 -0
- package/dist/agents/implementation-planner.md +309 -0
- package/dist/agents/information-gatherer.md +691 -0
- package/dist/agents/production-readiness-checker.md +279 -0
- package/dist/agents/project-analyzer.md +404 -0
- package/dist/agents/reality-assessor.md +366 -0
- package/dist/agents/research-planner.md +447 -0
- package/dist/agents/research-synthesizer.md +401 -0
- package/dist/agents/solution-brainstormer.md +257 -0
- package/dist/agents/solution-designer.md +372 -0
- package/dist/agents/spec-auditor.md +298 -0
- package/dist/agents/specification-creator.md +334 -0
- package/dist/agents/task-classifier.md +462 -0
- package/dist/agents/task-group-implementer.md +284 -0
- package/dist/agents/test-suite-runner.md +195 -0
- package/dist/agents/ui-mockup-generator.md +369 -0
- package/dist/agents/user-docs-generator.md +509 -0
- package/dist/commands/development.md +37 -0
- package/dist/commands/flow-init.md +37 -0
- package/dist/commands/migration.md +37 -0
- package/dist/commands/performance.md +37 -0
- package/dist/commands/product-design.md +37 -0
- package/dist/commands/quick-bugfix.md +37 -0
- package/dist/commands/quick-dev.md +140 -0
- package/dist/commands/quick-plan.md +132 -0
- package/dist/commands/research.md +37 -0
- package/dist/commands/reviews-code.md +90 -0
- package/dist/commands/reviews-pragmatic.md +99 -0
- package/dist/commands/reviews-production-readiness.md +113 -0
- package/dist/commands/reviews-reality-check.md +110 -0
- package/dist/commands/reviews-spec-audit.md +114 -0
- package/dist/commands/standards-discover.md +37 -0
- package/dist/commands/standards-update.md +37 -0
- package/dist/commands/work.md +284 -0
- package/dist/skills/codebase-analyzer/SKILL.md +162 -0
- package/dist/skills/codebase-analyzer/references/code-analysis.md +63 -0
- package/dist/skills/codebase-analyzer/references/combined.md +31 -0
- package/dist/skills/codebase-analyzer/references/context-discovery.md +63 -0
- package/dist/skills/codebase-analyzer/references/file-discovery.md +51 -0
- package/dist/skills/codebase-analyzer/references/migration-target.md +23 -0
- package/dist/skills/codebase-analyzer/references/pattern-mining.md +22 -0
- package/dist/skills/development/SKILL.md +669 -0
- package/dist/skills/docs-manager/SKILL.md +379 -0
- package/dist/skills/docs-manager/docs/INDEX.md +199 -0
- package/dist/skills/docs-manager/docs/standards/backend/api.md +25 -0
- package/dist/skills/docs-manager/docs/standards/backend/migrations.md +22 -0
- package/dist/skills/docs-manager/docs/standards/backend/models.md +25 -0
- package/dist/skills/docs-manager/docs/standards/backend/queries.md +22 -0
- package/dist/skills/docs-manager/docs/standards/frontend/accessibility.md +25 -0
- package/dist/skills/docs-manager/docs/standards/frontend/components.md +28 -0
- package/dist/skills/docs-manager/docs/standards/frontend/css.md +16 -0
- package/dist/skills/docs-manager/docs/standards/frontend/responsive.md +28 -0
- package/dist/skills/docs-manager/docs/standards/global/coding-style.md +25 -0
- package/dist/skills/docs-manager/docs/standards/global/commenting.md +10 -0
- package/dist/skills/docs-manager/docs/standards/global/conventions.md +31 -0
- package/dist/skills/docs-manager/docs/standards/global/error-handling.md +22 -0
- package/dist/skills/docs-manager/docs/standards/global/minimal-implementation.md +22 -0
- package/dist/skills/docs-manager/docs/standards/global/validation.md +28 -0
- package/dist/skills/docs-manager/docs/standards/testing/test-writing.md +25 -0
- package/dist/skills/docs-manager/references/claude-md-template.md +29 -0
- package/dist/skills/docs-manager/references/index-md-template.md +73 -0
- package/dist/skills/flow-init/SKILL.md +198 -0
- package/dist/skills/flow-init/references/architecture-template.md +45 -0
- package/dist/skills/flow-init/references/roadmap-templates.md +93 -0
- package/dist/skills/flow-init/references/tech-stack-template.md +70 -0
- package/dist/skills/flow-init/references/vision-templates.md +75 -0
- package/dist/skills/implementation-plan-executor/SKILL.md +378 -0
- package/dist/skills/implementation-verifier/SKILL.md +307 -0
- package/dist/skills/migration/SKILL.md +380 -0
- package/dist/skills/migration/references/migration-strategies.md +397 -0
- package/dist/skills/migration/references/migration-types.md +437 -0
- package/dist/skills/orchestrator-framework/SKILL.md +65 -0
- package/dist/skills/orchestrator-framework/references/orchestrator-creation-checklist.md +47 -0
- package/dist/skills/orchestrator-framework/references/orchestrator-patterns.md +329 -0
- package/dist/skills/performance/SKILL.md +418 -0
- package/dist/skills/performance/references/performance-optimization-guide.md +365 -0
- package/dist/skills/product-design/SKILL.md +843 -0
- package/dist/skills/product-design/references/characteristic-detection.md +92 -0
- package/dist/skills/product-design/references/interaction-patterns.md +206 -0
- package/dist/skills/product-design/references/visual-companion.md +190 -0
- package/dist/skills/product-design/server/index.ts +359 -0
- package/dist/skills/product-design/server/template.html +256 -0
- package/dist/skills/quick-bugfix/SKILL.md +241 -0
- package/dist/skills/research/SKILL.md +493 -0
- package/dist/skills/research/references/brainstorming-techniques.md +84 -0
- package/dist/skills/research/references/design-techniques.md +40 -0
- package/dist/skills/research/references/research-methodologies.md +710 -0
- package/dist/skills/standards-discover/SKILL.md +236 -0
- package/dist/skills/standards-discover/references/aggregation-strategy.md +76 -0
- package/dist/skills/standards-discover/references/code-pattern-prompt.md +68 -0
- package/dist/skills/standards-discover/references/config-analyzer-prompt.md +67 -0
- package/dist/skills/standards-discover/references/docs-extractor-prompt.md +65 -0
- package/dist/skills/standards-discover/references/external-analyzer-prompt.md +75 -0
- package/dist/skills/standards-update/SKILL.md +159 -0
- package/package.json +7 -6
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: codebase-analyzer
|
|
3
|
+
description: Analyzes codebase using adaptive parallel Explore subagents based on task complexity. Selects agent roles from a pool, launches Explore agents, then delegates report generation to codebase-analysis-reporter subagent.
|
|
4
|
+
user-invocable: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Codebase Analyzer Skill
|
|
8
|
+
|
|
9
|
+
Orchestrates parallel codebase analysis using built-in Explore subagents. Adaptively selects which agent roles to activate based on task complexity, then delegates report synthesis to a specialized subagent.
|
|
10
|
+
|
|
11
|
+
## Core Principles
|
|
12
|
+
|
|
13
|
+
1. **Adaptive Agent Selection**: Select roles from a pool based on task complexity — no fixed count
|
|
14
|
+
2. **Task-Type Awareness**: Adapt prompts and focus based on task type
|
|
15
|
+
3. **Delegated Reporting**: Raw findings go to `codebase-analysis-reporter` subagent for synthesis
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## Input Parameters
|
|
20
|
+
|
|
21
|
+
| Parameter | Required | Description |
|
|
22
|
+
|-----------|----------|-------------|
|
|
23
|
+
| `task_description` | Yes | Description of the development task |
|
|
24
|
+
| `description` | Yes | Task description from user |
|
|
25
|
+
| `task_path` | Yes | Path to task directory |
|
|
26
|
+
| `artifact_name` | No | Override output filename (default: `codebase-analysis.md`) |
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## Execution Workflow
|
|
31
|
+
|
|
32
|
+
### Step 1: Parse Input and Determine Focus
|
|
33
|
+
|
|
34
|
+
Extract keywords, component names, file hints, domain, and technology hints from the description.
|
|
35
|
+
|
|
36
|
+
Determine primary focus from the task description:
|
|
37
|
+
|
|
38
|
+
| Signal in Description | Primary Focus | Key Questions |
|
|
39
|
+
|----------------------|---------------|---------------|
|
|
40
|
+
| Error/crash/broken language | Find buggy code path | Where does the issue occur? What's the execution flow? |
|
|
41
|
+
| Improve/enhance/existing | Find existing feature | What files implement this feature? How does it work? |
|
|
42
|
+
| Add/new/create | Find patterns/integration points | What similar patterns exist? Where should this integrate? |
|
|
43
|
+
|
|
44
|
+
### Step 2: Select Agent Roles
|
|
45
|
+
|
|
46
|
+
Choose which roles to activate from the pool. Each role is a distinct analysis concern.
|
|
47
|
+
|
|
48
|
+
| Role | Purpose | When Needed |
|
|
49
|
+
|------|---------|-------------|
|
|
50
|
+
| **File Discovery** | Find relevant files by patterns, keywords, naming | Almost always |
|
|
51
|
+
| **Code Analysis** | Analyze code structure, patterns, execution flow | When understanding existing behavior matters |
|
|
52
|
+
| **Context Discovery** | Find tests, consumers, dependencies | When understanding impact/coverage matters |
|
|
53
|
+
| **Pattern Mining** | Find similar implementations as templates | New features following existing patterns |
|
|
54
|
+
| **Migration Target** | Analyze target technology/compatibility | Migrations comparing current vs target |
|
|
55
|
+
|
|
56
|
+
**Decision signals:**
|
|
57
|
+
- **Specificity** (exact files mentioned → fewer agents)
|
|
58
|
+
- **Scope breadth** (multiple domains → more agents)
|
|
59
|
+
- **Uncertainty** (unclear location → more agents)
|
|
60
|
+
- **Task type** (bugs tend focused, features broad, migrations broadest)
|
|
61
|
+
|
|
62
|
+
**Examples:**
|
|
63
|
+
|
|
64
|
+
| Task Description | Roles Selected | Count |
|
|
65
|
+
|------------------|---------------|-------|
|
|
66
|
+
| "Fix null check in `utils/parser.ts`" | File Discovery + Code Analysis (combined) | 1 |
|
|
67
|
+
| "Add sorting to user table" | File Discovery, Code Analysis | 2 |
|
|
68
|
+
| "Fix login timeout" | File Discovery + Code Analysis (combined), Context Discovery | 2 |
|
|
69
|
+
| "Add OAuth authentication system" | File Discovery, Code Analysis, Context Discovery | 3 |
|
|
70
|
+
| "Add export feature similar to import" | File Discovery, Code Analysis, Pattern Mining | 3 |
|
|
71
|
+
| "Migrate from REST to GraphQL" | File Discovery, Code Analysis, Context Discovery, Migration Target | 4 |
|
|
72
|
+
|
|
73
|
+
When selecting fewer agents, merge related concerns into a single prompt — don't drop concerns.
|
|
74
|
+
|
|
75
|
+
State which roles you selected and why (1 sentence).
|
|
76
|
+
|
|
77
|
+
### Step 3: Read Prompt Templates and Launch Agents
|
|
78
|
+
|
|
79
|
+
> **STOP — Do NOT skip this step. Do NOT write prompts from memory.**
|
|
80
|
+
>
|
|
81
|
+
> Before launching ANY Explore agent, you MUST use the Read tool to load the prompt template for each selected role. This is non-negotiable.
|
|
82
|
+
|
|
83
|
+
**3a. Read templates** — Use the Read tool to load ONLY the files for your selected roles:
|
|
84
|
+
|
|
85
|
+
| Role | Read This File |
|
|
86
|
+
|------|--------------|
|
|
87
|
+
| File Discovery | `references/file-discovery.md` |
|
|
88
|
+
| Code Analysis | `references/code-analysis.md` |
|
|
89
|
+
| Context Discovery | `references/context-discovery.md` |
|
|
90
|
+
| Pattern Mining | `references/pattern-mining.md` |
|
|
91
|
+
| Migration Target | `references/migration-target.md` |
|
|
92
|
+
|
|
93
|
+
If combining roles into one agent, also read `references/combined.md` for merging guidance.
|
|
94
|
+
|
|
95
|
+
**3b. Adapt templates** — Replace `[description]` with the actual task description. Select the correct task-type section (Bug / Enhancement / Feature).
|
|
96
|
+
|
|
97
|
+
**3c. Launch agents** — Use the Task tool with `subagent_type="Explore"` — one call per selected role, all in ONE message.
|
|
98
|
+
|
|
99
|
+
**IMPORTANT**: Every Explore agent prompt MUST include this instruction:
|
|
100
|
+
> IMPORTANT: Do NOT create, write, or modify any files. Output all findings as text in your response only.
|
|
101
|
+
|
|
102
|
+
**SELF-CHECK**: Did you read the template files with the Read tool? If not, go back to 3a. Do not proceed.
|
|
103
|
+
|
|
104
|
+
### Step 4: Delegate Report Generation
|
|
105
|
+
|
|
106
|
+
After all Explore agents complete, delegate to `codebase-analysis-reporter` subagent via Task tool:
|
|
107
|
+
|
|
108
|
+
```
|
|
109
|
+
Task tool:
|
|
110
|
+
subagent_type: "codebase-analysis-reporter"
|
|
111
|
+
description: "Merge findings into analysis report"
|
|
112
|
+
prompt: |
|
|
113
|
+
You are the codebase-analysis-reporter. Merge these raw findings into a structured analysis report.
|
|
114
|
+
|
|
115
|
+
Task description: [description]
|
|
116
|
+
Agent roles used: [list of roles]
|
|
117
|
+
Agent count: [N]
|
|
118
|
+
Output path: [task_path]/analysis/[artifact_name]
|
|
119
|
+
|
|
120
|
+
## Raw Findings
|
|
121
|
+
|
|
122
|
+
### [Role 1 Name]
|
|
123
|
+
[paste raw output from agent 1]
|
|
124
|
+
|
|
125
|
+
### [Role 2 Name]
|
|
126
|
+
[paste raw output from agent 2]
|
|
127
|
+
|
|
128
|
+
[... for each agent]
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
The subagent produces the final report at `{task_path}/analysis/{artifact_name}` and returns structured results.
|
|
132
|
+
|
|
133
|
+
### Step 5: Return Results to Orchestrator
|
|
134
|
+
|
|
135
|
+
Pass through the subagent's structured output:
|
|
136
|
+
|
|
137
|
+
```yaml
|
|
138
|
+
status: success|partial|failed
|
|
139
|
+
report_path: analysis/[artifact_name]
|
|
140
|
+
summary: "[1-2 sentence summary]"
|
|
141
|
+
files_found: [count]
|
|
142
|
+
complexity: simple|moderate|complex
|
|
143
|
+
risk_level: low|low-medium|medium|medium-high|high
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
## Error Handling
|
|
149
|
+
|
|
150
|
+
- **No files found**: Report partial results, suggest user provide more specific hints
|
|
151
|
+
- **Agent timeout**: Use results from completed agents, note incomplete analysis
|
|
152
|
+
- **Conflicting results**: Pass all perspectives to reporter subagent, which highlights conflicts
|
|
153
|
+
|
|
154
|
+
---
|
|
155
|
+
|
|
156
|
+
## Integration
|
|
157
|
+
|
|
158
|
+
| Orchestrator | Phase | artifact_name |
|
|
159
|
+
|-------------|-------|---------------|
|
|
160
|
+
| development orchestrator | Phase 1 | `codebase-analysis.md` (default) |
|
|
161
|
+
| migration orchestrator | Phase 1 | `current-state-analysis.md` |
|
|
162
|
+
| performance orchestrator | Phase 1 | `codebase-analysis.md` (default) |
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# Code Analysis — Prompt Templates
|
|
2
|
+
|
|
3
|
+
Replace `[description]` with the actual task description.
|
|
4
|
+
|
|
5
|
+
## Bug
|
|
6
|
+
```
|
|
7
|
+
IMPORTANT: Do NOT create, write, or modify any files. Output all findings as text in your response only.
|
|
8
|
+
|
|
9
|
+
Analyze the code related to: "[description]"
|
|
10
|
+
|
|
11
|
+
Focus on:
|
|
12
|
+
1. Trace execution flow from input to output
|
|
13
|
+
2. Identify state changes and side effects
|
|
14
|
+
3. Look for edge cases, error conditions, race conditions
|
|
15
|
+
4. Find validation logic and where it might fail
|
|
16
|
+
5. Check for recent changes that might have introduced the bug
|
|
17
|
+
|
|
18
|
+
Output:
|
|
19
|
+
- Execution flow diagram (text-based)
|
|
20
|
+
- Key functions/methods involved
|
|
21
|
+
- Potential problem areas
|
|
22
|
+
- State management approach
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Enhancement
|
|
26
|
+
```
|
|
27
|
+
IMPORTANT: Do NOT create, write, or modify any files. Output all findings as text in your response only.
|
|
28
|
+
|
|
29
|
+
Analyze the existing implementation of: "[description]"
|
|
30
|
+
|
|
31
|
+
Focus on:
|
|
32
|
+
1. Understand current functionality and capabilities
|
|
33
|
+
2. Identify the component/service architecture
|
|
34
|
+
3. Document the data flow (props, state, API calls)
|
|
35
|
+
4. Note coding patterns used (hooks, classes, functional)
|
|
36
|
+
5. Assess complexity (simple/moderate/complex)
|
|
37
|
+
|
|
38
|
+
Output:
|
|
39
|
+
- Current functionality summary
|
|
40
|
+
- Architecture overview
|
|
41
|
+
- Key functions and their purposes
|
|
42
|
+
- Coding patterns observed
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Feature
|
|
46
|
+
```
|
|
47
|
+
IMPORTANT: Do NOT create, write, or modify any files. Output all findings as text in your response only.
|
|
48
|
+
|
|
49
|
+
Analyze the codebase architecture for adding: "[description]"
|
|
50
|
+
|
|
51
|
+
Focus on:
|
|
52
|
+
1. Understand the overall project structure
|
|
53
|
+
2. Identify architectural patterns in use (MVC, component-based, etc.)
|
|
54
|
+
3. Document naming conventions and code style
|
|
55
|
+
4. Find the data layer patterns (API, state management)
|
|
56
|
+
5. Note any relevant abstractions or base classes
|
|
57
|
+
|
|
58
|
+
Output:
|
|
59
|
+
- Project structure overview
|
|
60
|
+
- Architectural patterns to follow
|
|
61
|
+
- Naming conventions to match
|
|
62
|
+
- Recommended approach for new feature
|
|
63
|
+
```
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Combined Prompts — Guidance
|
|
2
|
+
|
|
3
|
+
When merging multiple roles into a single agent, integrate concerns logically rather than concatenating prompts. Read the individual role templates first, then merge them into a coherent single prompt.
|
|
4
|
+
|
|
5
|
+
## Example: File Discovery + Code Analysis (Bug)
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
IMPORTANT: Do NOT create, write, or modify any files. Output all findings as text in your response only.
|
|
9
|
+
|
|
10
|
+
Explore and analyze the codebase for: "[description]"
|
|
11
|
+
|
|
12
|
+
1. Find files where the bug likely occurs (search for error keywords, related functionality)
|
|
13
|
+
2. Trace the code path through these files - entry points, handlers, processing logic
|
|
14
|
+
3. Identify state changes, side effects, and potential failure points
|
|
15
|
+
4. Look for edge cases, validation logic, and error handling
|
|
16
|
+
5. Check for related configuration that might affect behavior
|
|
17
|
+
|
|
18
|
+
Output:
|
|
19
|
+
- Relevant files with paths and why they matter
|
|
20
|
+
- Execution flow through identified files
|
|
21
|
+
- Key functions/methods and their roles
|
|
22
|
+
- Potential problem areas and root cause hypotheses
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Merging Principles
|
|
26
|
+
|
|
27
|
+
- Unify the focus areas into a single logical flow (don't just list both sets of bullet points)
|
|
28
|
+
- Combine the output sections — avoid duplicate asks
|
|
29
|
+
- Keep the total prompt concise (aim for 8-12 focus items max)
|
|
30
|
+
- The merged prompt should read as one coherent task, not two tasks stitched together
|
|
31
|
+
- Always include the no-write constraint: "IMPORTANT: Do NOT create, write, or modify any files. Output all findings as text in your response only."
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# Context Discovery — Prompt Templates
|
|
2
|
+
|
|
3
|
+
Replace `[description]` with the actual task description.
|
|
4
|
+
|
|
5
|
+
## Bug
|
|
6
|
+
```
|
|
7
|
+
IMPORTANT: Do NOT create, write, or modify any files. Output all findings as text in your response only.
|
|
8
|
+
|
|
9
|
+
Find testing and context information for: "[description]"
|
|
10
|
+
|
|
11
|
+
Focus on:
|
|
12
|
+
1. Find existing tests that cover this functionality
|
|
13
|
+
2. Look for test files that might help reproduce the bug
|
|
14
|
+
3. Identify test data or fixtures used
|
|
15
|
+
4. Find related integration or E2E tests
|
|
16
|
+
5. Check for any existing bug reports or TODOs in comments
|
|
17
|
+
|
|
18
|
+
Output:
|
|
19
|
+
- Relevant test files and what they test
|
|
20
|
+
- Test coverage gaps
|
|
21
|
+
- Reproduction hints from tests
|
|
22
|
+
- Related issues or TODOs found in code
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Enhancement
|
|
26
|
+
```
|
|
27
|
+
IMPORTANT: Do NOT create, write, or modify any files. Output all findings as text in your response only.
|
|
28
|
+
|
|
29
|
+
Find dependencies and consumers for: "[description]"
|
|
30
|
+
|
|
31
|
+
Focus on:
|
|
32
|
+
1. Find all files that import/use this feature (consumers)
|
|
33
|
+
2. Identify what this feature depends on (dependencies)
|
|
34
|
+
3. Locate test files and assess coverage
|
|
35
|
+
4. Find API endpoints or routes related to this feature
|
|
36
|
+
5. Check for documentation or comments
|
|
37
|
+
|
|
38
|
+
Output:
|
|
39
|
+
- Consumer list (who uses this)
|
|
40
|
+
- Dependency list (what this uses)
|
|
41
|
+
- Test files and coverage assessment
|
|
42
|
+
- Integration points
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Feature
|
|
46
|
+
```
|
|
47
|
+
IMPORTANT: Do NOT create, write, or modify any files. Output all findings as text in your response only.
|
|
48
|
+
|
|
49
|
+
Find integration requirements for: "[description]"
|
|
50
|
+
|
|
51
|
+
Focus on:
|
|
52
|
+
1. Identify where this feature needs to be registered/routed
|
|
53
|
+
2. Find existing integration patterns (how other features connect)
|
|
54
|
+
3. Look for shared dependencies this feature will need
|
|
55
|
+
4. Check for authentication/authorization patterns to follow
|
|
56
|
+
5. Find configuration or environment requirements
|
|
57
|
+
|
|
58
|
+
Output:
|
|
59
|
+
- Required integration points
|
|
60
|
+
- Patterns to follow for registration
|
|
61
|
+
- Shared dependencies to use
|
|
62
|
+
- Configuration requirements
|
|
63
|
+
```
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# File Discovery — Prompt Templates
|
|
2
|
+
|
|
3
|
+
Replace `[description]` with the actual task description.
|
|
4
|
+
|
|
5
|
+
## Bug
|
|
6
|
+
```
|
|
7
|
+
IMPORTANT: Do NOT create, write, or modify any files. Output all findings as text in your response only.
|
|
8
|
+
|
|
9
|
+
Explore the codebase to find files related to: "[description]"
|
|
10
|
+
|
|
11
|
+
Focus on:
|
|
12
|
+
1. Find files where the bug likely occurs (search for error keywords, related functionality)
|
|
13
|
+
2. Trace the code path - entry points, handlers, processing logic
|
|
14
|
+
3. Look for related error handling, validation, edge cases
|
|
15
|
+
4. Find configuration files that might affect this behavior
|
|
16
|
+
|
|
17
|
+
Output a list of relevant files with their paths and why they're relevant.
|
|
18
|
+
Be thorough - check multiple naming conventions (PascalCase, kebab-case, snake_case).
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Enhancement
|
|
22
|
+
```
|
|
23
|
+
IMPORTANT: Do NOT create, write, or modify any files. Output all findings as text in your response only.
|
|
24
|
+
|
|
25
|
+
Explore the codebase to find files that implement: "[description]"
|
|
26
|
+
|
|
27
|
+
Focus on:
|
|
28
|
+
1. Find the main files for this feature (components, services, controllers)
|
|
29
|
+
2. Look for related files (types, utilities, hooks, styles)
|
|
30
|
+
3. Check multiple naming patterns: *{keyword}*, {Domain}{Component}, etc.
|
|
31
|
+
4. Search in likely directories: src/components/, src/services/, src/features/
|
|
32
|
+
|
|
33
|
+
Output a ranked list of files with confidence indicators.
|
|
34
|
+
Include file paths, approximate line counts, and why each file is relevant.
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Feature
|
|
38
|
+
```
|
|
39
|
+
IMPORTANT: Do NOT create, write, or modify any files. Output all findings as text in your response only.
|
|
40
|
+
|
|
41
|
+
Explore the codebase to find patterns and integration points for: "[description]"
|
|
42
|
+
|
|
43
|
+
Focus on:
|
|
44
|
+
1. Find similar existing features/components to use as templates
|
|
45
|
+
2. Identify where this new feature should live (directory structure)
|
|
46
|
+
3. Look for shared utilities, hooks, or base classes to extend
|
|
47
|
+
4. Find entry points where this feature needs to integrate (routes, menus, etc.)
|
|
48
|
+
|
|
49
|
+
List the files that serve as good examples or integration points.
|
|
50
|
+
Include reasoning for why each pattern/location is appropriate.
|
|
51
|
+
```
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Migration Target — Prompt Template
|
|
2
|
+
|
|
3
|
+
Primarily for migrations. Replace `[description]` with the actual task description.
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
IMPORTANT: Do NOT create, write, or modify any files. Output all findings as text in your response only.
|
|
7
|
+
|
|
8
|
+
Analyze the target state for migration: "[description]"
|
|
9
|
+
|
|
10
|
+
Focus on:
|
|
11
|
+
1. Find any existing usage of the target technology/pattern in the codebase
|
|
12
|
+
2. Look for partial migration attempts or hybrid implementations
|
|
13
|
+
3. Identify compatibility layers, adapters, or shims already in use
|
|
14
|
+
4. Check for migration-related configuration (build tools, transpilers, polyfills)
|
|
15
|
+
5. Document the target conventions and patterns to follow
|
|
16
|
+
|
|
17
|
+
Output:
|
|
18
|
+
- Existing target technology usage (if any)
|
|
19
|
+
- Partial migration progress found
|
|
20
|
+
- Compatibility concerns identified
|
|
21
|
+
- Target conventions to follow
|
|
22
|
+
- Migration configuration requirements
|
|
23
|
+
```
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Pattern Mining — Prompt Template
|
|
2
|
+
|
|
3
|
+
Primarily for features, usable for enhancements. Replace `[description]` with the actual task description.
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
IMPORTANT: Do NOT create, write, or modify any files. Output all findings as text in your response only.
|
|
7
|
+
|
|
8
|
+
Find similar implementations and reusable patterns for: "[description]"
|
|
9
|
+
|
|
10
|
+
Focus on:
|
|
11
|
+
1. Find the most similar existing feature/component in the codebase
|
|
12
|
+
2. Identify reusable abstractions, base classes, or utilities that can be extended
|
|
13
|
+
3. Document the conventions these similar implementations follow (file structure, naming, patterns)
|
|
14
|
+
4. Note any generators, templates, or scaffolding tools available
|
|
15
|
+
5. Identify shared hooks, mixins, or helper functions that should be reused
|
|
16
|
+
|
|
17
|
+
Output:
|
|
18
|
+
- Best template/example to replicate (with file paths)
|
|
19
|
+
- Reusable abstractions and utilities (with file paths)
|
|
20
|
+
- Convention checklist to follow
|
|
21
|
+
- Anti-patterns observed in existing similar features (what NOT to copy)
|
|
22
|
+
```
|