All Prompts
Post a Prompt137 prompts
12votes
0answers
1.5kviews
Getting a local model to one-shot a Flappy clone with tuned, fair difficulty
I wanted to see how far a local open-weight model could get on a full playable game in one prompt, no follow-ups. Flappy Bird is a good test: simple, but the pipe gap and spacing tuning is what makes
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
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
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
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.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
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
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
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.
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
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
10votes
1answers
1.9kviews
Prompt for a dark-mode pricing table that reads as premium, not a spreadsheet
I build a lot of dark-mode products and pricing tables are where AI output falls apart. The default is three equal cards, a wall of checkmarks, and one card with a garish "Most Popular" badge slapped
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
3answers
2.0kviews
Prompt for an idempotent cron/systemd maintenance script that's safe to run twice
Our nightly cleanup job used to assume it ran exactly once and finished. Then a run overlapped with the next one, they both deleted the same temp files, and one crashed mid-way leaving a half-cleaned