Communitygithub.com

React Doctor

React 코드베이스의 보안, 성능, 정확성 및 아키텍처 문제를 진단하고 수정합니다. React 코드 검토, 성능 문제 해결, 보안 감사 또는 코드 품질 개선 시 사용하세요.

React Doctor란 무엇인가요?

React Doctor는 React 코드베이스를 자동으로 스캔하여 보안 취약점, 성능 저하, 아키텍처 오류, 정확성 문제 및 데드 코드 등 47개 이상의 규칙을 기반으로 진단합니다. CLI 명령어 한 줄로 실행 가능하며, 0~100점 사이의 종합 점수와 함께 각 문제의 파일 경로와 라인 번호를 제공하여 개발자가 즉시 수정할 수 있도록 돕습니다. Next.js, 번들 크기 최적화, 서버 액션 보안, 접근성 등 다양한 주제를 다루며, 점수 구간(75+ 우수, 50-74 개선 필요, 0-49 심각)에 따라 우선순위를 정할 수 있습니다. 이 도구는 코드 리뷰 프로세스, CI/CD 파이프라인, 또는 정기적인 코드 품질 감사에 통합하기에 적합합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/LiChangZheng10086/doyin_ai_video/tree/HEAD/.agents/skills/react-doctor

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

React Doctor은(는) 무엇을 하나요?

React 코드베이스를 스캔하여 보안, 성능, 정확성 및 아키텍처 문제를 진단합니다. 0~100점 사이의 점수와 실행 가능한 진단 결과를 제공합니다.

사용법

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

워크플로우

  1. 프로젝트 루트에서 위 명령어를 실행합니다.
  2. 파일 경로와 라인 번호가 포함된 모든 진단 내용을 읽습니다.
  3. 오류(가장 높은 심각도)부터 시작하여 문제를 수정합니다.
  4. 점수가 개선되었는지 확인하기 위해 다시 실행합니다.

규칙 (47개 이상)

  • 보안: 클라이언트 번들 내 하드코딩된 비밀, eval()
  • 상태 및 효과: useEffect 내 파생 상태, 누락된 정리(cleanup), props에서 파생된 useState, 연쇄 setState
  • 아키텍처: 컴포넌트 내부의 컴포넌트, 거대한 컴포넌트, 인라인 렌더 함수
  • 성능: 레이아웃 속성 애니메이션, transition-all, 큰 blur 값
  • 정확성: 배열 인덱스를 key로 사용, 조건부 렌더링 버그
  • Next.js: 누락된 메타데이터, 서버 데이터에 대한 클라이언트 측 fetching, 비동기 클라이언트 컴포넌트
  • 번들 크기: 배럴(barrel) 임포트, 전체 lodash, moment.js, 누락된 코드 분할
  • 서버: 서버 액션에서 누락된 인증, after() 없이 차단
  • 접근성: prefers-reduced-motion 누락
  • 데드 코드: 사용되지 않는 파일, 익스포트, 타입

점수

  • 75+: 우수
  • 50-74: 개선 필요
  • 0-49: 심각

Individual skills in this repo

This repo contains 12 individual skills — each has its own dedicated page.

LiChangZheng10086/doyin_ai_video

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction.

LiChangZheng10086/doyin_ai_video

Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any form (Claude, Anthropic, Fable, Opus, Sonnet, Haiku, `anthropic`, `@anthropic-ai`, `claude-*`, `us.anthropic.*`, `[1m]`); the user asks about an LLM (pricing/model choice/limits/caching) — never answer from memory; OR the task is LLM-shaped with provider unstated (agent/MCP/tool-definition/multi-agent/RAG/LLM-judge/computer-use; generate/summarize/extract/classify/rewrite/converse over NL; debugging refusals/cutoffs/streaming/tool-calls/tokens). SKIP only when another provider is being worked on (overrides all triggers): OpenAI/GPT/Gemini/Llama/Mistral/Cohere/Ollama named in the query; OR `grep -rE 'openai|langchain_openai|google.generativeai|genai|mistralai|cohere|ollama'` over the project hits (run this grep FIR...

LiChangZheng10086/doyin_ai_video

Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.

LiChangZheng10086/doyin_ai_video

Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.

LiChangZheng10086/doyin_ai_video

Grill me about specs for the workflows I want to build, within this workspace.

LiChangZheng10086/doyin_ai_video

Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.

LiChangZheng10086/doyin_ai_video

智能 PPT 生成器。支持 7 种视觉风格(乐高/波普/黏土/黑白/商务/学术/科技),具备根据内容自动推荐风格、生成大纲、绘制配图并组装成片的全自动能力。

LiChangZheng10086/doyin_ai_video

Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions \"deck,\" \"slides,\" \"presentation,\" or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill.

LiChangZheng10086/doyin_ai_video

Sentry error monitoring and performance tracing patterns for Next.js applications.

LiChangZheng10086/doyin_ai_video

Simplify and refine recently modified code for clarity and consistency. Use after writing code to improve readability without changing functionality.

LiChangZheng10086/doyin_ai_video

✅ "你知道今天所有大模型能读懂你的话,全靠一个叫Transformer的架构吗?"

LiChangZheng10086/doyin_ai_video

Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like \"the xlsx in my downloads\") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.

관련 스킬