apollo-devtools

apollo-devtools is a cursor rule for Cursor from holtwood/awesome-cursorrules-zh. It costs 0 tokens per session (248 once invoked), scanned A, original, MIT.

A debugging guide for Apollo Client DevTools, a browser extension for inspecting GraphQL requests and Apollo's local cache. It covers queries, mutations, subscriptions, variables, responses, and errors.

In plain words
What is it for?
Use it to inspect Apollo cache contents, trace data flow, investigate inconsistent data, and identify slow or excessive GraphQL requests.
Why use it?
It makes it easier to see what the application sent, what the server returned, and why cached data or requests are incorrect.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/holtwood/awesome-cursorrules-zh/apollo-devtools
Clone the repo
git clone --depth 1 https://github.com/holtwood/awesome-cursorrules-zh

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for apollo-devtools

README.md
[![agentmods](https://agentmods.dev/badge/rules/holtwood/awesome-cursorrules-zh/apollo-devtools.svg)](https://agentmods.dev/rules/holtwood/awesome-cursorrules-zh/apollo-devtools)
Your own site
<a href="https://agentmods.dev/rules/holtwood/awesome-cursorrules-zh/apollo-devtools"><img src="https://agentmods.dev/badge/rules/holtwood/awesome-cursorrules-zh/apollo-devtools.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 248 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00248
Opus 5 $0.00000 $0.00124
Sonnet 5 $0.00000 $0.00050
Haiku 4.5 $0.00000 $0.00025

Measured 2d ago against content hash 2d499547cf24, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

apollo-devtools scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

docs/rules/frontend/react/apollo-graphql/apollo-devtools.mdc · 12 lines

What it actually says

  • 使用 Apollo Client DevTools 进行调试
    • 安装与集成:在开发环境中安装并集成 Apollo Client DevTools 浏览器扩展,以便于调试 Apollo Client 的操作和缓存状态。
    • 查询与变更监控:利用 DevTools 监控所有 GraphQL 查询(Queries)、变更(Mutations)和订阅(Subscriptions)的请求与响应,包括变量、操作名称和返回数据。
    • 缓存检查:检查 Apollo Client 的规范化缓存(Normalized Cache)内容,理解数据如何存储、更新和失效,有助于排查数据不一致问题。
    • 性能分析:分析 GraphQL 请求的性能,识别潜在的瓶颈,例如慢查询或过多的网络请求。
    • 错误诊断:查看 GraphQL 错误信息,快速定位后端或前端数据处理中的问题。
    • 状态管理:观察组件如何与 Apollo Client 交互,以及数据流如何在应用中传递。
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 12 lines · 0 tokens per session scan A 2d499547cf24

Subscribe to this mod's changes

apollo-devtools is a cursor rule published in the GitHub repository holtwood/awesome-cursorrules-zh (232 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 248 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.