Questions tagged [one-shot]
Post a PromptSingle-prompt builds: no follow-ups, one prompt in, working artifact out.
26 prompts
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
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
14votes
2answers
2.2kviews
One-shot D3 time-series line chart that infers types from a messy CSV header
I kept feeding the model a CSV export from our analytics tool and getting a chart where the x-axis was treated as strings, so December sorted before February. The naive prompt ("plot this CSV as a lin
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
16votes
1answers
5.3kviews
Prompt that makes Claude generate a playable Snake game with juice and screen shake
Most snake-game prompts give you a joyless gray grid. I wanted arcade feel: particles, screen shake, an actual difficulty curve. After a lot of trial and error the prompt below consistently produces a
15votes
2answers
1.7kviews
Prompt for a PWA that works offline first try, without a service worker that caches stale forever
I build mobile web that should feel native, and the classic failure is a service worker that caches so aggressively users get a stale app for days and can't figure out why the update never lands. My p
5votes
0answers
1.2kviews
Repo-scaffold prompt: whole marketing site skeleton in one pass, then I take the wheel
My workflow is 0-to-1: I want the model to lay down a complete, runnable repo skeleton so I can start editing real content in minute two, not fight tooling for an hour. The failure mode is a model tha
22votes
2answers
2.9kviews
One-shot prompt that builds a complete SaaS landing page with pricing table
I kept iterating on landing page prompts and finally landed on one that reliably produces a polished SaaS landing page in a single shot: hero, feature grid, pricing table, FAQ, and footer, all respons
6votes
0answers
905views
Prompt for a tower defense with a wave curve that ramps without a difficulty wall
Built a tower defense in a hackathon and the enemy waves were either trivial or a sudden brick wall on wave 6. The balance was hand-tuned garbage. I tried to get the model to design the wave spawner a
6votes
0answers
973views
Getting a responsive landing layout with real grid instead of 20 stacked flexbox divs
Most models scaffold a landing page as an endless tower of <div class="flex flex-col" wrappers. It works but it's impossible to maintain and the vertical rhythm is always slightly off between sections
15votes
1answers
1.7kviews
Prompt for a Sokoban with guaranteed-solvable procedural puzzles
Sokoban is easy to render and brutal to generate: random box/goal placement gives you puzzles that are either trivial or literally unsolvable (a box shoved into a corner it can never leave). I wanted