ccsetup 1.0.5 → 1.0.7
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 +251 -16
- package/bin/create-project.js +1042 -25
- package/package.json +25 -6
- package/template/.claude/README.md +24 -0
- package/template/.claude/agents/README.md +44 -0
- package/template/CLAUDE.md +21 -2
- package/template/agents/backend.md +80 -0
- package/template/docs/agent-orchestration.md +152 -0
package/README.md
CHANGED
|
@@ -1,22 +1,74 @@
|
|
|
1
1
|
# ccsetup
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/ccsetup)
|
|
4
|
+
[](https://github.com/marcia-ong/ccsetup/pulls)
|
|
5
|
+
[](https://opensource.org/licenses/MIT)
|
|
6
|
+
[](https://www.npmjs.com/package/ccsetup)
|
|
7
|
+
|
|
3
8
|
Quick setup for Claude Code projects with built-in agents, ticket system, and planning tools.
|
|
4
9
|
|
|
5
10
|
## Installation
|
|
6
11
|
|
|
7
12
|
```bash
|
|
13
|
+
# Create a new project
|
|
8
14
|
npx ccsetup my-project
|
|
9
|
-
|
|
10
|
-
|
|
15
|
+
|
|
16
|
+
# Setup in current directory
|
|
17
|
+
npx ccsetup .
|
|
18
|
+
|
|
19
|
+
# Install globally (optional)
|
|
20
|
+
npm install -g ccsetup
|
|
21
|
+
ccsetup my-project
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Command Line Options
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
ccsetup [project-name] [options]
|
|
28
|
+
|
|
29
|
+
Options:
|
|
30
|
+
--force, -f Skip all prompts and overwrite existing files
|
|
31
|
+
--dry-run, -d Show what would be done without making changes
|
|
32
|
+
--agents Interactive agent selection mode
|
|
33
|
+
--all-agents Include all agents without prompting
|
|
34
|
+
--no-agents Skip agent selection entirely
|
|
35
|
+
--help, -h Show help message
|
|
36
|
+
|
|
37
|
+
Examples:
|
|
38
|
+
ccsetup # Create in current directory
|
|
39
|
+
ccsetup my-project # Create in new directory
|
|
40
|
+
ccsetup . --force # Overwrite files in current directory
|
|
41
|
+
ccsetup my-app --dry-run # Preview changes without creating files
|
|
42
|
+
ccsetup --agents # Interactive agent selection only
|
|
43
|
+
ccsetup my-app --all-agents # Include all agents automatically
|
|
11
44
|
```
|
|
12
45
|
|
|
13
46
|
## What's Included
|
|
14
47
|
|
|
48
|
+
The boilerplate template creates:
|
|
15
49
|
- **CLAUDE.md** - Project instructions for Claude
|
|
16
50
|
- **agents/** - Specialized AI agents (planner, coder, checker, etc.)
|
|
17
51
|
- **tickets/** - Task tracking system
|
|
18
52
|
- **plans/** - Project planning documents
|
|
19
|
-
- **docs/** - Documentation with ROADMAP.md
|
|
53
|
+
- **docs/** - Documentation with ROADMAP.md and agent-orchestration.md
|
|
54
|
+
- **.claude/** - Claude Code specific directory structure (created automatically)
|
|
55
|
+
|
|
56
|
+
## Key Features
|
|
57
|
+
|
|
58
|
+
- 🎯 **Interactive Agent Selection** - Choose which agents to include during setup
|
|
59
|
+
- 🔄 **Agent Orchestration Workflows** - Pre-defined workflows that automatically coordinate multiple agents for complex tasks
|
|
60
|
+
- 🔒 **Smart Conflict Resolution** - Handle existing files with skip/rename/overwrite options
|
|
61
|
+
- 📁 **.claude Directory Support** - Automatic creation of Claude Code directory structure
|
|
62
|
+
- 🏃 **Dry Run Mode** - Preview changes before applying them
|
|
63
|
+
- ⚡ **Force Mode** - Skip all prompts for automated workflows
|
|
64
|
+
- 🎨 **Standalone Agent Preview** - Explore available agents without setup
|
|
65
|
+
- 🎭 **Systematic Task Execution** - Agents work in sequence, building on each other's outputs
|
|
66
|
+
|
|
67
|
+
## Project Structure
|
|
68
|
+
|
|
69
|
+
- **templates/** - The boilerplate templates that will be copied to user's project
|
|
70
|
+
- **bin/** - CLI executable for ccsetup
|
|
71
|
+
- **agents/**, **docs/**, **plans/**, **tickets/** - Working files for ccsetup development (not part of the template)
|
|
20
72
|
|
|
21
73
|
## Usage
|
|
22
74
|
|
|
@@ -32,6 +84,17 @@ npx ccsetup . # in current directory
|
|
|
32
84
|
|
|
33
85
|
4. Start creating tickets in `tickets/` directory
|
|
34
86
|
|
|
87
|
+
## Claude Code Integration
|
|
88
|
+
|
|
89
|
+
ccsetup seamlessly integrates with Claude Code:
|
|
90
|
+
|
|
91
|
+
- **Automatic Detection** - Checks if Claude Code is initialized in your project
|
|
92
|
+
- **.claude Directory** - Creates Claude Code directory structure automatically
|
|
93
|
+
- **Agent Installation** - Copies agents to `.claude/agents/` for native Claude Code support
|
|
94
|
+
- **Smart Initialization** - Offers to create `.claude` directory if Claude Code isn't detected
|
|
95
|
+
|
|
96
|
+
When running in the current directory (`npx ccsetup .`), it will check for Claude Code and provide instructions if not found. For new projects, ccsetup will remind you to initialize Claude Code after setup.
|
|
97
|
+
|
|
35
98
|
## Using Agents
|
|
36
99
|
|
|
37
100
|
The boilerplate includes several specialized agents in the `agents/` directory:
|
|
@@ -42,24 +105,176 @@ The boilerplate includes several specialized agents in the `agents/` directory:
|
|
|
42
105
|
- **researcher.md** - Research and information gathering
|
|
43
106
|
- **blockchain.md** - Web3 and smart contract development
|
|
44
107
|
- **frontend.md** - UI/UX and frontend development
|
|
108
|
+
- **backend.md** - API design and server-side development
|
|
45
109
|
- **shadcn.md** - shadcn/ui component development
|
|
46
110
|
|
|
47
|
-
###
|
|
111
|
+
### Interactive Agent Selection
|
|
48
112
|
|
|
49
|
-
|
|
113
|
+
During setup, ccsetup will prompt you to select which agents to include:
|
|
50
114
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
115
|
+
```bash
|
|
116
|
+
🤖 Select agents to include in your Claude Code project
|
|
117
|
+
|
|
118
|
+
Use arrow keys to navigate, space to select/deselect, 'a' to toggle all
|
|
119
|
+
|
|
120
|
+
Choose your agents:
|
|
121
|
+
◯ backend - Backend development specialist for API design and server optimization
|
|
122
|
+
◯ blockchain - Web3 and smart contract development expert
|
|
123
|
+
◯ checker - Quality assurance and code review specialist
|
|
124
|
+
◯ coder - Expert software developer for implementation
|
|
125
|
+
◯ frontend - Frontend development specialist for UI/UX
|
|
126
|
+
◯ planner - Strategic planning specialist for complex problems
|
|
127
|
+
◯ researcher - Research specialist for documentation and code analysis
|
|
128
|
+
◯ shadcn - shadcn/ui component library expert
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
You can also use flags to control agent selection:
|
|
132
|
+
- `--all-agents` - Include all available agents
|
|
133
|
+
- `--no-agents` - Skip agent selection entirely
|
|
134
|
+
- `--agents` - Preview available agents without creating a project
|
|
54
135
|
|
|
55
136
|
Example:
|
|
56
137
|
```bash
|
|
57
|
-
#
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
#
|
|
138
|
+
# Include all agents without prompting
|
|
139
|
+
npx ccsetup my-project --all-agents
|
|
140
|
+
|
|
141
|
+
# Create project without any agents
|
|
142
|
+
npx ccsetup my-project --no-agents
|
|
143
|
+
|
|
144
|
+
# Preview available agents only
|
|
145
|
+
npx ccsetup --agents
|
|
61
146
|
```
|
|
62
147
|
|
|
148
|
+
### Conflict Resolution
|
|
149
|
+
|
|
150
|
+
When existing files are detected, ccsetup offers smart conflict resolution:
|
|
151
|
+
|
|
152
|
+
```bash
|
|
153
|
+
⚠️ File conflicts detected. You will be asked how to handle each category.
|
|
154
|
+
|
|
155
|
+
📄 CLAUDE.md conflicts:
|
|
156
|
+
- CLAUDE.md
|
|
157
|
+
|
|
158
|
+
Conflict resolution options:
|
|
159
|
+
1) skip (s) - Keep your existing files
|
|
160
|
+
2) rename (r) - Save template files with -ccsetup suffix
|
|
161
|
+
3) overwrite (o) - Replace with template versions
|
|
162
|
+
|
|
163
|
+
Your choice for CLAUDE.md [s/r/o]:
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
Categories are handled separately:
|
|
167
|
+
- **CLAUDE.md** - Project instructions (warns before overwriting)
|
|
168
|
+
- **Agents** - AI agent files
|
|
169
|
+
- **Documentation** - docs/ folder files
|
|
170
|
+
- **Plans** - plans/ folder files
|
|
171
|
+
- **Tickets** - tickets/ folder files
|
|
172
|
+
|
|
173
|
+
## Agent Orchestration Showcase
|
|
174
|
+
|
|
175
|
+
The template includes powerful agent orchestration workflows that guide Claude through complex tasks systematically. Here are real-world examples:
|
|
176
|
+
|
|
177
|
+
### 🚀 Feature Development Example
|
|
178
|
+
|
|
179
|
+
**Scenario**: Building a user authentication system
|
|
180
|
+
|
|
181
|
+
```bash
|
|
182
|
+
# In Claude Code, you would say:
|
|
183
|
+
"I need to add user authentication to my app. Use the feature development workflow to guide me through this."
|
|
184
|
+
|
|
185
|
+
# Claude will automatically orchestrate:
|
|
186
|
+
1. Researcher Agent → Analyzes existing codebase, identifies auth patterns
|
|
187
|
+
2. Planner Agent → Creates detailed implementation plan with JWT, sessions, etc.
|
|
188
|
+
3. Coder Agent → Implements auth endpoints, middleware, and UI components
|
|
189
|
+
4. Checker Agent → Tests security, validates implementation, checks edge cases
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
### 🐛 Bug Fix Example
|
|
193
|
+
|
|
194
|
+
**Scenario**: Users report login failures after 5 minutes
|
|
195
|
+
|
|
196
|
+
```bash
|
|
197
|
+
# You tell Claude:
|
|
198
|
+
"Users are getting logged out after 5 minutes. Use the bug fix workflow to investigate and fix this."
|
|
199
|
+
|
|
200
|
+
# Claude orchestrates:
|
|
201
|
+
1. Researcher Agent → Investigates session handling, token expiry, logs
|
|
202
|
+
2. Coder Agent → Fixes token refresh logic, updates session timeout
|
|
203
|
+
3. Checker Agent → Verifies fix, tests edge cases, ensures no regressions
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
### 🏗️ API Development Example
|
|
207
|
+
|
|
208
|
+
**Scenario**: Building a REST API for a blog platform
|
|
209
|
+
|
|
210
|
+
```bash
|
|
211
|
+
# You request:
|
|
212
|
+
"Help me build a complete REST API for blog posts with CRUD operations. Follow the API development workflow."
|
|
213
|
+
|
|
214
|
+
# Claude coordinates:
|
|
215
|
+
1. Planner Agent → Designs RESTful endpoints, database schema, auth strategy
|
|
216
|
+
2. Backend Agent → Implements controllers, models, middleware, validation
|
|
217
|
+
3. Frontend Agent → Creates API client, integration examples (if needed)
|
|
218
|
+
4. Checker Agent → Tests all endpoints, validates OpenAPI spec, security audit
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
### 🎨 UI Component Example
|
|
222
|
+
|
|
223
|
+
**Scenario**: Creating a responsive dashboard with shadcn/ui
|
|
224
|
+
|
|
225
|
+
```bash
|
|
226
|
+
# You ask:
|
|
227
|
+
"Create a dashboard with charts and stats cards using shadcn. Use the UI component workflow."
|
|
228
|
+
|
|
229
|
+
# Claude executes:
|
|
230
|
+
1. Frontend Agent → Designs component structure, responsive layout
|
|
231
|
+
2. Shadcn Agent → Implements with shadcn/ui components, themes, animations
|
|
232
|
+
3. Checker Agent → Tests responsiveness, accessibility, performance
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
### 🔍 Quality Assurance Example
|
|
236
|
+
|
|
237
|
+
**Scenario**: Comprehensive review before deployment
|
|
238
|
+
|
|
239
|
+
```bash
|
|
240
|
+
# You request:
|
|
241
|
+
"Run full QA on the authentication feature we just built."
|
|
242
|
+
|
|
243
|
+
# Claude performs:
|
|
244
|
+
1. Researcher Agent → Analyzes all changes, identifies test requirements
|
|
245
|
+
2. Checker Agent → Runs security scans, performance tests, accessibility checks
|
|
246
|
+
3. Coder Agent → Fixes any issues found
|
|
247
|
+
4. Checker Agent → Final validation, generates QA report
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
### 💡 How to Use Agent Orchestration
|
|
251
|
+
|
|
252
|
+
1. **Read the orchestration guide**:
|
|
253
|
+
```
|
|
254
|
+
"Read docs/agent-orchestration.md to understand available workflows"
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
2. **Choose your workflow**:
|
|
258
|
+
- Feature Development: Complex new features
|
|
259
|
+
- Bug Fix: Investigating and fixing issues
|
|
260
|
+
- Refactoring: Improving code quality
|
|
261
|
+
- API Development: Building APIs
|
|
262
|
+
- UI Components: Frontend development
|
|
263
|
+
- Blockchain: Web3 features
|
|
264
|
+
- QA: Quality assurance
|
|
265
|
+
|
|
266
|
+
3. **Let Claude guide you**:
|
|
267
|
+
```
|
|
268
|
+
"I need to [your task]. Which workflow should we use?"
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
4. **Follow the flow**:
|
|
272
|
+
- Claude will automatically use agents in the correct sequence
|
|
273
|
+
- Each agent builds on the previous one's work
|
|
274
|
+
- You get systematic, thorough results
|
|
275
|
+
|
|
276
|
+
The orchestration ensures nothing is missed and follows best practices automatically!
|
|
277
|
+
|
|
63
278
|
## Getting Started with Claude Code
|
|
64
279
|
|
|
65
280
|
After setting up your project with `ccsetup`:
|
|
@@ -96,10 +311,30 @@ After setting up your project with `ccsetup`:
|
|
|
96
311
|
|
|
97
312
|
## Features
|
|
98
313
|
|
|
99
|
-
|
|
100
|
-
-
|
|
101
|
-
-
|
|
102
|
-
-
|
|
314
|
+
### Core Features
|
|
315
|
+
- ✅ Pre-configured project structure for Claude Code
|
|
316
|
+
- 🤖 Multiple specialized agents for different tasks
|
|
317
|
+
- 🎫 Built-in ticket and planning system
|
|
318
|
+
- 📋 Ready-to-use boilerplate with best practices
|
|
319
|
+
- 📁 Automatic .claude directory integration
|
|
320
|
+
|
|
321
|
+
### CLI Features
|
|
322
|
+
- 🎯 Interactive agent selection with descriptions
|
|
323
|
+
- 🔄 Smart conflict resolution (skip/rename/overwrite)
|
|
324
|
+
- 👀 Dry-run mode to preview changes
|
|
325
|
+
- ⚡ Force mode for CI/CD pipelines
|
|
326
|
+
- 🎨 Standalone agent preview mode
|
|
327
|
+
- 🛡️ Security validations for file operations
|
|
328
|
+
|
|
329
|
+
### Agent Orchestration
|
|
330
|
+
The template includes `docs/agent-orchestration.md` which defines workflows for:
|
|
331
|
+
- **Feature Development** - Researcher → Planner → Coder → Checker
|
|
332
|
+
- **Bug Fixes** - Researcher → Coder → Checker
|
|
333
|
+
- **Refactoring** - Researcher → Planner → Coder → Checker
|
|
334
|
+
- **API Development** - Planner → Backend → Frontend → Checker
|
|
335
|
+
- **UI Components** - Frontend → Shadcn → Checker
|
|
336
|
+
- **Blockchain** - Planner → Blockchain → Checker
|
|
337
|
+
- **Quality Assurance** - Researcher → Checker → Coder → Checker
|
|
103
338
|
|
|
104
339
|
## Credits
|
|
105
340
|
|