Find the slow thing before optimising
This is slow: {{describe symptom, e.g. endpoint takes 4s at p95}}. Here's the code and what I know: {{paste code, query plans, timings, data volumes}}. Don't optimise yet. First: …
229 copies · 22 likesWORKS WITH CURSOR
Community-tested ways to get more useful results from Cursor.
Add a promptThis is slow: {{describe symptom, e.g. endpoint takes 4s at p95}}. Here's the code and what I know: {{paste code, query plans, timings, data volumes}}. Don't optimise yet. First: …
229 copies · 22 likesReview this design before I build it: {{paste design or describe: what it does, data model, endpoints, dependencies, expected scale}}. Attack it in this order: 1. FAILURE MODES — …
107 copies · 22 likesReview the diff below as a senior engineer on this codebase would. Order your review by what actually matters: 1. CORRECTNESS — logic errors, off-by-one, unhandled nulls, wrong er…
68 copies · 15 likesWrite the query for this question: {{describe what you need to know}}. Schema: {{paste DDL or table and column list with row counts}} Database: {{engine and version}} Requirement…
71 copies · 14 likesHere's the change I'm about to push: {{paste the diff}}. Context: {{what it's meant to do, what the codebase conventions are}}. Review it as three different people, separately: 1.…
58 copies · 12 likesI want an agent that {{goal}}. It has access to: {{tools, APIs, data}}. It runs {{when and how often}}. Write the agent spec: 1. OBJECTIVE — one sentence, with the success conditi…
77 copies · 15 likesWrite documentation for the code below, for an engineer who joins in six months. Structure: 1. WHAT AND WHY — what this does and the problem it exists to solve. Include the constr…
75 copies · 16 likesRefactor the code below. The behaviour must not change, including its bugs, unless I approve the change. Process: 1. First, describe the current behaviour precisely, including edg…
50 copies · 15 likesHere's the ticket: {{paste}}. Here's the relevant code: {{paste}}. Produce an implementation plan: 1. Restate the requirement precisely, and list every ambiguity you had to resolv…
46 copies · 15 likesHere's what the customer wrote: {{paste it verbatim, including the vague bits}}. Here's the relevant code: {{paste}}. Here's our test setup: {{framework, how fixtures work}}. Do t…
58 copies · 8 likesI've just been dropped into this codebase and need to ship a change to {{area}} this week. Given the files below, produce an orientation doc: 1. What this system does, in two sent…
70 copies · 10 likesThis script works but it's about to become important: {{paste script}}. Harden it without over-engineering: 1. Name the failure modes it currently has — what happens on a network …
79 copies · 9 likesHere's a module I inherited and now have to support: {{paste the code}}. It currently logs {{nothing / everything at debug}}. Propose targeted logging, not a rewrite. For each sug…
67 copies · 8 likesA dependency upgrade broke my build. Upgrade: {{package, from version, to version}}. Errors: {{paste the first and last 30 lines of the failure}}. Lockfile or manifest: {{paste rel…
62 copies · 12 likesHere's an error and the relevant code. Diagnose it properly. 1. Translate the error into plain language: what the runtime was trying to do when it gave up. 2. Name the actual caus…
78 copies · 9 likesMy CI is red often enough that people rerun jobs instead of reading them. Failure data: {{paste test names, failure counts, and recent failure output}}. Stack and test runner: {{e.…
50 copies · 11 likesI've been asked how long this will take: {{describe the work}}. What I know: {{stack, team size, what already exists}}. What I've never done before: {{the unfamiliar part}}. Break…
48 copies · 9 likesHere's a bug that reached production, and the code around it. 1. Write the failing test that reproduces it at the smallest useful level (unit if the logic is pure, integration if …
68 copies · 7 likesI'm adding an endpoint: {{method, path, what it does}}. It touches {{database / third-party API / queue}}. Callers are {{our own frontend / third-party integrators / both}}. Give …
54 copies · 4 likesI need to change a database schema while the app keeps serving traffic. Current shape: {{tables, columns, types, indexes, row counts}}. Target shape: {{what it should become}}. Sta…
50 copies · 10 likesThis works locally and fails in production. Symptoms: {{describe, including frequency and pattern}}. Environment differences I know of: {{list}}. Logs: {{paste}}. Work the problem…
56 copies · 8 likesWrite a blameless postmortem from the raw material below. Incident channel or timeline: {{paste messages, alerts, and deploy events with timestamps}}. User impact as measured: {{wh…
56 copies · 8 likesHere's my diff: {{paste git diff or the file list plus key hunks}}. The ticket said: {{paste it}}. Write the pull request description with these sections: 1. WHAT CHANGED — two se…
50 copies · 5 likesYou are a staff engineer writing an on-call runbook for someone who has never touched this service. The service: {{what it does, who depends on it, what it talks to}}. Paste the co…
30 copies · 8 likesYou are the calm senior engineer on an incident bridge. Symptoms and blast radius: {{errors, affected users, when it started}}. What shipped recently: {{commits, migrations, config…
23 copies · 6 likesYou are a staff engineer doing a deletion pass. Candidate dead code: {{paste file list, functions, feature flags, endpoints, and any usage or analytics data you have}}. How we dete…
38 copies · 5 likesYou are teaching me an unfamiliar API I have to build against today. Below is its documentation. Do not summarise it - build me a mental model. Give me: 1. THE SHAPE — the 5-8 co…
33 copies · 5 likesYou are an engineer who has cleaned up after an automation that had more access than it needed. What the agent does and who it acts for: {{short description}}. Every source it can…
14 copies · 5 likesYou are a staff engineer doing a flag cleanup on a codebase where every flag was supposed to be temporary. Flag list with creation dates, current rollout state, and owner if known…
24 copies · 4 likesYou are a senior engineer on call. A bug is reported but does not reproduce locally. Report: {{paste the ticket or user description}}. Relevant code: {{paste}}. What we have from p…
35 copies · 3 likesYou are a build engineer looking at a CI pipeline that has crept up to {{current wall-clock time}}. Config: {{paste CI config / Dockerfile / build script}}. Timing breakdown per st…
38 copies · 3 likesYou are a reliability engineer reviewing an AI agent workflow. Below is its description and a run that went wrong. Design the logging I need to diagnose runs like this after the fa…
23 copies · 3 likesYou are helping me change a prompt that is live and used by other people. Current prompt: {{paste it}}. What it feeds: {{workflow, who consumes the output, how often it runs}}. Why…
35 copies · 3 likesYou are my automation engineer. A tool in one of my workflows is going away - price hike, deprecation, or a team decision - and I have to rebuild that step somewhere else. Return …
26 copies · 3 likesYou are a staff engineer triaging a stale pull request. It is too big, the branch has drifted, and nobody wants to be the one to review it. The PR description and diff summary (fi…
16 copies · 3 likesYou are an automation reviewer who has cleaned up after agents that asked permission for everything and agents that asked for nothing. What the agent does, step by step: {{paste t…
21 copies · 1 likeYou are a staff engineer reviewing a failure path. Below is the code that calls a third-party API, plus what the user is doing when it runs and what the vendor's failure modes look…
13 copies · 1 likeYou are the engineer who has to sign off on giving an agent write access to a production system. Below is what the agent does and where it will be pointed. Define its permissions b…
15 copies · 1 likeYou are a pragmatic infrastructure engineer. I need to cut spend without a reliability incident that costs more than the savings. Cost breakdown by service or line item, last full…
9 copies · 1 likeYou are reviewing a workflow that has been running unattended. Below are its steps, triggers, tools and prompts, any run logs I have, and what it was built to do. 1. STILL TRUE? -…
9 copies · 1 likeYou are designing the automation that triages a shared inbox before anyone touches it. Below are sample messages and the categories we handle today. 1. CATEGORY SET - table: Categ…
9 copies · 1 likeYou are the engineer who has done this before and knows a rushed backfill causes the second incident. A bug wrote incorrect rows to production. Below are the schema, the bug, and t…
6 copies · 1 likeYou are a staff engineer who has been burned by abandoned libraries. I am about to add a dependency. Judge it in five sections, no preamble. 1. WHAT IT ACTUALLY DOES - two sentenc…
13 copiesYou are the engineer making a model's output safe for a downstream system. Below is the target schema or field list, the system that receives it (API, spreadsheet, CRM), sample mod…
5 copies · 1 likeYou are designing duplicate-handling rules for an automation that takes actions in real systems. Below is the trigger, the actions it performs, the systems it writes to, and the wa…
2 copies · 1 likeYou are the engineer who owns an API endpoint that has to go. Below are the endpoint and its replacement, request volume by client or API key over the last month, and why we are re…
5 copiesYou are a senior engineer breaking an oversized change into a review-friendly series. Below is the diff summary (or file list plus description) and the constraints. Produce: 1. PR…
5 copiesYou are designing the conflict-resolution rules for an agent that reads from several systems. Below are the sources it pulls from, the fields where they overlap, examples of real d…
4 copiesYou are a performance engineer. Below is my endpoint list with real traffic shape and the infrastructure behind it. Design the load test. 1. THE PROFILE WORTH TESTING - table: End…
3 copiesYou are designing persistent memory for an agent that runs repeatedly against the same users or accounts. Below is what it does and what it keeps between runs. Decide what to store…
2 copiesYou are a senior engineer debugging a latency complaint that only one customer sees. Below are their symptoms, our timings and the relevant code or queries. Work the problem. 1. S…
You are designing the approval step in an automation. Below is the workflow and the action that needs a human to say yes. Decide what happens when the human does not reply. 1. APP…