33votes
1answers
3.3kviews

Scroll-driven reveal animations that don't nuke accessibility or jank the scroll

I wanted sections to fade and rise as they enter the viewport, but every prompt result either used a heavy IntersectionObserver soup or animated top/margin and made the scroll stutter on a mid-range p
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
22votes
1answers
4.6kviews

How I prompt a platformer jump that feels like Celeste, not like a brick

The single biggest reason AI platformers feel bad is the jump. You get gravity, you get a jump impulse, and it's stiff and unforgiving. The magic is all the invisible assists that pro platformers ship
37votes
3answers
4.1kviews

Seedable generative poster on canvas where the same seed always renders identically

I built a generative poster tool and the whole point was letting people share a seed so a friend gets the exact same artwork. First version used Math.random() everywhere, so of course nothing was repr
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
44votes
1answers
4.5kviews

How do I prompt for landing copy that sounds like a person, not a pitch deck?

Every draft came back in the same LinkedIn-influencer cadence: "Unlock. Empower. Transform." It read like six other startups. I got somewhere by giving the model a real voice sample and a hard banned-
39votes
3answers
4.0kviews

Hypothesis-driven debugging prompt that stops the model guess-fixing

Classic failure mode: I paste a bug and the model immediately rewrites five things, half unrelated, and says "this should fix it." No hypothesis, no evidence, just vibes. When one of those changes acc
22votes
2answers
4.1kviews

One-shot prompt that scaffolds a Next.js 14 App Router SaaS that actually compiles

I kept asking for "a Next.js SaaS starter" and getting a pile of files that referenced components that didn't exist, mixed the pages and app routers, and threw 40 type errors on first pnpm build. The
23votes
2answers
2.9kviews

Prompt for a log-tailing CLI that parses, filters, and summarizes without loading the whole file

I wanted a small tool to slice gigabyte-sized JSON-lines logs by level and time range and print a summary, but the first version the model gave me did open(f).read() and json.loads on the whole thing,
8votes
0answers
968views

Inline SVG sparklines inside a table that stay readable at 20px tall

I needed a trend sparkline in the last column of a dense metrics table, one row per service. Every generated version either drew axes (pointless at that size) or normalized each row independently so a
31votes
2answers
3.2kviews

One-shot prompt for a hero section that doesn't look like every other SaaS gradient

Every time I asked for a "modern SaaS hero" I got the exact same thing: centered headline, full-width purple gradient, a floating dashboard screenshot in fake browser chrome, and a three-emoji feature
18votes
2answers
3.1kviews

Prompt for a production-grade Python CLI with argparse, exit codes, and a self-check

Every weekend project starts with me asking a model for "a Python script that does X" and getting back a 20-line toy: no argument parsing, prints stack traces at users, returns 0 even when it failed.
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
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
22votes
2answers
3.2kviews

One-shot three.js hyperspace starfield that stays 60fps on a laptop trackpad

I wanted the classic warp-speed starfield but every naive attempt spawned 20k separate Mesh objects and my fans took off. The trick was forcing the model to reach for InstancedMesh (or a single Points