agcel 1.0.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/.agent/workflows/api-gen.md +59 -0
- package/.agent/workflows/architect.md +44 -0
- package/.agent/workflows/brainstorm.md +223 -0
- package/.agent/workflows/build.md +38 -0
- package/.agent/workflows/changelog.md +51 -0
- package/.agent/workflows/checkpoint.md +138 -0
- package/.agent/workflows/commit.md +223 -0
- package/.agent/workflows/debug.md +57 -0
- package/.agent/workflows/deploy.md +76 -0
- package/.agent/workflows/doc.md +247 -0
- package/.agent/workflows/execute-plan.md +225 -0
- package/.agent/workflows/feature.md +255 -0
- package/.agent/workflows/fix.md +323 -0
- package/.agent/workflows/help.md +63 -0
- package/.agent/workflows/index.md +148 -0
- package/.agent/workflows/load.md +112 -0
- package/.agent/workflows/mode.md +170 -0
- package/.agent/workflows/optimize.md +53 -0
- package/.agent/workflows/plan.md +337 -0
- package/.agent/workflows/pr.md +74 -0
- package/.agent/workflows/product-plan.md +36 -0
- package/.agent/workflows/production-deploy.md +39 -0
- package/.agent/workflows/refactor.md +63 -0
- package/.agent/workflows/research.md +116 -0
- package/.agent/workflows/review.md +344 -0
- package/.agent/workflows/security-scan.md +56 -0
- package/.agent/workflows/ship.md +221 -0
- package/.agent/workflows/spawn.md +177 -0
- package/.agent/workflows/status.md +59 -0
- package/.agent/workflows/tdd.md +139 -0
- package/.agent/workflows/test.md +340 -0
- package/.agent/workflows/verify.md +35 -0
- package/LICENSE +21 -0
- package/README.md +67 -0
- package/dist/commands/init.js +142 -0
- package/dist/commands/install.js +98 -0
- package/dist/commands/list.js +49 -0
- package/dist/commands/restart.js +17 -0
- package/dist/commands/start.js +41 -0
- package/dist/commands/status.js +24 -0
- package/dist/commands/stop.js +29 -0
- package/dist/commands/uninstall.js +78 -0
- package/dist/index.js +58 -0
- package/dist/server/index.js +174 -0
- package/dist/utils/index.js +63 -0
- package/package.json +54 -0
- package/skills/api-security-best-practices/SKILL.md +291 -0
- package/skills/api-security-best-practices/references/examples.md +617 -0
- package/skills/architecture/SKILL.md +59 -0
- package/skills/architecture/context-discovery.md +43 -0
- package/skills/architecture/examples.md +94 -0
- package/skills/architecture/pattern-selection.md +68 -0
- package/skills/architecture/patterns-reference.md +50 -0
- package/skills/architecture/trade-off-analysis.md +77 -0
- package/skills/aws-serverless/SKILL.md +327 -0
- package/skills/brainstorming/SKILL.md +234 -0
- package/skills/c4-context/SKILL.md +154 -0
- package/skills/ci-cd-engineer/SKILL.md +50 -0
- package/skills/code-auditing/SKILL.md +55 -0
- package/skills/copywriting/SKILL.md +248 -0
- package/skills/database-engineer/SKILL.md +47 -0
- package/skills/doc-coauthoring/SKILL.md +379 -0
- package/skills/docker-expert/SKILL.md +412 -0
- package/skills/langgraph/SKILL.md +291 -0
- package/skills/postgresql/SKILL.md +73 -0
- package/skills/pricing-strategy/SKILL.md +360 -0
- package/skills/product-manager/SKILL.md +57 -0
- package/skills/prompt-engineer/README.md +659 -0
- package/skills/prompt-engineer/SKILL.md +256 -0
- package/skills/python-patterns/SKILL.md +445 -0
- package/skills/qa-engineer/SKILL.md +42 -0
- package/skills/rag-engineer/SKILL.md +94 -0
- package/skills/react-patterns/SKILL.md +202 -0
- package/skills/secure-refactoring/SKILL.md +54 -0
- package/skills/security-documentation/SKILL.md +53 -0
- package/skills/senior-architect/SKILL.md +213 -0
- package/skills/senior-architect/references/architecture_patterns.md +103 -0
- package/skills/senior-architect/references/system_design_workflows.md +103 -0
- package/skills/senior-architect/references/tech_decision_guide.md +103 -0
- package/skills/senior-architect/scripts/architecture_diagram_generator.py +114 -0
- package/skills/senior-architect/scripts/dependency_analyzer.py +114 -0
- package/skills/senior-architect/scripts/project_architect.py +114 -0
- package/skills/seo-audit/SKILL.md +491 -0
- package/skills/sql-injection-testing/SKILL.md +452 -0
- package/skills/test-driven-development/SKILL.md +375 -0
- package/skills/test-driven-development/testing-anti-patterns.md +299 -0
- package/skills/test-fixing/SKILL.md +123 -0
- package/skills/testing-patterns/SKILL.md +263 -0
- package/skills/typescript-expert/SKILL.md +202 -0
- package/skills/typescript-expert/references/advanced-topics.md +252 -0
- package/skills/typescript-expert/references/tsconfig-strict.json +92 -0
- package/skills/typescript-expert/references/typescript-cheatsheet.md +383 -0
- package/skills/typescript-expert/references/utility-types.ts +335 -0
- package/skills/typescript-expert/scripts/ts_diagnostic.py +203 -0
- package/skills/ui-ux-designer/SKILL.md +46 -0
- package/skills/vercel-deployment/SKILL.md +83 -0
- package/skills/vulnerability-scanner/SKILL.md +280 -0
- package/skills/vulnerability-scanner/checklists.md +121 -0
- package/skills/vulnerability-scanner/scripts/security_scan.py +458 -0
- package/skills/writing-plans/SKILL.md +120 -0
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
# /mode
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
|
|
5
|
+
Switch between behavioral modes to optimize responses for different task types. Modes adjust communication style, output format, and problem-solving approach.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
Switch to the specified behavioral mode.
|
|
10
|
+
|
|
11
|
+
## Available Modes
|
|
12
|
+
|
|
13
|
+
| Mode | Description | Best For |
|
|
14
|
+
|------|-------------|----------|
|
|
15
|
+
| `default` | Balanced standard behavior | General tasks |
|
|
16
|
+
| `brainstorm` | Creative exploration, more questions | Design, ideation |
|
|
17
|
+
| `token-efficient` | Compressed, concise output | High-volume, cost savings |
|
|
18
|
+
| `deep-research` | Thorough analysis, citations | Investigation, audits |
|
|
19
|
+
| `implementation` | Code-focused, minimal prose | Executing plans |
|
|
20
|
+
| `review` | Critical analysis, finding issues | Code review, QA |
|
|
21
|
+
| `orchestration` | Multi-task coordination | Complex parallel work |
|
|
22
|
+
|
|
23
|
+
## Mode Switching
|
|
24
|
+
|
|
25
|
+
### Activate Mode
|
|
26
|
+
```bash
|
|
27
|
+
/mode [mode-name]
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Check Current Mode
|
|
31
|
+
```bash
|
|
32
|
+
/mode
|
|
33
|
+
```
|
|
34
|
+
(Shows current active mode)
|
|
35
|
+
|
|
36
|
+
### Reset to Default
|
|
37
|
+
```bash
|
|
38
|
+
/mode default
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Mode Details
|
|
42
|
+
|
|
43
|
+
### Default Mode
|
|
44
|
+
- Standard balanced responses
|
|
45
|
+
- Mix of explanation and code
|
|
46
|
+
- Normal verification steps
|
|
47
|
+
|
|
48
|
+
### Brainstorm Mode
|
|
49
|
+
- Ask more clarifying questions
|
|
50
|
+
- Present multiple alternatives
|
|
51
|
+
- Explore trade-offs explicitly
|
|
52
|
+
- Delay convergence on solutions
|
|
53
|
+
|
|
54
|
+
### Token-Efficient Mode
|
|
55
|
+
- Minimal explanations
|
|
56
|
+
- Code-only responses where possible
|
|
57
|
+
- Skip obvious context
|
|
58
|
+
- 30-70% token savings
|
|
59
|
+
|
|
60
|
+
### Deep-Research Mode
|
|
61
|
+
- Thorough investigation
|
|
62
|
+
- Evidence and citations
|
|
63
|
+
- Confidence levels stated
|
|
64
|
+
- Comprehensive analysis
|
|
65
|
+
|
|
66
|
+
### Implementation Mode
|
|
67
|
+
- Jump straight to code
|
|
68
|
+
- Progress indicators
|
|
69
|
+
- Minimal discussion
|
|
70
|
+
- Execute don't deliberate
|
|
71
|
+
|
|
72
|
+
### Review Mode
|
|
73
|
+
- Look for issues first
|
|
74
|
+
- Categorized findings
|
|
75
|
+
- Severity levels
|
|
76
|
+
- Actionable feedback
|
|
77
|
+
|
|
78
|
+
### Orchestration Mode
|
|
79
|
+
- Task breakdown
|
|
80
|
+
- Parallel execution planning
|
|
81
|
+
- Result aggregation
|
|
82
|
+
- Coordination focus
|
|
83
|
+
|
|
84
|
+
## Flags
|
|
85
|
+
|
|
86
|
+
| Flag | Description |
|
|
87
|
+
|------|-------------|
|
|
88
|
+
| `--info` | Show detailed mode description |
|
|
89
|
+
| `--list` | List all available modes |
|
|
90
|
+
|
|
91
|
+
## Usage Examples
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
/mode brainstorm # Switch to brainstorm mode
|
|
95
|
+
/mode token-efficient # Switch to efficient mode
|
|
96
|
+
/mode # Show current mode
|
|
97
|
+
/mode --list # List all modes
|
|
98
|
+
/mode default # Reset to default
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
## Arguments
|
|
102
|
+
|
|
103
|
+
$ARGUMENTS
|
|
104
|
+
|
|
105
|
+
If mode name provided: switch to that mode
|
|
106
|
+
If no arguments: show current mode
|
|
107
|
+
If `--list`: show all modes
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
## Mode Persistence
|
|
112
|
+
|
|
113
|
+
- Modes persist for the session
|
|
114
|
+
- Explicitly switch when task type changes
|
|
115
|
+
- Mode affects all subsequent responses
|
|
116
|
+
- Can be overridden per-command with flags
|
|
117
|
+
|
|
118
|
+
## Command Flag Override
|
|
119
|
+
|
|
120
|
+
Override mode for single command:
|
|
121
|
+
```bash
|
|
122
|
+
/feature --mode=implementation [desc]
|
|
123
|
+
/review --mode=deep-research [file]
|
|
124
|
+
/plan --mode=brainstorm [task]
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
## Recommended Workflows
|
|
128
|
+
|
|
129
|
+
### Feature Development
|
|
130
|
+
```
|
|
131
|
+
/mode brainstorm # Explore approaches
|
|
132
|
+
[discuss design]
|
|
133
|
+
/mode implementation # Execute plan
|
|
134
|
+
[write code]
|
|
135
|
+
/mode review # Check quality
|
|
136
|
+
[review code]
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
### Bug Investigation
|
|
140
|
+
```
|
|
141
|
+
/mode deep-research # Investigate thoroughly
|
|
142
|
+
[analyze bug]
|
|
143
|
+
/mode implementation # Apply fix
|
|
144
|
+
[fix bug]
|
|
145
|
+
/mode default # Return to normal
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
### Cost-Conscious Session
|
|
149
|
+
```
|
|
150
|
+
/mode token-efficient # Set for session
|
|
151
|
+
[work on multiple tasks]
|
|
152
|
+
/mode default # Reset when done
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
## Mode Files
|
|
156
|
+
|
|
157
|
+
Mode definitions are in `.claude/modes/`:
|
|
158
|
+
- `default.md`
|
|
159
|
+
- `brainstorm.md`
|
|
160
|
+
- `token-efficient.md`
|
|
161
|
+
- `deep-research.md`
|
|
162
|
+
- `implementation.md`
|
|
163
|
+
- `review.md`
|
|
164
|
+
- `orchestration.md`
|
|
165
|
+
|
|
166
|
+
Customize modes by editing these files.
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
## Gap Analysis Rule
|
|
170
|
+
Always identify gaps and suggest next steps to users. In case there is no gaps anymore, then AI should clearly state that there is no gap left.
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# /optimize - Performance Optimization Command
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
|
|
5
|
+
Analyze and optimize code performance.
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
/optimize [file or function]
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
Optimize: **$ARGUMENTS**
|
|
16
|
+
|
|
17
|
+
## Workflow
|
|
18
|
+
|
|
19
|
+
1. **Analyze Current Performance**
|
|
20
|
+
- Identify bottlenecks
|
|
21
|
+
- Check complexity
|
|
22
|
+
- Profile if possible
|
|
23
|
+
|
|
24
|
+
2. **Identify Opportunities**
|
|
25
|
+
- Algorithm improvements
|
|
26
|
+
- Caching opportunities
|
|
27
|
+
- Async optimizations
|
|
28
|
+
|
|
29
|
+
3. **Implement Optimizations**
|
|
30
|
+
- Make targeted changes
|
|
31
|
+
- Verify improvements
|
|
32
|
+
- Ensure correctness
|
|
33
|
+
|
|
34
|
+
## Output
|
|
35
|
+
|
|
36
|
+
```markdown
|
|
37
|
+
## Optimization Report
|
|
38
|
+
|
|
39
|
+
### Before
|
|
40
|
+
- Time complexity: O(n²)
|
|
41
|
+
- Estimated time: 500ms
|
|
42
|
+
|
|
43
|
+
### After
|
|
44
|
+
- Time complexity: O(n log n)
|
|
45
|
+
- Estimated time: 50ms
|
|
46
|
+
|
|
47
|
+
### Changes Made
|
|
48
|
+
- [Description of optimizations]
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
## Gap Analysis Rule
|
|
53
|
+
Always identify gaps and suggest next steps to users. In case there is no gaps anymore, then AI should clearly state that there is no gap left.
|
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
# /plan - Task Planning Command
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
|
|
5
|
+
Create structured implementation plans with task breakdown, dependencies, and time estimates for complex work.
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
/plan [task description or feature request]
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Arguments
|
|
14
|
+
|
|
15
|
+
- `$ARGUMENTS`: Description of the task, feature, or work to plan
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
Create a detailed implementation plan for: **$ARGUMENTS**
|
|
20
|
+
|
|
21
|
+
## Workflow
|
|
22
|
+
|
|
23
|
+
### Phase 1: Understanding
|
|
24
|
+
|
|
25
|
+
1. **Parse Requirements**
|
|
26
|
+
- Identify core functionality needed
|
|
27
|
+
- List explicit requirements
|
|
28
|
+
- Note implicit requirements
|
|
29
|
+
- Identify acceptance criteria
|
|
30
|
+
|
|
31
|
+
2. **Clarify Ambiguities**
|
|
32
|
+
- Ask questions if unclear
|
|
33
|
+
- List assumptions made
|
|
34
|
+
- Note dependencies on decisions
|
|
35
|
+
|
|
36
|
+
### Phase 2: Research
|
|
37
|
+
|
|
38
|
+
1. **Explore Codebase**
|
|
39
|
+
- Find related implementations
|
|
40
|
+
- Identify patterns to follow
|
|
41
|
+
- Locate integration points
|
|
42
|
+
- Note conventions
|
|
43
|
+
|
|
44
|
+
2. **Technical Research** (if needed)
|
|
45
|
+
- Research unfamiliar technologies
|
|
46
|
+
- Find best practices
|
|
47
|
+
- Identify potential pitfalls
|
|
48
|
+
|
|
49
|
+
### Phase 3: Task Breakdown
|
|
50
|
+
|
|
51
|
+
1. **Decompose Work**
|
|
52
|
+
- Break into atomic tasks
|
|
53
|
+
- Each task: 15-60 minutes
|
|
54
|
+
- Clear completion criteria
|
|
55
|
+
|
|
56
|
+
2. **Order by Dependencies**
|
|
57
|
+
- What blocks what
|
|
58
|
+
- Parallel opportunities
|
|
59
|
+
- Critical path
|
|
60
|
+
|
|
61
|
+
3. **Add Estimates**
|
|
62
|
+
- S: <30 min
|
|
63
|
+
- M: 30-60 min
|
|
64
|
+
- L: 1-2 hours
|
|
65
|
+
- XL: 2-4 hours
|
|
66
|
+
|
|
67
|
+
### Phase 4: Documentation
|
|
68
|
+
|
|
69
|
+
1. **Create Plan Document**
|
|
70
|
+
- Summary
|
|
71
|
+
- Task list
|
|
72
|
+
- Files to modify
|
|
73
|
+
- Risks
|
|
74
|
+
|
|
75
|
+
2. **Track with TodoWrite**
|
|
76
|
+
- Add all tasks
|
|
77
|
+
- Set initial status
|
|
78
|
+
|
|
79
|
+
## Output
|
|
80
|
+
|
|
81
|
+
### Implementation Plan
|
|
82
|
+
|
|
83
|
+
```markdown
|
|
84
|
+
## Plan: [Feature/Task Name]
|
|
85
|
+
|
|
86
|
+
### Summary
|
|
87
|
+
[2-3 sentence overview of what will be built]
|
|
88
|
+
|
|
89
|
+
### Scope
|
|
90
|
+
|
|
91
|
+
**In Scope**
|
|
92
|
+
- [What will be done]
|
|
93
|
+
|
|
94
|
+
**Out of Scope**
|
|
95
|
+
- [What won't be done]
|
|
96
|
+
|
|
97
|
+
**Assumptions**
|
|
98
|
+
- [Key assumptions made]
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
### Tasks
|
|
103
|
+
|
|
104
|
+
#### Phase 1: Setup [Total: Xh]
|
|
105
|
+
| # | Task | Size | Depends On |
|
|
106
|
+
|---|------|------|------------|
|
|
107
|
+
| 1 | Create data model | M | - |
|
|
108
|
+
| 2 | Set up database migration | S | 1 |
|
|
109
|
+
| 3 | Add model tests | M | 1 |
|
|
110
|
+
|
|
111
|
+
#### Phase 2: Core Implementation [Total: Xh]
|
|
112
|
+
| # | Task | Size | Depends On |
|
|
113
|
+
|---|------|------|------------|
|
|
114
|
+
| 4 | Implement service layer | L | 1 |
|
|
115
|
+
| 5 | Add business logic | M | 4 |
|
|
116
|
+
| 6 | Write service tests | M | 5 |
|
|
117
|
+
|
|
118
|
+
#### Phase 3: API Layer [Total: Xh]
|
|
119
|
+
| # | Task | Size | Depends On |
|
|
120
|
+
|---|------|------|------------|
|
|
121
|
+
| 7 | Create API endpoints | M | 5 |
|
|
122
|
+
| 8 | Add validation | S | 7 |
|
|
123
|
+
| 9 | Write API tests | M | 8 |
|
|
124
|
+
|
|
125
|
+
#### Phase 4: Integration [Total: Xh]
|
|
126
|
+
| # | Task | Size | Depends On |
|
|
127
|
+
|---|------|------|------------|
|
|
128
|
+
| 10 | Integrate with frontend | M | 7 |
|
|
129
|
+
| 11 | End-to-end testing | M | 10 |
|
|
130
|
+
| 12 | Update documentation | S | 11 |
|
|
131
|
+
|
|
132
|
+
---
|
|
133
|
+
|
|
134
|
+
### Files to Create/Modify
|
|
135
|
+
|
|
136
|
+
**Create**
|
|
137
|
+
- `src/models/feature.py` - Data model
|
|
138
|
+
- `src/services/feature.py` - Business logic
|
|
139
|
+
- `src/api/feature.py` - API endpoints
|
|
140
|
+
- `tests/test_feature.py` - Tests
|
|
141
|
+
|
|
142
|
+
**Modify**
|
|
143
|
+
- `src/api/__init__.py` - Register routes
|
|
144
|
+
- `docs/api.md` - API documentation
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
### Dependencies
|
|
149
|
+
|
|
150
|
+
**External**
|
|
151
|
+
- [Package X] - For [purpose]
|
|
152
|
+
|
|
153
|
+
**Internal**
|
|
154
|
+
- Requires [existing feature] to be complete
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
### Risks
|
|
159
|
+
|
|
160
|
+
| Risk | Impact | Mitigation |
|
|
161
|
+
|------|--------|------------|
|
|
162
|
+
| [Risk 1] | High | [How to mitigate] |
|
|
163
|
+
| [Risk 2] | Medium | [How to mitigate] |
|
|
164
|
+
|
|
165
|
+
---
|
|
166
|
+
|
|
167
|
+
### Questions for Stakeholders
|
|
168
|
+
1. [Question about requirement]
|
|
169
|
+
2. [Question about edge case]
|
|
170
|
+
|
|
171
|
+
---
|
|
172
|
+
|
|
173
|
+
### Success Criteria
|
|
174
|
+
- [ ] All tasks completed
|
|
175
|
+
- [ ] Tests passing with 80%+ coverage
|
|
176
|
+
- [ ] API documentation updated
|
|
177
|
+
- [ ] Code reviewed and approved
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
## Plan Templates
|
|
181
|
+
|
|
182
|
+
### Feature Plan
|
|
183
|
+
For new functionality
|
|
184
|
+
|
|
185
|
+
### Bug Fix Plan
|
|
186
|
+
For debugging and fixing issues
|
|
187
|
+
|
|
188
|
+
### Refactor Plan
|
|
189
|
+
For code improvements
|
|
190
|
+
|
|
191
|
+
### Migration Plan
|
|
192
|
+
For data or system migrations
|
|
193
|
+
|
|
194
|
+
## Detailed Mode (Superpowers Methodology)
|
|
195
|
+
|
|
196
|
+
Use `--detailed` flag for superpowers-style plans with 2-5 minute tasks:
|
|
197
|
+
|
|
198
|
+
```
|
|
199
|
+
/plan --detailed [task description]
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
### Detailed Mode Features
|
|
203
|
+
|
|
204
|
+
**Reference**: `.claude/skills/methodology/writing-plans/SKILL.md`
|
|
205
|
+
|
|
206
|
+
When `--detailed` is specified:
|
|
207
|
+
- **Bite-sized tasks**: 2-5 minutes each (vs standard 15-60 min)
|
|
208
|
+
- **Exact file paths**: Always include full paths
|
|
209
|
+
- **Complete code samples**: Actual code, not descriptions
|
|
210
|
+
- **TDD steps per task**: Write test → verify fail → implement → verify pass → commit
|
|
211
|
+
- **Expected command outputs**: Specify what success looks like
|
|
212
|
+
|
|
213
|
+
### Detailed Task Template
|
|
214
|
+
|
|
215
|
+
```markdown
|
|
216
|
+
## Task [N]: [Task Name]
|
|
217
|
+
|
|
218
|
+
**Files**:
|
|
219
|
+
- Create: `path/to/new-file.ts`
|
|
220
|
+
- Modify: `path/to/existing-file.ts`
|
|
221
|
+
- Test: `path/to/test-file.test.ts`
|
|
222
|
+
|
|
223
|
+
**Steps**:
|
|
224
|
+
|
|
225
|
+
1. Write failing test
|
|
226
|
+
```typescript
|
|
227
|
+
// Exact test code
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
2. Verify test fails
|
|
231
|
+
```bash
|
|
232
|
+
npm test -- --grep "test name"
|
|
233
|
+
# Expected: 1 failing
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
3. Implement minimally
|
|
237
|
+
```typescript
|
|
238
|
+
// Exact implementation code
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
4. Verify test passes
|
|
242
|
+
```bash
|
|
243
|
+
npm test -- --grep "test name"
|
|
244
|
+
# Expected: 1 passing
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
5. Commit
|
|
248
|
+
```bash
|
|
249
|
+
git commit -m "feat: add [feature]"
|
|
250
|
+
```
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
### Execution After Planning
|
|
254
|
+
|
|
255
|
+
Use `/execute-plan [plan-file]` for subagent-driven execution with code review gates.
|
|
256
|
+
|
|
257
|
+
**Reference**: `.claude/skills/methodology/executing-plans/SKILL.md`
|
|
258
|
+
|
|
259
|
+
## Flags
|
|
260
|
+
|
|
261
|
+
| Flag | Description | Example |
|
|
262
|
+
|------|-------------|---------|
|
|
263
|
+
| `--mode=[mode]` | Use specific behavioral mode | `--mode=brainstorm` |
|
|
264
|
+
| `--detailed` | Use superpowers methodology (2-5 min tasks) | `--detailed` |
|
|
265
|
+
| `--depth=[1-5]` | Planning thoroughness level | `--depth=4` |
|
|
266
|
+
| `--format=[fmt]` | Output format (concise/detailed/json) | `--format=detailed` |
|
|
267
|
+
| `--save=[path]` | Save plan to file | `--save=plans/auth.md` |
|
|
268
|
+
| `--checkpoint` | Create checkpoint after planning | `--checkpoint` |
|
|
269
|
+
|
|
270
|
+
### Flag Usage Examples
|
|
271
|
+
|
|
272
|
+
```bash
|
|
273
|
+
/plan --detailed "implement user authentication"
|
|
274
|
+
/plan --mode=brainstorm "redesign checkout flow"
|
|
275
|
+
/plan --depth=5 --save=plans/migration.md "database migration"
|
|
276
|
+
/plan --format=json "api endpoint structure"
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
### Mode Recommendations
|
|
280
|
+
|
|
281
|
+
| Mode | Best For |
|
|
282
|
+
|------|----------|
|
|
283
|
+
| `default` | Standard planning |
|
|
284
|
+
| `brainstorm` | Exploratory planning, multiple approaches |
|
|
285
|
+
| `deep-research` | Complex features needing investigation |
|
|
286
|
+
| `implementation` | Quick plans for clear tasks |
|
|
287
|
+
|
|
288
|
+
## MCP Integration
|
|
289
|
+
|
|
290
|
+
This command leverages MCP servers for enhanced planning:
|
|
291
|
+
|
|
292
|
+
### Reasoning - Structured Planning (Primary)
|
|
293
|
+
```
|
|
294
|
+
ALWAYS use Reasoning for task decomposition:
|
|
295
|
+
- Break complex tasks into logical thought sequences
|
|
296
|
+
- Track dependencies between steps
|
|
297
|
+
- Revise plan as understanding deepens
|
|
298
|
+
- Use for risk identification and mitigation planning
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
### Memory - Decision Persistence
|
|
302
|
+
```
|
|
303
|
+
Store and recall planning context:
|
|
304
|
+
- Remember decisions from previous planning sessions
|
|
305
|
+
- Recall user preferences for task sizing
|
|
306
|
+
- Store architectural patterns for reuse
|
|
307
|
+
- Create entities for major features/components
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
### Web Search - Technology Research
|
|
311
|
+
```
|
|
312
|
+
When planning involves unfamiliar technologies:
|
|
313
|
+
- Fetch current documentation for accurate estimates
|
|
314
|
+
- Understand API patterns before estimating complexity
|
|
315
|
+
- Identify potential integration challenges
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
### Filesystem - Codebase Analysis
|
|
319
|
+
```
|
|
320
|
+
For accurate file identification:
|
|
321
|
+
- Use list_dir to understand project structure
|
|
322
|
+
- Use grep_search to find existing patterns
|
|
323
|
+
- Identify files to create vs modify
|
|
324
|
+
```
|
|
325
|
+
|
|
326
|
+
<!-- CUSTOMIZATION POINT -->
|
|
327
|
+
## Variations
|
|
328
|
+
|
|
329
|
+
Modify behavior via CLAUDE.md:
|
|
330
|
+
- Task size definitions (standard: 15-60 min, detailed: 2-5 min)
|
|
331
|
+
- Required plan sections
|
|
332
|
+
- Estimation approach
|
|
333
|
+
- Risk assessment criteria
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
## Gap Analysis Rule
|
|
337
|
+
Always identify gaps and suggest next steps to users. In case there is no gaps anymore, then AI should clearly state that there is no gap left.
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# /pr - Create Pull Request
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
|
|
5
|
+
Create a well-documented pull request with proper description and checks.
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
/pr [title or 'auto']
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
Create a pull request: **$ARGUMENTS**
|
|
16
|
+
|
|
17
|
+
## Workflow
|
|
18
|
+
|
|
19
|
+
### Step 1: Prepare Changes
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
git status
|
|
23
|
+
git diff main...HEAD
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
### Step 2: Verify Ready
|
|
27
|
+
|
|
28
|
+
- [ ] All tests passing
|
|
29
|
+
- [ ] Code reviewed
|
|
30
|
+
- [ ] No merge conflicts
|
|
31
|
+
- [ ] Branch pushed
|
|
32
|
+
|
|
33
|
+
### Step 3: Create PR
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
gh pr create --title "type(scope): description" --body "$(cat <<'EOF'
|
|
37
|
+
## Summary
|
|
38
|
+
- [Change 1]
|
|
39
|
+
- [Change 2]
|
|
40
|
+
|
|
41
|
+
## Test Plan
|
|
42
|
+
- [ ] Unit tests
|
|
43
|
+
- [ ] Manual testing
|
|
44
|
+
|
|
45
|
+
## Screenshots
|
|
46
|
+
[If applicable]
|
|
47
|
+
|
|
48
|
+
## Checklist
|
|
49
|
+
- [ ] Tests added/updated
|
|
50
|
+
- [ ] Documentation updated
|
|
51
|
+
- [ ] No breaking changes
|
|
52
|
+
|
|
53
|
+
🤖 Generated with [Claude Code](https://claude.com/claude-code)
|
|
54
|
+
EOF
|
|
55
|
+
)"
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Output
|
|
59
|
+
|
|
60
|
+
```markdown
|
|
61
|
+
## Pull Request Created
|
|
62
|
+
|
|
63
|
+
**URL**: https://github.com/org/repo/pull/123
|
|
64
|
+
**Title**: feat(auth): add OAuth support
|
|
65
|
+
**Base**: main ← feature/oauth
|
|
66
|
+
|
|
67
|
+
### Changes
|
|
68
|
+
- 5 files changed
|
|
69
|
+
- +234 -12 lines
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
## Gap Analysis Rule
|
|
74
|
+
Always identify gaps and suggest next steps to users. In case there is no gaps anymore, then AI should clearly state that there is no gap left.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Ideation and Requirements Planning
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /product-plan Workflow
|
|
6
|
+
|
|
7
|
+
This workflow transforms a rough idea into a concrete product plan and requirements document.
|
|
8
|
+
|
|
9
|
+
## Steps
|
|
10
|
+
|
|
11
|
+
1. **Brainstorming & Ideation**
|
|
12
|
+
- Use key: `brainstorming`
|
|
13
|
+
- Goal: Generate feature ideas, explore alternatives, and define the core value proposition.
|
|
14
|
+
- Output: A list of prioritized features and concepts.
|
|
15
|
+
|
|
16
|
+
2. **Feasibility Check**
|
|
17
|
+
- Use key: `senior-architect`
|
|
18
|
+
- Goal: Assess technical feasibility and high-level constraints.
|
|
19
|
+
- Output: Technical risk assessment.
|
|
20
|
+
|
|
21
|
+
3. **Requirements Definition**
|
|
22
|
+
- Use key: `product-manager` (New Skill)
|
|
23
|
+
- Goal: Write detailed User Stories and Acceptance Criteria.
|
|
24
|
+
- Output: A draft Product Requirements Document (PRD).
|
|
25
|
+
|
|
26
|
+
4. **Finalize Plan**
|
|
27
|
+
- Use key: `writing-plans`
|
|
28
|
+
- Goal: Synthesize all inputs into a final `PRD.md` artifact.
|
|
29
|
+
- Instruction: Create a file named `PRD.md` in the current directory with the full plan.
|
|
30
|
+
|
|
31
|
+
## Iron Rules
|
|
32
|
+
1. If there is anything unclear, ask the user instead of inventing new stuff. Unless the user explicitly tells the AI to invent or suggest ideas.
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
## Gap Analysis Rule
|
|
36
|
+
Always identify gaps and suggest next steps to users. In case there is no gaps anymore, then AI should clearly state that there is no gap left.
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Production Deployment
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /production-deploy Workflow
|
|
6
|
+
|
|
7
|
+
This workflow prepares the application for production deployment.
|
|
8
|
+
|
|
9
|
+
## Steps
|
|
10
|
+
|
|
11
|
+
1. **Containerization**
|
|
12
|
+
- Use key: `docker-expert`
|
|
13
|
+
- Goal: Create or optimize `Dockerfile` and `docker-compose.yml`.
|
|
14
|
+
- Output: Production-ready container configuration.
|
|
15
|
+
|
|
16
|
+
2. **Infrastructure as Code**
|
|
17
|
+
- Use key: `aws-serverless` / `vercel-deployment`
|
|
18
|
+
- Goal: Generate deployment configuration (Terraform, CDK, or Vercel/Netlify config).
|
|
19
|
+
- Instruction: Choose the provider based on user preference or project type.
|
|
20
|
+
|
|
21
|
+
3. **CI/CD Pipeline**
|
|
22
|
+
- Use key: `ci-cd-engineer`
|
|
23
|
+
- Goal: Create GitHub Actions or GitLab CI pipeline files.
|
|
24
|
+
- Output: `.github/workflows/deploy.yml` or equivalent.
|
|
25
|
+
|
|
26
|
+
4. **Pre-Flight Checks**
|
|
27
|
+
- Use key: `seo-audit`
|
|
28
|
+
- Goal: Check public-facing pages for SEO if applicable.
|
|
29
|
+
|
|
30
|
+
5. **Documentation**
|
|
31
|
+
- Use key: `security-documentation`
|
|
32
|
+
- Goal: Update `README.md` and security docs with deployment instructions.
|
|
33
|
+
|
|
34
|
+
## Iron Rules
|
|
35
|
+
1. If there is anything unclear, ask the user instead of inventing new stuff. Unless the user explicitly tells the AI to invent or suggest ideas.
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
## Gap Analysis Rule
|
|
39
|
+
Always identify gaps and suggest next steps to users. In case there is no gaps anymore, then AI should clearly state that there is no gap left.
|