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.
@@ -1,127 +1,141 @@
1
- # Project Agents Configuration
2
-
3
- This file defines the autonomous agents available in this project workspace.
4
-
5
- ## Code Review Agent
6
-
7
- **Name**: code-reviewer
8
- **Description**: Specialized agent for conducting thorough code reviews, identifying bugs, security issues, and suggesting improvements
9
- **Tools**:
10
- - file-read
11
- - grep-search
12
- - run-terminal (for linting/checking)
13
- - git-commands
14
-
15
- **Permissions**: read-only
16
- **Triggers**: When user asks for code review or mentions "review this code"
17
-
18
- **Instructions**:
19
- - Focus on code quality, security, and best practices
20
- - Provide specific, actionable feedback
21
- - Suggest concrete improvements with code examples
22
- - Check for common vulnerabilities and anti-patterns
23
- - Consider performance implications
24
-
25
- ## Documentation Agent
26
-
27
- **Name**: doc-writer
28
- **Description**: Creates comprehensive documentation including READMEs, API docs, and user guides
29
- **Tools**:
30
- - file-read
31
- - file-write
32
- - run-terminal (for generating docs)
33
- - web-search (for research)
34
-
35
- **Permissions**: write
36
- **Triggers**: When user asks to create or update documentation
37
-
38
- **Instructions**:
39
- - Use the professional-documentation-writer skill
40
- - Create clear, comprehensive documentation
41
- - Include practical examples and code snippets
42
- - Follow project documentation standards
43
- - Update table of contents automatically
44
-
45
- ## Testing Agent
46
-
47
- **Name**: test-generator
48
- **Description**: Generates comprehensive test suites and ensures code coverage
49
- **Tools**:
50
- - file-read
51
- - file-write
52
- - run-terminal (for running tests)
53
- - grep-search
54
-
55
- **Permissions**: write
56
- **Triggers**: When user asks to add tests or mentions testing
57
-
58
- **Instructions**:
59
- - Generate unit tests for new functions
60
- - Create integration tests for APIs
61
- - Ensure adequate code coverage (>80%)
62
- - Follow project's testing framework and conventions
63
- - Add edge cases and error handling tests
64
-
65
- ## Debugging Agent
66
-
67
- **Name**: debugger
68
- **Description**: Helps identify and fix bugs through systematic debugging approaches
69
- **Tools**:
70
- - file-read
71
- - run-terminal (for debugging commands)
72
- - grep-search
73
- - git-commands (for checking history)
74
-
75
- **Permissions**: read-only
76
- **Triggers**: When user reports bugs or asks for debugging help
77
-
78
- **Instructions**:
79
- - Use systematic debugging approaches
80
- - Check logs and error messages
81
- - Reproduce issues step by step
82
- - Suggest fixes with explanations
83
- - Help implement fixes when approved
84
-
85
- ## Research Agent
86
-
87
- **Name**: researcher
88
- **Description**: Conducts technical research and provides insights on technologies and best practices
89
- **Tools**:
90
- - web-search
91
- - file-read
92
- - run-terminal (for research tools)
93
-
94
- **Permissions**: read-only
95
- **Triggers**: When user asks for research or technical information
96
-
97
- **Instructions**:
98
- - Provide accurate, up-to-date information
99
- - Cite sources and provide links
100
- - Compare different approaches/options
101
- - Consider project context and constraints
102
- - Suggest practical implementations
103
-
104
- ## Mobile UI/UX Agent
105
-
106
- **Name**: mobile-ui-specialist
107
- **Description**: Specialized agent for creating professional, mobile-optimized UI/UX that eliminates layout inconsistencies, card height issues, text overflow problems, and responsive design flaws
108
- **Tools**:
109
- - file-read
110
- - file-write
111
- - run-terminal (for design tools)
112
- - web-search (for design research)
113
-
114
- **Permissions**: write
115
- **Triggers**: When user asks for mobile UI, responsive design, card layouts, or mentions UI/UX issues
116
-
117
- **Instructions**:
118
- - Use the mobile-ui-ux-master skill for all mobile UI work
119
- - Enforce equal card heights in horizontal grids
120
- - Prevent text overflow from breaking layouts
121
- - Ensure touch targets meet minimum 44px requirements
122
- - Implement mobile-first responsive design
123
- - Use CSS Grid/Flexbox for consistent layouts
124
- - Apply proper text containment (line-clamp, ellipsis)
125
- - Test designs across multiple screen sizes
126
- - Follow the mobile UX checklist for quality assurance
127
- - Never create amateur-looking mobile interfaces
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
@@ -1,101 +1,128 @@
1
- # Claude Code Global Configuration
1
+ # Claude Code Project Configuration
2
2
 
3
- This file contains global settings, prompts, and preferences for Claude Code in this workspace.
3
+ This project uses the Claude Code Toolkit with integrated agents, skills, and automation.
4
4
 
5
- ## Model Configuration
5
+ ## Agent System
6
6
 
7
- **Default Model**: sonnet
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
- ## Global Prompts
9
+ ### Agent Routing
16
10
 
17
- ### Code Style Guidelines
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
- ### Project Structure
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
- ```
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
- - 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
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
- ## Tool Allowlist
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-read
52
- - file-write
53
- - grep-search
54
- - run-terminal (basic commands)
55
- - git-commands
56
-
57
- ### Require Approval
58
- - run-terminal (network commands, installations)
59
- - web-search (for research tasks)
60
- - shell-execution (for complex scripts)
61
-
62
- ### Never Allowed
63
- - rm/delete commands without confirmation
64
- - Production database modifications
65
- - Network requests to external APIs without review
66
-
67
- ## Context Management
68
-
69
- ### File References
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
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