Prompt Library

Cursor Prompts

Prompts engineered for Cursor: precise edits, multi-file refactors, and review passes that keep the agent on rails inside a real codebase.

75 prompts · new drops weekly

Extract Type Safety Gaps From TypeScript Codebase

Free

Finds TypeScript files where `any` types, missing type annotations, or unsafe casts hide potential runtime errors.

Extract API Contract Drift From OpenAPI Specs

Premium

Find gaps between documented OpenAPI schemas and actual implementation across route handlers.

Extract Performance Bottlenecks From Runtime Logs

Free

Parse application logs to identify slow operations, memory spikes, and latency patterns causing user friction.

Trace Every Background Job With No Observability Hook

Premium

Finds every background job, queue worker, and scheduled task that runs without logging, metrics, or alerting attached.

Convert a Route File Into an Auth Coverage Gap Map

Premium

Reads your routing layer and identifies every endpoint that lacks explicit authentication or authorization checks.

Find Every Config Value That Diverges Between Environments

Premium

Scans your config files to surface every value that differs across envs and ranks the risk of each divergence.

Convert a Prisma Schema Into a Query Performance Risk Report

Premium

Reads your Prisma schema and flags relations, missing indexes, and model shapes likely to produce slow queries at scale.

Find Every Promise That Has No Rejection Handler

Premium

Scans your async code to surface every unhandled promise rejection that can silently crash your app.

Trace Every Feature Flag to Its Cleanup Debt

Premium

Maps every feature flag in the codebase to its age, branch coverage, and the dead code risk it creates if never removed.

Map Every Third-Party SDK Call That Has No Fallback

Premium

Identifies every external SDK or service call in the codebase that will hard-fail with no graceful degradation if the vendor goes down.

Trace Every State Mutation That Skips the Reducer

Premium

Finds every place in a Redux or Zustand codebase where state is mutated directly instead of through the proper store update path.

Find Every API Endpoint With No Rate Limit Attached

Premium

Scans your route definitions to surface every endpoint that has no rate limiting middleware or decorator applied.

Cursor Composer: Split a Route Handler Into Layered Services

Premium

Refactors a bloated route handler into clean controller, service, and data-access layers without changing behavior.

Find Every Type Cast That Skips Validation

Premium

Locates all forced type casts and assertions in your codebase that bypass runtime validation and hide real bugs.

Trace Every Environment Variable to Its Consumer

Premium

Maps each env var in your codebase to where it's read, how it's validated, and what breaks if it's missing.

Find Every Promise That Has No Rejection Handler

Premium

Scans your async code to surface every Promise chain that silently swallows rejections or forgets to handle errors.

Map Every Hardcoded Limit That Should Be Configurable

Premium

Finds pagination limits, timeouts, retry counts, and size caps buried in code that will break under real load.

Cursor Composer: Extract Inline SQL Into a Query Layer

Premium

Moves scattered raw SQL strings out of business logic and into a structured, testable query module without breaking anything.

Slash Command: /boundary-leak Find Logic That Escaped Its Layer

Premium

Scans a codebase for business logic, persistence calls, or presentation concerns that have leaked into the wrong architectural layer.

.cursorrules: Flag Any Variable Name That Lies About Its Type

Premium

Adds a Cursor rule that catches misleading variable names where the name implies one type but the value is another.

Cursor Composer: Decompose a God Object Into Focused Modules

Premium

Analyzes an oversized class or object and produces a concrete multi-file refactor plan with clear ownership boundaries.

Cursor Composer: Replace a Callback Hell Chain With Structured Async

Premium

Refactor deeply nested callback pyramids into readable async/await with proper error isolation and cancellation awareness.

.cursorrules: Enforce Dependency Direction Across Module Boundaries

Premium

Add a rule that blocks any import violating your intended layer architecture before it gets normalized into the codebase.

Cursor: Find Every Type Cast That Discards Information

Premium

Locate all coercions and casts that silently lose precision, nullability, or domain meaning at runtime.

.cursorrules: Require Failure Mode Documentation on Every External Call

Premium

Forces the AI to document what breaks and how before writing any code that touches an external service or API.

Cursor: Find Every Promise That Can Resolve in the Wrong Order

Premium

Surfaces async flows where promise resolution order is assumed but never guaranteed, before it bites you in prod.

Cursor Composer: Extract a Config Object From Hardcoded Scattered Values

Premium

Finds every hardcoded constant buried across your codebase and consolidates them into a single typed config object.

Cursor Composer: Harden Every Input Boundary in a Module

Premium

Audits every external input entry point in a module and generates validation, normalization, and rejection code.

.cursorrules: Force Explicit Ownership on Every Shared Resource

Premium

Makes the AI declare a clear owner for every cache, connection, file handle, or global before touching it.

Cursor: Surface Every Caller That Ignores Your Return Value

Premium

Finds every call site where a meaningful return value is silently discarded, hiding bugs.

Cursor Composer: Migrate a Feature Behind a Kill Switch

Premium

Composer prompt that performs a risky migration with a feature flag wrapper and instant rollback path baked in.

.cursorrules: Make the AI Justify Every Abstraction It Creates

Premium

A .cursorrules block that forces the AI to defend new wrappers, helpers, and layers before adding them.

Cursor: Find the Race Condition Hiding in Your Async Code

Premium

Forces Cursor to audit async flows for race conditions, stale closures, and ordering assumptions.

.cursorrules: Forbid Silent Catches and Swallowed Errors

Premium

A .cursorrules block that makes Cursor refuse to write try/catch blocks that hide failure from the caller.

Cursor Composer: Walk a Type Change Through Every Call Site

Premium

Composer prompt for safely propagating a breaking type change across a codebase by reasoning about each call site individually.

Cursor: Find the Function That's Secretly Doing Five Jobs

Premium

A Cursor chat prompt that exposes the hidden responsibilities packed into a single function so you know where to split it.

Cursor Composer: Convert Console Logs Into Structured Observability

Premium

A Composer prompt that upgrades a codebase littered with console.log into intentional, queryable telemetry.

.cursorrules: Make the AI Defend Every New Dependency

Premium

A .cursorrules block that blocks Cursor from adding npm packages without a written cost-benefit defense.

Cursor: Reverse-Engineer the Implicit Contract of a Function

Premium

Force Cursor to surface the undocumented assumptions a function depends on before you change a single line.

Cursor Composer: Split a God Component Without Breaking Props

Premium

Multi-file Composer prompt that decomposes a bloated component into smaller ones while preserving the exact external prop contract.

.cursorrules: Enforce Test-First Discipline Without the Lecture

Premium

A .cursorrules block that makes Cursor refuse to write implementation code until the test exists and fails for the right reason.

Cursor: Trace a Bug Across Async Boundaries

Premium

Forces Cursor to map the full async execution path before guessing at a fix for race conditions or stale state bugs.

Cursor Composer: Extract a Feature Flag From Hardcoded Branches

Premium

A Composer prompt that finds every hardcoded conditional for a feature, unifies them behind a single flag, and ships the rollout plan.

.cursorrules: Enforce Error Handling Discipline by Layer

Premium

A drop-in .cursorrules block that makes Cursor handle errors differently at the boundary, service, and infrastructure layers.

Cursor: Build a Migration Plan Before Touching Schema

Premium

Forces Cursor to produce a reversible, staged database migration plan with rollback and dual-write checkpoints before any code change.

Cursor Composer: Generate a Test Harness for Untested Code

Premium

Builds a meaningful test suite around legacy code by inferring its real behavior contract before touching it.

Cursor: Find the Real Root Cause Before You Patch

Premium

Forces Cursor to trace a bug to its actual source instead of patching the first plausible symptom it finds.

Cursor: Negotiate the API Contract Before Writing Either Side

Premium

Forces a frontend and backend contract negotiation before code on either side gets written, killing rework loops.

Cursor: Triangulate a Flaky Test Without Guessing

Premium

A disciplined protocol for finding the real cause of a flaky test instead of adding retries and moving on.

Cursor Composer: Build a Vertical Slice From a Single Spec

Premium

Turn a one-paragraph feature spec into a coherent multi-file vertical slice with tests, types, and a rollback plan.

Cursor: Map the Blast Radius Before Any Risky Change

Premium

Force Cursor to trace every caller, side effect, and contract before touching a single line of code.

Cursor .cursorrules: Force Explicit Reasoning on Risky Edits

Premium

A .cursorrules block that makes Cursor pause and justify itself before touching auth, payments, migrations, or shared state.

Cursor: Diff-Aware Code Review Before You Open the PR

Premium

Runs a brutal self-review on your staged changes so you catch the embarrassing stuff before a human does.

Cursor: Migrate a Legacy Module With a Behavior Contract

Premium

Forces Cursor Composer to lock down current behavior before rewriting, so migrations don't silently break things.

Cursor .cursorrules: Enforce Consistent Error Handling

Free

Generate a .cursorrules block that forces Cursor to write error handling the same way every time.

Cursor: Find Dead Code and Unused Exports

Free

Audit a codebase for unused functions, exports, and files that can be safely deleted.

Cursor Composer: Add a Feature Flag Around Existing Code

Free

Wrap existing functionality in a feature flag without changing behavior for current users.

Cursor: Generate a Minimal Repro for a Bug Report

Free

Turn a vague bug report into a runnable minimal reproduction case you can debug in isolation.

Cursor: Generate Realistic Seed Data for Local Dev

Free

Create seed data that actually looks like your production data so local dev and demos feel real.

Cursor: Convert a Quick Hack Into Production Code

Free

Hand Cursor a working prototype and have it identify exactly what needs hardening before you ship it.

Cursor .cursorrules: Anti-Pattern Guardrails for Your Stack

Free

Generate a .cursorrules file that blocks the specific bad patterns Cursor tends to produce in your stack.

Cursor: Context Budget Reset for Long Sessions

Free

Hand Cursor a clean, dense recap when your chat is drifting so it stops hallucinating old state and re-focuses.

Cursor Composer: Rename a Concept Across the Codebase

Free

Use Composer to rename a domain concept everywhere (types, files, strings, comments) without breaking references.

Cursor: Trace a Bug Through the Call Stack

Free

Make Cursor walk a bug backwards through the codebase before suggesting any fix, so you understand the real cause.

Cursor: Explain This File Like I'm Reviewing a PR

Free

Turns Cursor into a code reviewer that walks you through an unfamiliar file with concerns flagged.

Cursor: Test-First Implementation From a Feature Description

Free

Forces Cursor Composer to write failing tests before any implementation code, keeping scope honest.

Cursor .cursorrules: Stack-Aware House Style Generator

Free

Generates a tight .cursorrules file based on the actual conventions in your repo, not generic best practices.

Cursor: Full Feature Planning Mode

Premium

Have Cursor plan an entire feature before writing a line — specs out files to touch, edge cases to handle, and tests to write first.

Cursor Refactor Without Breaking Things

Free

A Cursor-native prompt that refactors a function or file while preserving all existing behavior — includes a verification checklist.

Cursor Rules Generator

Free

Generate a .cursorrules file tailored to your stack — includes coding style, what to avoid, and how to handle edge cases specific to your project.

Map Every TypeScript Type That Escapes Validation

Premium

Find TypeScript interfaces and types that are used in API responses or database reads but have no runtime validation.

Cursor: Generate a Surgical Diff Plan Before Editing

Premium

Force Cursor Composer to produce a precise file-by-file change plan before it touches a single line of code.

Cursor Explain This (Senior Style)

Free

Get a senior-engineer-quality explanation of unfamiliar code instead of a textbook walkthrough.

Cursor Incremental Refactor

Free

Walk Cursor through a refactor in safe, reviewable chunks.

.cursorrules — TypeScript + React

Free

Drop-in .cursorrules for TypeScript/React projects. Covers conventions, patterns, and what to avoid.

Every premium prompt, unlocked

The Inner Circle unlocks the full library plus the curriculum, mentorship, and weekly live sessions. $47/mo.

Join the Inner Circle