Skip to content

Commit e3a564d

Browse files
feat: add batch scaffold script for clean mode (~100ms vs minutes)
Replace ~15 individual tool calls with a single bash script execution. Includes progress bar with percentage and estimated time remaining. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 11133d5 commit e3a564d

2 files changed

Lines changed: 581 additions & 11 deletions

File tree

.claude/commands/new-project.md

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -311,17 +311,26 @@ If you must rename packages, modules, or key variables:
311311
### Clean mode steps
312312

313313
1. Resolve project path (same as Step 0 / 0.1 above)
314-
2. Create the project directory
315-
3. Copy `.claude/` contents from the starter kit — but only commands with `scope: project` in their YAML frontmatter (skills, agents, hooks, and settings.json are copied in full)
316-
4. Create project-docs/ with ARCHITECTURE.md, INFRASTRUCTURE.md, DECISIONS.md templates
317-
5. Create tests/ with CHECKLIST.md and ISSUES_FOUND.md
318-
6. Create the clean CLAUDE.md (security rules only, as shown above)
319-
7. Create CLAUDE.local.md template
320-
8. Create .env (empty), .env.example (NODE_ENV + PORT only)
321-
9. Create .gitignore and .dockerignore with standard entries
322-
10. Create a minimal README.md
323-
11. Initialize git and create initial commit
324-
12. Report what was created
314+
2. **Run the batch scaffold script** — this replaces all individual file creation with a single command:
315+
316+
```bash
317+
bash "$(pwd)/scripts/scaffold-clean.sh" "$PROJECT_PATH" "$PROJECT_NAME" "$(pwd)"
318+
```
319+
320+
The script handles ALL of the following in one execution (~100ms) with a progress indicator:
321+
- Creates all directories (.claude/, project-docs/, tests/)
322+
- Copies 16 project-scoped commands, 2 skills, 2 agents, 3 hooks
323+
- Writes settings.json (clean mode — 3 hooks only)
324+
- Creates CLAUDE.md (security rules only), CLAUDE.local.md
325+
- Creates project-docs templates (ARCHITECTURE, INFRASTRUCTURE, DECISIONS)
326+
- Creates tests templates (CHECKLIST, ISSUES_FOUND)
327+
- Creates .env, .env.example, .gitignore, .dockerignore, README.md
328+
- Initializes git with initial commit
329+
- Registers the project in ~/.claude/starter-kit-projects.json
330+
331+
**Do NOT create files individually — the script handles everything.**
332+
333+
3. After the script completes, display the verification checklist (the script output includes a summary)
325334

326335
### Clean verification checklist
327336

0 commit comments

Comments
 (0)