claude-code-toolkit 1.0.11 → 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/README.md +16 -71
- 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 +145 -94
- 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/.claude/skills/persistent-memory-system/SKILL.md +229 -0
- package/templates/.claude/skills/persistent-memory-system/memory-templates.md +152 -0
- package/templates/AGENTS.md +141 -127
- package/templates/CLAUDE.md +116 -89
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
|