AgentSkillsCN

react-doctor

在对React代码进行修改后运行,以便及早发现潜在问题。在审查代码、完成功能开发,或修复React项目中的Bug时使用此方法。

SKILL.md
--- frontmatter
name: react-doctor
description:
  Run after making React changes to catch issues early. Use when reviewing code, finishing a feature, or fixing bugs in a React project.
version: 1.0.0

React Doctor

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

Usage

bash
npx -y react-doctor@latest . --no-ami --verbose --diff --offline

Workflow

Run after making changes to catch issues early. Fix errors first, then re-run to verify the score improved.