claude-launchpad 0.1.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 +173 -0
- package/dist/cli.js +2026 -0
- package/dist/cli.js.map +1 -0
- package/package.json +57 -0
- package/scenarios/common/env-protection.yaml +33 -0
- package/scenarios/common/error-handling.yaml +37 -0
- package/scenarios/common/file-size.yaml +32 -0
- package/scenarios/common/immutability.yaml +41 -0
- package/scenarios/common/input-validation.yaml +41 -0
- package/scenarios/common/secret-exposure.yaml +35 -0
- package/scenarios/common/sql-injection.yaml +33 -0
package/README.md
ADDED
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
# Claude Launchpad
|
|
2
|
+
|
|
3
|
+
**Your Claude Code setup is probably broken. This tool tells you how.**
|
|
4
|
+
|
|
5
|
+
Claude Code's effectiveness is 90% configuration, 10% prompting. But nobody can tell if their config is actually good. You write a `CLAUDE.md`, add some hooks, install some plugins — and then *hope* Claude follows them.
|
|
6
|
+
|
|
7
|
+
Claude Launchpad is the first CLI that **diagnoses, scaffolds, enhances, and tests** Claude Code configurations. Think ESLint for your AI setup.
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npx claude-launchpad
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## The Workflow
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npx claude-launchpad init # 1. Auto-detect stack, generate config + hooks
|
|
17
|
+
npx claude-launchpad enhance # 2. Claude reads your code, completes CLAUDE.md
|
|
18
|
+
npx claude-launchpad # 3. Check your score (42%)
|
|
19
|
+
npx claude-launchpad doctor --fix # 4. Auto-fix everything (→ 86%)
|
|
20
|
+
npx claude-launchpad # 5. Confirm the jump
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
> See the [full story on the landing page](https://mboss37.github.io/claude-launchpad/) — a 42% → 86% journey in three commands.
|
|
24
|
+
|
|
25
|
+
## Commands
|
|
26
|
+
|
|
27
|
+
### `doctor` — Know your score
|
|
28
|
+
|
|
29
|
+
Runs 7 static analyzers against your `.claude/` directory and `CLAUDE.md`. No API calls, no cost, works offline.
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
Instruction Budget ━━━━━━━━━━━━━━━━━━━━ 100%
|
|
33
|
+
CLAUDE.md Quality ━━━━━━━━━━━━━━━━━━━━ 100%
|
|
34
|
+
Settings ━━━━━━━━━━━━━━━━━─── 85%
|
|
35
|
+
Hooks ━━━━━━━━━━━━━━━━━━━━ 100%
|
|
36
|
+
Rules ━━━━━━━━━━━━──────── 60%
|
|
37
|
+
Permissions ━━━━━━━━━━━━━━━━──── 80%
|
|
38
|
+
MCP Servers ━━━━━━━━━━────────── 50%
|
|
39
|
+
|
|
40
|
+
Overall ━━━━━━━━━━━━━━━━──── 82%
|
|
41
|
+
|
|
42
|
+
MEDIUM Hooks
|
|
43
|
+
No .env file protection hook
|
|
44
|
+
Fix: Add a PreToolUse hook that blocks writes to .env files
|
|
45
|
+
|
|
46
|
+
LOW Permissions
|
|
47
|
+
No force-push protection hook
|
|
48
|
+
Fix: Add a PreToolUse hook that warns on `git push --force` commands
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Running bare `claude-launchpad` with no subcommand auto-detects your config and runs doctor.
|
|
52
|
+
|
|
53
|
+
**What it checks:**
|
|
54
|
+
|
|
55
|
+
| Analyzer | What it catches |
|
|
56
|
+
|---|---|
|
|
57
|
+
| **Instruction Budget** | Are you over the ~150 instruction limit where Claude starts ignoring rules? |
|
|
58
|
+
| **CLAUDE.md Quality** | Missing essential sections, vague instructions ("write good code"), hardcoded secrets |
|
|
59
|
+
| **Settings** | Plugin config, permission rules, environment variables |
|
|
60
|
+
| **Hooks** | Missing auto-format, no .env protection, no PreToolUse security gates |
|
|
61
|
+
| **Rules** | Dead rule files, stale references, empty configs |
|
|
62
|
+
| **Permissions** | Bash auto-allowed without security hooks, no force-push protection |
|
|
63
|
+
| **MCP Servers** | Invalid transport configs, missing commands/URLs, broken executables |
|
|
64
|
+
|
|
65
|
+
### `init` — Set up any project in seconds
|
|
66
|
+
|
|
67
|
+
Auto-detects your stack and generates optimized Claude Code configuration. Works with **any** language — no fixed menu, no templates to pick from.
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
claude-launchpad init
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
```
|
|
74
|
+
→ Detecting project...
|
|
75
|
+
✓ Found Next.js (TypeScript) project
|
|
76
|
+
· Package manager: pnpm
|
|
77
|
+
· Dev command: pnpm dev
|
|
78
|
+
· Test command: pnpm test
|
|
79
|
+
|
|
80
|
+
✓ Generated CLAUDE.md
|
|
81
|
+
✓ Generated TASKS.md
|
|
82
|
+
✓ Generated .claude/settings.json (with hooks)
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
**Detects 13 languages:** TypeScript, JavaScript, Python, Go, Ruby, Rust, Dart, PHP, Java, Kotlin, Swift, Elixir, C#
|
|
86
|
+
|
|
87
|
+
**Detects 20+ frameworks:** Next.js, FastAPI, Django, Rails, Laravel, Express, SvelteKit, Angular, NestJS, Hono, Astro, Remix, Nuxt, Symfony, and more.
|
|
88
|
+
|
|
89
|
+
**Detects package managers from lockfiles:** pnpm, yarn, npm, bun, uv, poetry, cargo, bundler, composer, go modules.
|
|
90
|
+
|
|
91
|
+
**What you get:**
|
|
92
|
+
- `CLAUDE.md` with your detected stack, commands, and essential sections
|
|
93
|
+
- `TASKS.md` for session continuity across Claude sessions
|
|
94
|
+
- `.claude/settings.json` with auto-format hooks and .env file protection
|
|
95
|
+
|
|
96
|
+
### `enhance` — Let Claude finish what init started
|
|
97
|
+
|
|
98
|
+
Init auto-detects your stack but can't understand your architecture. Enhance spawns Claude interactively to read your actual codebase and fill in the gaps.
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
claude-launchpad enhance
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
Claude opens, reads your code, and updates CLAUDE.md with:
|
|
105
|
+
- **Architecture** — actual directory structure, data flow, key modules
|
|
106
|
+
- **Conventions** — patterns it observes in your code (naming, imports, state management)
|
|
107
|
+
- **Off-Limits** — guardrails based on what it sees (protected files, anti-patterns)
|
|
108
|
+
- **Key Decisions** — architectural decisions visible in the code
|
|
109
|
+
|
|
110
|
+
You see Claude working in real-time — same experience as running `claude` yourself.
|
|
111
|
+
|
|
112
|
+
### `eval` — Test your config (coming soon)
|
|
113
|
+
|
|
114
|
+
Runs Claude headless against reproducible scenarios and **scores how well your config actually works**.
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
claude-launchpad eval --suite security
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
```
|
|
121
|
+
✓ security/sql-injection 10/10 PASS
|
|
122
|
+
✓ security/env-file-protection 10/10 PASS
|
|
123
|
+
✗ conventions/error-handling 7/10 WARN
|
|
124
|
+
✗ conventions/file-size 4/10 FAIL
|
|
125
|
+
|
|
126
|
+
Config Eval Score ━━━━━━━━━━━━━━━━──── 78%
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
This is the part nobody else has built. Template repos scaffold. Audit tools diagnose. **Nobody tests whether your config actually makes Claude better.** Until now.
|
|
130
|
+
|
|
131
|
+
## Use in CI
|
|
132
|
+
|
|
133
|
+
```bash
|
|
134
|
+
# Fail the build if config quality drops below 80%
|
|
135
|
+
npx claude-launchpad doctor --min-score 80
|
|
136
|
+
|
|
137
|
+
# JSON output for programmatic use
|
|
138
|
+
npx claude-launchpad doctor --json
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
Exit code is 1 when score is below the threshold, 0 when it passes.
|
|
142
|
+
|
|
143
|
+
## Install as a Plugin
|
|
144
|
+
|
|
145
|
+
```bash
|
|
146
|
+
claude plugin install claude-launchpad
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
Then use `/doctor` and `/init` directly inside Claude Code.
|
|
150
|
+
|
|
151
|
+
## Why this exists
|
|
152
|
+
|
|
153
|
+
Claude Code configurations are the new `.eslintrc` — everyone has one, nobody knows if it's good. The difference:
|
|
154
|
+
|
|
155
|
+
- **CLAUDE.md is advisory** (~80% compliance). Claude might ignore your rules.
|
|
156
|
+
- **Hooks are deterministic** (100% compliance). But most people don't have any.
|
|
157
|
+
- **Instruction budget is real.** Past ~150 instructions, compliance drops. Most people don't know they're over.
|
|
158
|
+
- **Nobody measures.** You can't improve what you can't measure.
|
|
159
|
+
|
|
160
|
+
Claude Launchpad gives you a number. Fix the issues, re-run, watch the number go up.
|
|
161
|
+
|
|
162
|
+
## Philosophy
|
|
163
|
+
|
|
164
|
+
- **Zero dependencies on third-party Claude plugins.** Generates its own hooks and settings.
|
|
165
|
+
- **Doctor is free.** No API calls, no secrets, works offline and air-gapped.
|
|
166
|
+
- **Enhance uses Claude.** Spawns an interactive session to understand your codebase — costs tokens but produces a CLAUDE.md that actually knows your project.
|
|
167
|
+
- **Eval costs money.** Runs Claude headless against scenarios — proof that your config works.
|
|
168
|
+
- **Works with any stack.** Auto-detects your project. No fixed menu of supported frameworks.
|
|
169
|
+
- **You never clone this repo.** It's a tool you run with `npx`, not a template you fork.
|
|
170
|
+
|
|
171
|
+
## License
|
|
172
|
+
|
|
173
|
+
MIT
|