ccsetup 1.1.1 → 1.2.0
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 +96 -363
- package/bin/create-project.js +1616 -60
- package/bin/lib/claudeInterface.js +209 -0
- package/bin/lib/contextGenerator.js +287 -0
- package/bin/lib/scanner/index.js +28 -0
- package/bin/scan.js +367 -0
- package/lib/aiAgentSelector.js +155 -0
- package/lib/aiMergeHelper.js +112 -0
- package/lib/contextGenerator.js +574 -0
- package/lib/contextMerger.js +812 -0
- package/lib/progressReporter.js +88 -0
- package/lib/scanConfig.js +200 -0
- package/lib/scanner/fileAnalyzer.js +605 -0
- package/lib/scanner/index.js +164 -0
- package/lib/scanner/patterns.js +277 -0
- package/lib/scanner/projectDetector.js +147 -0
- package/lib/templates/README.md +176 -0
- package/lib/templates/catalog.js +230 -0
- package/lib/templates/filter.js +257 -0
- package/lib/templates/index.js +45 -0
- package/lib/templates/metadata/agents.json +413 -0
- package/lib/templates/metadata-extractor.js +329 -0
- package/lib/templates/search.js +356 -0
- package/package.json +11 -4
- package/template/{agents → .claude/agents}/checker.md +29 -0
- package/template/.claude/settings.json +15 -0
- package/template/.claude/skills/prd/SKILL.md +343 -0
- package/template/.claude/skills/ralph/SKILL.md +339 -0
- package/template/CLAUDE.md +39 -21
- package/template/CONTRIBUTING.md +37 -0
- package/template/agents/README.md +15 -171
- package/template/docs/ROADMAP.md +0 -36
- package/template/docs/agent-orchestration.md +24 -141
- package/template/hooks/workflow-selector/index.js +398 -0
- package/template/scripts/ralph/CLAUDE.md +174 -0
- package/template/scripts/ralph/ralph.sh +127 -0
- package/template/tickets/ticket-list.md +17 -68
- package/template/agents/ai-engineer.md +0 -31
- package/template/agents/api-documenter.md +0 -31
- package/template/agents/architect-review.md +0 -42
- package/template/agents/backend-architect.md +0 -29
- package/template/agents/business-analyst.md +0 -34
- package/template/agents/c-pro.md +0 -34
- package/template/agents/cloud-architect.md +0 -31
- package/template/agents/code-reviewer.md +0 -28
- package/template/agents/content-marketer.md +0 -34
- package/template/agents/context-manager.md +0 -63
- package/template/agents/cpp-pro.md +0 -37
- package/template/agents/customer-support.md +0 -34
- package/template/agents/data-engineer.md +0 -31
- package/template/agents/data-scientist.md +0 -28
- package/template/agents/database-admin.md +0 -31
- package/template/agents/database-optimizer.md +0 -31
- package/template/agents/debugger.md +0 -29
- package/template/agents/deployment-engineer.md +0 -31
- package/template/agents/devops-troubleshooter.md +0 -31
- package/template/agents/dx-optimizer.md +0 -62
- package/template/agents/error-detective.md +0 -31
- package/template/agents/frontend-developer.md +0 -30
- package/template/agents/golang-pro.md +0 -31
- package/template/agents/graphql-architect.md +0 -31
- package/template/agents/incident-responder.md +0 -73
- package/template/agents/javascript-pro.md +0 -34
- package/template/agents/legacy-modernizer.md +0 -31
- package/template/agents/ml-engineer.md +0 -31
- package/template/agents/mlops-engineer.md +0 -56
- package/template/agents/mobile-developer.md +0 -31
- package/template/agents/network-engineer.md +0 -31
- package/template/agents/payment-integration.md +0 -31
- package/template/agents/performance-engineer.md +0 -31
- package/template/agents/prompt-engineer.md +0 -58
- package/template/agents/python-pro.md +0 -31
- package/template/agents/quant-analyst.md +0 -31
- package/template/agents/risk-manager.md +0 -40
- package/template/agents/rust-pro.md +0 -34
- package/template/agents/sales-automator.md +0 -34
- package/template/agents/search-specialist.md +0 -58
- package/template/agents/security-auditor.md +0 -31
- package/template/agents/sql-pro.md +0 -34
- package/template/agents/terraform-specialist.md +0 -34
- package/template/agents/test-automator.md +0 -31
- /package/template/{agents → .claude/agents}/backend.md +0 -0
- /package/template/{agents → .claude/agents}/blockchain.md +0 -0
- /package/template/{agents → .claude/agents}/coder.md +0 -0
- /package/template/{agents → .claude/agents}/frontend.md +0 -0
- /package/template/{agents → .claude/agents}/planner.md +0 -0
- /package/template/{agents → .claude/agents}/researcher.md +0 -0
- /package/template/{agents → .claude/agents}/shadcn.md +0 -0
package/README.md
CHANGED
|
@@ -1,434 +1,167 @@
|
|
|
1
1
|
# ccsetup
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/ccsetup)
|
|
4
|
-
[](https://github.com/marcia-ong/ccsetup/pulls)
|
|
5
4
|
[](https://opensource.org/licenses/MIT)
|
|
6
|
-
[](https://www.npmjs.com/package/ccsetup)
|
|
7
5
|
|
|
8
|
-
|
|
6
|
+
One-command setup for Claude Code projects. Creates a ready-to-use project structure with 8 core agents, orchestration workflows, ticket system, and planning tools.
|
|
9
7
|
|
|
10
|
-
##
|
|
8
|
+
## Quick Start
|
|
11
9
|
|
|
12
10
|
```bash
|
|
13
|
-
#
|
|
11
|
+
# Interactive mode
|
|
12
|
+
npx ccsetup
|
|
13
|
+
|
|
14
|
+
# Create new project
|
|
14
15
|
npx ccsetup my-project
|
|
15
16
|
|
|
16
17
|
# Setup in current directory
|
|
17
18
|
npx ccsetup .
|
|
18
|
-
|
|
19
|
-
# Install globally (optional)
|
|
20
|
-
npm install -g ccsetup
|
|
21
|
-
ccsetup my-project
|
|
22
19
|
```
|
|
23
20
|
|
|
24
|
-
##
|
|
21
|
+
## What You Get
|
|
25
22
|
|
|
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
|
-
--browse-agents Copy all agents to /agents folder for browsing
|
|
36
|
-
--help, -h Show help message
|
|
37
|
-
|
|
38
|
-
Examples:
|
|
39
|
-
ccsetup # Create in current directory
|
|
40
|
-
ccsetup my-project # Create in new directory
|
|
41
|
-
ccsetup . --force # Overwrite files in current directory
|
|
42
|
-
ccsetup my-app --dry-run # Preview changes without creating files
|
|
43
|
-
ccsetup --agents # Interactive agent selection only
|
|
44
|
-
ccsetup my-app --all-agents # Include all agents automatically
|
|
45
|
-
ccsetup --browse-agents # Copy all agents for manual selection
|
|
46
23
|
```
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
- 🔄 **Agent Orchestration Workflows** - Pre-defined workflows that automatically coordinate multiple agents for complex tasks
|
|
65
|
-
- 🔒 **Smart Conflict Resolution** - Handle existing files with skip/rename/overwrite options
|
|
66
|
-
- 📁 **.claude Directory Support** - Automatic creation of Claude Code directory structure
|
|
67
|
-
- 🏃 **Dry Run Mode** - Preview changes before applying them
|
|
68
|
-
- ⚡ **Force Mode** - Skip all prompts for automated workflows
|
|
69
|
-
- 🎨 **Standalone Agent Preview** - Explore available agents without setup
|
|
70
|
-
- 🎭 **Systematic Task Execution** - Agents work in sequence, building on each other's outputs
|
|
71
|
-
|
|
72
|
-
## Project Structure
|
|
73
|
-
|
|
74
|
-
- **templates/** - The boilerplate templates that will be copied to user's project
|
|
75
|
-
- **bin/** - CLI executable for ccsetup
|
|
76
|
-
- **agents/**, **docs/**, **plans/**, **tickets/** - Working files for ccsetup development (not part of the template)
|
|
77
|
-
|
|
78
|
-
## Usage
|
|
79
|
-
|
|
80
|
-
1. Create a new project:
|
|
81
|
-
|
|
82
|
-
```bash
|
|
83
|
-
npx ccsetup my-awesome-project
|
|
84
|
-
cd my-awesome-project
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
2. Edit `CLAUDE.md` with your project-specific instructions
|
|
88
|
-
|
|
89
|
-
3. Update `docs/ROADMAP.md` with your project goals
|
|
90
|
-
|
|
91
|
-
4. Start creating tickets in `tickets/` directory
|
|
92
|
-
|
|
93
|
-
## Claude Code Integration
|
|
94
|
-
|
|
95
|
-
ccsetup seamlessly integrates with Claude Code:
|
|
96
|
-
|
|
97
|
-
- **Automatic Detection** - Checks if Claude Code is initialized in your project
|
|
98
|
-
- **.claude Directory** - Creates Claude Code directory structure automatically
|
|
99
|
-
- **Agent Installation** - Copies agents to `.claude/agents/` for native Claude Code support
|
|
100
|
-
- **Smart Initialization** - Offers to create `.claude` directory if Claude Code isn't detected
|
|
101
|
-
|
|
102
|
-
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.
|
|
103
|
-
|
|
104
|
-
## Using Agents
|
|
105
|
-
|
|
106
|
-
The boilerplate includes 50+ specialized agents covering all aspects of development:
|
|
107
|
-
|
|
108
|
-
### Core Development Agents
|
|
109
|
-
|
|
110
|
-
- **planner.md** - Strategic planning and task breakdown
|
|
111
|
-
- **coder.md** - Implementation and development
|
|
112
|
-
- **checker.md** - Testing and quality assurance
|
|
113
|
-
- **researcher.md** - Research and information gathering
|
|
114
|
-
|
|
115
|
-
### Language Specialists
|
|
116
|
-
|
|
117
|
-
- **python-pro.md**, **golang-pro.md**, **rust-pro.md**, **javascript-pro.md**, **c-pro.md**, **cpp-pro.md**, **sql-pro.md**
|
|
118
|
-
|
|
119
|
-
### Infrastructure & Operations
|
|
120
|
-
|
|
121
|
-
- **devops-troubleshooter.md**, **cloud-architect.md**, **terraform-specialist.md**, **database-admin.md**, **network-engineer.md**
|
|
122
|
-
|
|
123
|
-
### Quality & Security
|
|
124
|
-
|
|
125
|
-
- **code-reviewer.md**, **security-auditor.md**, **test-automator.md**, **performance-engineer.md**
|
|
126
|
-
|
|
127
|
-
### And Many More!
|
|
128
|
-
|
|
129
|
-
Over 50 specialized agents for frontend, backend, blockchain, ML/AI, business analysis, and more!
|
|
130
|
-
|
|
131
|
-
📖 **[View all agents with detailed descriptions →](https://github.com/MrMarciaOng/ccsetup/blob/main/template/agents/README.md)**
|
|
132
|
-
|
|
133
|
-
### Interactive Agent Selection
|
|
134
|
-
|
|
135
|
-
During setup, ccsetup will prompt you to either:
|
|
136
|
-
|
|
137
|
-
1. **Browse Mode** - Get all 50+ agents to explore later
|
|
138
|
-
2. **Select Specific Agents** - Choose from curated list
|
|
139
|
-
|
|
140
|
-
```bash
|
|
141
|
-
🤖 How would you like to set up agents for your Claude Code project?
|
|
142
|
-
|
|
143
|
-
Use arrow keys to navigate, Enter to select
|
|
144
|
-
|
|
145
|
-
> Browse Mode - Copy all 50+ agents to /agents folder (explore later)
|
|
146
|
-
Select Agents - Choose specific agents to include now
|
|
147
|
-
Skip - Don't include any agents
|
|
148
|
-
|
|
149
|
-
# If you choose "Select Agents":
|
|
150
|
-
🤖 Select agents to include in your Claude Code project
|
|
151
|
-
|
|
152
|
-
Use arrow keys to navigate, space to select/deselect, 'a' to toggle all
|
|
153
|
-
|
|
154
|
-
Choose your agents:
|
|
155
|
-
◯ backend - Backend development specialist for API design and server optimization
|
|
156
|
-
◯ blockchain - Web3 and smart contract development expert
|
|
157
|
-
◯ checker - Quality assurance and code review specialist
|
|
158
|
-
◯ coder - Expert software developer for implementation
|
|
159
|
-
◯ frontend - Frontend development specialist for UI/UX
|
|
160
|
-
◯ planner - Strategic planning specialist for complex problems
|
|
161
|
-
◯ researcher - Research specialist for documentation and code analysis
|
|
162
|
-
◯ shadcn - shadcn/ui component library expert
|
|
24
|
+
my-project/
|
|
25
|
+
├── CLAUDE.md # Project instructions for Claude
|
|
26
|
+
├── CONTRIBUTING.md # Contribution guidelines
|
|
27
|
+
├── GEMINI.md # Gemini setup (optional)
|
|
28
|
+
├── .claude/
|
|
29
|
+
│ ├── agents/ # 8 core agents
|
|
30
|
+
│ ├── skills/ # /prd and /ralph slash commands
|
|
31
|
+
│ └── settings.json
|
|
32
|
+
├── agents/
|
|
33
|
+
│ └── README.md # Agent documentation
|
|
34
|
+
├── scripts/
|
|
35
|
+
│ └── ralph/ # Autonomous agent loop
|
|
36
|
+
├── docs/
|
|
37
|
+
│ ├── ROADMAP.md # Development roadmap
|
|
38
|
+
│ └── agent-orchestration.md
|
|
39
|
+
├── tickets/ # Task tracking
|
|
40
|
+
└── plans/ # Planning documents
|
|
163
41
|
```
|
|
164
42
|
|
|
165
|
-
|
|
43
|
+
### Core Agents
|
|
166
44
|
|
|
167
|
-
|
|
168
|
-
- `--no-agents` - Skip agent selection entirely
|
|
169
|
-
- `--agents` - Preview available agents without creating a project
|
|
45
|
+
backend, blockchain, checker, coder, frontend, planner, researcher, shadcn
|
|
170
46
|
|
|
171
|
-
|
|
47
|
+
### Skills (Slash Commands)
|
|
172
48
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
npx ccsetup my-project --all-agents
|
|
49
|
+
- **/prd** — Scans your codebase (tech stack, quality gates, architecture), then generates a structured PRD with real file paths and auto-detected quality criteria
|
|
50
|
+
- **/ralph** — Converts a PRD into `prd.json` format for autonomous execution, with exact quality check commands and file hints per story
|
|
176
51
|
|
|
177
|
-
|
|
178
|
-
npx ccsetup my-project --no-agents
|
|
179
|
-
|
|
180
|
-
# Preview available agents only
|
|
181
|
-
npx ccsetup --agents
|
|
182
|
-
```
|
|
183
|
-
|
|
184
|
-
### Browse Mode - New Feature! 📚
|
|
185
|
-
|
|
186
|
-
With 50+ specialized agents available, browse mode lets you explore all agents at your leisure:
|
|
52
|
+
## Key Options
|
|
187
53
|
|
|
188
54
|
```bash
|
|
189
|
-
|
|
190
|
-
npx ccsetup my-project --
|
|
55
|
+
npx ccsetup my-project --agents # Interactive agent selection
|
|
56
|
+
npx ccsetup my-project --all-agents # Include all agents
|
|
57
|
+
npx ccsetup my-project --no-agents # Skip agent selection entirely
|
|
58
|
+
npx ccsetup . --scan-context # Scan existing project for context
|
|
59
|
+
npx ccsetup --scan-only # Only scan and update CLAUDE.md
|
|
60
|
+
npx ccsetup my-project --dry-run # Preview without creating files
|
|
61
|
+
npx ccsetup my-project --force # Skip prompts, overwrite existing
|
|
62
|
+
npx ccsetup my-project --browse # Enhanced template browsing UI
|
|
63
|
+
npx ccsetup --install-hooks # Install workflow selection hooks (advanced)
|
|
191
64
|
```
|
|
192
65
|
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
- All 50+ agents are copied to your project's `/agents` folder
|
|
196
|
-
- You can read through each agent to understand their capabilities
|
|
197
|
-
- Manually copy the ones you want to `~/.claude/agents` when ready
|
|
198
|
-
- No overwhelming selection process during setup!
|
|
66
|
+
### Repository Scanning
|
|
199
67
|
|
|
200
|
-
|
|
68
|
+
Scan existing projects to auto-generate CLAUDE.md context:
|
|
201
69
|
|
|
202
70
|
```bash
|
|
203
|
-
#
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
# 2. Explore agents
|
|
207
|
-
cd my-project/agents
|
|
208
|
-
ls # See all available agents
|
|
209
|
-
|
|
210
|
-
# 3. Read agent descriptions
|
|
211
|
-
cat code-reviewer.md
|
|
212
|
-
|
|
213
|
-
# 4. Copy desired agents to activate them
|
|
214
|
-
cp code-reviewer.md ~/.claude/agents/
|
|
215
|
-
cp python-pro.md ~/.claude/agents/
|
|
71
|
+
ccsetup scan # Scan current directory
|
|
72
|
+
ccsetup scan --update # Update existing CLAUDE.md
|
|
73
|
+
ccsetup scan --update --merge-strategy replace # Replace CLAUDE.md entirely
|
|
216
74
|
```
|
|
217
75
|
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
- Want to explore all available agents
|
|
221
|
-
- Prefer to choose agents based on your project needs as they arise
|
|
222
|
-
- Don't want to be overwhelmed with 50+ choices during setup
|
|
223
|
-
|
|
224
|
-
### Conflict Resolution
|
|
225
|
-
|
|
226
|
-
When existing files are detected, ccsetup offers smart conflict resolution:
|
|
76
|
+
Detects languages, frameworks, project structure, and commands from package.json/Makefile/Docker Compose.
|
|
227
77
|
|
|
228
|
-
|
|
229
|
-
⚠️ File conflicts detected. You will be asked how to handle each category.
|
|
230
|
-
|
|
231
|
-
📄 CLAUDE.md conflicts:
|
|
232
|
-
- CLAUDE.md
|
|
233
|
-
|
|
234
|
-
Conflict resolution options:
|
|
235
|
-
1) skip (s) - Keep your existing files
|
|
236
|
-
2) rename (r) - Save template files with -ccsetup suffix
|
|
237
|
-
3) overwrite (o) - Replace with template versions
|
|
78
|
+
## Agent Workflows
|
|
238
79
|
|
|
239
|
-
|
|
240
|
-
```
|
|
241
|
-
|
|
242
|
-
Categories are handled separately:
|
|
80
|
+
Pre-configured multi-agent workflows:
|
|
243
81
|
|
|
244
|
-
- **
|
|
245
|
-
- **
|
|
246
|
-
- **
|
|
247
|
-
- **
|
|
248
|
-
- **Tickets** - tickets/ folder files
|
|
82
|
+
- **Feature Development**: Researcher → Planner → Coder → Checker
|
|
83
|
+
- **Bug Fix**: Researcher → Coder → Checker
|
|
84
|
+
- **API Development**: Planner → Backend → Frontend → Checker
|
|
85
|
+
- **UI Components**: Frontend → Shadcn → Checker
|
|
249
86
|
|
|
250
|
-
|
|
87
|
+
See [docs/agent-orchestration.md](docs/agent-orchestration.md) for details.
|
|
251
88
|
|
|
252
|
-
|
|
89
|
+
### Workflow Selector Hook (Optional)
|
|
253
90
|
|
|
254
|
-
|
|
91
|
+
An optional hook that analyzes your prompts and suggests the best agent workflow for the task. Claude will ask before applying the suggestion.
|
|
255
92
|
|
|
256
|
-
**
|
|
93
|
+
**During setup**, you'll be asked if you want to install it. You can also install it later:
|
|
257
94
|
|
|
258
95
|
```bash
|
|
259
|
-
|
|
260
|
-
"I need to add user authentication to my app. Use the feature development workflow to guide me through this."
|
|
261
|
-
|
|
262
|
-
# Claude will automatically orchestrate:
|
|
263
|
-
1. Researcher Agent → Analyzes existing codebase, identifies auth patterns
|
|
264
|
-
2. Planner Agent → Creates detailed implementation plan with JWT, sessions, etc.
|
|
265
|
-
3. Coder Agent → Implements auth endpoints, middleware, and UI components
|
|
266
|
-
4. Checker Agent → Tests security, validates implementation, checks edge cases
|
|
96
|
+
npx ccsetup --install-hooks
|
|
267
97
|
```
|
|
268
98
|
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
**Scenario**: Users report login failures after 5 minutes
|
|
99
|
+
**To activate**, set the environment variable:
|
|
272
100
|
|
|
273
101
|
```bash
|
|
274
|
-
|
|
275
|
-
"Users are getting logged out after 5 minutes. Use the bug fix workflow to investigate and fix this."
|
|
276
|
-
|
|
277
|
-
# Claude orchestrates:
|
|
278
|
-
1. Researcher Agent → Investigates session handling, token expiry, logs
|
|
279
|
-
2. Coder Agent → Fixes token refresh logic, updates session timeout
|
|
280
|
-
3. Checker Agent → Verifies fix, tests edge cases, ensures no regressions
|
|
102
|
+
export CCSETUP_WORKFLOW=1
|
|
281
103
|
```
|
|
282
104
|
|
|
283
|
-
|
|
105
|
+
When active, the hook suggests workflows like "Feature Development: Researcher → Planner → Coder → Checker" and asks if you'd like to follow it. When the env var is unset, the hook exits silently and Claude uses its default behavior.
|
|
284
106
|
|
|
285
|
-
|
|
107
|
+
## Ralph — Autonomous Agent Loop
|
|
286
108
|
|
|
287
|
-
|
|
288
|
-
# You request:
|
|
289
|
-
"Help me build a complete REST API for blog posts with CRUD operations. Follow the API development workflow."
|
|
290
|
-
|
|
291
|
-
# Claude coordinates:
|
|
292
|
-
1. Planner Agent → Designs RESTful endpoints, database schema, auth strategy
|
|
293
|
-
2. Backend Agent → Implements controllers, models, middleware, validation
|
|
294
|
-
3. Frontend Agent → Creates API client, integration examples (if needed)
|
|
295
|
-
4. Checker Agent → Tests all endpoints, validates OpenAPI spec, security audit
|
|
296
|
-
```
|
|
109
|
+
Ralph is an autonomous coding agent that implements user stories from a PRD one at a time, with built-in subagent verification.
|
|
297
110
|
|
|
298
|
-
###
|
|
111
|
+
### Workflow
|
|
299
112
|
|
|
300
|
-
**
|
|
113
|
+
1. **Create a PRD** — Use `/prd` in Claude Code to generate a codebase-aware PRD
|
|
114
|
+
2. **Convert to Ralph format** — Use `/ralph` to generate `scripts/ralph/prd.json` with quality checks and file hints
|
|
115
|
+
3. **Run Ralph** — Launch the autonomous loop:
|
|
301
116
|
|
|
302
117
|
```bash
|
|
303
|
-
#
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
# Claude executes:
|
|
307
|
-
1. Frontend Agent → Designs component structure, responsive layout
|
|
308
|
-
2. Shadcn Agent → Implements with shadcn/ui components, themes, animations
|
|
309
|
-
3. Checker Agent → Tests responsiveness, accessibility, performance
|
|
310
|
-
```
|
|
118
|
+
# Default: 10 iterations using amp
|
|
119
|
+
./scripts/ralph/ralph.sh
|
|
311
120
|
|
|
312
|
-
|
|
121
|
+
# Use Claude Code instead of amp
|
|
122
|
+
./scripts/ralph/ralph.sh --tool claude
|
|
313
123
|
|
|
314
|
-
|
|
124
|
+
# Specify model and max iterations
|
|
125
|
+
./scripts/ralph/ralph.sh --tool claude --model opus 20
|
|
315
126
|
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
"Run full QA on the authentication feature we just built."
|
|
319
|
-
|
|
320
|
-
# Claude performs:
|
|
321
|
-
1. Researcher Agent → Analyzes all changes, identifies test requirements
|
|
322
|
-
2. Checker Agent → Runs security scans, performance tests, accessibility checks
|
|
323
|
-
3. Coder Agent → Fixes any issues found
|
|
324
|
-
4. Checker Agent → Final validation, generates QA report
|
|
127
|
+
# Quick run with sonnet
|
|
128
|
+
./scripts/ralph/ralph.sh --tool claude --model sonnet 5
|
|
325
129
|
```
|
|
326
130
|
|
|
327
|
-
###
|
|
328
|
-
|
|
329
|
-
1. **Read the orchestration guide**:
|
|
330
|
-
|
|
331
|
-
```
|
|
332
|
-
"Read docs/agent-orchestration.md to understand available workflows"
|
|
333
|
-
```
|
|
334
|
-
|
|
335
|
-
2. **Choose your workflow**:
|
|
336
|
-
|
|
337
|
-
- Feature Development: Complex new features
|
|
338
|
-
- Bug Fix: Investigating and fixing issues
|
|
339
|
-
- Refactoring: Improving code quality
|
|
340
|
-
- API Development: Building APIs
|
|
341
|
-
- UI Components: Frontend development
|
|
342
|
-
- Blockchain: Web3 features
|
|
343
|
-
- QA: Quality assurance
|
|
344
|
-
|
|
345
|
-
3. **Let Claude guide you**:
|
|
346
|
-
|
|
347
|
-
```
|
|
348
|
-
"I need to [your task]. Which workflow should we use?"
|
|
349
|
-
```
|
|
350
|
-
|
|
351
|
-
4. **Follow the flow**:
|
|
352
|
-
- Claude will automatically use agents in the correct sequence
|
|
353
|
-
- Each agent builds on the previous one's work
|
|
354
|
-
- You get systematic, thorough results
|
|
355
|
-
|
|
356
|
-
The orchestration ensures nothing is missed and follows best practices automatically!
|
|
357
|
-
|
|
358
|
-
## Getting Started with Claude Code
|
|
359
|
-
|
|
360
|
-
After setting up your project with `ccsetup`:
|
|
361
|
-
|
|
362
|
-
1. **Open Claude Code** in your project directory:
|
|
363
|
-
|
|
364
|
-
```bash
|
|
365
|
-
cd my-awesome-project
|
|
366
|
-
claude
|
|
367
|
-
```
|
|
368
|
-
|
|
369
|
-
2. **Let Claude understand your project** by asking:
|
|
370
|
-
|
|
371
|
-
- "Read the CLAUDE.md file to understand this project"
|
|
372
|
-
- "Check the roadmap in docs/ROADMAP.md"
|
|
373
|
-
- "What agents are available in the agents directory?"
|
|
374
|
-
- "Read the README files in docs, tickets, and plans folders to understand the workflow"
|
|
375
|
-
|
|
376
|
-
3. **Start working** with Claude:
|
|
377
|
-
|
|
378
|
-
- Use the planner agent: "Use the planner agent to help me design a user authentication system"
|
|
379
|
-
- Create tickets: "Create a ticket for implementing user login"
|
|
380
|
-
- Implement features: "Use the coder agent to implement the login functionality"
|
|
381
|
-
- Review code: "Use the checker agent to review the code we just wrote"
|
|
382
|
-
|
|
383
|
-
4. **Important setup steps**:
|
|
384
|
-
|
|
385
|
-
- **Update ROADMAP.md**: Define your project's goals, features, and development phases
|
|
386
|
-
- **Read folder documentation**: Each folder (docs/, tickets/, plans/) has a README explaining its purpose and format
|
|
387
|
-
- **Customize CLAUDE.md**: Add project-specific instructions, commands, and context
|
|
388
|
-
|
|
389
|
-
5. **Workflow tips**:
|
|
390
|
-
- Always start with planning for complex features
|
|
391
|
-
- Create tickets to track progress
|
|
392
|
-
- Use the appropriate agent for each task
|
|
393
|
-
- Keep CLAUDE.md updated with project-specific instructions
|
|
394
|
-
- Follow the workflow defined in docs/ROADMAP.md
|
|
395
|
-
|
|
396
|
-
## Features
|
|
131
|
+
### What happens each iteration
|
|
397
132
|
|
|
398
|
-
|
|
133
|
+
1. Reads `prd.json` and picks the next incomplete story
|
|
134
|
+
2. Reads story `notes` for file hints (pre-populated by `/ralph`)
|
|
135
|
+
3. Implements the story
|
|
136
|
+
4. Runs exact quality check commands from `prd.json` (`qualityChecks` field)
|
|
137
|
+
5. Spawns a **checker subagent** to independently verify the implementation against acceptance criteria
|
|
138
|
+
6. If reviewer approves → commits. If not → fixes and re-verifies (up to 3 cycles)
|
|
139
|
+
7. Updates `prd.json` (`passes: true`) and appends to `progress.txt`
|
|
140
|
+
8. Exits when all stories pass, or after max iterations
|
|
399
141
|
|
|
400
|
-
|
|
401
|
-
- 🤖 50+ specialized agents from the [wshobson/agents](https://github.com/wshobson/agents) collection - [view all →](https://github.com/MrMarciaOng/ccsetup/blob/main/template/agents/README.md)
|
|
402
|
-
- 🎫 Built-in ticket and planning system
|
|
403
|
-
- 📋 Ready-to-use boilerplate with best practices
|
|
404
|
-
- 📁 Automatic .claude directory integration
|
|
142
|
+
### Options
|
|
405
143
|
|
|
406
|
-
|
|
144
|
+
| Flag | Default | Description |
|
|
145
|
+
|------|---------|-------------|
|
|
146
|
+
| `--tool amp\|claude` | `amp` | Which AI tool to use |
|
|
147
|
+
| `--model opus\|sonnet\|haiku` | (default) | Model selection (Claude only) |
|
|
148
|
+
| `[number]` | `10` | Max iterations |
|
|
407
149
|
|
|
408
|
-
|
|
409
|
-
- 🔄 Smart conflict resolution (skip/rename/overwrite)
|
|
410
|
-
- 👀 Dry-run mode to preview changes
|
|
411
|
-
- ⚡ Force mode for CI/CD pipelines
|
|
412
|
-
- 🎨 Standalone agent preview mode
|
|
413
|
-
- 🛡️ Security validations for file operations
|
|
150
|
+
### Archiving
|
|
414
151
|
|
|
415
|
-
|
|
152
|
+
Ralph auto-archives previous runs when the branch changes. Archives are saved to `scripts/ralph/archive/YYYY-MM-DD-feature-name/`.
|
|
416
153
|
|
|
417
|
-
|
|
154
|
+
## Documentation
|
|
418
155
|
|
|
419
|
-
-
|
|
420
|
-
-
|
|
421
|
-
-
|
|
422
|
-
- **API Development** - Planner → Backend → Frontend → Checker
|
|
423
|
-
- **UI Components** - Frontend → Shadcn → Checker
|
|
424
|
-
- **Blockchain** - Planner → Blockchain → Checker
|
|
425
|
-
- **Quality Assurance** - Researcher → Checker → Coder → Checker
|
|
156
|
+
- [Agent Orchestration](docs/agent-orchestration.md)
|
|
157
|
+
- [Available Agents](template/agents/README.md)
|
|
158
|
+
- [Ticket System](docs/ticket-system.md)
|
|
426
159
|
|
|
427
160
|
## Credits
|
|
428
161
|
|
|
429
|
-
Born from
|
|
162
|
+
Born from discussions in TechOverflow with [vichannnnn](https://github.com/vichannnnn), [MrMarciaOng](https://github.com/MrMarciaOng), and [nasdin](https://github.com/nasdin).
|
|
430
163
|
|
|
431
|
-
|
|
164
|
+
Agent collection from [wshobson/agents](https://github.com/wshobson/agents).
|
|
432
165
|
|
|
433
166
|
## License
|
|
434
167
|
|