monorepo-template / quality
Cursor rule19 starsChanged 16 days agoApache-2.0View on GitHub
Simplicity - smallest correct diff; reuse, platform, installed deps before new code; no speculative abstraction
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,144 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 repository59 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .agents/skills/vercel-react-best-practices/AGENTS.mdAGENTS.md
- hooks/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- hooks/CLAUDE.mdCLAUDE.md
- .cursor/rules/backend/hono-gateway.mdcCursor rule
- .cursor/rules/backend/ports.mdcCursor rule
- .cursor/rules/backend/service-bindings.mdcCursor rule
- .cursor/rules/backend/workers-cache.mdcCursor rule
- .cursor/rules/backend/workers-config.mdcCursor rule
- .cursor/rules/contracts/contracts.mdcCursor rule
- .cursor/rules/core/agent-instructions.mdcCursor rule
- .cursor/rules/core/boundaries.mdcCursor rule
- .cursor/rules/core/guardrails.mdcCursor rule
- .cursor/rules/core/turborepo.mdcCursor rule
- .cursor/rules/core/worktrees.mdcCursor rule
- .cursor/rules/frontend/react.mdcCursor rule
- .cursor/rules/frontend/tailwind.mdcCursor rule
- .cursor/rules/frontend/tanstack-query.mdcCursor rule
- .cursor/rules/frontend/tanstack-router.mdcCursor rule
- .cursor/rules/frontend/vite-config.mdcCursor rule
- .cursor/rules/ops/cd.mdcCursor rule
- .cursor/rules/ops/changesets.mdcCursor rule
- .cursor/rules/ops/ci.mdcCursor rule
- .cursor/rules/ops/previews.mdcCursor rule
- .cursor/rules/ops/quality-report.mdcCursor rule
- .cursor/rules/ops/release.mdcCursor rule
- .cursor/rules/quality/code-style.mdcCursor rule
- .cursor/rules/quality/comments.mdcCursor rule
- .cursor/rules/quality/knip.mdcCursor rule
- .cursor/rules/quality/lint-config.mdcCursor rule
- .cursor/rules/quality/markdown-style.mdcCursor rule
- .cursor/rules/quality/naming.mdcCursor rule
- .cursor/rules/quality/reporting.mdcCursor rule
- .cursor/rules/quality/testing.mdcCursor rule
- .cursor/rules/quality/typescript-config.mdcCursor rule
- .cursor/rules/tests/front-react.mdcCursor rule
- .cursor/rules/tests/hono-workers.mdcCursor rule
- cfSkill
- changesetSkill
- front-vitestSkill
- git-commitSkill
- honoSkill
- monorepo-agent-setupSkill
- pnpmSkill
- react-doctorSkill
- reviewSkill
- review-stackSkill
- run-appSkill
- security-auditSkill
- skills-updateSkill
- tanstack-configSkill
- tanstack-querySkill
- tanstack-routerSkill
- turborepoSkill
- ui-ux-design-best-practicesSkill
- vercel-react-best-practicesSkill
- workers-best-practicesSkill
- skills-updateSkill
The file
We split this simplicity.mdc into the rules it gives an agent
4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Read the task and every file the change touches, and trace the real flow end to end before choosing a solution: the smallest change in the …
- Distinctive: line 16
Stop at the first rung that holds:
- Distinctive: line 22
Only then: write the minimum code that works.
- Distinctive: line 36
Prefer deletion over addition and boring over clever.
≈ “Common” is an estimate: at least 1 in 5 of the 6,668 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: "Simplicity - smallest correct diff; reuse, platform, installed deps before new code; no speculative abstraction" alwaysApply: true --- # Simplicity The best diff is the smallest one that fully solves the problem. Agents over-build - a layer, a helper, a fallback, a dependency "for later"; later can build for itself. Writing less code never means understanding less. ## Understand first - Read the task and every file the change touches, and trace the real flow end to end before choosing a solution: the smallest change in the wrong place is a second bug. - A bug report names a symptom. Grep every caller of the function you are about to touch and fix the shared function once, not only the reported path. ## The ladder Stop at the first rung that holds: 1. **Does it need to exist?** Skip a speculative need and say so in one line. 2. **Is it already in the repo?** Reuse the `@repo/*` package, helper, schema, or pattern a few files over; re-implementing what exists is the most common agent slop. 3. **Does the platform do it?** Web and Workers APIs (`URL`, `URLSearchParams`, `Intl`, `crypto.randomUUID`, `structuredClone`, `AbortSignal.timeout`, `Response.json`), CSS over JS, a native element over a widget, a database constraint over app code. 4. **Does an installed dependency do it?** Hono helpers and middleware, Zod, TanStack Query and Router features. Never add a dependency for what a few lines do; a justified one goes through the catalog. 5. **Only then** write the minimum code that works. Between two options of the same size, take the one correct on edge cases: less code, not a flimsier algorithm. ## Do not generate - An interface, factory, generic, or strategy with one implementation; a wrapper that only delegates; a layer with one caller. - Options, parameters, flags, or config nobody sets. A value that never changes is a `const`. - A new file for a helper with one caller, or a barrel that re-exports one thing. - Defensive code the types already rule out: a null check on a non-nullable value, re-parsing data a Zod schema already parsed, a `try`/`catch` that only rethrows or that logs and swallows. - Fallbacks, retries, or caches no observed failure or measurement asked for. - Back-compat aliases, shims, or re-exports for code with no external caller - update the callers and delete the old name. - Stubs, TODO scaffolding, and extension points "for later". Prefer deletion over addition and boring over clever. Fewer lines is not a goal on its own: clarity wins a tie with brevity, so no nested ternaries and no dense one-liners. ## Never simplify away Validation at trust boundaries, error handling that prevents data loss, security and sensitive-data handling ([guardrails.mdc](../core/guardrails.mdc)), accessibility basics, and anything explicitly requested. If the user asks for the full version, build it without re-arguing. Non-trivial logic still gets one test at its owning boundary ([testing.mdc](testing.mdc)). ## Deliberate ceilings A shortcut with a known limit - linear scan, global lock, naive heuristic, in-memory cap - carries one comment naming the limit and the trigger to revisit it: `// ceiling: linear scan over all rows; index when the table passes ~10k`. It records a why, so it meets [comments.mdc](comments.mdc). A `ceiling:` without a trigger is not allowed. `/review simplicity` collects them into a ledger. ## Reporting For a large request, ship the smallest version that covers it and add one line: "Skipped X; add when Y." Do not stall on a question a sensible default answers, and do not write paragraphs defending a simplification.
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.

