v0.directory
PromptsMCPsInstructions
SubmitAboutLearn
Dashboards4Landing Pages6Components4E-commerce4Portfolio4Authentication1Animations3Apps4Code Quality28
Submit+

Code Quality

You are a senior React engineer. Refactor the provided React/Next.js codebase to follow strict useEf...

useEffect Best Practices Refactor

ReactuseEffect+2 more

You are a senior frontend engineer acting as a repo-wide refactor agent. Objective: Find, evaluate,...

ESLint Disable Cleanup

ESLintCode Quality+2 more

You are a senior frontend performance engineer. Objective: Identify and fix tree-shaking and bundle...

Tree-Shaking & Bundle Size Optimization

PerformanceBundle Size+2 more

Scan the repository for client components that import server-only modules, heavy utilities, or secre...

Client/Server Boundary Violations

Next.jsServer Components+2 more

Find props and state patterns that cause unnecessary re-renders. Detect: - Inline object/array prop...

Accidental Re-render Detection

ReactPerformance+2 more

Scan the repository for duplicated fetch logic, over-fetching, and missing deduplication. Refactor:...

Over-fetching & Network Waste

NetworkPerformance+2 more

Find render-time non-determinism such as Date.now(), Math.random(), browser-only APIs, or locale-dep...

Hydration & SSR Mismatch Detection

SSRHydration+2 more

Scan for unused CSS, overly broad global styles, large Tailwind safelists, and unnecessary font file...

CSS & Styling Payload Reduction

CSSTailwind+2 more

Detect libraries or APIs that trigger heavy polyfills or ES5 transpilation. Refactor: - Replace wit...

Polyfill & Transpilation Bloat

PerformancePolyfills+2 more

Scan the repository for unused exports, files, hooks, and feature-flagged code paths that are always...

Dead Code & Unused Exports

Dead CodeRefactoring+2 more

Find console logs, debug flags, and dev-only logic shipped to production paths. Refactor: - Remove ...

Debug & Logging Leak Cleanup

DebugLogging+2 more

Scan the repository for code whose correctness depends on undocumented assumptions, implicit default...

Implicit Behavior & Hidden Assumptions

Code QualityAssumptions+2 more

Identify functions, hooks, or utilities whose behavior is surprising or non-obvious. Look for: - Fu...

Surprising or Non-Obvious Behavior

Code QualitySide Effects+2 more

Scan for code paths where a single request can trigger linear or unbounded database queries, API cal...

N+1 Queries & Fan-Out Explosions

PerformanceDatabase+2 more

Find loops, polling mechanisms, retries, or recursive logic without hard limits, backoff, or cancell...

Unbounded Loops, Polling, and Retries

PerformanceLoops+2 more

Find code that assumes caching exists but does not enforce it. Examples: - Fetches without cache he...

Cache Illusions & Misuse

CachingPerformance+2 more

Find places where partial failures are silently ignored. Look for: - Promise.all without per-item h...

Partial Failure Blindness

Error HandlingAsync+2 more

Find places where errors are flattened, rethrown generically, or logged without context. Examples: ...

Error Context Loss

Error HandlingDebugging+2 more

Scan tests that would pass even if the underlying logic were incorrect. Look for: - Snapshots asser...

False Confidence Tests

TestingCode Quality+2 more

Identify code that is difficult or impossible to test due to tight coupling, hidden globals, or side...

Untestable Code Zones

TestingRefactoring+2 more

Find imports or dependencies that violate intended architectural layers. Examples: - UI importing d...

Architecture Layer Violations

ArchitectureClean Architecture+2 more

Identify code that represents one-way architectural decisions. Examples: - Hardcoded vendors - Tigh...

One-Way Architectural Decisions

ArchitectureTechnical Debt+2 more

Scan for code that may behave incorrectly under concurrent execution. Look for: - Read-modify-write...

Race Conditions & Lost Updates

ConcurrencyRace Conditions+2 more

Find async code that assumes execution order without enforcing it. Output: - List ordering assumpti...

Async Ordering Assumptions

AsyncConcurrency+2 more

Find places where untrusted input crosses trust boundaries without validation. Examples: - Client t...

Trust Boundary Violations

SecurityValidation+2 more

Find places where secrets, tokens, or credentials could leak into logs, client bundles, or errors. ...

Secrets & Credential Leakage

SecuritySecrets+2 more

Find code that behaves differently between dev, preview, and production. Examples: - process.env br...

Environment Mismatch Bugs

EnvironmentDevOps+2 more

Find sources of non-determinism in build or generation steps. Output: - Identify causes - Recommend...

Non-Deterministic Builds

BuildCI/CD+2 more

Review this repository as if you are on call for it for the next 12 months. Question: What would wa...

12-Month On-Call Nightmare Review

On-CallReliability+2 more

This site is not directly affiliated with Vercel or v0.