monorepo-template / core
Cursor rule19 starsChanged 16 days agoApache-2.0View on GitHub
Editing agent instructions - how layers load, one fact one home, density conventions, dual-tree sync.
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/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/simplicity.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 agent-instructions.mdc into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
Always-on (root AGENTS.md, rules without paths): only what almost every task needs.
- Distinctive: line 26
Remove a requirement only after showing it is stated elsewhere at the same point of use, enforced (hook, lint, settings, CI), or derivable …
≈ “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: "Editing agent instructions - how layers load, one fact one home, density conventions, dual-tree sync." alwaysApply: false globs: .claude/rules/**,.cursor/rules/**,**/AGENTS.md,**/CLAUDE.md,.claude/agents/**,.cursor/agents/** --- # Agent Instructions How the instruction layers load, and how to edit them without growing context. Long-form layout and sync policy: `.agents/skills/monorepo-agent-setup/SKILL.md` (a human-only skill: Read it). ## Loading (Claude Code, verified) - Root `CLAUDE.md` → `@AGENTS.md` and every rule without `paths` load at session start and in every custom subagent. Path-scoped rules and a nested `CLAUDE.md` → `AGENTS.md` load when a matching file is Read (subagents included) and then stay loaded. Built-in `Explore` / `Plan` skip root `CLAUDE.md`, `AGENTS.md`, and the always-on rules; they load nested guides and path-scoped rules only on file access. - Markdown links are never followed: a link costs only its text, and the target loads only if an agent Reads it. ## Placement - **One fact, one home**: the file that loads at the fact's point of use. Files that load together - same `paths`, a rule plus the nested `AGENTS.md` of the directory it covers, anything plus the always-on layer - never restate each other. - Always-on (root `AGENTS.md`, rules without `paths`): only what almost every task needs. Path-scoped rule: what matters while editing the matching files - pick `paths` by where the content is used, not by topic. Nested `AGENTS.md`: the package map and local workflows. Skill: multi-step procedures. `README.md`: humans. - A config file's rationale lives in a rule scoped to that file ([knip.mdc](../quality/knip.mdc), [lint-config.mdc](../quality/lint-config.mdc)), and the config stays comment-free where [comments.mdc](../quality/comments.mdc) says so. ## Density - Imperative bullets, one line each ([markdown-style.mdc](../quality/markdown-style.mdc)): the rule, then only the reason a reader would otherwise undo it. - Do not restate what the triggering file already shows, what a hook, lint rule, or setting enforces (name the enforcer in one clause when the agent must know), or generic framework knowledge. No diagrams repeating a list, no doc-link lists, no history beyond one clause. Bold only a hard constraint. - Remove a requirement only after showing it is stated elsewhere at the same point of use, enforced (hook, lint, settings, CI), or derivable from the file that triggers the rule.
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.

