claude-cli-advanced-starter-pack 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 CHANGED
@@ -1,364 +1,292 @@
1
- # Claude CLI Advanced Starter Pack
1
+ # Claude CLI Advanced Starter Pack (CCASP)
2
2
 
3
- ```
4
- ┌─────────────────────────────────────────────────────────────────────────────────┐
5
- │ 📦 NEW UPDATE AVAILABLE: v1.0.5 → v1.0.7 │
6
- ├─────────────────────────────────────────────────────────────────────────────────┤
7
- │ What's New: │
8
- │ • Enhanced removal wizard with full backup/restore │
9
- │ • Automatic update notifications on startup │
10
- │ • Dynamic menu with version tracking │
11
- ├─────────────────────────────────────────────────────────────────────────────────┤
12
- │ Press [N] to update now │ Press [U] for details │ Press any to continue │
13
- └─────────────────────────────────────────────────────────────────────────────────┘
3
+ <div align="center">
14
4
 
5
+ ```
15
6
  ╔═══════════════════════════════════════════════════════════════════════════════╗
16
7
  ║ ║
17
8
  ║ ╔═╗╦ ╔═╗╦ ╦╔╦╗╔═╗ ╔═╗╔╦╗╦ ╦╔═╗╔╗╔╔═╗╔═╗╔╦╗ ╔═╗╔╦╗╔═╗╦═╗╔╦╗╔═╗╦═╗ ║
18
9
  ║ ║ ║ ╠═╣║ ║ ║║║╣ ╠═╣ ║║╚╗╔╝╠═╣║║║║ ║╣ ║║ ╚═╗ ║ ╠═╣╠╦╝ ║ ║╣ ╠╦╝ ║
19
10
  ║ ╚═╝╩═╝╩ ╩╚═╝═╩╝╚═╝ ╩ ╩═╩╝ ╚╝ ╩ ╩╝╚╝╚═╝╚═╝═╩╝ ╚═╝ ╩ ╩ ╩╩╚═ ╩ ╚═╝╩╚═ ║
20
11
  ║ ║
21
- Your Project Name v1.0.5 [NEW UPDATE]
22
- ║ ║
23
- ╠═══════════════════════════════════════════════════════════════════════════════╣
24
- ║ ║
25
- ║ Quick Actions: ║
26
- ║ ───────────── ║
27
- ║ [T] Run Tests [G] GitHub Task [P] Phase Dev Plan ║
28
- ║ [A] Create Agent [H] Create Hook [S] Create Skill ║
29
- ║ [M] Explore MCP [C] Claude Audit [E] Explore Codebase ║
30
- ║ ║
31
- ║ Project Resources: ║
32
- ║ ────────────────── ║
33
- ║ [1] View Agents [2] View Skills [3] View Hooks ║
34
- ║ [4] View Commands [5] Settings [6] Documentation ║
35
- ║ ║
36
- ║ Project Implementation: ║
37
- ║ ─────────────────────── ║
38
- ║ [I] /project-impl Agent-powered setup & configuration ║
39
- ║ ║
40
- ║ Navigation: ║
41
- ║ ─────────── ║
42
- ║ [U] Check for Updates [R] Refresh Menu [?] Help [Q] Exit ║
43
- ║ [N] UPDATE NOW Run: npm update -g claude-cli-advanced-starter-pack ║
12
+ v1.0.12 • Production Ready
44
13
  ║ ║
45
14
  ╚═══════════════════════════════════════════════════════════════════════════════╝
46
15
  ```
47
16
 
48
- **Advanced Claude Code CLI Toolkit - Agents, Hooks, Skills, MCP Servers, Phased Development, and GitHub Integration**
17
+ [![npm version](https://badge.fury.io/js/claude-cli-advanced-starter-pack.svg)](https://www.npmjs.com/package/claude-cli-advanced-starter-pack)
18
+ [![Node.js 18+](https://img.shields.io/badge/node-18%2B-brightgreen)](https://nodejs.org)
19
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
49
20
 
50
- A platform-agnostic toolkit for supercharging your Claude Code CLI experience with:
51
- - Vibe-code friendly setup wizard (mobile-ready, single-character inputs)
52
- - Tech stack auto-detection and template-based configuration
53
- - L1/L2/L3 agent hierarchy, hooks, and RAG-enhanced skills
54
- - GitHub Project Board integration with codebase analysis
55
- - Phased development planning with 95%+ success rate
21
+ **A professional-grade CLI toolkit for Claude Code CLI agents, hooks, skills, MCP servers, phased development, and GitHub integration.**
56
22
 
57
- ## Important: Two Types of Commands
23
+ [Getting Started](#quick-start) [Documentation](https://github.com/evan043/claude-cli-advanced-starter-pack/wiki) [API Reference](#api-reference) • [Contributing](#contributing)
58
24
 
59
- This package provides **two types of commands**:
25
+ </div>
60
26
 
61
- | Type | Where to Run | Example | AI Required? |
62
- |------|--------------|---------|--------------|
63
- | **Terminal Commands** | Your shell (bash, PowerShell, etc.) | `ccasp wizard` | No - file-based detection |
64
- | **Slash Commands** | Inside Claude Code CLI | `/menu`, `/github-update` | Yes - AI-powered |
27
+ ---
65
28
 
66
- **The "auto-detection" in terminal commands does NOT use AI.** It reads your project files (`package.json`, config files, directory structure) to detect frameworks and settings - pure pattern matching.
29
+ ## Table of Contents
30
+
31
+ - [Overview](#overview)
32
+ - [Key Features](#key-features)
33
+ - [Architecture](#architecture)
34
+ - [Quick Start](#quick-start)
35
+ - [Installation Options](#installation-options)
36
+ - [Commands Reference](#commands-reference)
37
+ - [Configuration](#configuration)
38
+ - [Template Engine](#template-engine)
39
+ - [API Reference](#api-reference)
40
+ - [Tech Stack Detection](#tech-stack-detection)
41
+ - [Feature Presets](#feature-presets)
42
+ - [MCP Server Integration](#mcp-server-integration)
43
+ - [Troubleshooting](#troubleshooting)
44
+ - [Contributing](#contributing)
67
45
 
68
- ## Quick Start
46
+ ---
69
47
 
70
- ```bash
71
- # STEP 1: Install globally (terminal command)
72
- npm install -g claude-cli-advanced-starter-pack
48
+ ## Overview
73
49
 
74
- # STEP 2: Run setup wizard (terminal command - no AI needed)
75
- ccasp wizard
50
+ CCASP is a **two-phase toolkit** that extends Claude Code CLI capabilities:
76
51
 
77
- # STEP 3: Restart Claude Code CLI, then use slash commands (AI-powered)
78
- # Inside Claude: /menu, /github-update, /deploy-full, etc.
79
- ```
52
+ | Phase | Environment | AI Required | Purpose |
53
+ |-------|-------------|-------------|---------|
54
+ | **Phase 1: Terminal** | Shell (bash/PowerShell) | No | File-based detection, scaffolding, template processing |
55
+ | **Phase 2: Claude Code** | Inside Claude CLI | Yes | AI-powered slash commands, agents, workflows |
80
56
 
81
- After installation, a welcome message shows your options:
57
+ ### What This Means for You
82
58
 
83
- ```
84
- 🚀 Claude CLI Advanced Starter Pack
85
-
86
- ✓ Installation complete!
59
+ 1. **Terminal Commands** (`ccasp wizard`, `ccasp init`) run **without AI** — they read your project files and generate configuration
60
+ 2. **Slash Commands** (`/menu`, `/deploy-full`) run **inside Claude Code CLI** with full AI capabilities
87
61
 
88
- Quick Setup Options:
89
-
90
- 1. Run vibe-friendly setup wizard:
91
- $ npx ccasp wizard
62
+ ---
92
63
 
93
- 2. Quick init (auto-detect + deploy):
94
- $ npx ccasp init
64
+ ## Key Features
95
65
 
96
- 3. Full interactive menu:
97
- $ npx ccasp
98
- ```
66
+ ### Core Capabilities
99
67
 
100
- ## Features
68
+ | Feature | Description |
69
+ |---------|-------------|
70
+ | **L1/L2/L3 Agent Hierarchy** | Orchestrators, specialists, and workers with configurable model selection |
71
+ | **Enforcement Hooks** | PreToolUse, PostToolUse, UserPromptSubmit hooks for validation and monitoring |
72
+ | **RAG-Enhanced Skills** | Domain-specific knowledge packages with context, templates, and workflows |
73
+ | **Phased Development** | 95%+ success rate planning with PROGRESS.json state tracking |
74
+ | **GitHub Integration** | Project Board sync, issue creation with codebase analysis |
75
+ | **MCP Server Discovery** | Auto-recommend and configure MCP servers for your stack |
76
+ | **Template Engine** | Handlebars-style placeholders with conditionals and loops |
77
+ | **Tech Stack Detection** | Pattern-based detection of 40+ frameworks and tools |
78
+
79
+ ### Optional Feature Modules
80
+
81
+ | Module | Commands | Purpose |
82
+ |--------|----------|---------|
83
+ | **Token Management** | `/context-audit` | Track API usage with thresholds |
84
+ | **Deployment Automation** | `/deploy-full` | Full-stack Railway/Cloudflare/Vercel |
85
+ | **Tunnel Services** | `/tunnel-start`, `/tunnel-stop` | ngrok, localtunnel, cloudflare-tunnel |
86
+ | **Happy Mode** | `/happy-start` | Mobile app integration |
101
87
 
102
- ### Vibe-Code Friendly Setup Wizard
88
+ ---
103
89
 
104
- Mobile-ready setup with single-character inputs:
90
+ ## Architecture
105
91
 
106
92
  ```
107
- 🚀 CCASP Setup Wizard
108
-
109
- ? What would you like to do?
110
- 1. Quick Start - Detect stack + init .claude
111
- 2. Full Setup - All features + customization
112
- 3. GitHub Setup - Connect project board
113
- 4. View Templates - Browse available items
114
- 5. Prior Releases - Review & add features from past versions
115
- 6. Remove CCASP - Uninstall from this project
116
- 0. Exit
117
-
118
- Agent-powered features (audit, enhance, detect, configure) available via:
119
- /project-impl - In Claude Code CLI
120
- /update-check - Check for updates and add new features
93
+ ┌─────────────────────────────────────────────────────────────────────────────┐
94
+ │ CCASP ARCHITECTURE │
95
+ ├─────────────────────────────────────────────────────────────────────────────┤
96
+ │ │
97
+ PHASE 1: TERMINAL (No AI) │
98
+ ───────────────────────── │
99
+ │ │
100
+ npm install ──► postinstall ──► ccasp wizard │
101
+ │ │
102
+ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │
103
+ │ │ Tech Stack │──►│ Template │──►│ Feature │ │
104
+ │ │ Detection │ │ Engine │ │ Selection │ │
105
+ (768 lines) │ │ (398 lines) │ │ (1386 lines) │ │
106
+ └──────────────┘ └──────────────┘ └──────────────┘ │
107
+ │ │ │ │ │
108
+ │ ▼ ▼ ▼ │
109
+ │ ┌──────────────────────────────────────────────────────────────────┐ │
110
+ │ │ YOUR PROJECT (.claude/) │ │
111
+ │ │ commands/ │ agents/ │ skills/ │ hooks/ │ docs/ │ settings.json │ │
112
+ │ └──────────────────────────────────────────────────────────────────┘ │
113
+ │ │
114
+ │ PHASE 2: CLAUDE CODE CLI (AI-Powered) │
115
+ │ ───────────────────────────────────── │
116
+ │ │
117
+ │ ┌──────────────────────────────────────────────────────────────────┐ │
118
+ │ │ RESTART REQUIRED │ │
119
+ │ │ ↓ │ │
120
+ │ │ /menu │ /deploy-full │ /github-update │ /phase-track │ ... │ │
121
+ │ │ │ │
122
+ │ │ Agents: L1 Orchestrators ──► L2 Specialists ──► L3 Workers │ │
123
+ │ │ Hooks: PreToolUse | PostToolUse | UserPromptSubmit │ │
124
+ │ │ Skills: RAG context + templates + workflows │ │
125
+ │ └──────────────────────────────────────────────────────────────────┘ │
126
+ │ │
127
+ └─────────────────────────────────────────────────────────────────────────────┘
121
128
  ```
122
129
 
123
- **Feature Presets** (just type A, B, C, or D):
124
- | Letter | Preset | Features |
125
- |--------|--------|----------|
126
- | A | Minimal | Menu + help only |
127
- | B | Standard | GitHub + phased dev (recommended) |
128
- | C | Full | All features including deployment |
129
- | D | Custom | Pick individual features |
130
-
131
- ### Tech Stack Auto-Detection (No AI Required)
130
+ ### Directory Structure
132
131
 
133
- **This is file-based pattern matching, not AI inference.** The detection reads your project files:
132
+ After running `ccasp init`, your project gets:
134
133
 
135
- | File/Pattern | What It Detects |
136
- |--------------|-----------------|
137
- | `package.json` | React, Vue, Next.js, Express, testing tools |
138
- | `vite.config.js` | Vite bundler |
139
- | `next.config.js` | Next.js framework |
140
- | `tsconfig.json` | TypeScript usage |
141
- | `.git/config` | Repository URL |
142
- | `src/`, `apps/`, `backend/` | Project structure |
143
-
144
- Generates `tech-stack.json` with all detected values for template placeholders.
145
-
146
- ### Platform-Agnostic Templates
147
-
148
- All templates use `{{placeholder}}` syntax - no hardcoded values:
149
-
150
- ```markdown
151
- {{#if deployment.backend.platform}}
152
- ## Backend Deployment
153
-
154
- {{#if (eq deployment.backend.platform "railway")}}
155
- Using Railway MCP:
156
- mcp__railway-mcp-server__deployment_trigger({
157
- projectId: "{{deployment.backend.projectId}}",
158
- serviceId: "{{deployment.backend.serviceId}}"
159
- })
160
- {{/if}}
161
-
162
- {{#if (eq deployment.backend.platform "vercel")}}
163
- Using Vercel:
164
- vercel --prod
165
- {{/if}}
166
- {{/if}}
134
+ ```
135
+ .claude/
136
+ ├── commands/ # Slash commands (markdown with YAML frontmatter)
137
+ │ ├── menu.md # Interactive menu
138
+ │ ├── ccasp-setup.md # Setup wizard
139
+ │ ├── deploy-full.md # Deployment command
140
+ │ └── ... # 20+ commands based on feature selection
141
+ ├── agents/ # L1/L2/L3 agent definitions
142
+ ├── skills/ # RAG-enhanced skill packages
143
+ │ └── skill-name/
144
+ │ ├── skill.md # Definition
145
+ │ ├── context/ # Knowledge base
146
+ │ └── workflows/ # Procedures
147
+ ├── hooks/ # Enforcement hooks
148
+ │ ├── pre-tool-use/
149
+ │ ├── post-tool-use/
150
+ │ └── user-prompt-submit/
151
+ ├── docs/ # Generated documentation
152
+ ├── phase-dev/ # Phased development projects
153
+ ├── settings.json # Hook configuration
154
+ └── tech-stack.json # Detected/configured values
167
155
  ```
168
156
 
169
- ### Claude Code Tooling
170
-
171
- - **Agent Creation Suite** - Create L1 orchestrators, L2 specialists, L3 workers, and RAG pipelines
172
- - **Hook Generator** - Build PreToolUse, PostToolUse, and UserPromptSubmit enforcement hooks
173
- - **Skill Builder** - Create RAG-enhanced skill packages with context and workflows
174
- - **Command Generator** - Create custom slash commands for Claude Code
175
- - **Claude Settings** - Configure permissions, agent-only mode, and allow/deny rules
176
- - **Claude Audit + Enhance** - Verify and generate CLAUDE.md against Anthropic best practices
177
-
178
- ### Optional Features
179
-
180
- Select during setup - each adds specific commands and hooks:
181
-
182
- | Feature | Description | Commands Added |
183
- |---------|-------------|----------------|
184
- | **GitHub Integration** | Project Board tracking, issue creation | `/github-update`, `/github-task-start` |
185
- | **Token Management** | API usage tracking with thresholds | `/context-audit` |
186
- | **Phased Development** | 95%+ success rate planning | `/phase-dev-plan`, `/phase-track` |
187
- | **Deployment Automation** | Railway, Vercel, Cloudflare, self-hosted | `/deploy-full` |
188
- | **Tunnel Services** | ngrok, localtunnel, cloudflare-tunnel | `/tunnel-start`, `/tunnel-stop` |
189
- | **Happy Mode** | Mobile app integration | `/happy-start` |
157
+ ---
190
158
 
191
- Features marked with (*) require post-install configuration via `/menu` → Project Settings.
159
+ ## Quick Start
192
160
 
193
- ### Automatic Update Notifications
161
+ ```bash
162
+ # Step 1: Install globally
163
+ npm install -g claude-cli-advanced-starter-pack
194
164
 
195
- CCASP automatically checks for updates when Claude Code starts:
165
+ # Step 2: Run the setup wizard (terminal command - no AI needed)
166
+ ccasp wizard
196
167
 
197
- - **Startup hook** runs on first prompt, checks npm registry (1-hour cache)
198
- - **Dynamic menu header** shows current version with `[NEW UPDATE]` badge when available
199
- - **Update banner** displays what's new on first view, then compact banner on subsequent views
200
- - **One-key update** - Press `[N]` in the menu to run `npm update -g` instantly
168
+ # Step 3: IMPORTANT - Restart Claude Code CLI
169
+ # Changes to .claude/ require a new session
170
+ claude .
201
171
 
202
- ```
203
- ┌──────────────────────────────────────────────────────────────┐
204
- │ 📦 Update available: v1.0.5 → v1.0.7 │ [N] Update │
205
- └──────────────────────────────────────────────────────────────┘
172
+ # Step 4: Use slash commands inside Claude (AI-powered)
173
+ /menu
206
174
  ```
207
175
 
208
- Updates are **manual** - you control when to update. The notification simply informs you.
176
+ ### Post-Install Welcome
209
177
 
210
- ### MCP Server Explorer
211
-
212
- Discover and install MCP servers based on your tech stack:
213
-
214
- ```bash
215
- ccasp explore-mcp # Interactive menu
216
- ccasp explore-mcp --recommend # Auto-recommend based on codebase
217
- ccasp explore-mcp --testing # Quick install Playwright + Puppeteer
218
178
  ```
179
+ 🚀 Claude CLI Advanced Starter Pack
219
180
 
220
- **Available Categories:** Testing, VCS, Deployment, Database, Automation, Communication, Utilities
221
-
222
- ### Phased Development Plans
223
-
224
- Create comprehensive development plans with 95%+ success probability:
181
+ Installation complete!
225
182
 
226
- ```bash
227
- ccasp create-phase-dev # Interactive wizard
228
- ccasp create-phase-dev --scale M # Medium: 3-4 phases
229
- ccasp create-phase-dev --autonomous # Minimal prompts
230
- ```
183
+ Quick Setup Options:
231
184
 
232
- **Generated Artifacts:**
233
- - `PROGRESS.json` - Task tracking and state management
234
- - `EXECUTIVE_SUMMARY.md` - Project overview
235
- - Phase Executor Agent - Autonomous execution
236
- - Slash Command - `/phase-dev-{project-slug}`
185
+ 1. Run vibe-friendly setup wizard:
186
+ $ ccasp wizard
237
187
 
238
- ### GitHub Integration
188
+ 2. Quick init (auto-detect + deploy):
189
+ $ ccasp init
239
190
 
240
- ```bash
241
- ccasp create # Create issue with codebase analysis
242
- ccasp decompose 123 # Break down issue into tasks
243
- ccasp sync watch 123 # Bidirectional sync
244
- ccasp list # List recent tasks
191
+ 3. Full interactive menu:
192
+ $ ccasp
245
193
  ```
246
194
 
247
- ## Installation Paths
195
+ ---
196
+
197
+ ## Installation Options
248
198
 
249
- ### Path A: Vibe Wizard (Recommended)
199
+ ### Option A: Global Installation (Recommended)
250
200
 
251
201
  ```bash
252
202
  npm install -g claude-cli-advanced-starter-pack
253
203
  ccasp wizard
254
204
  ```
255
205
 
256
- Single-character inputs, mobile-friendly, progressive disclosure.
257
-
258
- ### Path B: Quick Init
206
+ ### Option B: Project-Local Installation
259
207
 
260
208
  ```bash
261
- npx claude-cli-advanced-starter-pack init
209
+ npm install --save-dev claude-cli-advanced-starter-pack
210
+ npx ccasp wizard
262
211
  ```
263
212
 
264
- Auto-detects tech stack, deploys commands with minimal prompts.
265
-
266
- ### Path C: Full Wizard
213
+ ### Option C: One-Time Use
267
214
 
268
215
  ```bash
269
- ccasp project-init
270
- ```
271
-
272
- Full interactive wizard with all configuration options.
273
-
274
- ## What Gets Installed
275
-
276
- After running init, your project gets:
277
-
278
- ```
279
- .claude/
280
- ├── commands/ # Slash commands
281
- │ ├── menu.md
282
- │ ├── ccasp-setup.md # Setup wizard (always included)
283
- │ ├── github-update.md
284
- │ └── ...
285
- ├── agents/ # Agent definitions
286
- ├── skills/ # Skill packages
287
- ├── hooks/ # Enforcement hooks
288
- ├── docs/ # Generated documentation
289
- ├── settings.json # Project settings
290
- └── tech-stack.json # Detected/configured values
216
+ npx claude-cli-advanced-starter-pack init
291
217
  ```
292
218
 
293
- **Safe Integration:** Existing `.claude/` folders are preserved - new files are added alongside.
294
-
295
- ## After Installation
219
+ ### CLI Aliases
296
220
 
297
- **Important:** Changes to `.claude/` require a new Claude Code session.
221
+ All aliases point to the same CLI:
298
222
 
223
+ ```bash
224
+ ccasp # Short form (recommended)
225
+ ccasp w # Wizard shortcut
226
+ claude-advanced # Medium form
227
+ claude-cli-advanced-starter-pack # Full name
299
228
  ```
300
- ⚠️ RESTART REQUIRED
301
229
 
302
- Changes to .claude/ require a new Claude Code session.
303
-
304
- To apply changes:
305
- 1. Exit this session (Ctrl+C or /exit)
306
- 2. Restart: claude or claude .
307
- 3. New commands will be available
308
- ```
230
+ ---
309
231
 
310
232
  ## Commands Reference
311
233
 
312
- ### Setup Commands (Terminal - one-time use)
313
-
314
- These terminal commands are used **once** to set up your project. They don't require AI.
315
-
316
- | Command | Description |
317
- |---------|-------------|
318
- | `ccasp wizard` | **Vibe-code friendly setup wizard** |
319
- | `ccasp init` | Deploy slash commands to project |
320
- | `ccasp detect-stack` | Auto-detect tech stack (reads files) |
321
-
322
- ### Slash Commands (Inside Claude Code CLI - AI-powered)
323
-
324
- After running `ccasp init`, these slash commands become available inside Claude Code CLI. They are AI-powered and can understand context, execute complex tasks, and interact with your codebase intelligently.
325
-
326
- **Core Commands (always installed):**
234
+ ### Terminal Commands (Shell No AI)
235
+
236
+ | Command | Description | Key Options |
237
+ |---------|-------------|-------------|
238
+ | `ccasp wizard` | Vibe-friendly setup wizard | Single-char navigation |
239
+ | `ccasp init` | Deploy commands to project | `--force`, `--minimal` |
240
+ | `ccasp detect-stack` | Auto-detect tech stack | `--verbose` |
241
+ | `ccasp create-agent` | Create L1/L2/L3 agents | Interactive wizard |
242
+ | `ccasp create-hook` | Create enforcement hooks | Interactive wizard |
243
+ | `ccasp create-skill` | Create RAG skill packages | Interactive wizard |
244
+ | `ccasp create-command` | Create slash commands | Interactive wizard |
245
+ | `ccasp create-phase-dev` | Create phased dev plan | `--scale S/M/L`, `--autonomous` |
246
+ | `ccasp explore-mcp` | MCP server discovery | `--recommend`, `--testing` |
247
+ | `ccasp claude-audit` | Audit CLAUDE.md | Enhancement suggestions |
248
+ | `ccasp validate` | Validate template agnosticism | `--path`, `--fix` |
249
+ | `ccasp roadmap` | Sync roadmaps with GitHub | `import`, `sync`, `status` |
250
+ | `ccasp sync` | Sync tasks with GitHub | `pull`, `push`, `watch` |
251
+ | `ccasp list` | List recent GitHub issues | `--mine`, `--status` |
252
+
253
+ ### Slash Commands (Inside Claude Code CLI — AI-Powered)
254
+
255
+ #### Core Commands (Always Installed)
327
256
 
328
257
  | Command | Description |
329
258
  |---------|-------------|
330
- | `/menu` | Interactive ASCII menu |
331
- | `/ccasp-setup` | Setup wizard (vibe-code friendly) |
332
- | `/e2e-test` | Run E2E tests with Playwright |
333
- | `/create-agent` | Create L1/L2/L3 agents |
334
- | `/create-hook` | Build enforcement hooks |
335
- | `/create-skill` | Create RAG skill packages |
336
- | `/explore-mcp` | Discover MCP servers |
337
- | `/claude-audit` | Audit CLAUDE.md |
259
+ | `/menu` | Interactive ASCII menu with all commands |
260
+ | `/ccasp-setup` | Configuration wizard |
261
+ | `/create-agent` | Create agents interactively |
262
+ | `/create-hook` | Create hooks interactively |
263
+ | `/create-skill` | Create skills interactively |
264
+ | `/explore-mcp` | Discover and install MCP servers |
265
+ | `/claude-audit` | Audit CLAUDE.md quality |
338
266
  | `/phase-dev-plan` | Create phased development plans |
339
- | `/create-task-list` | Create intelligent task list |
340
267
  | `/codebase-explorer` | Analyze codebase structure |
268
+ | `/e2e-test` | Run E2E tests with Playwright |
341
269
 
342
- **Feature-Specific Commands (based on preset selection):**
270
+ #### Feature-Specific Commands
343
271
 
344
- | Command | Feature | Description |
345
- |---------|---------|-------------|
272
+ | Command | Feature Required | Description |
273
+ |---------|------------------|-------------|
346
274
  | `/github-update` | GitHub Integration | View Project Board status |
347
- | `/github-task-start` | GitHub Integration | Start/complete GitHub task |
348
- | `/phase-track` | Phased Development | Track phase progress |
275
+ | `/github-task-start` | GitHub Integration | Start/complete GitHub tasks |
276
+ | `/phase-track` | Phased Development | Track progress on plans |
349
277
  | `/deploy-full` | Deployment Automation | Full-stack deployment |
350
278
  | `/tunnel-start` | Tunnel Services | Start ngrok/localtunnel |
351
- | `/tunnel-stop` | Tunnel Services | Stop tunnel |
279
+ | `/tunnel-stop` | Tunnel Services | Stop active tunnel |
352
280
  | `/context-audit` | Token Management | Audit token usage |
353
281
  | `/happy-start` | Happy Mode | Start mobile integration |
354
282
 
355
- > **Note:** Slash commands are created in `.claude/commands/` by the terminal commands. You must restart Claude Code CLI after running `ccasp init` for slash commands to become available.
283
+ ---
356
284
 
357
285
  ## Configuration
358
286
 
359
287
  ### tech-stack.json
360
288
 
361
- Auto-generated during init with detected values:
289
+ Auto-generated during init with detected and configured values:
362
290
 
363
291
  ```json
364
292
  {
@@ -369,135 +297,389 @@ Auto-generated during init with detected values:
369
297
  },
370
298
  "frontend": {
371
299
  "framework": "react",
372
- "port": 5173
300
+ "port": 5173,
301
+ "buildCommand": "npm run build",
302
+ "devCommand": "npm run dev",
303
+ "distDir": "dist"
373
304
  },
374
305
  "backend": {
375
306
  "framework": "fastapi",
376
- "port": 8001
307
+ "port": 8001,
308
+ "language": "python",
309
+ "healthEndpoint": "/health"
310
+ },
311
+ "database": {
312
+ "type": "postgresql",
313
+ "orm": "prisma"
314
+ },
315
+ "testing": {
316
+ "unit": "vitest",
317
+ "e2e": "playwright",
318
+ "unitCommand": "npm test",
319
+ "e2eCommand": "npm run test:e2e"
377
320
  },
378
321
  "deployment": {
322
+ "frontend": {
323
+ "platform": "cloudflare",
324
+ "projectName": "my-app",
325
+ "productionUrl": "https://my-app.pages.dev"
326
+ },
379
327
  "backend": {
380
328
  "platform": "railway",
381
- "projectId": "{{DEPLOY_BACKEND_PROJECT_ID}}"
329
+ "projectId": "{{DEPLOY_BACKEND_PROJECT_ID}}",
330
+ "serviceId": "{{DEPLOY_BACKEND_SERVICE_ID}}",
331
+ "environmentId": "{{DEPLOY_BACKEND_ENVIRONMENT_ID}}"
332
+ }
333
+ },
334
+ "versionControl": {
335
+ "provider": "github",
336
+ "owner": "username",
337
+ "repo": "repo-name",
338
+ "defaultBranch": "main",
339
+ "projectBoard": {
340
+ "number": 3
382
341
  }
383
342
  },
384
- "githubIntegration": { "enabled": true },
385
- "phasedDevelopment": { "enabled": true },
386
- "tokenManagement": { "enabled": false }
343
+ "features": {
344
+ "githubIntegration": true,
345
+ "phasedDevelopment": true,
346
+ "tokenManagement": false,
347
+ "deploymentAutomation": true,
348
+ "tunnelServices": false,
349
+ "happyMode": false
350
+ }
387
351
  }
388
352
  ```
389
353
 
390
- ### Post-Install Configuration
391
-
392
- For features requiring additional setup, use the Project Settings menu:
354
+ ### settings.json
393
355
 
394
- ```bash
395
- ccasp wizard
396
- # Select: 8. Project Settings
397
- ```
356
+ Configure hooks and behavior:
398
357
 
399
- Or from Claude Code CLI:
400
- ```
401
- /menu → Project Settings
358
+ ```json
359
+ {
360
+ "hooks": {
361
+ "enabled": true,
362
+ "preToolUse": ["file-guard", "token-guardian"],
363
+ "postToolUse": ["test-enforcer", "github-progress"],
364
+ "userPromptSubmit": ["context-loader"]
365
+ },
366
+ "agents": {
367
+ "defaultModel": "sonnet",
368
+ "maxTokensPerTask": 8000
369
+ }
370
+ }
402
371
  ```
403
372
 
404
- Configure:
405
- - GitHub Project Board connection
406
- - Deployment platform credentials
407
- - Tunnel service selection
408
- - Token management thresholds
409
- - Happy Mode settings
373
+ ---
410
374
 
411
375
  ## Template Engine
412
376
 
413
- Supports advanced templating:
377
+ CCASP uses a Handlebars-style template engine (398 lines) for platform-agnostic configuration.
414
378
 
415
- ```handlebars
416
- {{#if condition}}...{{/if}}
417
- {{#if (eq path "value")}}...{{/if}}
418
- {{#each array}}{{this}}{{/each}}
419
- ${CWD}, ${HOME} path variables
420
- ```
379
+ ### Supported Syntax
421
380
 
422
- ## Prerequisites
381
+ | Syntax | Example | Description |
382
+ |--------|---------|-------------|
383
+ | `{{path.to.value}}` | `{{frontend.port}}` | Simple placeholder |
384
+ | `{{#if condition}}` | `{{#if deployment.backend}}` | Conditional block |
385
+ | `{{#if (eq path "value")}}` | `{{#if (eq platform "railway")}}` | Equality check |
386
+ | `{{#if (neq path "value")}}` | `{{#if (neq env "prod")}}` | Inequality check |
387
+ | `{{#if (and a b)}}` | `{{#if (and tests hooks)}}` | Logical AND |
388
+ | `{{#if (or a b)}}` | `{{#if (or react vue)}}` | Logical OR |
389
+ | `{{#if (not path)}}` | `{{#if (not disabled)}}` | Negation |
390
+ | `{{#each array}}` | `{{#each files}}` | Loop |
391
+ | `${CWD}` | `${CWD}/src` | Current working directory |
392
+ | `${HOME}` | `${HOME}/.config` | User home directory |
423
393
 
424
- 1. **Node.js 18+**
425
- 2. **GitHub CLI** (`gh`) - For GitHub integration features
394
+ ### Template Example
426
395
 
396
+ ```handlebars
397
+ {{#if deployment.backend.platform}}
398
+ ## Backend Deployment
399
+
400
+ {{#if (eq deployment.backend.platform "railway")}}
401
+ Using Railway MCP:
402
+ ```
403
+ mcp__railway-mcp-server__deployment_trigger({
404
+ projectId: "{{deployment.backend.projectId}}",
405
+ serviceId: "{{deployment.backend.serviceId}}"
406
+ })
407
+ ```
408
+ {{/if}}
409
+
410
+ {{#if (eq deployment.backend.platform "vercel")}}
411
+ Using Vercel:
427
412
  ```bash
428
- gh --version # Should be 2.40+
429
- node --version # Should be 18+
430
- gh auth login # Authenticate
413
+ vercel --prod
414
+ ```
415
+ {{/if}}
416
+ {{else}}
417
+ ⚠️ Backend deployment not configured
418
+ {{/if}}
431
419
  ```
432
420
 
433
- ## API Usage
421
+ ---
422
+
423
+ ## API Reference
424
+
425
+ ### Programmatic Usage
434
426
 
435
427
  ```javascript
436
428
  import {
429
+ // Setup & Detection
437
430
  runSetupWizard,
438
431
  detectTechStack,
439
432
  runClaudeAudit,
440
- runEnhancement,
441
- ENHANCEMENT_TEMPLATES,
433
+
434
+ // Template Processing
442
435
  replacePlaceholders,
436
+ processFile,
437
+ processDirectory,
438
+ generateTechStack,
439
+
440
+ // GitHub Integration
441
+ isAuthenticated,
442
+ getCurrentUser,
443
+ listRepos,
444
+ createIssue,
445
+ addIssueToProject,
446
+ listProjectFields,
447
+
448
+ // Codebase Analysis
449
+ searchFiles,
450
+ searchContent,
451
+ findDefinitions,
452
+ analyzeForIssue,
453
+
454
+ // Templates
455
+ ENHANCEMENT_TEMPLATES,
456
+ generateClaudeCommand,
457
+ generateIssueBody,
443
458
  } from 'claude-cli-advanced-starter-pack';
459
+ ```
444
460
 
445
- // Detect tech stack
461
+ ### Key Functions
462
+
463
+ #### `detectTechStack(projectPath: string): Promise<TechStack>`
464
+
465
+ Detects project technology stack by reading configuration files:
466
+
467
+ ```javascript
446
468
  const techStack = await detectTechStack(process.cwd());
469
+ console.log(techStack.frontend.framework); // "react"
470
+ console.log(techStack.backend.framework); // "fastapi"
471
+ ```
472
+
473
+ #### `replacePlaceholders(content: string, values: object, options?: object): { content: string, warnings: string[] }`
447
474
 
448
- // Generate CLAUDE.md content
449
- const content = ENHANCEMENT_TEMPLATES.fullTemplate(techStack, 'My Project');
475
+ Process templates with values:
450
476
 
451
- // Process templates with values
477
+ ```javascript
478
+ const template = '{{project.name}} uses {{frontend.framework}}';
452
479
  const { content, warnings } = replacePlaceholders(template, techStack);
480
+ // content: "my-app uses react"
453
481
  ```
454
482
 
455
- ## CLI Aliases
483
+ Options:
484
+ - `preserveUnknown`: Keep unresolved placeholders (default: false)
485
+ - `warnOnMissing`: Log warnings for missing values (default: true)
486
+ - `processConditionals`: Enable conditional processing (default: true)
456
487
 
457
- - `ccasp` - Short form (recommended)
458
- - `ccasp w` - Wizard shortcut
459
- - `claude-advanced` - Medium form
460
- - `claude-cli-advanced-starter-pack` - Full name
488
+ #### `processFile(filePath: string, values: object, options?: object): Promise<{ content: string, warnings: string[] }>`
461
489
 
462
- ## Architecture
490
+ Process a template file:
491
+
492
+ ```javascript
493
+ const result = await processFile('./template.md', techStack);
494
+ ```
495
+
496
+ #### `processDirectory(dirPath: string, values: object, options?: object): Promise<void>`
497
+
498
+ Process all templates in a directory:
499
+
500
+ ```javascript
501
+ await processDirectory('./templates', techStack, {
502
+ extensions: ['.md', '.json', '.js'],
503
+ exclude: ['node_modules'],
504
+ recursive: true
505
+ });
506
+ ```
507
+
508
+ ---
509
+
510
+ ## Tech Stack Detection
511
+
512
+ CCASP detects 40+ frameworks and tools by reading project files (**no AI required**):
513
+
514
+ ### Detection Sources
463
515
 
516
+ | File/Pattern | Detects |
517
+ |--------------|---------|
518
+ | `package.json` | React, Vue, Angular, Next.js, Express, testing tools |
519
+ | `vite.config.js/ts` | Vite bundler |
520
+ | `next.config.js` | Next.js |
521
+ | `nuxt.config.ts` | Nuxt.js |
522
+ | `tsconfig.json` | TypeScript |
523
+ | `requirements.txt` | Python dependencies |
524
+ | `pyproject.toml` | Python project config |
525
+ | `.git/config` | Repository URL |
526
+ | `railway.json` | Railway deployment |
527
+ | `wrangler.toml` | Cloudflare config |
528
+ | `vercel.json` | Vercel config |
529
+ | `Dockerfile` | Container setup |
530
+ | Directory structure | Project type (monorepo, fullstack, etc.) |
531
+
532
+ ### Detected Categories
533
+
534
+ - **Frontend**: React, Vue, Angular, Svelte, Next.js, Nuxt, Astro
535
+ - **Backend**: FastAPI, Express, NestJS, Django, Flask, Rails, Gin
536
+ - **Database**: PostgreSQL, MySQL, MongoDB, SQLite, Redis
537
+ - **ORM**: Prisma, TypeORM, SQLAlchemy, Drizzle
538
+ - **Testing**: Jest, Vitest, Mocha, pytest, Playwright, Cypress
539
+ - **Deployment**: Railway, Vercel, Netlify, Cloudflare, Heroku, AWS
540
+ - **Build Tools**: Vite, Webpack, esbuild, Turbopack
541
+
542
+ ---
543
+
544
+ ## Feature Presets
545
+
546
+ During setup, choose a preset for quick configuration:
547
+
548
+ | Letter | Preset | Features Included |
549
+ |--------|--------|-------------------|
550
+ | **A** | Minimal | `/menu`, `/ccasp-setup` only |
551
+ | **B** | Standard | + GitHub Integration + Phased Development |
552
+ | **C** | Full | + Deployment + Tunnels + Token Management |
553
+ | **D** | Custom | Pick individual features |
554
+
555
+ ---
556
+
557
+ ## MCP Server Integration
558
+
559
+ CCASP helps discover and configure Model Context Protocol (MCP) servers:
560
+
561
+ ```bash
562
+ ccasp explore-mcp # Interactive menu
563
+ ccasp explore-mcp --recommend # Auto-recommend based on codebase
564
+ ccasp explore-mcp --testing # Quick install Playwright + Puppeteer
464
565
  ```
465
- ┌─────────────────────────────────────────────────────────────┐
466
- │ CLAUDE CLI ADVANCED STARTER PACK │
467
- │ │
468
- │ PHASE 1: TERMINAL (No AI) ───────────────────────────── │
469
- │ │
470
- │ npm install postinstall message ccasp wizard │
471
- │ │
472
- │ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
473
- │ │ Tech Stack │ │ Template │ │ Feature │ │
474
- │ │ Detection │→ │ Engine │→ │ Selection │ │
475
- │ │ (file-based)│ │(no AI) │ │(interactive)│ │
476
- │ └─────────────┘ └─────────────┘ └─────────────┘ │
477
- │ ↓ │
478
- │ ┌─────────────────────────────────────────────────┐ │
479
- │ │ YOUR PROJECT (.claude/) │ │
480
- │ │ commands/ │ agents/ │ skills/ │ hooks/ │ docs/ │ │
481
- └─────────────────────────────────────────────────┘ │
482
- │ │
483
- │ PHASE 2: CLAUDE CODE CLI (AI-Powered) ───────────────── │
484
- │ │
485
- │ ┌─────────────────────────────────────────────────┐ │
486
- │ │ CLAUDE CODE CLI (restart required) │ │
487
- │ │ /menu │ /ccasp-setup │ /github-update │ ... │ │
488
- │ │ ↑ These are AI-powered slash commands │ │
489
- │ └─────────────────────────────────────────────────┘ │
490
- └─────────────────────────────────────────────────────────────┘
566
+
567
+ ### Supported MCP Servers
568
+
569
+ | Category | Servers |
570
+ |----------|---------|
571
+ | **Testing** | Playwright, Puppeteer, Browser Monitor |
572
+ | **Deployment** | Railway, Cloudflare, Vercel |
573
+ | **Version Control** | GitHub, GitLab |
574
+ | **Database** | PostgreSQL, SQLite, Redis |
575
+ | **Communication** | Slack, Discord, Email |
576
+ | **Utilities** | Filesystem, Fetch, Memory |
577
+
578
+ ### MCP Configuration Generated
579
+
580
+ ```json
581
+ {
582
+ "mcpServers": {
583
+ "railway": {
584
+ "command": "npx",
585
+ "args": ["-y", "@anthropic/mcp-server-railway"],
586
+ "env": {
587
+ "RAILWAY_API_TOKEN": "your-token"
588
+ }
589
+ },
590
+ "playwright": {
591
+ "command": "npx",
592
+ "args": ["-y", "@anthropic/mcp-server-playwright"]
593
+ }
594
+ }
595
+ }
491
596
  ```
492
597
 
598
+ ---
599
+
600
+ ## Prerequisites
601
+
602
+ | Requirement | Version | Check Command |
603
+ |-------------|---------|---------------|
604
+ | Node.js | 18+ | `node --version` |
605
+ | npm | 8+ | `npm --version` |
606
+ | GitHub CLI | 2.40+ (optional) | `gh --version` |
607
+
608
+ ### GitHub CLI Setup (for GitHub features)
609
+
610
+ ```bash
611
+ gh auth login
612
+ gh auth status
613
+ ```
614
+
615
+ ---
616
+
617
+ ## Troubleshooting
618
+
619
+ ### Common Issues
620
+
621
+ | Issue | Solution |
622
+ |-------|----------|
623
+ | `ccasp` not found | Check PATH includes npm global bin: `npm bin -g` |
624
+ | Slash commands not working | **Restart Claude Code CLI** after `ccasp init` |
625
+ | Tech stack not detected | Ensure you're in project root with `package.json` |
626
+ | Hooks not triggering | Check `settings.json` has hook enabled |
627
+ | GitHub commands failing | Run `gh auth status` to verify authentication |
628
+
629
+ ### Debug Commands
630
+
631
+ ```bash
632
+ ccasp detect-stack --verbose # See all detected values
633
+ ccasp validate --path templates # Check template agnosticism
634
+ ccasp claude-audit # Audit CLAUDE.md quality
635
+ ```
636
+
637
+ For detailed troubleshooting, see the [Troubleshooting Wiki](https://github.com/evan043/claude-cli-advanced-starter-pack/wiki/Troubleshooting).
638
+
639
+ ---
640
+
493
641
  ## Contributing
494
642
 
495
- Contributions welcome! Please read our contributing guidelines first.
643
+ Contributions welcome! Please read our contributing guidelines.
644
+
645
+ ### Development Setup
646
+
647
+ ```bash
648
+ git clone https://github.com/evan043/claude-cli-advanced-starter-pack.git
649
+ cd claude-cli-advanced-starter-pack
650
+ npm install
651
+ npm run lint
652
+ npm test
653
+ ```
654
+
655
+ ### Code Structure
656
+
657
+ ```
658
+ src/
659
+ ├── commands/ # 23 command implementations
660
+ ├── cli/ # Interactive menu system
661
+ ├── github/ # GitHub API wrapper
662
+ ├── agents/ # Agent template generators
663
+ ├── utils/ # Template engine, validators
664
+ └── index.js # Main exports
665
+
666
+ templates/
667
+ ├── commands/ # Slash command templates
668
+ └── hooks/ # Hook templates
669
+ ```
670
+
671
+ ---
496
672
 
497
673
  ## License
498
674
 
499
- MIT
675
+ MIT © [evan043](https://github.com/evan043)
500
676
 
501
677
  ---
502
678
 
503
- **Made for Claude Code CLI** - Supercharge your AI-assisted development workflow.
679
+ <div align="center">
680
+
681
+ **Made for Claude Code CLI** — Supercharge your AI-assisted development workflow.
682
+
683
+ [Documentation](https://github.com/evan043/claude-cli-advanced-starter-pack/wiki) • [Issues](https://github.com/evan043/claude-cli-advanced-starter-pack/issues) • [npm](https://www.npmjs.com/package/claude-cli-advanced-starter-pack)
684
+
685
+ </div>