Agent Skills
› MapleTechLabs/maple
› react-doctor
react-doctor
GitHub用于扫描 React 代码库的安全性、性能、正确性和架构问题,输出健康评分。适用于提交前检查、修复回归或整体代码清理,支持差异扫描与全量分析。
Trigger Scenarios
完成功能开发后
修复 Bug 后
提交 React 代码前
用户希望提升代码质量时
进行代码库清理时
Install
npx skills add MapleTechLabs/maple --skill react-doctor -g -y
SKILL.md
Frontmatter
{
"name": "react-doctor",
"version": "1.0.0",
"description": "Use when finishing a feature, fixing a bug, before committing React code, or when the user wants to improve code quality or clean up a codebase. Checks for score regression. Covers lint, dead code, accessibility, bundle size, architecture diagnostics."
}
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 -y react-doctor@latest . --verbose --diff and check the score did not regress.
If the score dropped, fix the regressions before committing.
For general cleanup or code improvement:
Run npx -y react-doctor@latest . --verbose (without --diff) to scan the full codebase. Fix issues by severity — errors first, then warnings.
Command
npx -y react-doctor@latest . --verbose --diff
| Flag | Purpose |
|---|---|
. |
Scan current directory |
--verbose |
Show affected files and line numbers per rule |
--diff |
Only scan changed files vs base branch |
--score |
Output only the numeric score |
Version History
- 01a5dc6 Current 2026-07-05 18:15


