All Prompts
Post a Prompt137 prompts
18votes
2answers
1.6kviews
Prompt for a dedup + latest-record SQL query using window functions with a self-check
Reporting handed me an events table with duplicate rows per entity (late-arriving data, at-least-once delivery) and I needed exactly the latest row per key. The naive GROUP BY + MAX(updatedat) approac
9votes
0answers
1.2kviews
GitHub-style contribution calendar heatmap as pure SVG, no library
I wanted the little year-of-squares heatmap for an activity page, but the versions I got either misaligned the weekday rows or started the week on the wrong day, so the whole grid was shifted by one a
25votes
1answers
2.8kviews
Prompt for end-to-end typed forms with zod + react-hook-form and no type drift
The recurring pain: the zod schema, the TypeScript type, and the form field names would drift apart, so you'd validate a field the form didn't have, or submit a shape the API rejected. Three sources o
9votes
0answers
1.4kviews
Responsive camera framing in three.js so a scene fills phone portrait and desktop wide equally
My 3D product scene looked perfect on my 16:9 monitor and then the hero object was tiny and floating in the corner on a phone in portrait. Classic: I was only adjusting aspect on resize, not the actua
12votes
1answers
1.2kviews
Prompt for release notes that read like a human wrote them, tone-matched to the product
Our release notes swung between robotic ("Bumped dependency versions") and try-hard ("We've been cooking up something special"). Neither felt like us. I built a prompt that takes a tone sample from ou
5votes
0answers
969views
Splitting a 600-line god function into pure units without behavior drift
The worst function in our codebase does input parsing, three network calls, retry logic, formatting, and logging in one 600-line block. I wanted GPT to carve it into small pure functions plus a thin o
14votes
1answers
2.0kviews
Asteroids prompt with real thrust inertia and screen wrap that doesn't pop
Wanted a proper Asteroids: momentum-based ship, thrust and rotation, bullets, splitting rocks. The tricky feel bits are the inertia (you drift, you don't stop instantly) and seamless screen wrap so ob
13votes
1answers
1.6kviews
Verlet rope and cloth prompt that stays stable instead of exploding
I love verlet integration for cheap 2D physics, but every quick AI version I got would look great for two seconds and then the cloth would violently explode as constraints fought each other. The naive
8votes
1answers
894views
Turning a messy matplotlib notebook into one reproducible plotting script
I had a research notebook with 40 cells of exploratory plots, half of them relying on variables defined three cells up and a global rcParams tweak that only worked if you ran things in order. Sharing
8votes
0answers
815views
Pricing-page copy prompt that frames plans by user, not by feature-count tiers
Pricing copy is where products lie to themselves. The default AI output labels three tiers Basic/Pro/Enterprise and lists how many seats/projects each allows, which tells the buyer nothing about which
18votes
0answers
2.0kviews
A reusable chain-of-thought scaffold as a system prompt, not inline rambling
I maintain a shared prompt library for my team and the biggest inconsistency was reasoning quality. People would tack "think step by step" onto the end and get mushy, unstructured chains that were har
13votes
0answers
1.5kviews
Making the model generate a config loader with validation instead of raw os.environ reads
Half our incidents traced back to config: an env var typo'd to an empty string, a port that was actually the literal text "8080" compared against an int, a feature flag that was the string "false" (wh
5votes
1answers
965views
Prompt that rewrites a dense technical blog draft to a target reading level without dumbing it down
My drafts read like release notes: correct, unreadable. I wanted them accessible to a junior dev without stripping the actual substance, which most "simplify this" prompts do by deleting the interesti
9votes
0answers
1.0kviews
Procedural mesh-gradient background that animates without looking like a lava lamp
Everyone's doing the blurry blob mesh-gradient hero background now, and most look like a 2005 lava lamp because the color stops drift randomly and mush together. I wanted something that breathes slowl
15votes
1answers
1.7kviews
Prompt for a Sokoban with guaranteed-solvable procedural puzzles
Sokoban is easy to render and brutal to generate: random box/goal placement gives you puzzles that are either trivial or literally unsolvable (a box shoved into a corner it can never leave). I wanted