claude-launchpad
AGENTS.md8 starsChanged 5 months agoMITView on GitHub
CLI toolkit that makes Claude Code and Cursor Agent setups measurably good — diagnose, scaffold, evaluate, remember. This checkout is opened in Cursor. Claude Code project files (CLAUDE.md, .claude/) stay in the repo for the product and for anyone still using Claude Code. Prefer the Cursor paths below when editing this tree. 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…
- Commits and pushes
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,266 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository11 other files it gives its agents.
- CLAUDE.mdCLAUDE.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 AGENTS.md into the rules it gives an agent
27 rules. About 0 are common, 14 are distinctive, and 13 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈14
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 16
ALWAYS read @TASKS.md first — it tracks progress across sessions
- Very specific: line 17
Update TASKS.md as you complete work.
- Distinctive: line 22
Every WP uses the 7-field template (Priority, Proposed, Stories/Docs, Depends on, Estimate, Trigger to pull, Definition of done)
- Very specific: line 56
MANDATORY: Before releasing any memory feature, bugfix, or algorithm change, run pnpm bench:memory and verify no regressions.
- Very specific: line 81
Commit the pull + plan together: chore(sprint-N): pull WP-NNN into sprint + plan.
- Very specific: line 86
Add one-line summary to ## Completed Sprints.
- Very specific: line 88
Update ## Session Log (prune to 3 entries).
- Very specific: line 90
Commit with feat/fix/refactor prefix.
- Very specific: line 94
Every sprint-ending commit goes through superpowers:requesting-code-review:
- Distinctive: line 107
All errors handled explicitly with user-friendly messages
- Distinctive: line 113
NEVER bump version on every commit: Use the dev/release publish workflow:
- Very specific: line 114
During dev: commit freely, no version bump.
- Distinctive: line 121
Never add third-party dependencies without justification — self-contained
- Very specific: line 122
Never require API keys for doctor — it must be free and offline
- Distinctive: line 123
Never hardcode stack-specific logic — auto-detect or stay generic
- Distinctive: line 124
Never add dependencies without justification — CLI must stay fast (<2s startup)
- Distinctive: line 125
Never write implementation before the test when the change qualifies for TDD (see conventions.mdc)
- Distinctive: line 126
Never claim Cursor Cloud memory support
- Distinctive: line 134
Wait for all agents to return, synthesize their findings, then act.
- Distinctive: line 135
Don't keep guessing in circles — rotate perspectives.
- Very specific: line 137
Before spinning up agents, consider superpowers:systematic-debugging — it often resolves the loop without needing the swarm.
- Distinctive: line 141
No ECC dependency: generates its own hooks and settings
- Very specific: line 152
DO NOT: use the built-in Claude auto-memory system (~/.claude/projects/*/memory/) or Cursor Cloud memory
- Very specific: line 154
Use memory_search before memory_store to check for duplicates
- Very specific: line 155
Use memory_update to modify existing memories instead of creating new ones
- Distinctive: line 156
STORE IMMEDIATELY: when: a dependency strategy changes, an architecture decision is made, a convention is established, a bug pattern is …
- Distinctive: line 158
Use absolute dates (not "next week") so memories stay useful across sessions
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.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 and Cursor Agent setups measurably good — diagnose, scaffold, evaluate, remember.
This checkout is opened in Cursor. Claude Code project files (CLAUDE.md, .claude/) stay in the repo for the product and for anyone still using Claude Code. Prefer the Cursor paths below when editing this tree.
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)
Backlog
- See
.cursor/rules/workflow.mdc(Cursor) or.claude/rules/workflow.md(Claude) for the BACKLOG/TASKS lifecycle - 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(instruction-file improver),/lp-migrate-memory(legacy memory migration) doctoris pure static analysis — no API calls, no cost, works offline;--fixauto-repairs issuesinitdefaults to Claude Code.--harness cursorwritesAGENTS.md,.cursor/, and Cursor hooks.--harness bothwrites both surfaces and shares TASKS.md / BACKLOG.mdevalruns Claude via Agent SDK or Cursor Agent via--harness cursormemoryis optional — SQLite + FTS5 + decay model + 7 MCP tools + TUI dashboard. Same DB for both harnesses- Memory native dep (better-sqlite3) is NOT bundled — installed when setting up memory
- Distributed as npm package (
npx claude-launchpad) — users never clone this repo - Package name stays
claude-launchpad. Cursor Cloud memory is not supported - See
.cursor/rules/architecture.mdcfor 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 covering generators, analyzers, fixers, repos, services, utils, dashboard interactions - Regression tests (
pnpm test:regressionandpnpm test:regression:cursor): real CLI against temp projects - Benchmarks (
pnpm bench:memory): 59 tests measuring retrieval, injection, decay, and scale
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. 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.cursor/rules/conventions.mdcfor 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.mdc), 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).
For an independent second pass without superpowers, dispatch .cursor/agents/code-reviewer.md with the base/head SHAs.
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
.cursor/rules/conventions.mdcfor 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
.cursor/rules/conventions.mdcfor 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.mdc)
- Never claim Cursor Cloud memory support
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 + workflow rules + workflow-check hook shipped together
- Cursor Agent is a second local harness via
--harness. Init default staysclaude. Scores are never averaged. Same memory DB +memory serve
Memory (agentic-memory)
This project uses agentic-memory for persistent memory across sessions. Claude Code and Cursor share the same local SQLite database and npx claude-launchpad memory serve.
- DO NOT use the built-in Claude auto-memory system (~/.claude/projects/*/memory/) or Cursor Cloud memory
- Cursor does not auto-inject memories at session start — call
memory_searchwhen you need prior context - 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
- Cross-device sync is explicit:
memory sync,memory push, ormemory pull
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.

