All Prompts
Post a Prompt137 prompts
57votes
2answers
5.3kviews
How do you stop a tool-use agent from calling the same function five times in a row?
I have a research agent with search, fetch, and a calculator tool. It gets into loops: searches, gets a mediocre result, searches again with a nearly identical query, and burns tokens/latency without
54votes
1answers
5.2kviews
Prompt for a Next.js email + OAuth auth flow with sessions that survive a refresh
Auth is where my "ship it" energy usually crashes. I asked for login and got a flow that stored a JWT in localStorage, had no CSRF thought, and logged the user out on every hard refresh because the se
51votes
2answers
6.3kviews
A reusable system prompt for consistent design direction across a whole landing page
The hardest part of prompting UI isn't any single section, it's consistency. Ask for a hero, then a pricing block, then a footer in separate turns and you get three subtly different design languages:
47votes
3answers
5.3kviews
Reduced-motion-first system prompt so every animation ships with a safe fallback
We had animations scattered across the codebase and maybe half respected prefers-reduced-motion. Auditing after the fact is miserable. I wanted motion to be safe by construction, not by review. So I m
46votes
0answers
3.9kviews
Prompt for a React render-performance audit that names the actual wasted re-renders
Performance is a feature on my team, and "make it faster" prompts just sprinkled useMemo everywhere, including on primitives, which made the code worse and slower to read for zero gain. I reframed it
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-
42votes
1answers
5.9kviews
Prompt to turn a rambling meeting transcript into decisions, owners, and open questions
I was drowning in transcript summaries that were just shorter transcripts. "The team discussed X. Then they discussed Y." No signal. I switched to a prompt that extracts only three things and forces a
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
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
36votes
2answers
3.4kviews
Prompt for a typed third-party API client with real retry and error handling, not fetch soup
Every "integrate the Stripe/Notion/whatever API" answer I got was a bare fetch with no timeout, no retry, and a catch (e) { console.log(e) } that swallowed everything. Then it fell over the first time
35votes
1answers
3.4kviews
Context-engineering prompt for compacting an agent's long history without losing the thread
Long-running agents blow the context window. Naive truncation drops the early decisions that explain why the code looks the way it does, so the agent re-litigates settled choices. Summarizing the whol
35votes
1answers
3.4kviews
Prompt that generates an API reference from OpenAPI with realistic examples, not {string}
Generated API docs always have example values like "string", 0, true. Useless. Developers copy them and immediately hit validation errors. I feed the model the OpenAPI schema and force it to invent do
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
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
30votes
3answers
3.8kviews
Print-ready seeded generative SVG art: one prompt, ten unique pieces from ten seeds
I sell small generative prints, so I need SVG (vector, scales to any paper size) that is fully reproducible from a seed and looks curated across a whole edition, not just one lucky render. Early promp