29votes
1answers
5.0kviews

Above-the-fold prompt that actually converts without a single dark pattern

I write landing pages for a living and I refuse to ship fake countdown timers, "14 people are viewing this", or manipulative confirmshaming. But when I ask AI for "high-converting" copy it reaches str
28votes
1answers
3.2kviews

Prompt for a Snake game that actually feels juicy, not just a grid crawler

Every AI-generated Snake I've seen is technically correct and completely lifeless: a square that jumps one cell per tick with zero feedback. I wanted the arcade-cabinet feeling in a single HTML file.
28votes
0answers
4.2kviews

One prompt for a polite, resumable web scraper that won't get me IP-banned

I needed to pull a few thousand product pages for a price-history side project. My first scraper hammered the site with 50 concurrent requests, got a 429, then kept retrying instantly and made it wors
28votes
1answers
5.2kviews

GPU particle system in three.js: 100k points orbiting a strange attractor at 60fps

I wanted a big swirling particle cloud following a Lorenz/Thomas attractor. CPU-updating 100k positions per frame in JS was a slideshow. I knew I needed the integration to happen on the GPU but kept g
27votes
1answers
3.5kviews

Self-verification step that catches an agent's own hallucinated file paths and APIs

My coding agent kept confidently importing functions that don't exist and referencing files it never opened. The plan looked great, the code didn't run. Classic. What moved the needle was a mandatory
27votes
2answers
2.8kviews

One prompt for a convincing CRT / arcade shader overlay on a canvas game

I wanted my pixel games to look like they're running on an old arcade monitor, not a crisp modern LCD. Most AI attempts gave me faint horizontal lines and called it a CRT, which fools nobody. Asking f
27votes
1answers
4.6kviews

RAG chatbot system prompt that refuses to answer beyond the retrieved context

Building a docs assistant over our internal knowledge base. The naive version blended retrieved chunks with the model's prior knowledge, so it would answer questions our docs never covered and sometim
26votes
1answers
2.2kviews

Prompt for a pandas cleaning script that validates the schema before it trusts the CSV

I get monthly CSV exports from a vendor and the columns silently drift: a header gets renamed, a numeric column arrives with stray $ and commas, dates flip between MM/DD and DD/MM. My old script assum
26votes
3answers
6.5kviews

One-shot prompt for a dashboard data table that isn't the same shadcn gray boxes

Every dashboard prompt I tried gave me the identical gray-card-with-a-number-and-a-tiny-line-chart layout, and a table that was just a styled div with none of the behavior that makes a table useful. I
26votes
2answers
5.3kviews

System prompt for a docs chatbot that says "I don't know" instead of confidently making things up

We shipped a docs assistant and the failure mode wasn't rudeness or refusals, it was fluent, confident answers about features that don't exist. Worse than useless because people trusted it. The fix wa
26votes
2answers
2.9kviews

How I prompt for an accessible signup + first-run flow that passes an audit by default

We failed an accessibility audit on our signup once: unlabeled inputs, an error summary that never got announced, focus that jumped to the top of the page after validation. Retrofitting a11y is misera
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
25votes
1answers
3.6kviews

Prompt for an agent that reviews PRs and actually finds real bugs, not style nits

I run this as the system prompt for a code-review agent hooked to our CI. Before this, 90% of its comments were style nitpicks nobody wanted. The reframing that fixed it: make the agent predict runtim
25votes
2answers
4.5kviews

Guardrail prompt so my coding agent stops inventing files it never read

Building an autonomous coding agent and the scariest bug wasn't a crash, it was confident fabrication: it would "edit" config/settings.py describing lines that didn't exist, because it never actually
24votes
1answers
4.3kviews

Admin dashboard prompt that doesn't produce the same three gray shadcn cards

Every dashboard I one-shotted came out as the identical layout: three stat cards on top, a big line chart, a table. Technically fine, visually indistinguishable from every other AI dashboard on the in