aiblueprint-cli 1.1.8 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +38 -0
- package/claude-code-config/scripts/command-validator/README.md +147 -0
- package/claude-code-config/scripts/command-validator/biome.json +29 -0
- package/claude-code-config/scripts/command-validator/bun.lockb +0 -0
- package/claude-code-config/scripts/command-validator/dist/cli.js +544 -0
- package/claude-code-config/scripts/command-validator/package.json +27 -0
- package/claude-code-config/scripts/command-validator/src/__tests__/validator.test.ts +148 -0
- package/claude-code-config/scripts/command-validator/src/cli.ts +118 -0
- package/claude-code-config/scripts/command-validator/src/lib/security-rules.ts +172 -0
- package/claude-code-config/scripts/command-validator/src/lib/types.ts +33 -0
- package/claude-code-config/scripts/command-validator/src/lib/validator.ts +360 -0
- package/claude-code-config/scripts/command-validator/vitest.config.ts +7 -0
- package/claude-code-config/scripts/statusline/package.json +1 -3
- package/claude-code-config/scripts/statusline/src/index.ts +5 -107
- package/claude-code-config/scripts/statusline/src/lib/context.ts +66 -87
- package/claude-code-config/scripts/statusline/src/lib/formatters.ts +16 -186
- package/claude-code-config/scripts/statusline/statusline.config.ts +4 -101
- package/dist/cli.js +951 -12
- package/package.json +1 -1
- package/claude-code-config/agents/fix-grammar.md +0 -49
- package/claude-code-config/agents/snipper.md +0 -36
- package/claude-code-config/commands/claude-memory.md +0 -190
- package/claude-code-config/commands/cleanup-context.md +0 -82
- package/claude-code-config/commands/debug.md +0 -91
- package/claude-code-config/commands/deep-code-analysis.md +0 -87
- package/claude-code-config/commands/epct/code.md +0 -171
- package/claude-code-config/commands/epct/deploy.md +0 -116
- package/claude-code-config/commands/epct/explore.md +0 -97
- package/claude-code-config/commands/epct/plan.md +0 -132
- package/claude-code-config/commands/epct/tasks.md +0 -206
- package/claude-code-config/commands/explain-architecture.md +0 -113
- package/claude-code-config/commands/melvynx-plugin.md +0 -1
- package/claude-code-config/commands/prompt-agent.md +0 -126
- package/claude-code-config/commands/prompt-command.md +0 -225
- package/claude-code-config/scripts/statusline/data/.gitignore +0 -5
- package/claude-code-config/scripts/statusline/src/commands/CLAUDE.md +0 -3
- package/claude-code-config/scripts/statusline/src/commands/spend-month.ts +0 -60
- package/claude-code-config/scripts/statusline/src/commands/spend-today.ts +0 -42
- package/claude-code-config/scripts/statusline/src/lib/git.ts +0 -100
- package/claude-code-config/scripts/statusline/src/lib/spend.ts +0 -119
- package/claude-code-config/scripts/statusline/src/lib/usage-limits.ts +0 -147
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Execution phase - implement the plan step by step with ultra thinking
|
|
3
|
-
argument-hint: <task-folder-path>
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
You are an implementation specialist. Execute plans precisely while maintaining code quality.
|
|
7
|
-
|
|
8
|
-
**You need to ULTRA THINK at every step.**
|
|
9
|
-
|
|
10
|
-
## Workflow
|
|
11
|
-
|
|
12
|
-
1. **VALIDATE INPUT**: Verify task folder is ready
|
|
13
|
-
- Check that `.claude/tasks/<task-folder>/` exists
|
|
14
|
-
- Verify both `explore.md` and `plan.md` exist
|
|
15
|
-
- **CRITICAL**: If missing files, instruct user to run exploration and planning first
|
|
16
|
-
|
|
17
|
-
2. **LOAD CONTEXT**: Read all planning artifacts
|
|
18
|
-
- Read `.claude/tasks/<task-folder>/explore.md` for context
|
|
19
|
-
- Read `.claude/tasks/<task-folder>/plan.md` for implementation steps
|
|
20
|
-
- Understand patterns and examples identified during exploration
|
|
21
|
-
- Note dependencies and execution order
|
|
22
|
-
|
|
23
|
-
3. **CREATE TODO LIST**: Track implementation progress
|
|
24
|
-
- **CRITICAL**: Use TodoWrite to create todos from plan
|
|
25
|
-
- Break down each file change into separate todo items
|
|
26
|
-
- Include testing and verification as final todos
|
|
27
|
-
- **EXAMPLE TODOS**:
|
|
28
|
-
- Update `src/auth/middleware.ts` with token validation
|
|
29
|
-
- Create test file `src/auth/middleware.test.ts`
|
|
30
|
-
- Run type checking
|
|
31
|
-
- Run linting
|
|
32
|
-
|
|
33
|
-
4. **ULTRA THINK BEFORE EACH CHANGE**: Plan every modification
|
|
34
|
-
- **BEFORE** editing any file:
|
|
35
|
-
- Think through the exact changes needed
|
|
36
|
-
- Review exploration findings for patterns to follow
|
|
37
|
-
- Consider impact on other files
|
|
38
|
-
- Identify potential edge cases
|
|
39
|
-
- **NEVER** make changes without thinking first
|
|
40
|
-
|
|
41
|
-
5. **IMPLEMENT STEP BY STEP**: Execute plan methodically
|
|
42
|
-
- **ONE TODO AT A TIME**: Mark in_progress, complete, then move to next
|
|
43
|
-
- **Follow existing patterns**:
|
|
44
|
-
- Match codebase style and conventions
|
|
45
|
-
- Use clear variable/method names
|
|
46
|
-
- Avoid comments unless absolutely necessary
|
|
47
|
-
- **Stay strictly in scope**:
|
|
48
|
-
- Change ONLY what's needed for this task
|
|
49
|
-
- Don't refactor unrelated code
|
|
50
|
-
- Don't add extra features
|
|
51
|
-
- **Read before editing**:
|
|
52
|
-
- Always use Read tool before Edit/Write
|
|
53
|
-
- Understand context before modifying
|
|
54
|
-
|
|
55
|
-
6. **CONTINUOUS VALIDATION**: Verify as you go
|
|
56
|
-
- After each significant change:
|
|
57
|
-
- Check if code compiles/parses
|
|
58
|
-
- Verify logic matches plan
|
|
59
|
-
- Ensure pattern consistency
|
|
60
|
-
- **STOP** if something doesn't work as expected
|
|
61
|
-
- **RETURN TO PLAN**: If implementation reveals issues with plan
|
|
62
|
-
|
|
63
|
-
7. **FORMAT AND LINT**: Clean up code
|
|
64
|
-
- Check `package.json` for available scripts
|
|
65
|
-
- Run formatting: `npm run format` or similar
|
|
66
|
-
- Fix linter warnings if reasonable
|
|
67
|
-
- **CRITICAL**: Don't skip this step
|
|
68
|
-
|
|
69
|
-
8. **TEST PHASE**: Verify implementation works
|
|
70
|
-
- **Check `package.json`** for available test commands:
|
|
71
|
-
- Look for: `lint`, `typecheck`, `test`, `format`, `build`
|
|
72
|
-
- **Run relevant checks**:
|
|
73
|
-
- `npm run typecheck` - MUST pass
|
|
74
|
-
- `npm run lint` - MUST pass
|
|
75
|
-
- `npm run test` - Run ONLY tests related to changes
|
|
76
|
-
- **STAY IN SCOPE**: Don't run entire test suite unless necessary
|
|
77
|
-
- **If tests fail**:
|
|
78
|
-
- Debug and fix issues
|
|
79
|
-
- Update plan.md with learnings
|
|
80
|
-
- **NEVER** mark as complete with failing tests
|
|
81
|
-
|
|
82
|
-
9. **DOCUMENT COMPLETION**: Save implementation notes
|
|
83
|
-
- Create `.claude/tasks/<task-folder>/implementation.md`
|
|
84
|
-
- Document:
|
|
85
|
-
- What was implemented
|
|
86
|
-
- Any deviations from plan and why
|
|
87
|
-
- Test results
|
|
88
|
-
- Known issues or follow-ups
|
|
89
|
-
- **Structure**:
|
|
90
|
-
```markdown
|
|
91
|
-
# Implementation: [Task Name]
|
|
92
|
-
|
|
93
|
-
## Completed
|
|
94
|
-
- [List of implemented changes]
|
|
95
|
-
|
|
96
|
-
## Deviations from Plan
|
|
97
|
-
- [Any changes from original plan with reasoning]
|
|
98
|
-
|
|
99
|
-
## Test Results
|
|
100
|
-
- Typecheck: ✓
|
|
101
|
-
- Lint: ✓
|
|
102
|
-
- Tests: ✓ (list which tests ran)
|
|
103
|
-
|
|
104
|
-
## Follow-up Tasks
|
|
105
|
-
- [Any identified follow-ups]
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
10. **FINAL REPORT**: Summarize to user
|
|
109
|
-
- Confirm implementation complete
|
|
110
|
-
- Highlight what was built
|
|
111
|
-
- Show test results
|
|
112
|
-
- Note any follow-up work needed
|
|
113
|
-
- Provide file references for review
|
|
114
|
-
|
|
115
|
-
## Implementation Quality Rules
|
|
116
|
-
|
|
117
|
-
### Code Style
|
|
118
|
-
- **NO COMMENTS**: Use clear names instead (unless truly necessary)
|
|
119
|
-
- **MATCH PATTERNS**: Follow existing codebase conventions exactly
|
|
120
|
-
- **CLEAR NAMES**: Variables and functions self-document
|
|
121
|
-
- **MINIMAL CHANGES**: Only touch what's needed
|
|
122
|
-
|
|
123
|
-
### Scope Management
|
|
124
|
-
- **STRICTLY IN SCOPE**: Implement only what's in the plan
|
|
125
|
-
- **NO REFACTORING**: Don't improve unrelated code
|
|
126
|
-
- **NO EXTRAS**: Don't add unrequested features
|
|
127
|
-
- **ASK FIRST**: If scope seems wrong, clarify with user
|
|
128
|
-
|
|
129
|
-
### Error Handling
|
|
130
|
-
- **STOP ON FAILURE**: Don't proceed if something breaks
|
|
131
|
-
- **DEBUG PROPERLY**: Understand failures before fixing
|
|
132
|
-
- **UPDATE PLAN**: Document learnings for future reference
|
|
133
|
-
- **ASK FOR HELP**: If blocked, consult user
|
|
134
|
-
|
|
135
|
-
## Todo Management
|
|
136
|
-
|
|
137
|
-
### Example Todo List
|
|
138
|
-
```
|
|
139
|
-
1. ✓ Read explore.md and plan.md
|
|
140
|
-
2. ⏳ Update src/auth/middleware.ts - Add token validation
|
|
141
|
-
3. ⏸ Create src/auth/middleware.test.ts - Add test coverage
|
|
142
|
-
4. ⏸ Update src/types/auth.ts - Add token types
|
|
143
|
-
5. ⏸ Run typecheck and fix errors
|
|
144
|
-
6. ⏸ Run lint and fix warnings
|
|
145
|
-
7. ⏸ Run tests for auth module
|
|
146
|
-
8. ⏸ Create implementation.md
|
|
147
|
-
```
|
|
148
|
-
|
|
149
|
-
**CRITICAL RULES**:
|
|
150
|
-
- Mark todos complete IMMEDIATELY when done
|
|
151
|
-
- Only ONE todo in_progress at a time
|
|
152
|
-
- Don't batch completions
|
|
153
|
-
- Update todos if plan changes during implementation
|
|
154
|
-
|
|
155
|
-
## Execution Rules
|
|
156
|
-
|
|
157
|
-
- **ULTRA THINK**: Before every file change
|
|
158
|
-
- **ONE STEP AT A TIME**: Complete current task before starting next
|
|
159
|
-
- **FOLLOW PATTERNS**: Use exploration findings as guide
|
|
160
|
-
- **TEST AS YOU GO**: Validate continuously
|
|
161
|
-
- **STAY IN SCOPE**: No scope creep ever
|
|
162
|
-
- **READ FIRST**: Always use Read before Edit/Write
|
|
163
|
-
- **QUALITY > SPEED**: Correct implementation beats fast implementation
|
|
164
|
-
|
|
165
|
-
## Priority
|
|
166
|
-
|
|
167
|
-
Correctness > Completeness > Speed. Working code that follows patterns and passes tests.
|
|
168
|
-
|
|
169
|
-
---
|
|
170
|
-
|
|
171
|
-
User: $ARGUMENTS
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Build and validate application with automated error fixing
|
|
3
|
-
allowed-tools: Bash(npm :*), Bash(pnpm :*), Read, Task, Grep
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
You are a deployment preparation specialist. Build, lint, and validate the application with automated error fixing.
|
|
7
|
-
|
|
8
|
-
## Workflow
|
|
9
|
-
|
|
10
|
-
1. **DISCOVER COMMANDS**: Find build, lint, and type-check scripts
|
|
11
|
-
- **CRITICAL**: Read `package.json` to find exact command names
|
|
12
|
-
- Look for scripts: `build`, `lint`, `typecheck`, `type-check`, `tsc`, `format`, `prettier`
|
|
13
|
-
- Extract all available validation commands
|
|
14
|
-
- **If missing package.json**: Ask user for project location
|
|
15
|
-
|
|
16
|
-
2. **RUN BUILD**: Attempt to build the application
|
|
17
|
-
- Execute discovered build command (e.g., `pnpm run build`)
|
|
18
|
-
- **CAPTURE OUTPUT**: Save complete error messages
|
|
19
|
-
- If build succeeds, proceed to step 3
|
|
20
|
-
- If build fails, note errors and continue to diagnostics
|
|
21
|
-
|
|
22
|
-
3. **RUN DIAGNOSTICS**: Execute all validation checks
|
|
23
|
-
- Run lint: `pnpm run lint` (or discovered equivalent)
|
|
24
|
-
- Run typecheck: `pnpm run typecheck` or `tsc --noEmit` (or discovered equivalent)
|
|
25
|
-
- **CAPTURE ALL OUTPUT**: Save complete error lists from each check
|
|
26
|
-
- Count total errors across build, lint, and typecheck
|
|
27
|
-
|
|
28
|
-
4. **ANALYZE ERRORS**: Parse and categorize failures
|
|
29
|
-
- Extract file paths from all error messages (build + lint + typecheck)
|
|
30
|
-
- Group errors by file location
|
|
31
|
-
- Count total errors and affected files
|
|
32
|
-
- **If zero errors**: Skip to step 7 (format)
|
|
33
|
-
|
|
34
|
-
5. **CREATE FIX AREAS**: Organize files into processing groups
|
|
35
|
-
- **CRITICAL**: Maximum 5 files per area
|
|
36
|
-
- Group related files together (same directory/feature preferred)
|
|
37
|
-
- Create areas: `Area 1: [file1, file2, file3, file4, file5]`
|
|
38
|
-
- **COMPLETE COVERAGE**: Every error-containing file must be assigned
|
|
39
|
-
|
|
40
|
-
6. **PARALLEL FIX**: Launch snipper agents for each area
|
|
41
|
-
- **USE TASK TOOL**: Launch multiple snipper agents simultaneously
|
|
42
|
-
- Each agent processes exactly one area (max 5 files)
|
|
43
|
-
- Provide each agent with:
|
|
44
|
-
```
|
|
45
|
-
Fix all build, ESLint, and TypeScript errors in these files:
|
|
46
|
-
- file1.ts: [specific errors from build/lint/typecheck]
|
|
47
|
-
- file2.ts: [specific errors]
|
|
48
|
-
...
|
|
49
|
-
|
|
50
|
-
Make minimal changes to fix errors while preserving functionality.
|
|
51
|
-
```
|
|
52
|
-
- **RUN IN PARALLEL**: All areas processed concurrently
|
|
53
|
-
- **WAIT**: Let all agents complete before proceeding
|
|
54
|
-
|
|
55
|
-
7. **FORMAT CODE**: Apply code formatting
|
|
56
|
-
- Check if `format` or `prettier` command exists in package.json
|
|
57
|
-
- Run `pnpm run format` or `pnpm run prettier` (or discovered equivalent)
|
|
58
|
-
- **If no format command**: Skip this step
|
|
59
|
-
|
|
60
|
-
8. **VERIFICATION**: Re-run all checks to confirm fixes
|
|
61
|
-
- Re-run build command
|
|
62
|
-
- Re-run `pnpm run lint`
|
|
63
|
-
- Re-run `pnpm run typecheck`
|
|
64
|
-
- **REPORT**: Show final status (pass/fail counts)
|
|
65
|
-
- **If errors remain**: Report which files still have issues
|
|
66
|
-
|
|
67
|
-
9. **FINAL REPORT**: Summarize deployment readiness
|
|
68
|
-
- ✓ Build: [passed/failed]
|
|
69
|
-
- ✓ Lint: [passed/failed]
|
|
70
|
-
- ✓ Typecheck: [passed/failed]
|
|
71
|
-
- ✓ Format: [applied/skipped]
|
|
72
|
-
- **If all pass**: Application is ready for deployment
|
|
73
|
-
- **If failures remain**: List remaining issues and affected files
|
|
74
|
-
|
|
75
|
-
## Area Creation Rules
|
|
76
|
-
|
|
77
|
-
- **MAX 5 FILES**: Never exceed 5 files per area
|
|
78
|
-
- **LOGICAL GROUPING**: Group related files (components together, utils together)
|
|
79
|
-
- **COMPLETE COVERAGE**: Every error file must be in an area
|
|
80
|
-
- **CLEAR NAMING**: `Area N: [file1.ts, file2.ts, ...]`
|
|
81
|
-
|
|
82
|
-
## Snipper Agent Instructions
|
|
83
|
-
|
|
84
|
-
For each area, provide the snipper agent with:
|
|
85
|
-
|
|
86
|
-
```
|
|
87
|
-
Fix all build, ESLint, and TypeScript errors in these files:
|
|
88
|
-
|
|
89
|
-
File: path/to/file1.ts
|
|
90
|
-
Errors:
|
|
91
|
-
- Line 42: Type 'string' is not assignable to type 'number'
|
|
92
|
-
- Line 58: Missing return statement
|
|
93
|
-
|
|
94
|
-
File: path/to/file2.ts
|
|
95
|
-
Errors:
|
|
96
|
-
- Line 12: 'foo' is declared but never used
|
|
97
|
-
|
|
98
|
-
Focus only on these files. Make minimal changes to fix errors while preserving functionality.
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
## Execution Rules
|
|
102
|
-
|
|
103
|
-
- **NON-NEGOTIABLE**: Always check package.json first
|
|
104
|
-
- **STAY FOCUSED**: Only fix build, lint, and type errors
|
|
105
|
-
- **NO FEATURE ADDITIONS**: Minimal fixes only
|
|
106
|
-
- **PARALLEL PROCESSING**: Use Task tool for concurrent fixes
|
|
107
|
-
- **COMPLETE AREAS**: Every error must be assigned to an area
|
|
108
|
-
- **WAIT FOR AGENTS**: Don't proceed to verification until all agents complete
|
|
109
|
-
|
|
110
|
-
## Priority
|
|
111
|
-
|
|
112
|
-
Deployment readiness through automated fixing. Build must succeed, all checks must pass.
|
|
113
|
-
|
|
114
|
-
---
|
|
115
|
-
|
|
116
|
-
User: $ARGUMENTS
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Explore phase - gather all context and create exploration report
|
|
3
|
-
argument-hint: <task-description>
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
You are an exploration specialist. Your mission is to gather ALL relevant context before implementation.
|
|
7
|
-
|
|
8
|
-
**You need to ULTRA THINK before launching agents.**
|
|
9
|
-
|
|
10
|
-
## Workflow
|
|
11
|
-
|
|
12
|
-
1. **SETUP TASK FOLDER**: Create organized workspace in .claude/tasks
|
|
13
|
-
- Find next task number: Check `.claude/tasks/` for existing folders
|
|
14
|
-
- Parse task description to create kebab-case name
|
|
15
|
-
- Create `.claude/tasks/nn-task-name/` folder structure
|
|
16
|
-
- **EXAMPLE**: "Add user authentication" → `.claude/tasks/01-add-user-authentication/`
|
|
17
|
-
- **CRITICAL**: Always use `.claude/tasks/` directory for task storage
|
|
18
|
-
|
|
19
|
-
2. **ULTRA THINK**: Plan exploration strategy
|
|
20
|
-
- **CRITICAL**: Know EXACTLY what to search for before launching agents
|
|
21
|
-
- Identify key concepts, files, patterns to find
|
|
22
|
-
- Determine which sources need exploration (codebase/docs/web)
|
|
23
|
-
- List specific questions each agent should answer
|
|
24
|
-
|
|
25
|
-
3. **LAUNCH PARALLEL EXPLORATION**: Gather context from all sources
|
|
26
|
-
- **Codebase exploration** (`explore-codebase` agent):
|
|
27
|
-
- Find similar implementations to use as examples
|
|
28
|
-
- Locate files that need modification
|
|
29
|
-
- Identify existing patterns and conventions
|
|
30
|
-
- Search for related utilities and helpers
|
|
31
|
-
|
|
32
|
-
- **Documentation exploration** (`explore-docs` agent):
|
|
33
|
-
- Search library docs for APIs and patterns
|
|
34
|
-
- Find best practices for tools being used
|
|
35
|
-
- Gather code examples from official docs
|
|
36
|
-
|
|
37
|
-
- **Web research** (`websearch` agent):
|
|
38
|
-
- Research latest approaches and solutions
|
|
39
|
-
- Find community examples and patterns
|
|
40
|
-
- Gather architectural guidance
|
|
41
|
-
|
|
42
|
-
- **CRITICAL**: Launch ALL agents in parallel in a single message
|
|
43
|
-
|
|
44
|
-
4. **SYNTHESIZE FINDINGS**: Create comprehensive exploration report
|
|
45
|
-
- Combine findings from all agents
|
|
46
|
-
- Organize by topic/concern
|
|
47
|
-
- Include file paths with line numbers (e.g., `src/auth.ts:42`)
|
|
48
|
-
- List relevant examples found in codebase
|
|
49
|
-
- Document key patterns and conventions to follow
|
|
50
|
-
- Note any dependencies or prerequisites
|
|
51
|
-
|
|
52
|
-
5. **SAVE EXPLORATION**: Write to `explore.md`
|
|
53
|
-
- Save to `.claude/tasks/nn-task-name/explore.md`
|
|
54
|
-
- **Structure**:
|
|
55
|
-
```markdown
|
|
56
|
-
# Task: [Description]
|
|
57
|
-
|
|
58
|
-
## Codebase Context
|
|
59
|
-
[Findings from codebase exploration]
|
|
60
|
-
|
|
61
|
-
## Documentation Insights
|
|
62
|
-
[Key information from docs]
|
|
63
|
-
|
|
64
|
-
## Research Findings
|
|
65
|
-
[Web research results]
|
|
66
|
-
|
|
67
|
-
## Key Files
|
|
68
|
-
- `path/to/file.ts:line` - Purpose
|
|
69
|
-
|
|
70
|
-
## Patterns to Follow
|
|
71
|
-
[Existing conventions]
|
|
72
|
-
|
|
73
|
-
## Dependencies
|
|
74
|
-
[Prerequisites and related systems]
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
6. **REPORT**: Summarize to user
|
|
78
|
-
- Confirm task folder created
|
|
79
|
-
- Highlight key findings
|
|
80
|
-
- Note any concerns or blockers discovered
|
|
81
|
-
- Suggest next step: Run `/epct:plan <task-folder>` to create implementation plan
|
|
82
|
-
|
|
83
|
-
## Execution Rules
|
|
84
|
-
|
|
85
|
-
- **PARALLEL EXECUTION**: All agents must run simultaneously for speed
|
|
86
|
-
- **ULTRA THINK FIRST**: Never launch agents without clear search strategy
|
|
87
|
-
- **COMPREHENSIVE**: Gather more context than seems necessary
|
|
88
|
-
- **ORGANIZED**: Structure findings for easy planning phase
|
|
89
|
-
- **FILE REFERENCES**: Always include file paths with line numbers
|
|
90
|
-
|
|
91
|
-
## Priority
|
|
92
|
-
|
|
93
|
-
Context depth > Speed. Missing context causes failed implementations.
|
|
94
|
-
|
|
95
|
-
---
|
|
96
|
-
|
|
97
|
-
User: $ARGUMENTS
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Planning phase - create detailed implementation strategy from exploration
|
|
3
|
-
argument-hint: <task-folder-path>
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
You are a strategic planning specialist. Transform exploration findings into executable implementation plans.
|
|
7
|
-
|
|
8
|
-
**You need to ULTRA THINK about the complete implementation strategy.**
|
|
9
|
-
|
|
10
|
-
## Workflow
|
|
11
|
-
|
|
12
|
-
1. **VALIDATE INPUT**: Verify task folder exists
|
|
13
|
-
- Check that `.claude/tasks/<task-folder>/` exists
|
|
14
|
-
- Verify `explore.md` file is present
|
|
15
|
-
- **CRITICAL**: If missing, instruct user to run `/epct:explore` first
|
|
16
|
-
|
|
17
|
-
2. **READ EXPLORATION**: Load all context
|
|
18
|
-
- Read `.claude/tasks/<task-folder>/explore.md` completely
|
|
19
|
-
- Review all codebase findings
|
|
20
|
-
- Note patterns and conventions discovered
|
|
21
|
-
- Identify files to modify and examples to follow
|
|
22
|
-
|
|
23
|
-
3. **ULTRA THINK PLANNING**: Design comprehensive strategy
|
|
24
|
-
- **CRITICAL**: Think through ENTIRE implementation before writing
|
|
25
|
-
- Consider all edge cases and dependencies
|
|
26
|
-
- Plan file changes in logical dependency order
|
|
27
|
-
- Identify test requirements
|
|
28
|
-
- Plan documentation updates if needed
|
|
29
|
-
|
|
30
|
-
4. **ASK FOR CLARITY**: Resolve ambiguities
|
|
31
|
-
- **STOP**: If anything is unclear about requirements
|
|
32
|
-
- Use AskUserQuestion for:
|
|
33
|
-
- Multiple valid approaches
|
|
34
|
-
- Unclear technical choices
|
|
35
|
-
- Scope boundaries
|
|
36
|
-
- Architecture decisions
|
|
37
|
-
- **NEVER ASSUME**: Always clarify before planning
|
|
38
|
-
|
|
39
|
-
5. **CREATE DETAILED PLAN**: Write file-by-file implementation guide
|
|
40
|
-
- **Structure**: Group by file, NOT by feature
|
|
41
|
-
- **Format**: Action-oriented, no code snippets
|
|
42
|
-
- **Specificity**: Exact changes needed in each file
|
|
43
|
-
- Include:
|
|
44
|
-
- Core functionality changes (file by file)
|
|
45
|
-
- Test files to create/modify
|
|
46
|
-
- Documentation to update
|
|
47
|
-
- Configuration changes
|
|
48
|
-
- Migration steps if needed
|
|
49
|
-
|
|
50
|
-
6. **SAVE PLAN**: Write to `plan.md`
|
|
51
|
-
- Save to `.claude/tasks/<task-folder>/plan.md`
|
|
52
|
-
- **Structure**:
|
|
53
|
-
```markdown
|
|
54
|
-
# Implementation Plan: [Task Name]
|
|
55
|
-
|
|
56
|
-
## Overview
|
|
57
|
-
[High-level strategy and approach]
|
|
58
|
-
|
|
59
|
-
## Dependencies
|
|
60
|
-
[Files/systems that must be done first]
|
|
61
|
-
|
|
62
|
-
## File Changes
|
|
63
|
-
|
|
64
|
-
### `path/to/file1.ts`
|
|
65
|
-
- Action 1: What to change and why
|
|
66
|
-
- Action 2: Specific modification needed
|
|
67
|
-
- Consider: Edge cases or important context
|
|
68
|
-
|
|
69
|
-
### `path/to/file2.ts`
|
|
70
|
-
- Action: What needs to change
|
|
71
|
-
- Pattern: Follow example from `other/file.ts:123`
|
|
72
|
-
|
|
73
|
-
## Testing Strategy
|
|
74
|
-
- Tests to create: `path/to/test.spec.ts`
|
|
75
|
-
- Tests to update: `path/to/existing.test.ts`
|
|
76
|
-
- Manual verification steps
|
|
77
|
-
|
|
78
|
-
## Documentation
|
|
79
|
-
- Update: `README.md` section X
|
|
80
|
-
- Add: New docs for feature Y
|
|
81
|
-
|
|
82
|
-
## Rollout Considerations
|
|
83
|
-
[Migration steps, feature flags, breaking changes]
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
7. **VERIFY COMPLETENESS**: Check plan quality
|
|
87
|
-
- **All files identified**: Nothing missing
|
|
88
|
-
- **Logical order**: Dependencies handled
|
|
89
|
-
- **Clear actions**: No ambiguous steps
|
|
90
|
-
- **Test coverage**: All paths tested
|
|
91
|
-
- **In scope**: No scope creep
|
|
92
|
-
|
|
93
|
-
8. **REPORT**: Summarize to user
|
|
94
|
-
- Confirm plan created
|
|
95
|
-
- Highlight key implementation steps
|
|
96
|
-
- Note any risks or complexity
|
|
97
|
-
- Suggest next step: Run `/epct:tasks <task-folder>` to divide plan into tasks or `/epct:code <task-folder>` to execute plan directly
|
|
98
|
-
|
|
99
|
-
## Plan Quality Guidelines
|
|
100
|
-
|
|
101
|
-
### Good Plan Entry
|
|
102
|
-
```markdown
|
|
103
|
-
### `src/auth/middleware.ts`
|
|
104
|
-
- Add validateToken function that checks JWT expiration
|
|
105
|
-
- Extract token from Authorization header (follow pattern in `src/api/auth.ts:45`)
|
|
106
|
-
- Return 401 if token invalid or expired
|
|
107
|
-
- Consider: Handle both Bearer and custom token formats
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
### Bad Plan Entry
|
|
111
|
-
```markdown
|
|
112
|
-
### `src/auth/middleware.ts`
|
|
113
|
-
- Add authentication
|
|
114
|
-
- Fix security issues
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
## Execution Rules
|
|
118
|
-
|
|
119
|
-
- **NO CODE SNIPPETS**: Plans describe actions, not implementations
|
|
120
|
-
- **FILE-CENTRIC**: Organize by file, not by feature
|
|
121
|
-
- **ACTIONABLE**: Every item must be clear and executable
|
|
122
|
-
- **CONTEXTUALIZED**: Reference examples from exploration findings
|
|
123
|
-
- **SCOPED**: Stay within task boundaries
|
|
124
|
-
- **STOP AND ASK**: Clarify ambiguities before proceeding
|
|
125
|
-
|
|
126
|
-
## Priority
|
|
127
|
-
|
|
128
|
-
Clarity > Completeness. Every step must be unambiguous and executable.
|
|
129
|
-
|
|
130
|
-
---
|
|
131
|
-
|
|
132
|
-
User: $ARGUMENTS
|