data-client / rules
Cursor rule2k starsChanged 3 days agoApache-2.0View on GitHub
Constraints for the agent browser-debugging docs (devtools-debugging snippets and per-tool browser setup pages)
We split this agent-browser-docs.mdc into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are 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.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Every snippet has to work in every way, so each one:
- Very specific: line 39
Never send Page.reload through browser_cdp, not even to test it: it reloads the Cursor window, ends the turn, and the resumed turn sent it …
- Very specific: line 41
Every result ends with a non-JSON Unsupported content type "metadata" item, so parse only the first content item.
≈ “Common” is an estimate: at least 1 in 5 of the 6,350 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: Constraints for the agent browser-debugging docs (devtools-debugging snippets and per-tool browser setup pages)
globs: docs/core/_agents/**, docs/core/getting-started/debugging.md, docs/core/getting-started/agent-skills.md, docs/core/api/DevToolsManager.md, website/framework-docs/checkBrowserSnippets.mjs
alwaysApply: false
---
# Agent browser-debugging docs
## Layout
- `docs/core/_agents/devtools-debugging.md` is the core: every snippet, the ways a tool can run one (Browser Tools, whose table is the only list of each tool's runner, way and readers), and fallbacks for tools without request or console readers. Each `browser-<tool>.md` is a thin adapter: install, open the page, which way it runs snippets, and quirks only that tool has. Anything a second tool could use goes in the core.
- A tool that fits none of the ways adds a `###` way to the core and a runner to `WAYS` in `checkBrowserSnippets.mjs`.
- Adding, renaming or dropping a tool touches: the Browser Tools table, the agent table in `browser-cursor.md` (Cursor only), the Status table below, the tool names on `getting-started/debugging.md`, `getting-started/agent-skills.md` and `api/DevToolsManager.md`, and both skills' `references.json` plus the reference line in their `SKILL.md`.
## Snippet contract
Every snippet has to work in every way, so each one:
- Is a function expression (`() => {}` or `async () => {}`), never an IIFE: Function tools call what they're given, and the expression ways have the agent wrap it as `(<snippet>)()`.
- Returns plain JSON: DOM nodes, functions and promises come back as `{}`. Map actions and `PerformanceEntry`s (getter fields) to plain fields.
- Reads the store through `__DC__` and keeps its own state on `globalThis.__DC_*`, which any page load clears. Install snippets (the console capture) are safe to rerun: return early if installed, cap logs (200, drop half), return `{ ok, ... }`.
- Returns `{ error }` for expected failures instead of throwing, since each way reports a throw differently.
- Takes endpoints from the action log (`a.endpoint`, `a.args`), never `import('/src/...')`, which only works on native-ESM dev servers (Vite).
- Prefers sync: the Expression way needs two calls for an async snippet.
## Status
| Tool | Verified |
|---|---|
| Cursor desktop (`cursor-ide-browser`) | Live, Cursor 3.25.9 ([raw results](https://github.com/reactive/data-client/pull/4428#issuecomment-6283999203)) |
| Cursor cloud | Playwright MCP starts on its image (Chrome 154); no live run with the tools enabled yet |
| Playwright MCP | Live on `examples/todo-app` ([#4428](https://github.com/reactive/data-client/pull/4428#issuecomment-6284907053)) |
| Chrome DevTools MCP | Against its source |
| Claude in Chrome | Not live-tested |
Cursor desktop traps the docs don't need to tell agents:
- `browser_cdp` returns command results, never CDP events, and Cursor writes no browser log files (`.cursor/browser-logs` stays empty), so don't look for a network or console log there.
- Never send `Page.reload` through `browser_cdp`, not even to test it: it reloads the Cursor window, ends the turn, and the resumed turn sent it again.
- A `browser_navigate` that opens a new tab can return a snapshot of `about:blank`; take a `browser_snapshot` before trusting the page.
- Every result ends with a non-JSON `Unsupported content type "metadata"` item, so parse only the first content item.
## Verifying
- Run `yarn check:browser-snippets` after any snippet or core change. It replays the ways over CDP in Chromium, not the tools themselves, so a new claim about a tool still needs a live run in that tool: two earlier Cursor claims checked only against plain Chrome CDP were wrong. Record the raw input and output of each live run and turn it into a check in `checkBrowserSnippets.mjs`.
- `examples/todo-app` (React, webpack) isn't a yarn workspace: `npm ci && npm start` serves `:8080`. It uses published packages, so `__DC__` is undefined there until a release ships it (`.changeset/devtools-action-log.md`).
Trending
More talk lately.about the whole repository
Who's talking about reactive/data-client
- sudosubin/agents.nix“claude-code-plugins.github.reactive.data-client: 035b134 → 6983399”GitHub · Oct 30, 2026
- sudosubin/agents.nix“agent-skills.github.reactive.data-client: 609790d → 6983399”GitHub · Oct 30, 2026
- sudosubin/agents.nix“claude-code-marketplaces.github.reactive.data-client: afe7b24 → 6983399”GitHub · Oct 30, 2026
- sudosubin/agents.nix“claude-code-plugins.github.reactive.data-client: a8ab1a6 → 035b134”GitHub · Oct 29, 2026
- sudosubin/agents.nix“claude-code-marketplaces.github.reactive.data-client: a8ab1a6 → afe7b24”GitHub · Oct 29, 2026
The biggest 5 of 50 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 50
Talked about on GitHub (50 times).
On GitHub · 50
- Oct 30, 2026claude-code-plugins.github.reactive.data-client: 035b134 → 6983399 — sudosubin/agents.nix0 reactions
- Oct 30, 2026agent-skills.github.reactive.data-client: 609790d → 6983399 — sudosubin/agents.nix0 reactions
- Oct 30, 2026claude-code-marketplaces.github.reactive.data-client: afe7b24 → 6983399 — sudosubin/agents.nix0 reactions
- Oct 29, 2026claude-code-plugins.github.reactive.data-client: a8ab1a6 → 035b134 — sudosubin/agents.nix0 reactions
- Oct 29, 2026claude-code-marketplaces.github.reactive.data-client: a8ab1a6 → afe7b24 — sudosubin/agents.nix0 reactions
45 more on GitHub
- Oct 29, 2026claude-code-marketplaces.github.reactive.data-client: ebec7c0 → a8ab1a6 — sudosubin/agents.nix0 reactions
- Oct 29, 2026agent-skills.github.reactive.data-client: 0-unstable-2026-10-28 → 0-unstable-2026-10-29 — sudosubin/agents.nix0 reactions
- Oct 29, 2026claude-code-plugins.github.reactive.data-client: 0-unstable-2026-10-28 → 0-unstable-2026-10-29 — sudosubin/agents.nix0 reactions
- Oct 29, 2026claude-code-marketplaces.github.reactive.data-client: 0-unstable-2026-10-28 → 0-unstable-2026-10-29 — sudosubin/agents.nix0 reactions
- Oct 29, 2026agent-skills.github.reactive.data-client: 34c4aed → 7b5e2bb — sudosubin/agents.nix0 reactions
- Oct 28, 2026claude-code-plugins.github.reactive.data-client: init at 0-unstable-2026-10-28 — sudosubin/agents.nix0 reactions
- Oct 28, 2026claude-code-marketplaces.github.reactive.data-client: e7c2409 → 34c4aed — sudosubin/agents.nix0 reactions
- Oct 28, 2026agent-skills.github.reactive.data-client: 0-unstable-2026-10-27 → 0-unstable-2026-10-28 — sudosubin/agents.nix0 reactions
- Oct 28, 2026claude-code-marketplaces.github.reactive.data-client: init at 0-unstable-2026-10-28 — sudosubin/agents.nix0 reactions
- Oct 27, 2026agent-skills.github.reactive.data-client: 0bc8a67 → 41438b2 — sudosubin/agents.nix0 reactions
- Oct 27, 2026agent-skills.github.reactive.data-client: 5a08c80 → 0bc8a67 — sudosubin/agents.nix0 reactions
- Oct 27, 2026agent-skills.github.reactive.data-client: 0-unstable-2026-10-26 → 0-unstable-2026-10-27 — sudosubin/agents.nix0 reactions
- Oct 27, 2026agent-skills.github.reactive.data-client: 3a33fbe → 6394016 — sudosubin/agents.nix0 reactions
- Oct 26, 2026agent-skills.github.reactive.data-client: 1782805 → 3a33fbe — sudosubin/agents.nix0 reactions
- Oct 26, 2026chore(deps): bump @data-client/rest from 0.18.1 to 0.18.2 — hillstreet-ph/open-connect0 reactions · 4 comments
- Oct 26, 2026agent-skills.github.reactive.data-client: c2753d7 → 1782805 — sudosubin/agents.nix0 reactions
- Oct 26, 2026agent-skills.github.reactive.data-client: 0-unstable-2026-10-25 → 0-unstable-2026-10-26 — sudosubin/agents.nix0 reactions
- Oct 25, 2026agent-skills.github.reactive.data-client: 4f1c324 → c90ee67 — sudosubin/agents.nix0 reactions
- Oct 25, 2026agent-skills.github.reactive.data-client: e0cfa7e → 4f1c324 — sudosubin/agents.nix0 reactions
- Oct 25, 2026agent-skills.github.reactive.data-client: 0-unstable-2026-10-24 → 0-unstable-2026-10-25 — sudosubin/agents.nix0 reactions
- Oct 24, 2026agent-skills.github.reactive.data-client: 0-unstable-2026-10-23 → 0-unstable-2026-10-24 — sudosubin/agents.nix0 reactions
- Oct 24, 2026agent-skills.github.reactive.data-client: 0-unstable-2026-10-21 → 0-unstable-2026-10-23 — sudosubin/agents.nix0 reactions
- Oct 21, 2026agent-skills.github.reactive.data-client: 0-unstable-2026-10-20 → 0-unstable-2026-10-21 — sudosubin/agents.nix0 reactions
- Oct 21, 2026agent-skills.github.reactive.data-client: 5503d6e → e698229 — sudosubin/agents.nix0 reactions
- Oct 20, 2026agent-skills.github.reactive.data-client: 0-unstable-2026-10-19 → 0-unstable-2026-10-20 — sudosubin/agents.nix0 reactions
- Oct 20, 2026agent-skills.github.reactive.data-client: 7d1c42a → b6161fe — sudosubin/agents.nix0 reactions
- Oct 19, 2026agent-skills.github.reactive.data-client: 0-unstable-2026-10-18 → 0-unstable-2026-10-19 — sudosubin/agents.nix0 reactions
- Oct 18, 2026agent-skills.github.reactive.data-client: 0-unstable-2026-10-17 → 0-unstable-2026-10-18 — sudosubin/agents.nix0 reactions
- Oct 17, 2026agent-skills.github.reactive.data-client: 30f7a15 → 9abb86a — sudosubin/agents.nix0 reactions
- Oct 17, 2026agent-skills.github.reactive.data-client: 0-unstable-2026-10-16 → 0-unstable-2026-10-17 — sudosubin/agents.nix0 reactions
- Oct 16, 2026agent-skills.github.reactive.data-client: 0-unstable-2026-10-14 → 0-unstable-2026-10-16 — sudosubin/agents.nix0 reactions
- Oct 14, 2026agent-skills.github.reactive.data-client: 5b1c7b8 → f29e3e8 — sudosubin/agents.nix0 reactions
- Oct 14, 2026agent-skills.github.reactive.data-client: 3d540e8 → 5b1c7b8 — sudosubin/agents.nix0 reactions
- Oct 14, 2026agent-skills.github.reactive.data-client: 0-unstable-2026-10-06 → 0-unstable-2026-10-14 — sudosubin/agents.nix0 reactions
- Oct 6, 2026agent-skills.github.reactive.data-client: 0-unstable-2026-10-05 → 0-unstable-2026-10-06 — sudosubin/agents.nix0 reactions
- Oct 5, 2026agent-skills.github.reactive.data-client: 1bb231b → a08706b — sudosubin/agents.nix0 reactions
- Oct 5, 2026agent-skills.github.reactive.data-client: d24cabd → 1bb231b — sudosubin/agents.nix0 reactions
- Oct 5, 2026agent-skills.github.reactive.data-client: 0-unstable-2026-10-04 → 0-unstable-2026-10-05 — sudosubin/agents.nix0 reactions
- Oct 5, 2026agent-skills.github.reactive.data-client: c1a8854 → b5db637 — sudosubin/agents.nix0 reactions
- Oct 4, 2026agent-skills.github.reactive.data-client: 0-unstable-2026-09-13 → 0-unstable-2026-10-04 — sudosubin/agents.nix0 reactions
- Oct 3, 2026agent-skills.github.reactive.data-client: 0.18.1 → 0-unstable-2026-09-13 — sudosubin/agents.nix0 reactions
- Oct 1, 2026agent-skills.github.reactive.data-client: init at 0.18.1 — sudosubin/agents.nix0 reactions
- Sep 20, 2026Invariant scenarios on the deterministic runner — ntucker/order-book0 reactions
- Jun 29, 2026add Fire OS and Vega OS compatibility for 30 libraries — react-native-community/directory0 reactions
- May 8, 2024The 'declare' modifier is only allowed when the 'allowDeclareFields' option of @babel/plugin-transform-typescript or @babel/preset-typescript is enabled — wyw-in-js/wyw-in-js0 reactions
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 3,978 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 repository34 other files it gives its agents.
- AGENTS.mdAGENTS.md
- examples/AGENTS.mdAGENTS.md
- packages/AGENTS.mdAGENTS.md
- .cursor/rules/agents-md-authoring.mdcCursor rule
- .cursor/rules/agent-support.mdcCursor rule
- .cursor/rules/benchmarking.mdcCursor rule
- .cursor/rules/breaking-changes.mdcCursor rule
- .cursor/rules/ci-config.mdcCursor rule
- .cursor/rules/library-goals.mdcCursor rule
- .cursor/rules/markdown-formatting.mdcCursor rule
- .cursor/rules/skills-sync.mdcCursor rule
- .cursor/rules/v8-optimization.mdcCursor rule
- changesetSkill
- data-client-endpoint-setupSkill
- data-client-graphql-setupSkill
- data-client-managerSkill
- data-client-reactSkill
- data-client-react-testingSkill
- data-client-rest-setupSkill
- data-client-restSkill
- data-client-schemaSkill
- data-client-setupSkill
- data-clientSkill
- data-client-v0.18-migrationSkill
- data-client-vueSkill
- data-client-vue-testingSkill
- frontend-designSkill
- initializeSkill
- interface-designSkill
- packages-documentationSkill
- path-to-regexp-v8-migrationSkill
- playground-demosSkill
- prSkill
- translate-docsSkill
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.

