BeforeMerge

AI-native code review knowledge base. Structured rules that catch what linters miss.

Product

  • Features
  • Explore
  • Pricing
  • Docs
  • GitHub

Company

  • About
  • Blog
  • Contributors
  • Contributing

Legal

  • Privacy Policy
  • Terms of Service
  • MIT License

© 2026 BeforeMerge. Built by Peter Krzyzek

BeforeMerge
Features
Explore
PricingBlogContributorsDocs
2Sign In
FeaturesExplore
RulesSkillsKnowledgePrompts
PricingBlogContributorsDocs
Sign In

Explore

Browse 158 rules, 25 knowledge articles, and 25 prompt templates across security, performance, architecture, and quality.

Sort:

25 prompts

Comprehensive Pull Request Review

Template

Perform a thorough, multi-dimensional review of a pull request covering correctness, security, performance, naming, test coverage, and edge cases.

Code Review
code-reviewpull-request
Previous12Next

Automate these checks on every PR

BeforeMerge scans your pull requests against these rules automatically. Get actionable feedback before code ships to production.

Join WaitlistLearn More

Security-Focused Code Review

Template

Review code specifically for security vulnerabilities based on the OWASP Top 10 and language-specific attack vectors.

Code Review
securityowasp

Performance-Focused Code Review

Template

Analyze code for performance issues including N+1 queries, unnecessary re-renders, memory leaks, and bundle impact.

Code Review
performanceoptimization

Extract Reusable Component

Template

Extract a reusable, well-typed component from existing code with proper interface design and documentation.

Refactoring
refactoringcomponents

Simplify Complex Function

Template

Break down a complex, hard-to-read function into smaller, well-named, testable functions with clear responsibilities.

Refactoring
refactoringclean-code

Refactor for Testability

Template

Restructure code to be more testable by applying dependency injection, interface segregation, and separation of concerns.

Refactoring
refactoringtesting

Diagnose Runtime Error

Template

Systematically debug a runtime error by analyzing the error message, stack trace, and surrounding code to find the root cause and fix.

Debugging
debuggingerrors

Trace Data Flow

Template

Trace data through a system to find where it diverges from expected behavior, identifying the exact transformation or handoff that introduces the bug.

Debugging
debuggingdata-flow

Identify Memory Leak

Template

Find and fix memory leaks by analyzing code patterns, symptoms, and environment for common leak sources.

Debugging
debuggingmemory-leak

Audit Authentication Flow

Template

Review an authentication implementation for security vulnerabilities covering session management, token handling, password policies, and attack vectors.

Security Audit
securityauthentication

Generate API Documentation

Template

Generate comprehensive API documentation including endpoint descriptions, request/response schemas, authentication, and examples.

Documentation
documentationapi

Audit API Endpoint Security

Template

Review API endpoint security covering authentication, authorization, input validation, rate limiting, and data exposure.

Security Audit
securityapi

Audit Dependency Vulnerabilities

Template

Review project dependencies for known vulnerabilities, outdated packages, and supply chain risks.

Security Audit
securitydependencies

Evaluate System Design

Template

Review a system architecture for scalability, reliability, maintainability, and alignment with requirements.

Architecture Review
architecturesystem-design

Plan Database Schema

Template

Design a database schema from requirements, including tables, relationships, indexes, constraints, and migration strategy.

Architecture Review
architecturedatabase

Write Technical Design Document

Template

Draft a complete technical design document covering problem statement, proposed solution, alternatives, risks, and implementation plan.

Documentation
documentationdesign-doc

Optimize Database Queries

Template

Analyze and optimize slow database queries using EXPLAIN output, schema analysis, and query rewriting techniques.

Performance
performancedatabase

Optimize Frontend Bundle Size

Template

Analyze and reduce JavaScript bundle size by identifying large dependencies, code splitting opportunities, and tree shaking improvements.

Performance
performancefrontend

Generate Unit Tests

Template

Write comprehensive unit tests covering happy paths, error cases, edge cases, and boundary conditions.

Testing
testingunit-tests

Generate Integration Tests

Template

Write integration tests that verify the interaction between multiple components, services, or modules.

Testing
testingintegration-tests

Generate End-to-End Tests

Template

Write end-to-end test scenarios that simulate real user interactions through the full application stack.

Testing
testinge2e

Scaffold CRUD API

Template

Generate complete CRUD API endpoints for an entity with validation, error handling, pagination, and database integration.

Code Generation
code-generationcrud

Scaffold React Component

Template

Generate a complete React component with TypeScript types, accessibility, styling, tests, and Storybook stories.

Code Generation
code-generationreact

Migrate JavaScript to TypeScript

Template

Convert JavaScript code to TypeScript with proper type definitions, strict mode compliance, and incremental adoption strategy.

Migration
migrationtypescript