All Prompts
Post a Prompt137 prompts
9votes
2answers
1.8kviews
Prompt to convert a messy research notebook into a reproducible, parameterized script
My analysis lived in a 400-cell notebook with out-of-order execution, hardcoded paths from my laptop, and df reused for six different frames. It ran on my machine and nowhere else. I needed a clean CL
20votes
1answers
1.9kviews
Getting GPT to write clean fbm noise in GLSL without the hash function collapsing to bands
Whenever I asked for a fragment shader with fractal brownian motion I got a hash based on sin(dot(p, vec2(12.9898,78.233))) 43758.5453. It looks fine at small scale then produces visible diagonal band
6votes
0answers
928views
Container-query-driven component that reflows by its own width, not the viewport
I'm building a media object (avatar + text + actions) that lives in a sidebar, a wide feed, and a narrow modal. Media queries were useless because the component's width has nothing to do with the view
8votes
1answers
1.5kviews
Getting the model to propose property-based tests, not three happy-path cases
Ask any model for tests and you get three example-based cases: a normal input, an empty input, maybe a null. Fine, but they miss the weird stuff. I wanted property-based tests that assert invariants a
15votes
2answers
1.7kviews
Prompt for a PWA that works offline first try, without a service worker that caches stale forever
I build mobile web that should feel native, and the classic failure is a service worker that caches so aggressively users get a stale app for days and can't figure out why the update never lands. My p
9votes
1answers
1.7kviews
Prompt for a feature section that isn't just a 3-column grid of icon + heading + text
The feature section is where landing pages go to be boring. Every model defaults to the same three-up card grid with a generic icon, a two-word heading, and a sentence of filler. It's instantly forget
21votes
2answers
3.6kviews
CSS-only accordion that animates open using grid-template-rows 0fr to 1fr
The eternal problem: you can't transition height: auto, so every accordion prompt gives me either a JS height-measuring hack or a max-height guess that's either clipped or has a laggy delay when conte
8votes
1answers
1.8kviews
Interactive scatter explorer with brushing and a linked detail table
I wanted an explorer where you drag-select a region of a scatterplot and a table below updates to just those points, with the selection surviving zoom. My first version reset the brush every time the
12votes
0answers
1.4kviews
Prompt for a changelog that a non-engineer can actually read, grouped by impact
Our raw changelog was just squashed commit subjects. Customers ignored it because it was 40 lines of refactor(api): ... that meant nothing to them. I now generate two changelogs from the same merged P
18votes
1answers
2.4kviews
Prompt for procedural roguelike dungeons that don't have unreachable rooms
Doing a small browser roguelike at 2am and the generated dungeons kept producing rooms with no doors or whole sections cut off from the start. Classic naive procedural gen. Asking for "random rooms an
9votes
1answers
1.7kviews
Forcing the model to write the failing test first instead of the impl
I do strict TDD and I wanted the model to do it with me, not for me. Default behavior with GPT is: ask for a feature, get the implementation plus some tests it wrote to match the code it just wrote. T
12votes
0answers
1.9kviews
Deterministic triage prompt for classifying inbound tickets into fixed buckets
I needed to route thousands of support tickets into a small set of categories for a dashboard. My first prompt was "classify this ticket" and it happily invented new categories every few hundred rows
16votes
2answers
3.1kviews
Canvas candlestick chart that survives a code review at 50k OHLC bars
Our desk needed an intraday candlestick view that stays at 60fps when someone scrolls a full year of 1-minute bars. The obvious SVG version from the model died around 8k nodes, and the first canvas at
9votes
1answers
1.6kviews
Fluid type scale with clamp() that stays readable and doesn't overshoot on 4K
Editorial layouts live and die by the type scale. My first prompts gave me clamp() values that looked fine on a laptop but ballooned to absurd sizes on a 32-inch monitor because the preferred vw term
24votes
2answers
3.0kviews
Prompt that writes the migration AND a reversible down-migration, not just the ALTER
Models are great at spitting out ALTER TABLE statements and terrible at remembering that migrations run on live data with existing rows. I got burned adding a NOT NULL column with no default to a tabl