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
9votes
0answers
2.0kviews

Prompt for discriminated-union API result types so the UI can't render an impossible state

Half the runtime bugs in our dashboard were "data is undefined but we still rendered the table." The types were { data?: T; loading: boolean; error?: string }, which lets you express nonsense like loa
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
8votes
0answers
962views

Match-3 prompt with cascading combos and juice that reads at a glance

Match-3 is deceptively hard to make feel good. My first AI version detected matches and removed gems instantly, so the board just blinked and refilled with no sense of chain reaction. Dead. The naive
17votes
1answers
2.5kviews

Canvas flow-field particles with trails that fade instead of piling into a smear

Flow-field particle trails on canvas always end up either as harsh solid lines or, when I try to fade them, a muddy gray wash because I clear with a semi-transparent black rectangle every frame and it
15votes
1answers
2.5kviews

Turning a paragraph of requirements into a Postgres schema with RLS and a migration

I wanted to describe a multi-tenant app in plain English and get back a schema that respects tenancy at the database layer, not just in the app code where one forgotten where orgid = leaks everyone's
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
16votes
0answers
2.3kviews

Prompt for OrbitControls that auto-frames any loaded model and never lets you fly inside it

I load a lot of random glTF models and half of them arrived either microscopic or filling the whole viewport. I kept manually tweaking camera distance per model like an animal. So I wrote a prompt tha
13votes
0answers
1.3kviews

Chart theming as design tokens so every chart in the app matches

We had six charts built by four people and they all looked slightly different: different grays for gridlines, different fonts, three shades of the same 'brand blue'. I wanted the model to generate a s
6votes
0answers
665views

SVG line-draw animation for an icon that self-draws once, then holds

I wanted a checkmark that draws itself in on success, the classic stroke-dasharray trick, but every generated version either looped forever, drew at a constant robotic speed, or flashed the fully-draw
6votes
0answers
974views

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
10votes
3answers
2.0kviews

Prompt for an idempotent cron/systemd maintenance script that's safe to run twice

Our nightly cleanup job used to assume it ran exactly once and finished. Then a run overlapped with the next one, they both deleted the same temp files, and one crashed mid-way leaving a half-cleaned
16votes
1answers
1.9kviews

Prompt for commit messages that explain WHY, generated from a diff

My commit history was a graveyard of "fix", "update", "wip". Reviewing my own PRs a month later was archaeology. I wired a prompt into a pre-commit hook that reads the staged diff and drafts a Convent
12votes
0answers
1.3kviews

Measure-before-optimize prompt so the model stops tuning cold code

I asked a local Llama-3 70B to "make this data pipeline faster" and it micro-optimized a list comprehension that runs once at startup while ignoring the O(n^2) join in the hot loop. Textbook: it optim
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