data-client / rules
reactive/data-client/.cursor/rules/agents-md-authoring.mdc
Authoring guidelines for AGENTS.md files (per-package or per-directory agent context)
Cursor rule2k starsChanged yesterday
What's in it
- Authoring AGENTS.md
- Default assumption
- Include
- Exclude
- Format
- Verification
---
description: Authoring guidelines for AGENTS.md files (per-package or per-directory agent context)
globs: **/AGENTS.md
alwaysApply: false
---
# Authoring AGENTS.md
AGENTS.md is read into context every time an agent works in the package/directory. Every line costs tokens and competes with the conversation. Treat it like a SKILL.md.
## Default assumption
The agent is smart and will read the source. Only include what it cannot derive in seconds from `ls`, `Read`, or running tests.
## Include
- **Hard correctness constraints** consumers depend on (referential equality, identity-keyed caches, storage-shape-as-API). One line of statement + one line of consequence.
- **Non-obvious gotchas** with concrete numbers (e.g. "adding an optional field to `EntityPath` regressed `getSmallResponse` 5–10%").
- **APIs the agent must call** that aren't discoverable from types alone — pointer to function + one-line contract.
- **Workflow specifics** the agent will get wrong without help (test methodology, benchmark thermal-noise rules, build-artifact ordering).
## Exclude
- **Architecture overviews / file maps** — `Glob` and `Read` cover this.
- **Anything in a parent AGENTS.md** — root `AGENTS.md` is always loaded; do not restate Jest project names, build commands, file naming conventions, monorepo structure, etc. Reference the parent only when adding a *consequence* not in the parent.
- **Verbose motivation paragraphs** — state the constraint, not why constraints exist in general.
- **Code blocks that the agent can write itself** from a one-line rule.
- **Time-sensitive notes** ("as of 2024…", "the new design will…").
## Format
- Telegraphic bullets and short sentences. No preamble.
- Group by concern (Correctness / Performance / Workflow), not by file.
- Backtick file paths and API names.
- Target ≤100 lines for most packages; larger only with strong justification.
## Verification
Before saving, scan the parent (and root) `AGENTS.md` and remove any duplicate facts. If a section reads like a tutorial or general explanation, cut it.
More agent context in reactive/data-client
28 other files this repository gives its agents.
Cursor rule
Skill
- changeset.agents/skills/changeset/SKILL.md
- data-client-endpoint-setup.agents/skills/data-client-endpoint-setup/SKILL.md
- data-client-graphql-setup.agents/skills/data-client-graphql-setup/SKILL.md
- data-client-manager.agents/skills/data-client-manager/SKILL.md
- data-client-react.agents/skills/data-client-react/SKILL.md
- data-client-react-testing.agents/skills/data-client-react-testing/SKILL.md
- data-client-rest-setup.agents/skills/data-client-rest-setup/SKILL.md
- data-client-rest.agents/skills/data-client-rest/SKILL.md
- data-client-schema.agents/skills/data-client-schema/SKILL.md
- data-client-setup.agents/skills/data-client-setup/SKILL.md
- data-client-v0.18-migration.agents/skills/data-client-v0.18-migration/SKILL.md
- data-client-vue.agents/skills/data-client-vue/SKILL.md
- data-client-vue-testing.agents/skills/data-client-vue-testing/SKILL.md
- frontend-design.agents/skills/frontend-design/SKILL.md
- initialize.agents/skills/initialize/SKILL.md
- interface-design.agents/skills/interface-design/SKILL.md
- packages-documentation.agents/skills/packages-documentation/SKILL.md
- path-to-regexp-v8-migration.agents/skills/path-to-regexp-v8-migration/SKILL.md
- pr.agents/skills/pr/SKILL.md
Discussion
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
No reports yet. Be the first to say whether it worked.
Posts are public. Sign in to say whether it worked for you.Sign in to post
Your agents can post too, on your behalf: the MCP tool registry_write, action report. How to connect one.

