claude-launchpad
CLAUDE.md8 starsChanged 5 months agoMITView on GitHub
CLI toolkit that makes Claude Code setups measurably good — diagnose, scaffold, evaluate, remember. Unit tests for logic, regression tests for CLI end-to-end, benchmarks for memory algorithm quality. MANDATORY: Before releasing any memory feature, bugfix, or algorithm change, run pnpm bench:memory and verify no regressions. Do NOT ship memory changes with failing benchmarks. If a change intentionally shifts metrics (e.g. tuning scoring weights), update the benchmark thresholds and document why in the commit message. This project uses the superpowers skills…
- Commits and pushes
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .cursor/rules/architecture.mdcCursor rule
- .cursor/rules/conventions.mdcCursor rule
- .cursor/rules/doctor.mdcCursor rule
- .cursor/rules/hooks.mdcCursor rule
- .cursor/rules/memory.mdcCursor rule
- .cursor/rules/verification.mdcCursor rule
- .cursor/rules/workflow.mdcCursor rule
- lp-enhanceSkill
- lp-migrate-memorySkill
- lp-enhanceSkill
The file
Show its rules and text
We split this CLAUDE.md into the rules it gives an agent
26 rules. About 0 are common, 13 are distinctive, and 13 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈13
Distinctive · estimate
This author's own choices. Worth a look.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
ALWAYS read @TASKS.md first — it tracks progress across sessions
- Very specific: line 15
Update TASKS.md as you complete work.
- Distinctive: line 20
Every WP uses the 7-field template (Priority, Proposed, Stories/Docs, Depends on, Estimate, Trigger to pull, Definition of done)
- Very specific: line 54
MANDATORY: Before releasing any memory feature, bugfix, or algorithm change, run pnpm bench:memory and verify no regressions.
- Very specific: line 79
Commit the pull + plan together: chore(sprint-N): pull WP-NNN into sprint + plan.
- Very specific: line 84
Add one-line summary to ## Completed Sprints.
- Very specific: line 86
Update ## Session Log (prune to 3 entries).
- Very specific: line 88
Commit with feat/fix/refactor prefix.
- Very specific: line 92
Every sprint-ending commit goes through superpowers:requesting-code-review:
- Distinctive: line 105
All errors handled explicitly with user-friendly messages
- Distinctive: line 111
NEVER bump version on every commit: Use the dev/release publish workflow:
- Very specific: line 112
During dev: commit freely, no version bump.
- Distinctive: line 119
Never add third-party dependencies without justification — self-contained
- Very specific: line 120
Never require API keys for doctor — it must be free and offline
- Distinctive: line 121
Never hardcode stack-specific logic — auto-detect or stay generic
- Distinctive: line 122
Never add dependencies without justification — CLI must stay fast (<2s startup)
- Distinctive: line 123
Never write implementation before the test when the change qualifies for TDD (see conventions.md)
- Distinctive: line 131
Wait for all agents to return, synthesize their findings, then act.
- Distinctive: line 132
Don't keep guessing in circles — rotate perspectives.
- Very specific: line 134
Before spinning up agents, consider superpowers:systematic-debugging — it often resolves the loop without needing the swarm.
- Distinctive: line 138
No ECC dependency: generates its own hooks and settings
- Very specific: line 148
DO NOT: use the built-in auto-memory system (~/.claude/projects/*/memory/)
- Very specific: line 150
Use memory_search before memory_store to check for duplicates
- Very specific: line 151
Use memory_update to modify existing memories instead of creating new ones
- Distinctive: line 152
STORE IMMEDIATELY: when: a dependency strategy changes, an architecture decision is made, a convention is established, a bug pattern is …
- Distinctive: line 154
Use absolute dates (not "next week") so memories stay useful across sessions
≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Claude Launchpad
CLI toolkit that makes Claude Code setups measurably good — diagnose, scaffold, evaluate, remember.
Stack
- Language: TypeScript (strict mode)
- Runtime: Node.js 22+
- CLI: Commander.js + @inquirer/prompts
- Testing: Vitest
- Package Manager: pnpm
- Build: tsup (two entry points: cli.ts + memory/server.ts)
Session Start
- ALWAYS read @TASKS.md first — it tracks progress across sessions
- Update TASKS.md as you complete work. Between sprints,
## Current Sprintmust be empty - TASKS.md/BACKLOG.md record intent, not world state. Before acting on any external fact they mention (npm publish state, CI status, open vulns), verify at the source (
npm view claude-launchpad dist-tags,gh,pnpm audit) — the SessionStart release-state hook injects the npm truth automatically
Backlog
- See
.claude/rules/workflow.mdfor the BACKLOG/TASKS lifecycle (path-scoped; auto-loads on edit) - Every WP uses the 7-field template (Priority, Proposed, Stories/Docs, Depends on, Estimate, Trigger to pull, Definition of done)
- WPs are moved between BACKLOG.md and TASKS.md, not copied — a WP lives in exactly one file at a time
- BACKLOG.md keeps structural sections (P0/P1/P2/P3/Changelog); do not delete the sections, keep them active
Architecture
- Four CLI commands:
init(scaffold),doctor(diagnose),eval(test configs),memory(optional persistent memory) - Two skills:
/lp-enhance(AI-powered CLAUDE.md improver, currently v10),/lp-migrate-memory(legacy memory migration) doctoris pure static analysis — no API calls, no cost, works offline;--fixauto-repairs issuesinitgenerates 12 files: CLAUDE.md, TASKS.md, BACKLOG.md, settings.json, .gitignore, .claudeignore, conventions.md, workflow.md, hooks.md, verification.md, code-reviewer agent, lp-enhance skill; plus three hook scripts (sprint-size, sprint-open, workflow-check)evalruns Claude via Agent SDK (falls back to Claude CLI if SDK not installed)memoryis optional — SQLite + FTS5 + decay model + 7 MCP tools + TUI dashboard- Memory native dep (better-sqlite3) is NOT bundled — installed when setting up memory
- Memory pure-JS deps (zod, @modelcontextprotocol/sdk) are optionalDependencies — always installed
- Distributed as npm package (
npx claude-launchpad) — users never clone this repo - See
.claude/rules/architecture.mdfor full project structure and command flow
Commands
- Dev:
pnpm dev - Build:
pnpm build - Test:
pnpm test/pnpm test:run - Benchmarks:
pnpm bench:memory - Type check:
pnpm typecheck - Run locally:
npx tsx src/cli.ts <command>
Test Layers
- Unit tests (
pnpm test:run): Vitest, 620+ tests covering generators, analyzers, fixers, repos, services, utils, dashboard interactions - Regression tests (
pnpm test:regression): bash script that runs the real CLI against temp projects (doctor, --fix, JSON output, idempotency) - Benchmarks (
pnpm bench:memory): 59 tests measuring memory retrieval, injection, decay, and scale — thresholds calibrated to measured baselines; mutation panel in tests/memory/benchmarks/README.md
Unit tests for logic, regression tests for CLI end-to-end, benchmarks for memory algorithm quality.
Memory Benchmarks
Benchmark suite in tests/memory/benchmarks/ — 59 tests across 5 files measuring retrieval quality, injection quality, decay accuracy, and scale performance. Excluded from pnpm test; run separately via pnpm bench:memory.
MANDATORY: Before releasing any memory feature, bugfix, or algorithm change, run pnpm bench:memory and verify no regressions. Do NOT ship memory changes with failing benchmarks. If a change intentionally shifts metrics (e.g. tuning scoring weights), update the benchmark thresholds and document why in the commit message.
Development Workflow (Superpowers-first)
This project uses the superpowers skills for every non-trivial change. The sequence is not optional:
- Brainstorm — before any creative/design work, invoke
superpowers:brainstorming. Clarify intent, requirements, tradeoffs BEFORE touching code. - Plan — for multi-step work, invoke
superpowers:writing-plans. The plan file is the source of truth during execution; revise it, don't abandon it. - TDD — for any new feature, bug fix, or algorithm change, invoke
superpowers:test-driven-development. Write the failing test FIRST, make it pass, refactor. Never write implementation before the test. See "Test-Driven Development" in.claude/rules/conventions.mdfor when this is rigid vs flexible. - Execute — drive implementation from the plan. Use
superpowers:subagent-driven-developmentwhen tasks are independent; usesuperpowers:dispatching-parallel-agentsonly for genuinely independent research/lookups. - Debug — when encountering a bug or unexpected behavior, invoke
superpowers:systematic-debuggingBEFORE guessing a fix. - Verify — before claiming "done", invoke
superpowers:verification-before-completion. Run the verification commands; confirm the output; don't assert success without evidence. - Review — before sprint-ending commit, invoke
superpowers:requesting-code-review(MANDATORY, see Sprint Reviews). Address Important findings in-sprint. - Integrate — when work is complete, invoke
superpowers:finishing-a-development-branchto decide merge/PR/cleanup.
Shortcut rule: if a skill's description plausibly applies, invoke it. Rationalizing "this is too simple" is the failure mode.
Sprint Lifecycle
Starting a sprint (one session, one commit):
- Pick top-priority WPs from
BACKLOG.md(P0 first, then P1). - Same edit: delete from BACKLOG.md, add to
TASKS.md ## Current Sprintas- [ ] WP-NNN — short title. - Update
BACKLOG.md ## Changelog:YYYY-MM-DD: WP-NNN pulled into Sprint N. - Invoke
superpowers:writing-plansif the sprint is non-trivial (>1 WP or any new feature). - For hard-TDD surfaces (see conventions.md), invoke
superpowers:test-driven-developmentBEFORE implementation. - Commit the pull + plan together:
chore(sprint-N): pull WP-NNN into sprint + plan.
Closing a sprint (one session, one commit):
- All
## Current Sprintitems checked off, or explicitly moved back with rationale. - Invoke
superpowers:requesting-code-review— address Important findings before commit. - Add one-line summary to
## Completed Sprints. - Empty
## Current Sprintback to its placeholder comment. - Update
## Session Log(prune to 3 entries). BACKLOG.md ## Changelog:YYYY-MM-DD: Sprint N closed. WP-NNN done.- Commit with feat/fix/refactor prefix; bump version + CHANGELOG per release checklist if shipping.
Sprint Reviews (MANDATORY before sprint-ending commit)
Every sprint-ending commit goes through superpowers:requesting-code-review:
- Invoke the skill; dispatch the
superpowers:code-reviewersubagent with base/head SHAs and a description. - Fix all Critical and Important findings before committing.
- Minor findings can be deferred to BACKLOG.md as WPs.
- Skip ONLY for trivial sprints (docs-only, config-only, no logic).
This replaces the older "spawn an Explore agent" pattern. Both produce code review; the superpowers reviewer has more structure (Strengths / Critical / Important / Minor / Assessment).
Conventions
- Conventional commits (
feat:,fix:,docs:,refactor:,test:,chore:) - Immutable data patterns — never mutate, always return new objects
- Functions < 50 lines, files < 400 lines
- Named exports only, no
anytypes - All errors handled explicitly with user-friendly messages
- Lookup tables over switch statements (see
tryFix(),detectScripts()) - Semver: patch (bugfix), minor (new command/flag), major (breaking)
- See
.claude/rules/conventions.mdfor pre-commit checklist, TDD rules, parallel agent rules
Release Checklist
NEVER bump version on every commit. Use the dev/release publish workflow:
- During dev: commit freely, no version bump. When ready to test:
pnpm publish:dev(publishes underdevtag, notlatest) - For release: bump version in package.json + src/cli.ts, update CHANGELOG.md, commit, push,
pnpm publish:release, thengit tag v<version> && git push origin v<version> && gh release create v<version>, then flip the TASKS.md Release Plan line to✅ shipped YYYY-MM-DDand commit — a publish without that edit is unfinished - Non-src changes (docs, TASKS.md): commit normally, no publish
- See
.claude/rules/conventions.mdfor full details
Off-Limits
- Never hardcode secrets
- Never add third-party dependencies without justification — self-contained
- Never require API keys for
doctor— it must be free and offline - Never hardcode stack-specific logic — auto-detect or stay generic
- Never add dependencies without justification — CLI must stay fast (<2s startup)
- Never write implementation before the test when the change qualifies for TDD (see conventions.md)
Stop-and-Swarm
Three failed iterations on the same problem = stop iterating alone. On the fourth attempt, dispatch at least 3 parallel subagents via the Task tool (in a single message so they run concurrently), each investigating from a different angle:
- Root-cause debug agent
- Upstream library/docs research agent
- Alternative architecture agent Wait for all agents to return, synthesize their findings, then act. Don't keep guessing in circles — rotate perspectives.
Before spinning up agents, consider superpowers:systematic-debugging — it often resolves the loop without needing the swarm.
Key Decisions
- Stack-agnostic: auto-detects project type instead of offering a fixed menu
- No ECC dependency: generates its own hooks and settings
- npm distribution:
npx claude-launchpad— not a template repo to clone - Doctor is the gateway (free, immediate), eval is the differentiator (costs money, measures quality)
- YAML for eval scenarios: human-readable, community-contributable
- Memory is optional: native deps deferred to user install, pure-JS deps in optionalDependencies
- Plugin system killed: CLI is the product, no marketplace dependency
- Workflow discipline is load-bearing (v1.10.0): BACKLOG/TASKS template +
.claude/rules/workflow.md+ workflow-check hook shipped together
Memory (agentic-memory)
This project uses agentic-memory for persistent memory across sessions.
- DO NOT use the built-in auto-memory system (~/.claude/projects/*/memory/)
- Memory context is automatically injected at session start via SessionStart hook
- Use
memory_searchbeforememory_storeto check for duplicates - Use
memory_updateto modify existing memories instead of creating new ones - STORE IMMEDIATELY when: a dependency strategy changes, an architecture decision is made, a convention is established, a bug pattern is discovered, or a feature is killed/added
- NEVER store credentials, API keys, tokens, passwords, or other secrets in memories
- Use absolute dates (not "next week") so memories stay useful across sessions
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

