返回 Skill 列表
extension
分类: 开发与工程无需 API Key

react-triage

维护和扩展React Triage Bun CLI,该工具使用Oxlint、自定义检查、Vercel最佳实践规则以及安全审计来扫描React/Next.js项目。当修改扫描逻辑、增加诊断信息、调整评分、更新CLI/报告输出或调试基于Bun的项目分析行为时,请使用此技能。

person作者: jakexiaohubgithub

React Triage

Maintain and operate React Triage to scan React/Next.js projects, export actionable diagnostics, and manage report files.

Installation

bun add -g react-triage

or with npm:

npm install -g react-triage

Usage

react-triage .

or

bunx react-triage .

Workflow

  1. Run the react-triage . command at the project root.
  2. Export results to Markdown.
  3. Read the report and act on diagnostics.
  4. Remove the report file after use.

Markdown Report Lifecycle

Use these commands to run the tool, export a Markdown report, read it, and remove it.

  1. Export results to Markdown:
    • react-triage . --to-markdown=triage-report.md
  2. Read the exported report:
    • cat triage-report.md
  3. Remove the exported report when no longer needed:
    • rm triage-report.md

Rules

  • Oxlint Checks: Run Oxlint for code quality and best practices.
  • Accessibility Checks: WCAG 2.1 violations via the jsx-a11y plugin (missing alt text, invalid ARIA roles, keyboard accessibility, empty headings, unlabelled form controls).
  • Custom Checks: Implement custom logic for React/Next.js patterns.
  • Vercel Best Practices: Enforce Vercel deployment guidelines.
  • Security Auditing: Identify potential security issues in the codebase.
  • Unused Packages: Detect and report unused dependencies in package.json.