millionco/react-doctor
Your agent writes bad React. This catches it
TypeScript · ★ 12,488 · Fork 396 · 在 GitHub 查看
在手机上浏览源码、订阅每日 AI 趋势日报与项目架构深度解读:获取 CopoHub 客户端(iOS & HarmonyOS)→
GitHub Trending 上榜记录
millionco/react-doctor 已在 GitHub Trending 每日榜单上榜 4 天,最高排名第 6,首次上榜 2026-05-11,最近一次上榜 2026-05-14。
| 日期 | 排名 | Star | 当日增长 |
|---|---|---|---|
| 2026-05-14 | #6 | 9,480 | +604 |
| 2026-05-13 | #6 | 9,237 | +788 |
| 2026-05-12 | #7 | 8,713 | +804 |
| 2026-05-11 | #8 | 7,984 | +340 |
同期上榜的项目
- ruvnet/RuView – π RuView turns commodity WiFi signals into real-time spatial intelligence, vital sign monitoring, and presence detection — all without a single pixel of video.
- tinyhumansai/openhuman – Your Personal AI super intelligence. A brain that builds a local-first memory of your life, a fantastic orchestrator of agent fleets and workflows, and a deep researcher.
- rohitg00/agentmemory – #1 Persistent memory for AI coding agents based on real-world benchmarks
- obra/superpowers – An agentic skills framework & software development methodology that works.
- K-Dense-AI/scientific-agent-skills – Turn any AI agent into an AI Scientist. The #1 Agent Skills library for science, used by 250,000+ scientists worldwide. 177 ready-to-use validated skills plus 100+ scientific databases covering biology, chemistry, medicine, and drug discovery. Compatible with Cursor, Claude Code, Codex, Pi, Antigravity, and the open Agent Skills standard.
- shiyu-coder/Kronos – Kronos: A Foundation Model for the Language of Financial Markets
react-doctor 项目深度剖析与商业评估报告
react-doctor 项目深度剖析与商业评估报告
1. 核心定位与商业落地价值
根本痛点 react-doctor 直击了当前 AI 辅助编码时代最尖锐的工程问题:AI Agent 生成的 React 代码质量不可控。传统 lint 工具(ESLint、oxlint)虽然能检测代码风格和简单错误,但缺乏对 React 生态特有的反模式(如状态管理滥用、不必要的渲染、安全漏洞)的深度诊断能力。react-doctor 填补了“AI 生成代码质量门禁”这一空白,提供 0-100 的健康评分,将模糊的代码质量转化为可量化、可追踪的指标。
商业落地场景 CI/CD 门禁系统:通过 GitHub Actions 集成,在 PR 阶段自动扫描并阻止低质量代码合并,特别适合大型前端团队(如电商、金融、SaaS 平台)维护数百个 React 组件的场景。 AI Agent 训练与调优:npx react-doctor install 功能可将规则注入到 Claude Code、Cursor 等 50+ Agent 的 system prompt 中,实现“预防优于治疗”。对于使用内部 AI 代码助手的公司,这是构建企业级编码规范的零成本方案。 代码审计与重构评估:Leaderboard 功能(如 nodejs.org 86 分、tldraw 70 分)可作为开源项目健康度指标,商业公司可用于收购前技术尽职调查。 教育培训:作为 React 学习者的自检工具,实时反馈反模式,降低导师 review 成本。
竞品差异化与护城河 | 维度 | react-doctor | ESLint/oxlint | SonarQube | |------|--------------|---------------|-----------| | AI Agent 原生支持 | 直接注入 Agent 配置,50+ Agent 开箱即用 | 需手动配置规则 | 无 | | React 专属深度 | 6 大维度(状态/性能/架构/安全/可访问性/死代码) | 通用规则,React 规则需插件 | 通用 | | 评分体系 | 0-100 健康分,可量化 | 无 | 有,但复杂 | | 死代码检测 | 内置 | 需额外工具(ts-prune) | 有 | | 框架自适应 | 自动检测 Next.js/Vite/React Native 并切换规则 | 需手动配置 | 需插件 |
护城河:Million 团队(millionco)在 React 生态已有 Million.js(编译优化)的成功经验,react-doctor 是其生态延伸,形成了“诊断-优化”闭环。MIT 许可证降低了企业采用门槛,但核心规则集和 Agent 集成逻辑是其知识产权。
2. 核心架构设计与技术深度
模块拆解思想 react-doctor/ ├── packages/react-doctor/ # 核心诊断引擎 │ ├── src/ │ │ ├── oxlint-config.ts # 规则定义(oxlint 插件) │ │ ├── eslint-plugin.ts # ESLint 插件适配 │ │ ├── api.ts # Node.js API 暴露 │ │ ├── bin/react-doctor.js # CLI 入口 │ │ └── ... ├── action.yml # GitHub Actions 复合动作 └── react-doctor.config.json # 配置文件
在 README 中展示上榜徽章
[](https://github.fq6825.top/repo/millionco/react-doctor)