react-doctor
できること
Reactのコードを、セキュリティ、性能、正しさ、構造の問題についてチェックするスキャナーを実行します。コミットの前にReactアプリを健全に保ちたい開発者向けです。
使う場面
- ✓Reactの機能やバグ修正を終え、コミットの前に確認したいとき。
- ✓Reactプロジェクトの警告を、すべて片付けたいとき。
- ✓/doctorと入力して、Reactの問題の全体のトリアージを始めたいとき。
スキルのリンク
https://github.com/humanlayer/humanlayer/blob/main/.claude/skills/react-doctor/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“私のReactアプリをスキャンして、最も深刻な問題から直してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、npxを通じてreact-doctorスキャナーを実行します。スキャナーは0から100の健全性のスコアを出します。エージェントは、深刻度の高い順に問題に取り組みます。全体のトリアージでは、ツールのオンラインの手順書に従います。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
React Doctor
Scans React codebases for security, performance, correctness, and architecture issues. Outputs a 0–100 health score.
After making React code changes:
Run npx react-doctor@latest --verbose --scope changed and check the score did not regress.
If the score dropped, fix the regressions before committing.
For general cleanup or code improvement:
Run npx react-doctor@latest --verbose (the default --scope full) to scan the full codebase. Fix issues by severity — errors first, then warnings.
/doctor — full local triage workflow
When the user types /doctor, says "run react doctor", or asks for a full triage / cleanup pass (not just a regression check), fetch the canonical local-triage playbook and follow every step in it:
curl --fail --silent --show-error \
--header 'Cache-Control: no-cache' \
https://www.react.doctor/prompts/react-doctor-agent.md
The playbook is the single source of truth — a scan → filter → triage → fix → validate loop that edits the working tree directly (never commits, never opens PRs). Updating the prompt at its source updates every agent on its next fetch — no skill reinstall needed.
Pair it with the matching per-rule prompts at https://www.react.doctor/prompts/rules/<plugin>/<rule>.md (fetched on demand inside the playbook) so each fix uses the canonical, reviewer-tested recipe.
Configuring or explaining rules
When the user wants to understand a rule, disagrees with one, or wants to disable / tune which rules run (not fix code), read references/explain.md and follow it. Start with npx react-doctor@latest rules explain <rule>, then apply the narrowest control via npx react-doctor@latest rules disable|set|category|ignore-tag …, which edits your doctor.config.* (or package.json#reactDoctor).
Command
npx react-doctor@latest --verbose --scope changed
| Flag | Purpose |
|---|---|
. |
Scan current directory |
--verbose |
Show affected files and line numbers per rule |
--scope changed |
Only report issues introduced vs the base branch (default: full) |
--scope lines |
Only report issues on the changed lines |
--score |
Output only the numeric score |
よくある質問
インストールが必要ですか?
npxを通じて動くので、エージェントが実行時にスキャナーを取得します。
gitにコミットしますか?
いいえ。全体のトリアージは作業ファイルを編集するだけで、コミットやプルリクエストは行いません。
スコアは何を意味しますか?
0から100の健全性のスコアです。変更の後に、スコアが下がっていないことを確認します。
詳細
作者による元の説明
Use when finishing a feature, fixing a bug, before committing React code, or when the user types `/doctor`, asks to scan, triage, or clean up React diagnostics. Covers lint, accessibility, bundle size, architecture. Includes a regression check and a full local-triage workflow that fetches the canonical playbook.
repo: humanlayer/humanlayer
人気
- GitHubのスター
- 13k
- ランキング
- #11390
- ライセンス
- Apache-2.0
- 更新日
- 2026/10/31
コメント
- …
このリポジトリの他のスキル
asd-ste100
13kエージェントが、分かりにくい英語を、人やほかのソフトウェアが読みやすい、短くて一つの意味しか持たない文に書き直せるよう教えます。
better-github-skill
13kプルリクエストの状態を確認し、そのレビューコメントを読み、CIのビルドが失敗した理由を、すぐに使えるGitHubのスクリプトで見つけるのを支援します。
calldiff
13kエージェントが、二つのgitのバージョンの間で、コードベースの関数呼び出しの連鎖を比べ、コードレビューで動作の変化を確認できるよう支援します。
chrome-devtools-cli
13kエージェントが、ターミナルからChromeを操作し、ページを開き、クリックし、フォームに入力し、ページのスナップショットを撮れるようにします。ブラウザの自動化とテストのためです。
似ているスキル
diffs
394k編集内容の実際の共有可能な差分を、手書きの要約ではなく、ビューアーのリンクや画像ファイルとして作成するようエージェントを支援します。
coding-agent
394kCodex、Claude Code、OpenCodeに大きめのコーディング作業をバックグラウンドのワーカーとして渡し、その進捗を確認するようエージェントを支援します。
gh-issues
394kGitHubのイシューを探し、取り組むものを選び、修正を含むプルリクエストを開くようエージェントを支援します。レビューコメントへの対応も含みます。