claude-code-toolkit 1.0.12 → 1.0.13
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 +49 -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.json +36 -0
- package/templates/.claude/agents/debugger.json +41 -0
- package/templates/.claude/agents/doc-writer.json +37 -0
- package/templates/.claude/agents/mobile-ui-specialist.json +41 -0
- package/templates/.claude/agents/orchestrator.json +42 -0
- package/templates/.claude/agents/researcher.json +48 -0
- package/templates/.claude/agents/test-generator.json +42 -0
- package/templates/AGENTS.md +141 -127
- package/templates/CLAUDE.md +116 -89
|
@@ -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,iBA2LhE"}
|
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}`);
|
|
@@ -164,31 +177,31 @@ async function installToolkit(options = {}) {
|
|
|
164
177
|
const contextFile = path.join(memoryDest, 'context.md');
|
|
165
178
|
if (await fs.pathExists(path.dirname(contextFile))) {
|
|
166
179
|
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
|
|
180
|
+
const context = `# Current Project Context
|
|
181
|
+
|
|
182
|
+
## Project Overview
|
|
183
|
+
**Name**: ${projectName}
|
|
184
|
+
**Type**: New project with Claude Code toolkit
|
|
185
|
+
**Status**: Setup phase - toolkit installed
|
|
186
|
+
|
|
187
|
+
## Active Components
|
|
188
|
+
- Professional Documentation Writer skill
|
|
189
|
+
- Mobile UI/UX Master skill
|
|
190
|
+
- Claude Code Hooks Master skill
|
|
191
|
+
- Persistent Memory System skill
|
|
192
|
+
- Six specialized agents (code-reviewer, doc-writer, test-generator, debugger, researcher, mobile-ui-specialist)
|
|
193
|
+
- Global configuration in CLAUDE.md
|
|
194
|
+
- Hook automation system (pre-commit, post-commit, pre-push, custom)
|
|
195
|
+
|
|
196
|
+
## Next Steps
|
|
197
|
+
1. Upload skills to Claude settings
|
|
198
|
+
2. Set up hooks: .claude/hooks/hook-manager.sh setup
|
|
199
|
+
3. Install git hooks: .claude/hooks/hook-manager.sh install
|
|
200
|
+
4. Start development with enhanced AI assistance
|
|
201
|
+
|
|
202
|
+
## Recent Changes
|
|
203
|
+
- ${new Date().toISOString().split('T')[0]}: Claude Code toolkit installed
|
|
204
|
+
- Skills and hooks configured for optimal development workflow
|
|
192
205
|
`;
|
|
193
206
|
await fs.writeFile(contextFile, context);
|
|
194
207
|
}
|
|
@@ -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,wCA2LC;AAtMD,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,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;QACtB,iBAAiB;QACjB,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC;QAC1D,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC;QAE/C,IAAI,MAAM,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE,CAAC;YACtC,IAAI,OAAO,CAAC,KAAK,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC,C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C,GAAG,CAAC,2BAA2B,CAAC,CAAC;QAC3C,CAAC;IACH,CAAC;IAED,iCAAiC;IACjC,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;IACxD,IAAI,MAAM,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC;QACnD,MAAM,WAAW,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;QACvC,MAAM,OAAO,GAAG;;;YAGR,WAAW;;;;;;;;;;;;;;;;;;;;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.md'), readme);
|
|
253
266
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template.js","sourceRoot":"","sources":["../../src/commands/template.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wCAyCC;AA7CD,6CAA+B;AAC/B,2CAA6B;AAC7B,iDAAyC;AAElC,KAAK,UAAU,cAAc,CAAC,WAAmB,EAAE,OAAe,OAAO;IAC9E,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;IAC1B,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC;IAChD,MAAM,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC;IAE1D,oCAAoC;IACpC,IAAI,MAAM,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,CAAC;QACrC,MAAM,IAAI,KAAK,CAAC,cAAc,WAAW,kBAAkB,CAAC,CAAC;IAC/D,CAAC;IAED,OAAO,CAAC,GAAG,CAAC,YAAY,IAAI,aAAa,WAAW,+BAA+B,CAAC,CAAC;IAErF,2BAA2B;IAC3B,MAAM,EAAE,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAEhC,0CAA0C;IAC1C,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,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,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,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "code-reviewer",
|
|
3
|
+
"description": "Automated code quality and security analysis agent",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"triggers": [
|
|
6
|
+
"review this code",
|
|
7
|
+
"review this file",
|
|
8
|
+
"check this code",
|
|
9
|
+
"code review",
|
|
10
|
+
"security review",
|
|
11
|
+
"find bugs",
|
|
12
|
+
"analyze this code"
|
|
13
|
+
],
|
|
14
|
+
"auto_triggers": {
|
|
15
|
+
"on_file_change": ["*.ts", "*.tsx", "*.js", "*.jsx", "*.py", "*.go", "*.rs"],
|
|
16
|
+
"on_commit": true,
|
|
17
|
+
"on_pr": true
|
|
18
|
+
},
|
|
19
|
+
"instructions": [
|
|
20
|
+
"Analyze code for bugs, security vulnerabilities, and anti-patterns",
|
|
21
|
+
"Check for OWASP Top 10 vulnerabilities",
|
|
22
|
+
"Identify performance issues and memory leaks",
|
|
23
|
+
"Suggest concrete improvements with code examples",
|
|
24
|
+
"Check for proper error handling",
|
|
25
|
+
"Verify input validation and sanitization",
|
|
26
|
+
"Look for hardcoded secrets or credentials",
|
|
27
|
+
"Assess code maintainability and readability"
|
|
28
|
+
],
|
|
29
|
+
"output_format": {
|
|
30
|
+
"sections": ["Summary", "Critical Issues", "Warnings", "Suggestions", "Security"],
|
|
31
|
+
"include_line_numbers": true,
|
|
32
|
+
"include_code_snippets": true
|
|
33
|
+
},
|
|
34
|
+
"tools": ["Read", "Grep", "Glob", "LSP"],
|
|
35
|
+
"permissions": "read-only"
|
|
36
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "debugger",
|
|
3
|
+
"description": "Systematic debugging and issue resolution agent",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"triggers": [
|
|
6
|
+
"debug this",
|
|
7
|
+
"fix this bug",
|
|
8
|
+
"why is this failing",
|
|
9
|
+
"error",
|
|
10
|
+
"not working",
|
|
11
|
+
"investigate",
|
|
12
|
+
"troubleshoot",
|
|
13
|
+
"find the issue"
|
|
14
|
+
],
|
|
15
|
+
"auto_triggers": {
|
|
16
|
+
"on_error": true,
|
|
17
|
+
"on_test_failure": true,
|
|
18
|
+
"on_build_failure": true
|
|
19
|
+
},
|
|
20
|
+
"instructions": [
|
|
21
|
+
"Use systematic debugging approaches",
|
|
22
|
+
"Reproduce the issue step by step",
|
|
23
|
+
"Check error messages and stack traces",
|
|
24
|
+
"Analyze recent code changes (git diff)",
|
|
25
|
+
"Examine logs and console output",
|
|
26
|
+
"Identify root cause, not just symptoms",
|
|
27
|
+
"Suggest fixes with clear explanations",
|
|
28
|
+
"Add preventive measures to avoid recurrence"
|
|
29
|
+
],
|
|
30
|
+
"debugging_steps": [
|
|
31
|
+
"1. Understand the expected vs actual behavior",
|
|
32
|
+
"2. Reproduce the issue consistently",
|
|
33
|
+
"3. Isolate the problem area",
|
|
34
|
+
"4. Form hypothesis about the cause",
|
|
35
|
+
"5. Test the hypothesis",
|
|
36
|
+
"6. Implement and verify the fix",
|
|
37
|
+
"7. Add regression test"
|
|
38
|
+
],
|
|
39
|
+
"tools": ["Read", "Grep", "Glob", "Bash", "LSP"],
|
|
40
|
+
"permissions": "read-only"
|
|
41
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "doc-writer",
|
|
3
|
+
"description": "Professional documentation generation agent",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"triggers": [
|
|
6
|
+
"write documentation",
|
|
7
|
+
"create docs",
|
|
8
|
+
"document this",
|
|
9
|
+
"generate readme",
|
|
10
|
+
"write readme",
|
|
11
|
+
"api documentation",
|
|
12
|
+
"update documentation"
|
|
13
|
+
],
|
|
14
|
+
"auto_triggers": {
|
|
15
|
+
"on_file_change": ["*.ts", "*.tsx", "*.js", "*.py"],
|
|
16
|
+
"on_api_change": true,
|
|
17
|
+
"on_export_change": true
|
|
18
|
+
},
|
|
19
|
+
"instructions": [
|
|
20
|
+
"Use the professional-documentation-writer skill",
|
|
21
|
+
"Create clear, comprehensive documentation",
|
|
22
|
+
"Include practical code examples",
|
|
23
|
+
"Generate API references for public functions",
|
|
24
|
+
"Add installation and usage instructions",
|
|
25
|
+
"Include troubleshooting sections",
|
|
26
|
+
"Follow project documentation standards",
|
|
27
|
+
"Update table of contents automatically"
|
|
28
|
+
],
|
|
29
|
+
"skills": ["documentation-writer"],
|
|
30
|
+
"output_format": {
|
|
31
|
+
"style": "markdown",
|
|
32
|
+
"include_toc": true,
|
|
33
|
+
"include_examples": true
|
|
34
|
+
},
|
|
35
|
+
"tools": ["Read", "Write", "Grep", "Glob"],
|
|
36
|
+
"permissions": "write"
|
|
37
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "mobile-ui-specialist",
|
|
3
|
+
"description": "Professional mobile UI/UX optimization agent",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"triggers": [
|
|
6
|
+
"mobile ui",
|
|
7
|
+
"responsive design",
|
|
8
|
+
"fix layout",
|
|
9
|
+
"card height",
|
|
10
|
+
"text overflow",
|
|
11
|
+
"mobile friendly",
|
|
12
|
+
"ui consistency",
|
|
13
|
+
"touch targets"
|
|
14
|
+
],
|
|
15
|
+
"auto_triggers": {
|
|
16
|
+
"on_file_change": ["*.css", "*.scss", "*.tsx", "*.vue", "*.svelte"],
|
|
17
|
+
"on_component_change": true
|
|
18
|
+
},
|
|
19
|
+
"instructions": [
|
|
20
|
+
"Use the mobile-ui-ux-master skill for all UI work",
|
|
21
|
+
"Enforce equal card heights in horizontal grids",
|
|
22
|
+
"Prevent text overflow from breaking layouts",
|
|
23
|
+
"Ensure touch targets meet 44px minimum",
|
|
24
|
+
"Implement mobile-first responsive design",
|
|
25
|
+
"Use CSS Grid/Flexbox for consistent layouts",
|
|
26
|
+
"Apply proper text containment (line-clamp, ellipsis)",
|
|
27
|
+
"Test designs across screen sizes (320px to 4K)",
|
|
28
|
+
"Follow the mobile UX checklist"
|
|
29
|
+
],
|
|
30
|
+
"skills": ["mobile-ui-ux-master"],
|
|
31
|
+
"quality_checks": [
|
|
32
|
+
"Card heights consistent in same row",
|
|
33
|
+
"No horizontal scrolling on mobile",
|
|
34
|
+
"Touch targets >= 44px",
|
|
35
|
+
"Text readable at 14px minimum",
|
|
36
|
+
"Images have proper aspect ratios",
|
|
37
|
+
"Forms work with mobile keyboards"
|
|
38
|
+
],
|
|
39
|
+
"tools": ["Read", "Write", "Grep", "Glob"],
|
|
40
|
+
"permissions": "write"
|
|
41
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "agent-orchestrator",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Central agent management and routing system",
|
|
5
|
+
"agents": [
|
|
6
|
+
"code-reviewer",
|
|
7
|
+
"doc-writer",
|
|
8
|
+
"test-generator",
|
|
9
|
+
"debugger",
|
|
10
|
+
"researcher",
|
|
11
|
+
"mobile-ui-specialist"
|
|
12
|
+
],
|
|
13
|
+
"routing_rules": {
|
|
14
|
+
"priority_order": [
|
|
15
|
+
"debugger",
|
|
16
|
+
"code-reviewer",
|
|
17
|
+
"test-generator",
|
|
18
|
+
"mobile-ui-specialist",
|
|
19
|
+
"doc-writer",
|
|
20
|
+
"researcher"
|
|
21
|
+
],
|
|
22
|
+
"multi_agent_allowed": true,
|
|
23
|
+
"fallback_agent": "researcher"
|
|
24
|
+
},
|
|
25
|
+
"auto_activation": {
|
|
26
|
+
"on_error": ["debugger"],
|
|
27
|
+
"on_commit": ["code-reviewer"],
|
|
28
|
+
"on_test_failure": ["debugger", "test-generator"],
|
|
29
|
+
"on_ui_change": ["mobile-ui-specialist"],
|
|
30
|
+
"on_api_change": ["doc-writer", "test-generator"]
|
|
31
|
+
},
|
|
32
|
+
"memory_integration": {
|
|
33
|
+
"enabled": true,
|
|
34
|
+
"log_agent_actions": true,
|
|
35
|
+
"learn_from_corrections": true
|
|
36
|
+
},
|
|
37
|
+
"hooks_integration": {
|
|
38
|
+
"pre_commit": ["code-reviewer"],
|
|
39
|
+
"post_commit": ["doc-writer"],
|
|
40
|
+
"pre_push": ["test-generator", "code-reviewer"]
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "researcher",
|
|
3
|
+
"description": "Technical research and best practices agent",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"triggers": [
|
|
6
|
+
"research",
|
|
7
|
+
"find out",
|
|
8
|
+
"how to",
|
|
9
|
+
"best practice",
|
|
10
|
+
"compare",
|
|
11
|
+
"what is the best way",
|
|
12
|
+
"recommend",
|
|
13
|
+
"alternatives"
|
|
14
|
+
],
|
|
15
|
+
"auto_triggers": {
|
|
16
|
+
"on_new_dependency": true,
|
|
17
|
+
"on_architecture_decision": true
|
|
18
|
+
},
|
|
19
|
+
"instructions": [
|
|
20
|
+
"Provide accurate, up-to-date technical information",
|
|
21
|
+
"Compare different approaches with pros/cons",
|
|
22
|
+
"Consider project context and constraints",
|
|
23
|
+
"Cite sources and provide documentation links",
|
|
24
|
+
"Suggest practical implementations",
|
|
25
|
+
"Evaluate security implications",
|
|
26
|
+
"Consider performance trade-offs",
|
|
27
|
+
"Log findings to memory system"
|
|
28
|
+
],
|
|
29
|
+
"research_areas": [
|
|
30
|
+
"Libraries and frameworks",
|
|
31
|
+
"Design patterns",
|
|
32
|
+
"Best practices",
|
|
33
|
+
"Security considerations",
|
|
34
|
+
"Performance optimization",
|
|
35
|
+
"Architecture decisions"
|
|
36
|
+
],
|
|
37
|
+
"output_format": {
|
|
38
|
+
"include_sources": true,
|
|
39
|
+
"include_comparison_table": true,
|
|
40
|
+
"include_recommendation": true
|
|
41
|
+
},
|
|
42
|
+
"tools": ["Read", "WebSearch", "WebFetch", "Grep"],
|
|
43
|
+
"permissions": "read-only",
|
|
44
|
+
"memory_integration": {
|
|
45
|
+
"log_decisions": true,
|
|
46
|
+
"log_learnings": true
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "test-generator",
|
|
3
|
+
"description": "Comprehensive test suite creation agent",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"triggers": [
|
|
6
|
+
"write tests",
|
|
7
|
+
"generate tests",
|
|
8
|
+
"create test",
|
|
9
|
+
"add tests",
|
|
10
|
+
"unit tests",
|
|
11
|
+
"integration tests",
|
|
12
|
+
"test this function",
|
|
13
|
+
"test coverage"
|
|
14
|
+
],
|
|
15
|
+
"auto_triggers": {
|
|
16
|
+
"on_file_change": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.js"],
|
|
17
|
+
"on_new_function": true,
|
|
18
|
+
"on_api_change": true
|
|
19
|
+
},
|
|
20
|
+
"instructions": [
|
|
21
|
+
"Generate comprehensive unit tests for all public functions",
|
|
22
|
+
"Create integration tests for API endpoints",
|
|
23
|
+
"Include edge cases and error scenarios",
|
|
24
|
+
"Follow project's testing framework conventions",
|
|
25
|
+
"Aim for >80% code coverage",
|
|
26
|
+
"Mock external dependencies appropriately",
|
|
27
|
+
"Use descriptive test names that explain behavior",
|
|
28
|
+
"Add setup and teardown when needed"
|
|
29
|
+
],
|
|
30
|
+
"test_frameworks": {
|
|
31
|
+
"javascript": ["jest", "vitest", "mocha"],
|
|
32
|
+
"typescript": ["jest", "vitest"],
|
|
33
|
+
"python": ["pytest", "unittest"],
|
|
34
|
+
"go": ["testing"]
|
|
35
|
+
},
|
|
36
|
+
"output_format": {
|
|
37
|
+
"file_naming": "{filename}.test.{ext}",
|
|
38
|
+
"structure": "describe/it"
|
|
39
|
+
},
|
|
40
|
+
"tools": ["Read", "Write", "Grep", "Glob", "Bash"],
|
|
41
|
+
"permissions": "write"
|
|
42
|
+
}
|
package/templates/AGENTS.md
CHANGED
|
@@ -1,127 +1,141 @@
|
|
|
1
|
-
# Project Agents
|
|
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
|
-
**Triggers**:
|
|
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
|
-
|
|
1
|
+
# Project Agents
|
|
2
|
+
|
|
3
|
+
This project uses specialized AI agents for automated development workflows. Agent configurations are stored in `.claude/agents/`.
|
|
4
|
+
|
|
5
|
+
## Active Agents
|
|
6
|
+
|
|
7
|
+
### code-reviewer
|
|
8
|
+
**Purpose**: Automated code quality and security analysis
|
|
9
|
+
|
|
10
|
+
**Triggers**: "review", "check code", "security", "find bugs", "analyze"
|
|
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
|
+
- Suggests improvements with code examples
|
|
17
|
+
- Verifies error handling and input validation
|
|
18
|
+
|
|
19
|
+
**Config**: `.claude/agents/code-reviewer.json`
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
### doc-writer
|
|
24
|
+
**Purpose**: Professional documentation generation
|
|
25
|
+
|
|
26
|
+
**Triggers**: "document", "readme", "api docs", "write docs"
|
|
27
|
+
|
|
28
|
+
**What it does**:
|
|
29
|
+
- Creates comprehensive documentation
|
|
30
|
+
- Generates API references
|
|
31
|
+
- Writes README files
|
|
32
|
+
- Adds code examples
|
|
33
|
+
- Maintains table of contents
|
|
34
|
+
|
|
35
|
+
**Uses Skill**: documentation-writer
|
|
36
|
+
**Config**: `.claude/agents/doc-writer.json`
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
### test-generator
|
|
41
|
+
**Purpose**: Comprehensive test suite creation
|
|
42
|
+
|
|
43
|
+
**Triggers**: "test", "write tests", "coverage", "unit test"
|
|
44
|
+
|
|
45
|
+
**What it does**:
|
|
46
|
+
- Generates unit tests for functions
|
|
47
|
+
- Creates integration tests for APIs
|
|
48
|
+
- Includes edge cases and error scenarios
|
|
49
|
+
- Aims for >80% coverage
|
|
50
|
+
- Follows project testing conventions
|
|
51
|
+
|
|
52
|
+
**Frameworks**: Jest, Vitest, Pytest (auto-detected)
|
|
53
|
+
**Config**: `.claude/agents/test-generator.json`
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
### debugger
|
|
58
|
+
**Purpose**: Systematic debugging and issue resolution
|
|
59
|
+
|
|
60
|
+
**Triggers**: "debug", "fix", "error", "not working", "failing", "bug"
|
|
61
|
+
|
|
62
|
+
**What it does**:
|
|
63
|
+
- Reproduces issues step by step
|
|
64
|
+
- Analyzes error messages and stack traces
|
|
65
|
+
- Checks recent code changes
|
|
66
|
+
- Identifies root causes
|
|
67
|
+
- Suggests fixes with explanations
|
|
68
|
+
|
|
69
|
+
**Config**: `.claude/agents/debugger.json`
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
### researcher
|
|
74
|
+
**Purpose**: Technical research and best practices
|
|
75
|
+
|
|
76
|
+
**Triggers**: "research", "how to", "best practice", "compare", "recommend"
|
|
77
|
+
|
|
78
|
+
**What it does**:
|
|
79
|
+
- Provides accurate technical information
|
|
80
|
+
- Compares different approaches
|
|
81
|
+
- Evaluates trade-offs
|
|
82
|
+
- Cites sources and documentation
|
|
83
|
+
- Logs findings to memory system
|
|
84
|
+
|
|
85
|
+
**Config**: `.claude/agents/researcher.json`
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
### mobile-ui-specialist
|
|
90
|
+
**Purpose**: Professional mobile UI/UX optimization
|
|
91
|
+
|
|
92
|
+
**Triggers**: "mobile", "responsive", "layout", "card height", "ui", "ux"
|
|
93
|
+
|
|
94
|
+
**What it does**:
|
|
95
|
+
- Enforces consistent card heights
|
|
96
|
+
- Prevents text overflow issues
|
|
97
|
+
- Ensures 44px+ touch targets
|
|
98
|
+
- Implements mobile-first design
|
|
99
|
+
- Applies proper text containment
|
|
100
|
+
|
|
101
|
+
**Uses Skill**: mobile-ui-ux-master
|
|
102
|
+
**Config**: `.claude/agents/mobile-ui-specialist.json`
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
## Agent Orchestration
|
|
107
|
+
|
|
108
|
+
The orchestrator coordinates agents based on task type:
|
|
109
|
+
|
|
110
|
+
| Task Type | Agents Used |
|
|
111
|
+
|-----------|-------------|
|
|
112
|
+
| Code changes | code-reviewer, test-generator |
|
|
113
|
+
| New features | code-reviewer, doc-writer, test-generator |
|
|
114
|
+
| UI work | mobile-ui-specialist, code-reviewer |
|
|
115
|
+
| Bug fixing | debugger, test-generator |
|
|
116
|
+
| Research | researcher |
|
|
117
|
+
|
|
118
|
+
## Hook Integration
|
|
119
|
+
|
|
120
|
+
Agents are triggered automatically by git hooks:
|
|
121
|
+
|
|
122
|
+
| Git Event | Agent |
|
|
123
|
+
|-----------|-------|
|
|
124
|
+
| Pre-commit | code-reviewer |
|
|
125
|
+
| Post-commit | doc-writer |
|
|
126
|
+
| Pre-push | test-generator, code-reviewer |
|
|
127
|
+
|
|
128
|
+
## Memory Integration
|
|
129
|
+
|
|
130
|
+
All agents log their actions to the memory system:
|
|
131
|
+
- Decisions -> .claude/memory/decisions.md
|
|
132
|
+
- Learnings -> .claude/memory/learnings.md
|
|
133
|
+
- Patterns -> .claude/memory/patterns.md
|
|
134
|
+
|
|
135
|
+
## Customization
|
|
136
|
+
|
|
137
|
+
Edit agent configurations in .claude/agents/{agent-name}.json to:
|
|
138
|
+
- Modify trigger phrases
|
|
139
|
+
- Adjust instructions
|
|
140
|
+
- Change output formats
|
|
141
|
+
- Add/remove tools
|
package/templates/CLAUDE.md
CHANGED
|
@@ -1,101 +1,128 @@
|
|
|
1
|
-
# Claude Code
|
|
1
|
+
# Claude Code Project Configuration
|
|
2
2
|
|
|
3
|
-
This
|
|
3
|
+
This project uses the Claude Code Toolkit with integrated agents, skills, and automation.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Agent System
|
|
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 agents configured in `.claude/agents/`. **You MUST use these agents when handling user requests.**
|
|
14
8
|
|
|
15
|
-
|
|
9
|
+
### Agent Routing
|
|
16
10
|
|
|
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
|
-
```
|
|
11
|
+
When the user makes a request, determine which agent(s) to activate based on these triggers:
|
|
27
12
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
-
|
|
31
|
-
-
|
|
32
|
-
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
-
|
|
36
|
-
|
|
13
|
+
| Agent | Activate When User Says |
|
|
14
|
+
|-------|------------------------|
|
|
15
|
+
| **code-reviewer** | "review", "check code", "security", "find bugs", "analyze" |
|
|
16
|
+
| **doc-writer** | "document", "readme", "api docs", "write docs" |
|
|
17
|
+
| **test-generator** | "test", "write tests", "coverage", "unit test" |
|
|
18
|
+
| **debugger** | "debug", "fix", "error", "not working", "failing", "bug" |
|
|
19
|
+
| **researcher** | "research", "how to", "best practice", "compare", "recommend" |
|
|
20
|
+
| **mobile-ui-specialist** | "mobile", "responsive", "layout", "card height", "ui", "ux" |
|
|
21
|
+
|
|
22
|
+
### Agent Execution Protocol
|
|
23
|
+
|
|
24
|
+
When activating an agent:
|
|
25
|
+
|
|
26
|
+
1. **Load the agent config**: Read `.claude/agents/{agent-name}.json`
|
|
27
|
+
2. **Follow agent instructions**: Execute each instruction in the config
|
|
28
|
+
3. **Use specified tools only**: Respect the agent's tool permissions
|
|
29
|
+
4. **Apply output format**: Follow the agent's output format specification
|
|
30
|
+
5. **Log to memory**: Record decisions/learnings to `.claude/memory/`
|
|
31
|
+
|
|
32
|
+
### Multi-Agent Coordination
|
|
33
|
+
|
|
34
|
+
For complex tasks, multiple agents may be needed:
|
|
35
|
+
- **Code changes** → code-reviewer + test-generator
|
|
36
|
+
- **New features** → code-reviewer + doc-writer + test-generator
|
|
37
|
+
- **UI work** → mobile-ui-specialist + code-reviewer
|
|
38
|
+
- **Bug fixing** → debugger + test-generator
|
|
39
|
+
|
|
40
|
+
## Skills Integration
|
|
41
|
+
|
|
42
|
+
Load and apply skills from `.claude/skills/` when relevant:
|
|
43
|
+
|
|
44
|
+
| Skill | Use For |
|
|
45
|
+
|-------|---------|
|
|
46
|
+
| **mobile-ui-ux-master** | All mobile/responsive UI work |
|
|
47
|
+
| **documentation-writer** | All documentation tasks |
|
|
48
|
+
| **hooks-master** | Automation and workflow setup |
|
|
49
|
+
| **memory-system** | Knowledge management |
|
|
50
|
+
|
|
51
|
+
## Memory System
|
|
52
|
+
|
|
53
|
+
**ALWAYS check memory before making decisions:**
|
|
37
54
|
|
|
38
|
-
### Testing Standards
|
|
39
55
|
```
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
-
|
|
45
|
-
|
|
56
|
+
.claude/memory/
|
|
57
|
+
├── context.md # Current project state - READ FIRST
|
|
58
|
+
├── decisions.md # Past decisions - CHECK before architecture choices
|
|
59
|
+
├── learnings.md # Insights - APPLY relevant learnings
|
|
60
|
+
├── patterns.md # Code patterns - USE established patterns
|
|
61
|
+
└── preferences.md # User preferences - RESPECT these
|
|
46
62
|
```
|
|
47
63
|
|
|
48
|
-
|
|
64
|
+
**ALWAYS update memory after significant actions:**
|
|
65
|
+
- New architectural decisions → Add to `decisions.md`
|
|
66
|
+
- Discovered insights → Add to `learnings.md`
|
|
67
|
+
- New patterns used → Add to `patterns.md`
|
|
68
|
+
|
|
69
|
+
## Hooks Integration
|
|
70
|
+
|
|
71
|
+
Hooks in `.claude/hooks/` trigger agents automatically:
|
|
72
|
+
|
|
73
|
+
| Hook | Triggered Agents |
|
|
74
|
+
|------|-----------------|
|
|
75
|
+
| pre-commit | code-reviewer |
|
|
76
|
+
| post-commit | doc-writer |
|
|
77
|
+
| pre-push | test-generator, code-reviewer |
|
|
78
|
+
|
|
79
|
+
## Code Standards
|
|
80
|
+
|
|
81
|
+
### Style
|
|
82
|
+
- TypeScript preferred for new code
|
|
83
|
+
- Functional programming principles
|
|
84
|
+
- Self-documenting variable names
|
|
85
|
+
- JSDoc for public APIs
|
|
86
|
+
- async/await over raw Promises
|
|
87
|
+
- Proper error handling
|
|
88
|
+
|
|
89
|
+
### Structure
|
|
90
|
+
- Small, focused components
|
|
91
|
+
- Barrel exports (index.ts)
|
|
92
|
+
- Separate business logic from UI
|
|
93
|
+
- Environment variables for config
|
|
94
|
+
|
|
95
|
+
### Testing
|
|
96
|
+
- Tests for all public functions
|
|
97
|
+
- >80% coverage target
|
|
98
|
+
- Descriptive test names
|
|
99
|
+
- Happy path + error scenarios
|
|
100
|
+
- Mock external dependencies
|
|
101
|
+
|
|
102
|
+
## Tool Permissions
|
|
49
103
|
|
|
50
104
|
### Always Allowed
|
|
51
|
-
- file
|
|
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
|
-
### Memory Integration
|
|
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
|
|
85
|
-
2. Use descriptive commit messages
|
|
86
|
-
3. Keep pull requests focused and reviewable
|
|
87
|
-
4. Document breaking changes
|
|
88
|
-
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
|
|
105
|
+
- Read, Glob, Grep (file operations)
|
|
106
|
+
- Bash (basic commands)
|
|
107
|
+
- Git operations
|
|
108
|
+
- LSP operations
|
|
109
|
+
|
|
110
|
+
### Require Caution
|
|
111
|
+
- Write (verify before writing)
|
|
112
|
+
- Bash (network/install commands)
|
|
113
|
+
- WebSearch, WebFetch
|
|
114
|
+
|
|
115
|
+
### Never Without Confirmation
|
|
116
|
+
- Destructive operations (rm, delete)
|
|
117
|
+
- Production modifications
|
|
118
|
+
- External API calls with side effects
|
|
119
|
+
|
|
120
|
+
## Response Protocol
|
|
121
|
+
|
|
122
|
+
1. **Identify relevant agent(s)** from user request
|
|
123
|
+
2. **Load agent configuration** from `.claude/agents/`
|
|
124
|
+
3. **Check memory** for context and past decisions
|
|
125
|
+
4. **Execute agent instructions** systematically
|
|
126
|
+
5. **Apply relevant skills** when specified
|
|
127
|
+
6. **Update memory** with new decisions/learnings
|
|
128
|
+
7. **Follow output format** specified by agent
|