claude-launchpad / rules
Cursor rule8 starsChanged 5 months agoMITView on GitHub
Project conventions
- Commits and pushes
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 4,371 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.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/architecture.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 conventions.mdc into the rules it gives an agent
28 rules. About 0 are common, 16 are distinctive, and 12 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈16
Distinctive · estimate
This author's own choices. Worth a look.
12
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
All commits go directly to master — no feature branches for solo dev
- Distinctive: line 12
If contributors join: revisit and add feature branch + PR requirement
- Very specific: line 20
Use lookup tables / config objects over switch statements (see tryFix(), detectScripts())
- Very specific: line 26
Do NOT bump version in package.json or cli.ts — the script handles it
- Very specific: line 27
Run pnpm publish:dev — auto-bumps to x.y.z-dev.N, publishes under dev tag (not latest)
- Very specific: line 28
Commit the version bump: git add package.json src/cli.ts && git commit -m "chore: dev publish"
- Distinctive: line 29
No changelog, no GitHub release, no git tag
- Very specific: line 32
Update CHANGELOG.md (format: ## [x.y.z] — YYYY-MM-DD with Added/Changed/Fixed/Removed)
- Very specific: line 33
Commit, push, then pnpm publish:release
- Very specific: line 34
Create git tag + GitHub release: git tag v<version> && git push origin v<version> && gh release create v<version>
- Very specific: line 42
Run pnpm typecheck && pnpm test:run — NEVER commit if either fails
- Very specific: line 43
If changes touch src/commands/memory/ — run pnpm bench:memory and verify no regressions
- Distinctive: line 44
Check function lengths (<50 lines) and file lengths (<400 lines)
- Very specific: line 45
Verify no any types, no mutation, no hardcoded values
- Very specific: line 47
Before sprint-ending commits: invoke superpowers:requesting-code-review and address Important findings
- Distinctive: line 81
If unsure which bucket a change falls into: default to rigid TDD.
- Very specific: line 93
When creating skills (.claude/skills/*/SKILL.md or .cursor/skills/*/SKILL.md):
- Distinctive: line 94
Add TRIGGER when / DO NOT TRIGGER when clauses in the description for auto-invocation
- Distinctive: line 95
Add allowed-tools in frontmatter to restrict tool access (e.g.
- Distinctive: line 96
Add argument-hint in frontmatter showing the expected input format
- Distinctive: line 101
After every feature merge or sprint completion:
- Distinctive: line 103
Delete completed/killed items entirely — no strikethrough, no tombstones, they're just noise
- Distinctive: line 104
Update partially-done items to reflect remaining work only
- Distinctive: line 109
When any feature, fix, or behavioral change ships, evaluate all three surfaces:
- Distinctive: line 114
Not every change touches all three.
- Distinctive: line 120
Never spawn agents for sequential/dependent work — only for independent parallel tasks
- Distinctive: line 121
Every agent brief has four parts: Mission (one sentence), Context (paths, repro, constraints — agents start empty), Scope fence (what NOT …
- Distinctive: line 122
Treat agent output as testimony, not truth — spot-check load-bearing claims before building on them
≈ “Common” is an estimate: at least 1 in 5 of the 7,324 Cursor rule 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
--- description: Project conventions alwaysApply: true --- # Project Conventions ## Git (Trunk-Based) - All commits go directly to master — no feature branches for solo dev - Conventional commits: `feat:`, `fix:`, `docs:`, `refactor:`, `test:`, `chore:` - Tag releases with `git tag v<version>` after publishing to npm - If contributors join: revisit and add feature branch + PR requirement ## Code Style - Immutable data patterns — never mutate, always return new objects - Functions < 50 lines, files < 400 lines - Named exports only, no `any` types - Handle errors explicitly — no empty catch blocks - Validate input at system boundaries - Use lookup tables / config objects over switch statements (see `tryFix()`, `detectScripts()`) ## Versioning & Publishing - Semver: patch (bugfix/refactor), minor (new feature), major (breaking) - **NEVER bump version on every commit.** Accumulate changes under a dev prerelease tag. - **Dev publish** (during development): 1. Do NOT bump version in package.json or cli.ts — the script handles it 2. Run `pnpm publish:dev` — auto-bumps to `x.y.z-dev.N`, publishes under `dev` tag (not `latest`) 3. Commit the version bump: `git add package.json src/cli.ts && git commit -m "chore: dev publish"` 4. No changelog, no GitHub release, no git tag - **Release publish** (when enough changes accumulate): 1. Bump version in package.json AND src/cli.ts to the next clean semver (e.g. `0.8.0`) 2. Update CHANGELOG.md (format: `## [x.y.z] — YYYY-MM-DD` with Added/Changed/Fixed/Removed) 3. Commit, push, then `pnpm publish:release` 4. Create git tag + GitHub release: `git tag v<version> && git push origin v<version> && gh release create v<version>` 5. Flip the version's TASKS.md Release Plan line to `✅ shipped YYYY-MM-DD` and commit — the publish is not done until the plan matches npm - Docs-only / non-src changes: commit normally, no version bump, no publish ## Supply Chain - `minimumReleaseAge: 10080` (7 days) in root + docs `pnpm-workspace.yaml` — pnpm silently ignores it in package.json's pnpm field (verified) — newly published dependency versions can't enter the lockfile until they've survived a week in the wild. For an urgent CVE patch on a fresh release, add the package to `minimumReleaseAgeExclude` in pnpm-workspace.yaml temporarily — never remove the guard itself. ## Pre-Commit Checklist 1. Run `pnpm typecheck && pnpm test:run` — NEVER commit if either fails 2. If changes touch `src/commands/memory/` — run `pnpm bench:memory` and verify no regressions 3. Check function lengths (<50 lines) and file lengths (<400 lines) 4. Verify no `any` types, no mutation, no hardcoded values 5. For new features or bug fixes: confirm the test was written BEFORE the implementation (TDD, see below) 6. Before sprint-ending commits: invoke `superpowers:requesting-code-review` and address Important findings ## Superpowers Workflow Non-trivial work follows the superpowers skill sequence. Skip steps at your peril — the cost of a skill invocation is low, the cost of guessing is high. - **`superpowers:brainstorming`** — before any creative/design work. Clarify intent + tradeoffs before touching code. - **`superpowers:writing-plans`** — multi-step work. Plan file is the source of truth during execution. - **`superpowers:test-driven-development`** — new features, bug fixes, algorithm changes. Failing test first. - **`superpowers:executing-plans`** — drive implementation from the plan, with review checkpoints. - **`superpowers:systematic-debugging`** — bug or unexpected behavior. Use BEFORE guessing a fix. Often replaces Stop-and-Swarm. - **`superpowers:verification-before-completion`** — before claiming done. Run the commands, confirm output, evidence > assertions. - **`superpowers:requesting-code-review`** — MANDATORY before sprint-ending commits (see Sprint Review). - **`superpowers:dispatching-parallel-agents`** — genuinely independent tasks only. Not for sequential work. - **`superpowers:finishing-a-development-branch`** — once code-review passes, decide merge/PR/cleanup. **Red flag phrases that mean invoke the skill anyway**: "this is too simple", "I know what that means", "I'll just do this one thing first", "let me check git first". All are rationalizations. ## Test-Driven Development (when it's rigid) For the following changes, TDD is NOT optional. Invoke `superpowers:test-driven-development` and write the failing test BEFORE any implementation: - **New generator in `src/commands/init/generators/`** — test asserts required sections/content shape - **New analyzer in `src/commands/doctor/analyzers/`** — test asserts finding shape (severity, message substring, fix hint) - **New fixer** — test asserts the fix applies, is idempotent, and does NOT clobber existing user content - **Bug fix in `src/commands/memory/`** — regression test seeded from the bug's minimal repro; then the fix - **Algorithm change in `src/commands/memory/services/` or `utils/`** — benchmark threshold update + unit coverage For the following, TDD is **flexible** (write tests within the same commit, but order doesn't have to be strict): - Docs updates (README, landing, CHANGELOG) - Version bumps + release plumbing - Rule file content edits (`.claude/rules/*.md` or `.cursor/rules/*.mdc`) - CLI help strings, log messages, prompts If unsure which bucket a change falls into: default to rigid TDD. The test is cheap to write. ## Sprint Review (MANDATORY before committing sprint-ending changes) 1. Invoke `superpowers:requesting-code-review`. The skill dispatches the `superpowers:code-reviewer` subagent with base/head SHAs. 2. The reviewer returns Strengths / Critical / Important / Minor / Assessment. 3. **Fix all Critical and Important findings before committing.** 4. Minor findings: file as BACKLOG.md WPs unless trivial. 5. Skip ONLY if the sprint was trivial (docs-only, config-only, no logic). The review MUST happen before the sprint-ending commit, not after. If you already committed, amend or stack a follow-up commit before pushing. ## Skill Authoring When creating skills (`.claude/skills/*/SKILL.md` or `.cursor/skills/*/SKILL.md`): - Add TRIGGER when / DO NOT TRIGGER when clauses in the description for auto-invocation - Add allowed-tools in frontmatter to restrict tool access (e.g. Read, Glob, Grep for read-only skills) - Add argument-hint in frontmatter showing the expected input format - Structure as phases: Research, Plan, Execute, Verify with "Done when:" success criteria per phase - Handle edge cases and preconditions before execution ## Backlog Hygiene After every feature merge or sprint completion: 1. Scan BACKLOG.md for items that are now done, partially done, or no longer relevant 2. Delete completed/killed items entirely — no strikethrough, no tombstones, they're just noise 3. Update partially-done items to reflect remaining work only 4. Re-prioritize if the feature changed what matters next 5. BACKLOG.md should never exceed 50 lines of active items ## Content Updates When any feature, fix, or behavioral change ships, evaluate all three surfaces: - **Landing page** (`docs/app/(home)/page.tsx`): high-level hooks — what it does, why it matters. No implementation details. - **Docs** (`docs/content/docs/*.mdx`): detailed documentation with flags, examples, and edge cases. - **README** (`README.md`): dev-facing perspective — quick setup, commands, what's new. Not every change touches all three. A new doctor check updates docs only. A new command updates all three. Decide per change, but always consider all three. ## Parallel Agents - Research tasks: spawn multiple agents with different lenses - Stress testing: use one Bash call with a shell loop (agents can't run Bash — see memory) - Code review: spawn an Explore agent to audit while continuing to build - Never spawn agents for sequential/dependent work — only for independent parallel tasks - Every agent brief has four parts: Mission (one sentence), Context (paths, repro, constraints — agents start empty), Scope fence (what NOT to touch), Return format (structured findings with file:line evidence) - Treat agent output as testimony, not truth — spot-check load-bearing claims before building on them
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.

