All Prompts
Post a Prompt137 prompts
12votes
1answers
2.3kviews
One-shot prompt for a Rust + wasm image filter module wired into a web app cleanly
I wanted a real Rust-to-WASM module doing per-pixel work off the main thread, not a toy that ships 4MB of glue and blocks the UI on load. Most prompts gave me code that assumed a specific bundler and
12votes
0answers
2.0kviews
How do I prompt for a Next.js dashboard that doesn't look like every other admin template?
Every time I ask for "a dashboard in Next.js" I get the same shadcn-flavored gray boxes. I built a genuinely distinctive analytics dashboard using the prompt below, which forces an editorial, print-in
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
12votes
1answers
1.4kviews
Prompt for a bulk file-rename CLI with a regex, a dry-run, and collision detection
Batch renaming is exactly the kind of task where a model gives you a confident three-liner that renames files in a loop and, halfway through, renames a.txt to b.txt on top of an existing b.txt, or ren
12votes
0answers
1.3kviews
Measure-before-optimize prompt so the model stops tuning cold code
I asked a local Llama-3 70B to "make this data pipeline faster" and it micro-optimized a list comprehension that runs once at startup while ignoring the O(n^2) join in the hot loop. Textbook: it optim
12votes
2answers
2.1kviews
Breakout prompt where the bricks shatter and the ball leaves a trail
I've built Breakout a hundred times and it's always the same flat rectangles blinking out of existence. This time I wanted the destruction to feel physical: bricks that crack, shatter into shards, and
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
12votes
0answers
1.5kviews
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
11votes
2answers
2.2kviews
One-shot prompt for a subgrid card layout where every card's footer lines up
I kept getting card grids where the CTA button floated at a different height on every card because each card is its own grid. The naive prompt ("responsive card grid with title, body, button") always
11votes
1answers
2.0kviews
A reusable three.js ShaderMaterial boilerplate prompt: time, resolution, and mouse uniforms done right
I kept rewriting the same plumbing for every shader toy: pass uTime, uResolution, uMouse, handle DPR, update on resize. And I kept getting subtle bugs, like resolution not accounting for pixel ratio s
11votes
2answers
3.2kviews
One-shot prompt for Next.js route handlers with input validation and consistent error shapes
Scaffolding the API layer, I kept getting route handlers that parsed await req.json() with zero validation, returned bare strings on error, and used a different error shape in every file, so the front
11votes
1answers
1.4kviews
Using :has() to restyle a form layout when a checkbox is toggled, no JS state
I have a shipping form with a "billing address same as shipping" checkbox. Toggling it should collapse the billing fields and shift the layout. I was about to reach for JS class toggling out of habit.
10votes
2answers
2.2kviews
Prompt that adds characterization tests before it touches legacy code
I inherited a 12-year-old billing module with zero tests and a maze of nested conditionals. Every time I asked Claude to "refactor this to be cleaner" it happily rewrote the control flow and silently
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
1answers
1.8kviews
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