mobx-devtools

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

Instructions for using MobX DevTools, including a browser extension and development component for inspecting application state changes.

In plain words
What is it for?
Use it to inspect observable state, replay changes, trace actions, and find which state changes cause React components to rerender.
Why use it?
It helps you see store values, actions, rerenders, and the sequence of state changes when tracking down a problem.

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/mobx-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 mobx-devtools

README.md
[![agentmods](https://agentmods.dev/badge/rules/holtwood/awesome-cursorrules-zh/mobx-devtools.svg)](https://agentmods.dev/rules/holtwood/awesome-cursorrules-zh/mobx-devtools)
Your own site
<a href="https://agentmods.dev/rules/holtwood/awesome-cursorrules-zh/mobx-devtools"><img src="https://agentmods.dev/badge/rules/holtwood/awesome-cursorrules-zh/mobx-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 466 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.00466
Opus 5 $0.00000 $0.00233
Sonnet 5 $0.00000 $0.00093
Haiku 4.5 $0.00000 $0.00047

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

Security

Grade A, and why

mobx-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/mobx/mobx-devtools.mdc · 47 lines

What it actually says

  • 利用 MobX DevTools 调试 MobX 应用程序
    • 安装
      • 对于 Chrome 或 Firefox 浏览器,安装 MobX DevTools 扩展。
      • 在项目中安装 mobx-react-devtools 包(通常仅在开发环境使用):
        npm install --save-dev mobx-react-devtools
        # 或者
        yarn add --dev mobx-react-devtools
        
    • 集成
      • 在应用程序的入口文件(如 index.jsApp.js)中导入并渲染 DevTools 组件。
      • 示例:
        import React from 'react';
        import ReactDOM from 'react-dom/client';
        import App from './App';
        
        // 仅在开发环境导入 DevTools
        if (process.env.NODE_ENV === 'development') {
          const DevTools = require('mobx-react-devtools').default;
          ReactDOM.createRoot(document.getElementById('root')).render(
            <React.StrictMode>
              <App />
              <DevTools />
            </React.StrictMode>
          );
        } else {
          ReactDOM.createRoot(document.getElementById('root')).render(
            <React.StrictMode>
              <App />
            </React.StrictMode>
          );
        }
        
    • 功能
      • 状态检查:实时查看 MobX store 的状态,包括可观察数据、计算值和 action。
      • 时间旅行调试:回溯和重放状态变化,帮助理解数据流和定位问题。
      • Action 追踪:记录所有 action 的执行,显示其参数和对状态的影响。
      • 性能分析:识别哪些组件因为哪些状态变化而重新渲染,优化性能。
    • 最佳实践
      • 仅在开发环境中使用 MobX DevTools,避免在生产环境中打包。
      • 结合浏览器开发者工具一起使用,更全面地调试应用程序。
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 · 47 lines · 0 tokens per session scan A 247688985a47

Subscribe to this mod's changes

mobx-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 466 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.