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분.
작동 방식
에이전트는 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풀 리퀘스트 상태를 확인하고, 리뷰 댓글을 읽고, 준비된 GitHub 스크립트로 CI 빌드가 실패한 이유를 찾도록 에이전트를 돕습니다.
calldiff
13k두 git 버전 사이 코드베이스의 함수 호출 체인을 비교해, 코드 리뷰에서 어떤 동작이 바뀌었는지 볼 수 있도록 에이전트를 돕습니다.
chrome-devtools-cli
13k에이전트가 터미널에서 Chrome을 제어해 페이지를 열고, 클릭하고, 양식을 채우고, 페이지 스냅숏을 찍어 브라우저 자동화와 테스트를 하도록 돕습니다.