Review your own code before anyone else sees it
Here'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.…
56 copies · 12 likesWORKS WITH WINDSURF
Community-tested ways to get more useful results from Windsurf.
Add a promptHere'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.…
56 copies · 12 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…
48 copies · 15 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 …
74 copies · 9 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…
68 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…
65 copies · 8 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…
73 copies · 9 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…
61 copies · 11 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…
46 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.…
47 copies · 9 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…
44 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…
26 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…
14 copies · 5 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…
32 copies · 4 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…
20 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…
31 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…
36 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…
12 copies · 3 likesYou 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…
11 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…
8 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…
11 copiesYou 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…
4 copies