beforemerge-react-review
About beforemerge-react-review
beforemerge-react-review is a review knowledge base for React applications, aimed at developers reviewing or writing React and TypeScript code. Its rules cover security, performance, architecture and code quality, with impact-based priorities and examples.
Key features
- 01Security rules mapped to CWE
- 02Runtime rendering performance guidance
- 03Architecture and organization patterns
- 04Maintainability and code health checks
- 05Incorrect and corrected code examples
Use cases
- 01Reviewing React/TypeScript pull requests
- 02Auditing components for security issues
- 03Checking performance during refactoring
- 04Applying quality checks before merging
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ beforemerge/ beforemerge-skills --skill beforemerge-react-reviewAfter installing, type/beforemerge-react-reviewin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
AGENTS.mdmetadata.jsonREADME.mdrules/_sections.md_template.mdrules/architecture/arch-component-composition.mdarch-custom-hooks.mdarch-prop-drilling.mdarch-state-colocation.mdrules/performance/perf-context-splitting.mdperf-expensive-computations.mdperf-large-lists.mdperf-unnecessary-rerenders.mdrules/quality/qual-controlled-vs-uncontrolled.mdqual-error-boundaries.mdqual-key-prop.mdqual-useeffect-cleanup.mdrules/security/sec-dangerouslysetinnerhtml.mdsec-eval-injection.mdsec-insecure-randomness.mdsec-prototype-pollution.mdDetails
From the project READMEBeforeMerge: React Review
Comprehensive code review knowledge base for React applications (framework-agnostic). Contains rules across 4 categories — security, performance, architecture, and quality — prioritized by impact.
When to Apply
Reference these rules when:
- Reviewing pull requests for React/TypeScript projects
- Writing new components, hooks, or utilities
- Auditing existing code for security vulnerabilities
- Refactoring code for performance or maintainability
- Running pre-merge quality checks
Rule Categories by Priority
| Priority | Category | Impact | Prefix | Focus |
|---|---|---|---|---|
| 1 | Security | CRITICAL | sec- | CWE-mapped anti-patterns |
| 2 | Performance | HIGH | perf- | Runtime rendering optimization |
| 3 | Architecture | MEDIUM | arch- | Design patterns and code organization |
| 4 | Quality | MEDIUM | qual- | Maintainability and code health |
How to Use
Read individual rule files in rules/ for detailed explanations and code examples.
Each rule contains:
- Brief explanation of why it matters
- Incorrect code example with explanation
- Correct code example with explanation
- CWE mapping where applicable
- References to official documentation
For the complete compiled guide: AGENTS.md