10votes
0answers
2.3kviews

System prompt for a customer support agent that knows when to escalate

We shipped a support agent and the biggest problem wasn't wrong answers, it was confident wrong answers on questions it had no business answering. This system prompt made escalation behavior reliable.
10votes
0answers
1.3kviews

Touch bottom-sheet micro-interaction that feels native without a JS animation lib

Building a PWA and the bottom sheet is the make-or-break interaction. The generated versions animated height (janky), had no drag affordance, and snapped instantly instead of easing, so it felt like a
10votes
1answers
1.7kviews

Staggered list entrance where items cascade in without a JS timeline library

I wanted a list where items rise and fade in one after another, the classic stagger. My first prompts hardcoded animation-delay per child, which breaks the moment the list length changes, and used a l
9votes
0answers
2.0kviews

Prompt for discriminated-union API result types so the UI can't render an impossible state

Half the runtime bugs in our dashboard were "data is undefined but we still rendered the table." The types were { data?: T; loading: boolean; error?: string }, which lets you express nonsense like loa
9votes
1answers
2.0kviews

Generative CSS gradient-mesh background that stays subtle behind text

For a poster-style hero I wanted a soft animated gradient mesh, but the usual prompt gives you a seizure-inducing rainbow that makes overlaid text unreadable. The animation also pinned the CPU because
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
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
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
9votes
1answers
2.0kviews

Prompt that bakes accessibility into a chart instead of bolting it on later

Our charts passed a visual review and failed an a11y audit hard: color-only encoding, no keyboard access, screen readers announcing a wall of unlabeled paths. Retrofitting was miserable, so I moved th
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
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
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
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
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
962views

Match-3 prompt with cascading combos and juice that reads at a glance

Match-3 is deceptively hard to make feel good. My first AI version detected matches and removed gems instantly, so the board just blinked and refilled with no sense of chain reaction. Dead. The naive