本文へスキップ
Skillpedia
一般的なプログラミング13k · #11390

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がスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/humanlayer/humanlayer/blob/main/.claude/skills/react-doctor/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

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

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル