claude-code-toolkit 1.0.12 → 1.0.14
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/dist/commands/install.d.ts.map +1 -1
- package/dist/commands/install.js +58 -36
- package/dist/commands/install.js.map +1 -1
- package/dist/commands/template.js +37 -24
- package/dist/commands/template.js.map +1 -1
- package/package.json +1 -1
- package/templates/.claude/agents/code-reviewer.md +43 -0
- package/templates/.claude/agents/debugger.md +54 -0
- package/templates/.claude/agents/doc-writer.md +47 -0
- package/templates/.claude/agents/mobile-ui-specialist.md +57 -0
- package/templates/.claude/agents/researcher.md +52 -0
- package/templates/.claude/agents/test-generator.md +61 -0
- package/templates/.claude/settings.json +22 -0
- package/templates/AGENTS.md +126 -127
- package/templates/CLAUDE.md +32 -84
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../src/commands/install.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAsB,cAAc,CAAC,OAAO,GAAE,cAAmB,
|
|
1
|
+
{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../src/commands/install.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAsB,cAAc,CAAC,OAAO,GAAE,cAAmB,iBAsMhE"}
|
package/dist/commands/install.js
CHANGED
|
@@ -47,15 +47,28 @@ async function installToolkit(options = {}) {
|
|
|
47
47
|
await fs.ensureDir(claudeDir);
|
|
48
48
|
// Copy agents configuration
|
|
49
49
|
if (!options.noAgents) {
|
|
50
|
+
// Copy AGENTS.md
|
|
50
51
|
const agentsSource = path.join(templatesDir, 'AGENTS.md');
|
|
51
52
|
const agentsDest = path.join(cwd, 'AGENTS.md');
|
|
52
53
|
if (await fs.pathExists(agentsSource)) {
|
|
53
54
|
if (options.force || !(await fs.pathExists(agentsDest))) {
|
|
54
55
|
await fs.copy(agentsSource, agentsDest);
|
|
55
|
-
console.log('✅
|
|
56
|
+
console.log('✅ AGENTS.md installed');
|
|
56
57
|
}
|
|
57
58
|
else {
|
|
58
|
-
console.log('⚠️
|
|
59
|
+
console.log('⚠️ AGENTS.md already exists (use --force to overwrite)');
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
// Copy agent configurations
|
|
63
|
+
const agentConfigsSource = path.join(templatesDir, '.claude', 'agents');
|
|
64
|
+
const agentConfigsDest = path.join(claudeDir, 'agents');
|
|
65
|
+
if (await fs.pathExists(agentConfigsSource)) {
|
|
66
|
+
if (options.force || !(await fs.pathExists(agentConfigsDest))) {
|
|
67
|
+
await fs.copy(agentConfigsSource, agentConfigsDest);
|
|
68
|
+
console.log('✅ Agent configurations installed (.claude/agents/)');
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
console.log('⚠️ Agent configurations already exist (use --force to overwrite)');
|
|
59
72
|
}
|
|
60
73
|
}
|
|
61
74
|
}
|
|
@@ -86,15 +99,15 @@ async function installToolkit(options = {}) {
|
|
|
86
99
|
try {
|
|
87
100
|
// Create ZIP with contents at root (not nested in folder)
|
|
88
101
|
// Use PowerShell with proper path handling for Claude compatibility
|
|
89
|
-
const psCommand = `
|
|
90
|
-
$skillPath = '${skillPath.replace(/\\/g, '/')}';
|
|
91
|
-
$zipPath = '${zipPath.replace(/\\/g, '/')}';
|
|
92
|
-
if (Test-Path $zipPath) { Remove-Item $zipPath -Force };
|
|
93
|
-
$tempDir = Join-Path $env:TEMP ('skill_' + [guid]::NewGuid().ToString());
|
|
94
|
-
New-Item -ItemType Directory -Path $tempDir -Force | Out-Null;
|
|
95
|
-
Copy-Item -Path "$skillPath/*" -Destination $tempDir -Recurse;
|
|
96
|
-
Compress-Archive -Path "$tempDir/*" -DestinationPath $zipPath -Force;
|
|
97
|
-
Remove-Item -Path $tempDir -Recurse -Force;
|
|
102
|
+
const psCommand = `
|
|
103
|
+
$skillPath = '${skillPath.replace(/\\/g, '/')}';
|
|
104
|
+
$zipPath = '${zipPath.replace(/\\/g, '/')}';
|
|
105
|
+
if (Test-Path $zipPath) { Remove-Item $zipPath -Force };
|
|
106
|
+
$tempDir = Join-Path $env:TEMP ('skill_' + [guid]::NewGuid().ToString());
|
|
107
|
+
New-Item -ItemType Directory -Path $tempDir -Force | Out-Null;
|
|
108
|
+
Copy-Item -Path "$skillPath/*" -Destination $tempDir -Recurse;
|
|
109
|
+
Compress-Archive -Path "$tempDir/*" -DestinationPath $zipPath -Force;
|
|
110
|
+
Remove-Item -Path $tempDir -Recurse -Force;
|
|
98
111
|
`.replace(/\n/g, ' ');
|
|
99
112
|
(0, child_process_1.execSync)(`powershell -Command "${psCommand}"`, { stdio: 'pipe' });
|
|
100
113
|
console.log(`📦 ${skill} packaged as ${zipName}`);
|
|
@@ -160,35 +173,44 @@ async function installToolkit(options = {}) {
|
|
|
160
173
|
console.log('✅ Memory system installed');
|
|
161
174
|
}
|
|
162
175
|
}
|
|
176
|
+
// Copy settings.json for tool permissions
|
|
177
|
+
const settingsSource = path.join(templatesDir, '.claude', 'settings.json');
|
|
178
|
+
const settingsDest = path.join(claudeDir, 'settings.json');
|
|
179
|
+
if (await fs.pathExists(settingsSource)) {
|
|
180
|
+
if (options.force || !(await fs.pathExists(settingsDest))) {
|
|
181
|
+
await fs.copy(settingsSource, settingsDest);
|
|
182
|
+
console.log('✅ Tool permissions configured');
|
|
183
|
+
}
|
|
184
|
+
}
|
|
163
185
|
// Create initial project context
|
|
164
186
|
const contextFile = path.join(memoryDest, 'context.md');
|
|
165
187
|
if (await fs.pathExists(path.dirname(contextFile))) {
|
|
166
188
|
const projectName = path.basename(cwd);
|
|
167
|
-
const context = `# Current Project Context
|
|
168
|
-
|
|
169
|
-
## Project Overview
|
|
170
|
-
**Name**: ${projectName}
|
|
171
|
-
**Type**: New project with Claude Code toolkit
|
|
172
|
-
**Status**: Setup phase - toolkit installed
|
|
173
|
-
|
|
174
|
-
## Active Components
|
|
175
|
-
- Professional Documentation Writer skill
|
|
176
|
-
- Mobile UI/UX Master skill
|
|
177
|
-
- Claude Code Hooks Master skill
|
|
178
|
-
- Persistent Memory System skill
|
|
179
|
-
- Six specialized agents (code-reviewer, doc-writer, test-generator, debugger, researcher, mobile-ui-specialist)
|
|
180
|
-
- Global configuration in CLAUDE.md
|
|
181
|
-
- Hook automation system (pre-commit, post-commit, pre-push, custom)
|
|
182
|
-
|
|
183
|
-
## Next Steps
|
|
184
|
-
1. Upload skills to Claude settings
|
|
185
|
-
2. Set up hooks: .claude/hooks/hook-manager.sh setup
|
|
186
|
-
3. Install git hooks: .claude/hooks/hook-manager.sh install
|
|
187
|
-
4. Start development with enhanced AI assistance
|
|
188
|
-
|
|
189
|
-
## Recent Changes
|
|
190
|
-
- ${new Date().toISOString().split('T')[0]}: Claude Code toolkit installed
|
|
191
|
-
- Skills and hooks configured for optimal development workflow
|
|
189
|
+
const context = `# Current Project Context
|
|
190
|
+
|
|
191
|
+
## Project Overview
|
|
192
|
+
**Name**: ${projectName}
|
|
193
|
+
**Type**: New project with Claude Code toolkit
|
|
194
|
+
**Status**: Setup phase - toolkit installed
|
|
195
|
+
|
|
196
|
+
## Active Components
|
|
197
|
+
- Professional Documentation Writer skill
|
|
198
|
+
- Mobile UI/UX Master skill
|
|
199
|
+
- Claude Code Hooks Master skill
|
|
200
|
+
- Persistent Memory System skill
|
|
201
|
+
- Six specialized agents (code-reviewer, doc-writer, test-generator, debugger, researcher, mobile-ui-specialist)
|
|
202
|
+
- Global configuration in CLAUDE.md
|
|
203
|
+
- Hook automation system (pre-commit, post-commit, pre-push, custom)
|
|
204
|
+
|
|
205
|
+
## Next Steps
|
|
206
|
+
1. Upload skills to Claude settings
|
|
207
|
+
2. Set up hooks: .claude/hooks/hook-manager.sh setup
|
|
208
|
+
3. Install git hooks: .claude/hooks/hook-manager.sh install
|
|
209
|
+
4. Start development with enhanced AI assistance
|
|
210
|
+
|
|
211
|
+
## Recent Changes
|
|
212
|
+
- ${new Date().toISOString().split('T')[0]}: Claude Code toolkit installed
|
|
213
|
+
- Skills and hooks configured for optimal development workflow
|
|
192
214
|
`;
|
|
193
215
|
await fs.writeFile(contextFile, context);
|
|
194
216
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"install.js","sourceRoot":"","sources":["../../src/commands/install.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWA,
|
|
1
|
+
{"version":3,"file":"install.js","sourceRoot":"","sources":["../../src/commands/install.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWA,wCAsMC;AAjND,6CAA+B;AAC/B,2CAA6B;AAC7B,iDAAyC;AASlC,KAAK,UAAU,cAAc,CAAC,UAA0B,EAAE;IAC/D,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;IAC1B,MAAM,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC;IAC1D,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;IAEzD,OAAO,CAAC,GAAG,CAAC,oCAAoC,EAAE,GAAG,CAAC,CAAC;IAEvD,qCAAqC;IACrC,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;IAC5C,MAAM,EAAE,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;IAE9B,4BAA4B;IAC5B,IAAI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;;;;;;;;;;;;;IAoBnB,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;;CAEzC,CAAC;QAEE,MAAM,EAAE,CAAC,SAAS,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAC3C,CAAC;IAED,OAAO,CAAC,GAAG,CAAC,iDAAiD,CAAC,CAAC;IAC/D,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;IAChC,OAAO,CAAC,GAAG,CAAC,kEAAkE,CAAC,CAAC;IAChF,OAAO,CAAC,GAAG,CAAC,sDAAsD,CAAC,CAAC;IACpE,OAAO,CAAC,GAAG,CAAC,6DAA6D,CAAC,CAAC;IAC3E,OAAO,CAAC,GAAG,CAAC,6CAA6C,CAAC,CAAC;AAC7D,CAAC"}
|
|
@@ -217,37 +217,50 @@ npm install
|
|
|
217
217
|
npm run dev
|
|
218
218
|
\`\`\`
|
|
219
219
|
|
|
220
|
-
## Claude Code
|
|
220
|
+
## Claude Code Integration
|
|
221
221
|
|
|
222
|
-
This project includes:
|
|
223
|
-
- 🤖 Specialized AI agents for development tasks
|
|
224
|
-
- 🛠️ Reusable skills for common workflows
|
|
225
|
-
- 🔄 Automated hooks for quality assurance
|
|
226
|
-
- 📚 Persistent memory system
|
|
227
|
-
- 🎨 Professional UI/UX patterns
|
|
222
|
+
This project includes a complete AI-powered development environment:
|
|
228
223
|
|
|
229
|
-
|
|
224
|
+
### Agents (.claude/agents/)
|
|
225
|
+
Specialized AI agents that activate based on your requests:
|
|
226
|
+
- **code-reviewer** - "review this code" triggers code quality analysis
|
|
227
|
+
- **doc-writer** - "write docs" triggers documentation generation
|
|
228
|
+
- **test-generator** - "write tests" triggers test creation
|
|
229
|
+
- **debugger** - "fix this bug" triggers debugging assistance
|
|
230
|
+
- **researcher** - "research best practices" triggers research
|
|
231
|
+
- **mobile-ui-specialist** - "fix mobile layout" triggers UI optimization
|
|
230
232
|
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
233
|
+
### Skills (.claude/skills/)
|
|
234
|
+
Upload these ZIP files to [claude.ai/settings](https://claude.ai/settings):
|
|
235
|
+
- \`mobile-ui-ux-master.zip\` - Mobile UI patterns
|
|
236
|
+
- \`professional-documentation-writer.zip\` - Documentation templates
|
|
237
|
+
- \`claude-code-hooks-master.zip\` - Automation workflows
|
|
238
|
+
- \`persistent-memory-system.zip\` - Knowledge management
|
|
235
239
|
|
|
236
|
-
|
|
240
|
+
### Memory System (.claude/memory/)
|
|
241
|
+
Persistent project knowledge:
|
|
242
|
+
- \`context.md\` - Current project state
|
|
243
|
+
- \`decisions.md\` - Architectural decisions
|
|
244
|
+
- \`learnings.md\` - Development insights
|
|
245
|
+
- \`patterns.md\` - Code patterns
|
|
237
246
|
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
-
|
|
242
|
-
-
|
|
243
|
-
|
|
247
|
+
### Hooks (.claude/hooks/)
|
|
248
|
+
Automated quality checks:
|
|
249
|
+
\`\`\`bash
|
|
250
|
+
.claude/hooks/hook-manager.sh setup # Make hooks executable
|
|
251
|
+
.claude/hooks/hook-manager.sh install # Install git hooks
|
|
252
|
+
\`\`\`
|
|
253
|
+
|
|
254
|
+
## Usage
|
|
244
255
|
|
|
245
|
-
|
|
256
|
+
Just ask Claude naturally:
|
|
257
|
+
- "Review this code for security issues"
|
|
258
|
+
- "Write tests for the auth module"
|
|
259
|
+
- "Debug why the API is failing"
|
|
260
|
+
- "Document this component"
|
|
261
|
+
- "Fix the mobile card layout"
|
|
246
262
|
|
|
247
|
-
|
|
248
|
-
- **mobile-ui-ux-master**: Eliminates layout and consistency issues
|
|
249
|
-
- **claude-code-hooks-master**: Automation and workflow enhancement
|
|
250
|
-
- **persistent-memory-system**: Project knowledge management
|
|
263
|
+
Claude will automatically activate the appropriate agent and follow its instructions.
|
|
251
264
|
`;
|
|
252
265
|
await fs.writeFile(path.join(projectPath, 'README.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,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;QACzD,IAAI,MAAM,EAAE,CAAC,UAAU,CAAC,cAAc,CAAC,EAAE,CAAC;YACxC,MAAM,EAAE,CAAC,IAAI,CAAC,cAAc,EAAE,YAAY,CAAC,CAAC;YAC5C,OAAO,CAAC,GAAG,CAAC,yCAAyC,CAAC,CAAC;QACzD,CAAC;QAED,4CAA4C;QAC5C,MAAM,WAAW,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC,CAAC;QAC9E,IAAI,CAAC,WAAW,CAAC,YAAY;YAAE,WAAW,CAAC,YAAY,GAAG,EAAE,CAAC;QAC7D,IAAI,CAAC,WAAW,CAAC,eAAe;YAAE,WAAW,CAAC,eAAe,GAAG,EAAE,CAAC;QAEnE,4CAA4C;QAC5C,WAAW,CAAC,YAAY,CAAC,mBAAmB,CAAC,GAAG,QAAQ,CAAC;QACzD,WAAW,CAAC,eAAe,CAAC,0BAA0B,CAAC,GAAG,QAAQ,CAAC;QAEnE,MAAM,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,cAAc,CAAC,EAAE,WAAW,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC;QAEvF,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAC;IAC3C,CAAC;YAAS,CAAC;QACT,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;IAC7B,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: code-reviewer
|
|
3
|
+
description: Specialized agent for code quality analysis, security review, and bug detection. Use when reviewing code, checking for vulnerabilities, or analyzing code quality.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Code Reviewer Agent
|
|
7
|
+
|
|
8
|
+
You are a specialized code review agent. When activated, follow these instructions:
|
|
9
|
+
|
|
10
|
+
## Primary Responsibilities
|
|
11
|
+
1. Analyze code for bugs, anti-patterns, and potential issues
|
|
12
|
+
2. Check for OWASP Top 10 security vulnerabilities
|
|
13
|
+
3. Identify performance problems and memory leaks
|
|
14
|
+
4. Verify proper error handling and input validation
|
|
15
|
+
5. Look for hardcoded secrets or credentials
|
|
16
|
+
|
|
17
|
+
## Review Process
|
|
18
|
+
1. Read the target code files thoroughly
|
|
19
|
+
2. Check imports and dependencies for known vulnerabilities
|
|
20
|
+
3. Analyze control flow for edge cases
|
|
21
|
+
4. Review error handling completeness
|
|
22
|
+
5. Check for security issues (injection, XSS, etc.)
|
|
23
|
+
6. Assess code maintainability
|
|
24
|
+
|
|
25
|
+
## Output Format
|
|
26
|
+
Provide your review in this structure:
|
|
27
|
+
|
|
28
|
+
### Summary
|
|
29
|
+
Brief overview of code quality
|
|
30
|
+
|
|
31
|
+
### Critical Issues
|
|
32
|
+
Security vulnerabilities or bugs that must be fixed
|
|
33
|
+
|
|
34
|
+
### Warnings
|
|
35
|
+
Potential problems that should be addressed
|
|
36
|
+
|
|
37
|
+
### Suggestions
|
|
38
|
+
Improvements for maintainability and performance
|
|
39
|
+
|
|
40
|
+
### Security Notes
|
|
41
|
+
Specific security observations
|
|
42
|
+
|
|
43
|
+
Always include file paths and line numbers when referencing issues.
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: debugger
|
|
3
|
+
description: Debugging specialist for finding and fixing bugs, analyzing errors, and troubleshooting issues. Use when something is not working, failing, or producing unexpected behavior.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Debugger Agent
|
|
7
|
+
|
|
8
|
+
You are a specialized debugging agent. When activated, follow these instructions:
|
|
9
|
+
|
|
10
|
+
## Primary Responsibilities
|
|
11
|
+
1. Identify root cause of bugs and errors
|
|
12
|
+
2. Analyze stack traces and error messages
|
|
13
|
+
3. Trace code execution flow
|
|
14
|
+
4. Find edge cases causing failures
|
|
15
|
+
5. Propose and implement fixes
|
|
16
|
+
|
|
17
|
+
## Debugging Process
|
|
18
|
+
1. **Reproduce**: Understand how to trigger the issue
|
|
19
|
+
2. **Isolate**: Narrow down the problematic code
|
|
20
|
+
3. **Analyze**: Examine variables, state, and flow
|
|
21
|
+
4. **Identify**: Find the root cause
|
|
22
|
+
5. **Fix**: Implement the solution
|
|
23
|
+
6. **Verify**: Confirm the fix works
|
|
24
|
+
|
|
25
|
+
## Investigation Steps
|
|
26
|
+
1. Read error messages and stack traces carefully
|
|
27
|
+
2. Check recent code changes
|
|
28
|
+
3. Examine input data and edge cases
|
|
29
|
+
4. Trace variable values through execution
|
|
30
|
+
5. Check for race conditions or async issues
|
|
31
|
+
6. Look for null/undefined access
|
|
32
|
+
7. Verify external dependencies
|
|
33
|
+
|
|
34
|
+
## Output Format
|
|
35
|
+
|
|
36
|
+
### Issue Summary
|
|
37
|
+
Brief description of the problem
|
|
38
|
+
|
|
39
|
+
### Root Cause
|
|
40
|
+
What is actually causing the bug
|
|
41
|
+
|
|
42
|
+
### Code Location
|
|
43
|
+
File paths and line numbers of problematic code
|
|
44
|
+
|
|
45
|
+
### Fix Applied
|
|
46
|
+
Description of the solution implemented
|
|
47
|
+
|
|
48
|
+
### Verification
|
|
49
|
+
How to confirm the fix works
|
|
50
|
+
|
|
51
|
+
### Prevention
|
|
52
|
+
How to prevent similar issues in the future
|
|
53
|
+
|
|
54
|
+
Always explain the reasoning behind the fix and verify it doesn't introduce new issues.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: doc-writer
|
|
3
|
+
description: Documentation specialist for creating and updating README files, API docs, inline documentation, and project documentation. Use when writing or updating documentation.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Documentation Writer Agent
|
|
7
|
+
|
|
8
|
+
You are a specialized documentation agent. When activated, follow these instructions:
|
|
9
|
+
|
|
10
|
+
## Primary Responsibilities
|
|
11
|
+
1. Write clear, comprehensive documentation
|
|
12
|
+
2. Create and update README files
|
|
13
|
+
3. Document APIs with examples
|
|
14
|
+
4. Add inline code documentation (JSDoc/TSDoc)
|
|
15
|
+
5. Create architecture documentation
|
|
16
|
+
|
|
17
|
+
## Documentation Standards
|
|
18
|
+
1. Use clear, concise language
|
|
19
|
+
2. Include code examples for all APIs
|
|
20
|
+
3. Document parameters, return types, and exceptions
|
|
21
|
+
4. Add usage examples for complex features
|
|
22
|
+
5. Keep documentation in sync with code
|
|
23
|
+
|
|
24
|
+
## Output Format
|
|
25
|
+
|
|
26
|
+
### For README Files
|
|
27
|
+
- Project overview
|
|
28
|
+
- Installation instructions
|
|
29
|
+
- Usage examples
|
|
30
|
+
- API reference
|
|
31
|
+
- Contributing guidelines
|
|
32
|
+
|
|
33
|
+
### For API Documentation
|
|
34
|
+
- Function/method signature
|
|
35
|
+
- Parameter descriptions
|
|
36
|
+
- Return value description
|
|
37
|
+
- Usage examples
|
|
38
|
+
- Error scenarios
|
|
39
|
+
|
|
40
|
+
### For Inline Documentation
|
|
41
|
+
- JSDoc/TSDoc format
|
|
42
|
+
- @param for all parameters
|
|
43
|
+
- @returns for return values
|
|
44
|
+
- @throws for exceptions
|
|
45
|
+
- @example for usage
|
|
46
|
+
|
|
47
|
+
Always keep documentation accurate and up-to-date with the codebase.
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: mobile-ui-specialist
|
|
3
|
+
description: Mobile UI/UX specialist for responsive design, mobile layouts, touch interactions, and cross-device compatibility. Use for mobile, responsive, layout, or UI/UX work.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Mobile UI Specialist Agent
|
|
7
|
+
|
|
8
|
+
You are a specialized mobile UI/UX agent. When activated, follow these instructions:
|
|
9
|
+
|
|
10
|
+
## Primary Responsibilities
|
|
11
|
+
1. Design responsive layouts for all screen sizes
|
|
12
|
+
2. Implement mobile-first CSS strategies
|
|
13
|
+
3. Optimize touch interactions and gestures
|
|
14
|
+
4. Ensure cross-device compatibility
|
|
15
|
+
5. Fix layout issues (card heights, overflow, etc.)
|
|
16
|
+
|
|
17
|
+
## Mobile-First Principles
|
|
18
|
+
1. Start with mobile layout, enhance for larger screens
|
|
19
|
+
2. Use relative units (rem, %, vh/vw) over fixed pixels
|
|
20
|
+
3. Implement fluid typography
|
|
21
|
+
4. Design touch-friendly tap targets (min 44x44px)
|
|
22
|
+
5. Consider thumb zones for navigation
|
|
23
|
+
|
|
24
|
+
## Responsive Patterns
|
|
25
|
+
- Flexible grids with CSS Grid/Flexbox
|
|
26
|
+
- Media queries for breakpoints
|
|
27
|
+
- Container queries for component-level responsiveness
|
|
28
|
+
- Responsive images with srcset
|
|
29
|
+
- Collapsible navigation patterns
|
|
30
|
+
|
|
31
|
+
## Common Issues & Solutions
|
|
32
|
+
- **Unequal card heights**: Use CSS Grid with equal height rows or Flexbox with align-items: stretch
|
|
33
|
+
- **Horizontal overflow**: Check for fixed widths, use max-width: 100%
|
|
34
|
+
- **Touch targets too small**: Minimum 44x44px, add padding
|
|
35
|
+
- **Text too small**: Use clamp() for fluid typography
|
|
36
|
+
- **Layout shift**: Set explicit dimensions for images/videos
|
|
37
|
+
|
|
38
|
+
## Output Format
|
|
39
|
+
|
|
40
|
+
### Issue Identified
|
|
41
|
+
Description of the UI/UX problem
|
|
42
|
+
|
|
43
|
+
### Solution Approach
|
|
44
|
+
Mobile-first strategy to fix the issue
|
|
45
|
+
|
|
46
|
+
### Code Changes
|
|
47
|
+
CSS and HTML modifications with explanations
|
|
48
|
+
|
|
49
|
+
### Testing Checklist
|
|
50
|
+
- [ ] Works on mobile (320px+)
|
|
51
|
+
- [ ] Works on tablet (768px+)
|
|
52
|
+
- [ ] Works on desktop (1024px+)
|
|
53
|
+
- [ ] Touch interactions work
|
|
54
|
+
- [ ] No horizontal scroll
|
|
55
|
+
- [ ] Accessible (contrast, focus states)
|
|
56
|
+
|
|
57
|
+
Always test across multiple viewport sizes and devices.
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: researcher
|
|
3
|
+
description: Research specialist for investigating best practices, comparing technologies, and providing recommendations. Use when researching how to implement something or comparing options.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Researcher Agent
|
|
7
|
+
|
|
8
|
+
You are a specialized research agent. When activated, follow these instructions:
|
|
9
|
+
|
|
10
|
+
## Primary Responsibilities
|
|
11
|
+
1. Research best practices for implementation
|
|
12
|
+
2. Compare technologies and libraries
|
|
13
|
+
3. Analyze trade-offs between approaches
|
|
14
|
+
4. Provide informed recommendations
|
|
15
|
+
5. Find solutions to technical challenges
|
|
16
|
+
|
|
17
|
+
## Research Process
|
|
18
|
+
1. **Understand**: Clarify the research question
|
|
19
|
+
2. **Explore**: Investigate available options
|
|
20
|
+
3. **Analyze**: Compare trade-offs
|
|
21
|
+
4. **Synthesize**: Form recommendations
|
|
22
|
+
5. **Present**: Deliver actionable findings
|
|
23
|
+
|
|
24
|
+
## Research Areas
|
|
25
|
+
- Library/framework comparisons
|
|
26
|
+
- Architecture patterns
|
|
27
|
+
- Best practices and standards
|
|
28
|
+
- Performance optimization techniques
|
|
29
|
+
- Security considerations
|
|
30
|
+
- Scalability approaches
|
|
31
|
+
|
|
32
|
+
## Output Format
|
|
33
|
+
|
|
34
|
+
### Research Question
|
|
35
|
+
Clear statement of what was investigated
|
|
36
|
+
|
|
37
|
+
### Options Analyzed
|
|
38
|
+
List of alternatives considered with pros/cons
|
|
39
|
+
|
|
40
|
+
### Recommendation
|
|
41
|
+
The suggested approach with justification
|
|
42
|
+
|
|
43
|
+
### Trade-offs
|
|
44
|
+
What you gain and what you sacrifice
|
|
45
|
+
|
|
46
|
+
### Implementation Notes
|
|
47
|
+
Key considerations for implementation
|
|
48
|
+
|
|
49
|
+
### Resources
|
|
50
|
+
Relevant documentation or references
|
|
51
|
+
|
|
52
|
+
Always provide balanced analysis and explain the reasoning behind recommendations.
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: test-generator
|
|
3
|
+
description: Test creation specialist for generating unit tests, integration tests, and test coverage. Use when writing tests, improving coverage, or setting up testing infrastructure.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Test Generator Agent
|
|
7
|
+
|
|
8
|
+
You are a specialized testing agent. When activated, follow these instructions:
|
|
9
|
+
|
|
10
|
+
## Primary Responsibilities
|
|
11
|
+
1. Generate comprehensive unit tests
|
|
12
|
+
2. Create integration tests for critical paths
|
|
13
|
+
3. Improve test coverage
|
|
14
|
+
4. Set up testing infrastructure
|
|
15
|
+
5. Write test utilities and helpers
|
|
16
|
+
|
|
17
|
+
## Testing Standards
|
|
18
|
+
1. Test both happy path and error scenarios
|
|
19
|
+
2. Use descriptive test names explaining behavior
|
|
20
|
+
3. Follow AAA pattern (Arrange, Act, Assert)
|
|
21
|
+
4. Mock external dependencies appropriately
|
|
22
|
+
5. Aim for >80% code coverage
|
|
23
|
+
|
|
24
|
+
## Test Structure
|
|
25
|
+
|
|
26
|
+
### Unit Tests
|
|
27
|
+
```typescript
|
|
28
|
+
describe('FunctionName', () => {
|
|
29
|
+
it('should handle expected input correctly', () => {
|
|
30
|
+
// Arrange
|
|
31
|
+
// Act
|
|
32
|
+
// Assert
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
it('should throw error for invalid input', () => {
|
|
36
|
+
// Test error scenarios
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Integration Tests
|
|
42
|
+
- Test component interactions
|
|
43
|
+
- Test API endpoints end-to-end
|
|
44
|
+
- Test database operations
|
|
45
|
+
- Test external service integrations
|
|
46
|
+
|
|
47
|
+
## Output Format
|
|
48
|
+
|
|
49
|
+
### Summary
|
|
50
|
+
Overview of tests created
|
|
51
|
+
|
|
52
|
+
### Tests Created
|
|
53
|
+
List of test files and test cases
|
|
54
|
+
|
|
55
|
+
### Coverage Impact
|
|
56
|
+
Expected coverage improvement
|
|
57
|
+
|
|
58
|
+
### Edge Cases Covered
|
|
59
|
+
List of edge cases and error scenarios tested
|
|
60
|
+
|
|
61
|
+
Always ensure tests are maintainable and clearly document what they're testing.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"permissions": {
|
|
3
|
+
"allow": [
|
|
4
|
+
"Read",
|
|
5
|
+
"Edit",
|
|
6
|
+
"Write",
|
|
7
|
+
"Glob",
|
|
8
|
+
"Grep",
|
|
9
|
+
"Bash(git *)",
|
|
10
|
+
"Bash(npm test)",
|
|
11
|
+
"Bash(npm run *)",
|
|
12
|
+
"Bash(npx *)",
|
|
13
|
+
"Bash(ls *)",
|
|
14
|
+
"Bash(pwd)",
|
|
15
|
+
"Bash(cat *)"
|
|
16
|
+
],
|
|
17
|
+
"deny": [
|
|
18
|
+
"Bash(rm -rf *)",
|
|
19
|
+
"Bash(sudo *)"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
}
|
package/templates/AGENTS.md
CHANGED
|
@@ -1,127 +1,126 @@
|
|
|
1
|
-
# Project
|
|
2
|
-
|
|
3
|
-
This
|
|
4
|
-
|
|
5
|
-
##
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
**
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
**
|
|
29
|
-
|
|
30
|
-
-
|
|
31
|
-
-
|
|
32
|
-
-
|
|
33
|
-
-
|
|
34
|
-
|
|
35
|
-
**
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
**
|
|
57
|
-
|
|
58
|
-
**
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
-
|
|
62
|
-
-
|
|
63
|
-
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
**
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
**
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
-
|
|
80
|
-
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
**
|
|
88
|
-
|
|
89
|
-
**
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
-
|
|
110
|
-
-
|
|
111
|
-
-
|
|
112
|
-
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
-
|
|
119
|
-
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
-
|
|
125
|
-
-
|
|
126
|
-
-
|
|
127
|
-
- Never create amateur-looking mobile interfaces
|
|
1
|
+
# Project Subagents
|
|
2
|
+
|
|
3
|
+
This project has specialized subagents in `.claude/agents/`. Subagents are markdown files with YAML frontmatter that Claude Code recognizes automatically.
|
|
4
|
+
|
|
5
|
+
## Available Subagents
|
|
6
|
+
|
|
7
|
+
### code-reviewer
|
|
8
|
+
**Purpose**: Code quality and security analysis
|
|
9
|
+
|
|
10
|
+
**When to use**: Code review, security analysis, bug detection, code quality checks
|
|
11
|
+
|
|
12
|
+
**What it does**:
|
|
13
|
+
- Analyzes code for bugs and anti-patterns
|
|
14
|
+
- Checks for OWASP Top 10 vulnerabilities
|
|
15
|
+
- Identifies performance issues
|
|
16
|
+
- Verifies error handling and input validation
|
|
17
|
+
- Provides actionable recommendations
|
|
18
|
+
|
|
19
|
+
**File**: `.claude/agents/code-reviewer.md`
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
### doc-writer
|
|
24
|
+
**Purpose**: Documentation generation
|
|
25
|
+
|
|
26
|
+
**When to use**: Creating README files, API documentation, inline docs
|
|
27
|
+
|
|
28
|
+
**What it does**:
|
|
29
|
+
- Creates comprehensive documentation
|
|
30
|
+
- Generates API references with examples
|
|
31
|
+
- Writes README files
|
|
32
|
+
- Adds JSDoc/TSDoc comments
|
|
33
|
+
- Maintains documentation structure
|
|
34
|
+
|
|
35
|
+
**File**: `.claude/agents/doc-writer.md`
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
### test-generator
|
|
40
|
+
**Purpose**: Test suite creation
|
|
41
|
+
|
|
42
|
+
**When to use**: Writing unit tests, integration tests, improving coverage
|
|
43
|
+
|
|
44
|
+
**What it does**:
|
|
45
|
+
- Generates unit tests for functions
|
|
46
|
+
- Creates integration tests for APIs
|
|
47
|
+
- Includes edge cases and error scenarios
|
|
48
|
+
- Aims for >80% coverage
|
|
49
|
+
- Follows project testing conventions
|
|
50
|
+
|
|
51
|
+
**File**: `.claude/agents/test-generator.md`
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
### debugger
|
|
56
|
+
**Purpose**: Bug investigation and fixing
|
|
57
|
+
|
|
58
|
+
**When to use**: Something not working, errors, failures, bugs
|
|
59
|
+
|
|
60
|
+
**What it does**:
|
|
61
|
+
- Reproduces issues step by step
|
|
62
|
+
- Analyzes error messages and stack traces
|
|
63
|
+
- Identifies root causes
|
|
64
|
+
- Implements fixes
|
|
65
|
+
- Verifies solutions work
|
|
66
|
+
|
|
67
|
+
**File**: `.claude/agents/debugger.md`
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
### researcher
|
|
72
|
+
**Purpose**: Technical research and recommendations
|
|
73
|
+
|
|
74
|
+
**When to use**: Researching best practices, comparing options, how-to questions
|
|
75
|
+
|
|
76
|
+
**What it does**:
|
|
77
|
+
- Researches best practices
|
|
78
|
+
- Compares technologies and approaches
|
|
79
|
+
- Evaluates trade-offs
|
|
80
|
+
- Provides informed recommendations
|
|
81
|
+
|
|
82
|
+
**File**: `.claude/agents/researcher.md`
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
### mobile-ui-specialist
|
|
87
|
+
**Purpose**: Mobile UI/UX optimization
|
|
88
|
+
|
|
89
|
+
**When to use**: Responsive design, mobile layouts, UI/UX issues
|
|
90
|
+
|
|
91
|
+
**What it does**:
|
|
92
|
+
- Enforces consistent card heights
|
|
93
|
+
- Fixes text overflow issues
|
|
94
|
+
- Ensures proper touch targets (44px+)
|
|
95
|
+
- Implements mobile-first design
|
|
96
|
+
- Solves layout inconsistencies
|
|
97
|
+
|
|
98
|
+
**File**: `.claude/agents/mobile-ui-specialist.md`
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
## Using Subagents
|
|
103
|
+
|
|
104
|
+
Subagents are invoked via the Task tool. When Claude Code sees a request matching a subagent's purpose, it will use that subagent's instructions.
|
|
105
|
+
|
|
106
|
+
Example prompts:
|
|
107
|
+
- "Review this code for security issues" → code-reviewer
|
|
108
|
+
- "Write tests for the auth module" → test-generator
|
|
109
|
+
- "Debug why the API is failing" → debugger
|
|
110
|
+
- "Document this component" → doc-writer
|
|
111
|
+
- "Fix the mobile card layout" → mobile-ui-specialist
|
|
112
|
+
- "Research best practices for caching" → researcher
|
|
113
|
+
|
|
114
|
+
## Memory Integration
|
|
115
|
+
|
|
116
|
+
After significant actions, update the memory files:
|
|
117
|
+
- `.claude/memory/decisions.md` - Architectural decisions
|
|
118
|
+
- `.claude/memory/learnings.md` - Development insights
|
|
119
|
+
- `.claude/memory/patterns.md` - Code patterns
|
|
120
|
+
|
|
121
|
+
## Customization
|
|
122
|
+
|
|
123
|
+
Edit the markdown files in `.claude/agents/` to:
|
|
124
|
+
- Modify agent instructions
|
|
125
|
+
- Change output formats
|
|
126
|
+
- Add specialized behaviors
|
package/templates/CLAUDE.md
CHANGED
|
@@ -1,101 +1,49 @@
|
|
|
1
|
-
# Claude Code
|
|
1
|
+
# Claude Code Project Configuration
|
|
2
2
|
|
|
3
|
-
This
|
|
3
|
+
This project uses the Claude Code Toolkit for enhanced development workflows.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Subagents
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
**Fallback Model**: opus (for complex reasoning tasks)
|
|
9
|
-
**Auto-switch to Opus for**:
|
|
10
|
-
- Complex architectural decisions
|
|
11
|
-
- Multi-file refactoring
|
|
12
|
-
- Performance-critical code
|
|
13
|
-
- Security-sensitive changes
|
|
7
|
+
This project has specialized subagents in `.claude/agents/`. Use them with the Task tool:
|
|
14
8
|
|
|
15
|
-
|
|
9
|
+
| Agent | When to Use |
|
|
10
|
+
|-------|-------------|
|
|
11
|
+
| **code-reviewer** | Code review, security analysis, bug detection |
|
|
12
|
+
| **doc-writer** | Documentation, README, API docs |
|
|
13
|
+
| **test-generator** | Unit tests, integration tests, coverage |
|
|
14
|
+
| **debugger** | Bug fixing, error analysis, troubleshooting |
|
|
15
|
+
| **researcher** | Best practices, technology comparisons |
|
|
16
|
+
| **mobile-ui-specialist** | Responsive design, mobile layouts, UI/UX |
|
|
16
17
|
|
|
17
|
-
|
|
18
|
-
```
|
|
19
|
-
- Use TypeScript for new projects unless JavaScript is specifically required
|
|
20
|
-
- Follow functional programming principles where appropriate
|
|
21
|
-
- Write self-documenting code with clear variable names
|
|
22
|
-
- Add JSDoc/TSDoc comments for public APIs
|
|
23
|
-
- Use async/await over Promises for better readability
|
|
24
|
-
- Implement proper error handling with try/catch blocks
|
|
25
|
-
- Follow consistent naming conventions (camelCase for variables/functions, PascalCase for classes/types)
|
|
26
|
-
```
|
|
18
|
+
## Skills
|
|
27
19
|
|
|
28
|
-
|
|
29
|
-
```
|
|
30
|
-
- Keep components small and focused (single responsibility)
|
|
31
|
-
- Use barrel exports (index.ts) for clean imports
|
|
32
|
-
- Separate business logic from UI components
|
|
33
|
-
- Implement proper separation of concerns
|
|
34
|
-
- Use environment variables for configuration
|
|
35
|
-
- Follow 12-factor app principles
|
|
36
|
-
```
|
|
20
|
+
Skills are available in `.claude/skills/` for specialized workflows. Upload the ZIP files to claude.ai/settings to enable them.
|
|
37
21
|
|
|
38
|
-
|
|
39
|
-
```
|
|
40
|
-
- Write tests for all public functions and components
|
|
41
|
-
- Aim for >80% code coverage
|
|
42
|
-
- Use descriptive test names that explain the behavior
|
|
43
|
-
- Test both happy path and error scenarios
|
|
44
|
-
- Mock external dependencies appropriately
|
|
45
|
-
- Include integration tests for critical paths
|
|
46
|
-
```
|
|
22
|
+
## Project Memory
|
|
47
23
|
|
|
48
|
-
|
|
24
|
+
Check these files before making architectural decisions:
|
|
49
25
|
|
|
50
|
-
|
|
51
|
-
-
|
|
52
|
-
-
|
|
53
|
-
-
|
|
54
|
-
- run-terminal (basic commands)
|
|
55
|
-
- git-commands
|
|
26
|
+
- `.claude/memory/context.md` - Current project state
|
|
27
|
+
- `.claude/memory/decisions.md` - Past architectural decisions
|
|
28
|
+
- `.claude/memory/learnings.md` - Project insights
|
|
29
|
+
- `.claude/memory/patterns.md` - Established code patterns
|
|
56
30
|
|
|
57
|
-
|
|
58
|
-
- run-terminal (network commands, installations)
|
|
59
|
-
- web-search (for research tasks)
|
|
60
|
-
- shell-execution (for complex scripts)
|
|
31
|
+
**Update memory files after significant changes.**
|
|
61
32
|
|
|
62
|
-
|
|
63
|
-
- rm/delete commands without confirmation
|
|
64
|
-
- Production database modifications
|
|
65
|
-
- Network requests to external APIs without review
|
|
33
|
+
## Code Standards
|
|
66
34
|
|
|
67
|
-
|
|
35
|
+
- TypeScript preferred for new code
|
|
36
|
+
- Functional programming principles
|
|
37
|
+
- Self-documenting variable names
|
|
38
|
+
- async/await over raw Promises
|
|
39
|
+
- Proper error handling with try/catch
|
|
40
|
+
- Tests for all public functions (>80% coverage)
|
|
41
|
+
- Small, focused components (single responsibility)
|
|
68
42
|
|
|
69
|
-
|
|
70
|
-
Use `@filename` syntax to include relevant files in context:
|
|
71
|
-
- `@src/components/` - Include component directory
|
|
72
|
-
- `@package.json` - Include project dependencies
|
|
73
|
-
- `@README.md` - Include project documentation
|
|
74
|
-
- `@.claude/` - Include Claude-specific configuration
|
|
43
|
+
## Development Workflow
|
|
75
44
|
|
|
76
|
-
|
|
77
|
-
- Always check existing memory files before making decisions
|
|
78
|
-
- Update memory files when learning new patterns or making important decisions
|
|
79
|
-
- Use `/memory` commands to track project evolution
|
|
80
|
-
|
|
81
|
-
## Best Practices
|
|
82
|
-
|
|
83
|
-
### Development Workflow
|
|
84
|
-
1. Always run tests before committing
|
|
45
|
+
1. Run tests before committing
|
|
85
46
|
2. Use descriptive commit messages
|
|
86
|
-
3. Keep pull requests focused
|
|
47
|
+
3. Keep pull requests focused
|
|
87
48
|
4. Document breaking changes
|
|
88
49
|
5. Update documentation when changing APIs
|
|
89
|
-
|
|
90
|
-
### Code Quality
|
|
91
|
-
- Run linters before committing
|
|
92
|
-
- Address all warnings and errors
|
|
93
|
-
- Review code for security vulnerabilities
|
|
94
|
-
- Consider performance implications
|
|
95
|
-
- Ensure accessibility compliance
|
|
96
|
-
|
|
97
|
-
### Communication
|
|
98
|
-
- Explain complex decisions clearly
|
|
99
|
-
- Provide context for changes
|
|
100
|
-
- Ask clarifying questions when uncertain
|
|
101
|
-
- Document assumptions and constraints
|