All Prompts
Post a Prompt137 prompts
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
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
23votes
2answers
2.7kviews
Real-time metrics dashboard with sparkline gauges over a websocket feed
I was building a live ops board that streams a few dozen metrics over a websocket, each shown as a number plus a rolling sparkline. The naive build re-rendered the entire React tree on every message a
15votes
0answers
1.8kviews
Prompt for React CRUD with optimistic updates and rollback that doesn't corrupt the cache
Systems guy dabbling in web here. Optimistic UI kept biting me: the happy path looked instant, but a failed delete left a ghost row, or two rapid edits raced and the cache ended up in a state that mat
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
23votes
2answers
4.2kviews
Support-agent system prompt with escalation rules that actually hand off cleanly
I build customer support bots and the recurring failure is the bot pretending it can do things it can't (issue refunds, change a subscription) and then dead-ending the user. Or the opposite: it escala
19votes
1answers
3.4kviews
Context-engineering trick to fit a 40-file module in one prompt cheaply
I kept blowing my context budget dumping a whole module into Claude for a cross-cutting change. Pasting all 40 files raw cost a fortune and buried the model in noise, so its edits drifted from the par
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
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
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
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
14votes
2answers
2.3kviews
How do you prompt GPT for an editorial, type-driven landing hero (think magazine, not startup)?
I come from print. I want landing heroes that feel like the opening spread of a good magazine: a strong typographic idea, real hierarchy, confident negative space. What I keep getting from GPT is a co
7votes
1answers
1.1kviews
What's the best prompt structure for getting Python scripts with proper error handling?
Every generated Python script I get is happy-path only: no retries, bare excepts, crashes on the first weird input. I've been experimenting with a checklist-style prompt suffix that forces defensive c
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
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