본문으로 건너뛰기
Skillpedia
웹사이트 및 UI (프런트엔드)41k · #6816

react-doctor

하는 일

이 스킬은 React 코드베이스에 대한 상태 점검을 실행하고, 각 문제를 파일 이름과 줄 번호와 함께 나열합니다. React 앱을 더 안전하고 빠르고 유지보수하기 쉽게 만들고 싶은 개발자를 위한 것입니다.

사용하는 경우

  • ✓출시 전에 React 프로젝트의 상태 점검을 받고 싶을 때.
  • ✓React 화면이 느리게 느껴지거나 너무 자주 다시 렌더링될 때 원인을 찾아야 할 때.
  • ✓React 코드를 검토하면서 개선 정도를 추적할 점수가 필요할 때.

스킬 링크

https://github.com/PostHog/posthog/blob/master/.agents/skills/react-doctor/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/PostHog/posthog/blob/master/.agents/skills/react-doctor/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 React 앱을 점검해서 가장 심각한 문제부터 고쳐 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

프로젝트 폴더에서 스캐너를 실행하는데, 하드코딩된 비밀 값, 잘못된 effect, 무거운 import 등 수십 가지 규칙을 확인합니다. AI는 가장 심각한 항목부터 고친 다음, 점수가 올랐는지 확인하려고 스캔을 다시 실행합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

React Doctor

Scans your React codebase for security, performance, correctness, and architecture issues. Outputs a 0-100 score with actionable diagnostics.

Usage

npx -y react-doctor@latest . --verbose

Workflow

  1. Run the command above at the project root
  2. Read every diagnostic with file paths and line numbers
  3. Fix issues starting with errors (highest severity)
  4. Re-run to verify the score improved

Rules (47+)

  • Security: hardcoded secrets in client bundle, eval()
  • State & Effects: derived state in useEffect, missing cleanup, useState from props, cascading setState
  • Architecture: components inside components, giant components, inline render functions
  • Performance: layout property animations, transition-all, large blur values
  • Correctness: array index as key, conditional rendering bugs
  • Next.js: missing metadata, client-side fetching for server data, async client components
  • Bundle Size: barrel imports, full lodash, moment.js, missing code splitting
  • Server: missing auth in server actions, blocking without after()
  • Accessibility: missing prefers-reduced-motion
  • Dead Code: unused files, exports, types

Score

  • 75+: Great
  • 50-74: Needs work
  • 0-49: Critical
자주 묻는 질문

어떤 점수를 목표로 해야 하나요?

75점 이상이면 좋음, 50~74점은 개선이 필요함, 50점 미만은 심각한 수준으로 평가됩니다.

AI가 문제를 스스로 고치나요?

가장 심각한 것부터 발견 사항을 처리하고, 수정한 뒤 스캔을 다시 실행해 결과를 확인합니다.

먼저 설치해야 할 것이 있나요?

스캐너는 npx로 실행되므로 컴퓨터에 Node.js가 필요합니다. 명령은 실행할 때마다 최신 스캐너를 가져옵니다.

상세 정보

작성자의 원본 설명

Diagnose and fix React codebase health issues. Use when reviewing React code, fixing performance problems, auditing security, or improving code quality.

repo: PostHog/posthog

인기도

GitHub 스타
41k
순위
#6816
라이선스
—
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬