react-doctor

react-doctor is a skill for Claude Code, Codex from CDCgov/cdc-open-viz. It costs 51 tokens per session (528 once invoked), scanned A, original, Apache-2.0.

A procedure for scanning a React codebase for common problems and writing the results as a checklist. React is a JavaScript library for building user interfaces.

In plain words
What is it for?
Use it to review React issues, run React Doctor on a path, and create a markdown checklist of problems.
Why use it?
It turns a scan's raw findings into grouped, ordered tasks that are easier to review and fix.

Skill for Claude CodeCodex

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 skills/cdcgov/cdc-open-viz/react-doctor
Any agent
npx skills add CDCgov/cdc-open-viz --skill react-doctor
Clone the repo
git clone --depth 1 https://github.com/CDCgov/cdc-open-viz

Made for: Claude Code, Codex.

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 react-doctor

README.md
[![agentmods](https://agentmods.dev/badge/skills/cdcgov/cdc-open-viz/react-doctor.svg)](https://agentmods.dev/skills/cdcgov/cdc-open-viz/react-doctor)
Your own site
<a href="https://agentmods.dev/skills/cdcgov/cdc-open-viz/react-doctor"><img src="https://agentmods.dev/badge/skills/cdcgov/cdc-open-viz/react-doctor.svg" alt="Measured on agentmods" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 528 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.00051 $0.00528
Opus 5 $0.00026 $0.00264
Sonnet 5 $0.00010 $0.00106
Haiku 4.5 $0.00005 $0.00053

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

Security

Grade A, and why

react-doctor 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 5d 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.

.agents/skills/react-doctor/SKILL.md · 56 lines

What it actually says

React Doctor

Workflow

  1. Extract the target path from the user's message. If no path is provided, default to packages/map.
  2. Derive the base filename by replacing / with - in the path (e.g. packages/mappackages-map).
  3. Create the output directory if it doesn't exist:
mkdir -p _react-doctor/output
  1. Run React Doctor and capture output in memory only — do not save the raw scan to disk:
if command -v react-doctor &> /dev/null; then
  react-doctor <PATH>
else
  npx react-doctor@latest <PATH>
fi
  1. Parse all issues from the output.
  2. Group issues by rule type (e.g. react/jsx-key, react-hooks/exhaustive-deps). Within each rule group, sort by ease of fixing: quick fixes first, involved last.
  3. Write the checklist to _react-doctor/output/<BASENAME>-review.md:
# React Doctor Review — packages/map

## react/jsx-key
> Missing `key` prop in list renders — mechanical fix, no logic impact
- [ ] `src/components/MapLayer.jsx:67` — Missing `key` prop in list render
- [ ] `src/components/Legend.jsx:34` — Missing `key` prop in list render

## react-hooks/exhaustive-deps
> Missing or incorrect hook dependency arrays — may require reasoning about effect scope
- [ ] `src/components/Map.jsx:42` — useEffect missing dependency: `data`

## react-hooks/rules-of-hooks
> Hook usage violations — touch component logic, review carefully
- [ ] `src/components/Legend.jsx:18` — Hook called conditionally

---
X issues across Y rule types.
  1. Tell the user the review file has been written to _react-doctor/output/<BASENAME>-review.md.
  2. Tell the user to check off issues in the review file, then run the react-doctor-fix skill to work through them one by one.

Do not suggest or provide any fixes at this stage. Do not create any other files.

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 5d ago First seen · 56 lines · 51 tokens per session scan A d4af7751ef70

Subscribe to this mod's changes

react-doctor is a skill published in the GitHub repository CDCgov/cdc-open-viz (55 stars, last pushed yesterday), licensed Apache-2.0. It adds 51 tokens to every session and 528 once invoked, about $0.0003 per session on Opus 5. 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-08-30.

Related

Other skills, from other repositories

build-with-tinybase

Scaffold, extend, and verify reactive local-first JavaScript or TypeScript applications with TinyBase. Use when choosing TinyBase for in-memory tabular or key-value state, generating an app with create-tinybase, adding schemas or UI bindings, configuring browser or database persistence, configuring MergeableStore…

tinyplex/tinybase · 76 tokens

blog-post

Author a new entry for the Semiotic blog. Use this skill whenever the user asks for a blog post, release summary, chart explainer, or case study to publish at /blog/SLUG.

nteract/semiotic · 44 tokens

chatgpt-app-submission

Inspect a ChatGPT Apps MCP server codebase and generate chatgpt-app-submission.json with app info suggestions, tool hint justifications, test cases, and negative test cases, then report review-check findings and outputSchema warnings for submission review.

nteract/semiotic · 56 tokens

semiotic-charts

Generate trustworthy, accessible, agent-legible charts with Semiotic. Use whenever you produce a data visualization in a React/TypeScript app, stream a chart as generative UI, or pick a chart type for a dataset. Emit a validated config and run the trust loop — never hand-write chart JSX that breaks on first paint.

nteract/semiotic · 71 tokens

infographic-item-creator

Generate or update infographic Item components for this repo (TypeScript/TSX in src/designs/items). Use when asked to design, implement, or modify data item visuals, layout logic, or registerItem composites.

antvis/Infographic · 49 tokens

code-review

Review Semiotic pull requests for behavioral bugs, regressions, contract drift, and missing evidence. Use for GitHub Copilot code review of TypeScript/React charts, Stream Frames, canvas and browser interactions, SSR, public exports, docs/examples, AI schemas and tooling, generated contracts, tests, CI baselines, and…

nteract/semiotic · 97 tokens