Questions tagged [claude]
Post a PromptPrompts used with Anthropic's Claude family of models.
18 prompts
10votes
0answers
2.3kviews
System prompt for a customer support agent that knows when to escalate
We shipped a support agent and the biggest problem wasn't wrong answers, it was confident wrong answers on questions it had no business answering. This system prompt made escalation behavior reliable.
6votes
0answers
1.2kviews
Endless runner prompt with procedural obstacles that stay fair as speed ramps
Made a Canabalt-style one-button endless runner and the procedural obstacle spawner kept generating impossible sequences: two gaps back to back with no room to land, or a wall the instant you couldn't
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
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
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
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
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
13votes
2answers
3.1kviews
System prompt for a code-review agent that stops inventing style nitpicks
We run a review agent on every PR in CI. The first version was useless: it left 20 comments per PR, half of them were "consider renaming this variable" on code that hadn't changed, and it flagged form
28votes
1answers
3.2kviews
Prompt for a Snake game that actually feels juicy, not just a grid crawler
Every AI-generated Snake I've seen is technically correct and completely lifeless: a square that jumps one cell per tick with zero feedback. I wanted the arcade-cabinet feeling in a single HTML file.
10votes
2answers
2.2kviews
Prompt that adds characterization tests before it touches legacy code
I inherited a 12-year-old billing module with zero tests and a maze of nested conditionals. Every time I asked Claude to "refactor this to be cleaner" it happily rewrote the control flow and silently
27votes
2answers
2.8kviews
One prompt for a convincing CRT / arcade shader overlay on a canvas game
I wanted my pixel games to look like they're running on an old arcade monitor, not a crisp modern LCD. Most AI attempts gave me faint horizontal lines and called it a CRT, which fools nobody. Asking f
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
8votes
1answers
1.9kviews
System prompt for a WebAudio chiptune sound engine I can reuse across games
I kept re-generating one-off beep functions for every game jam and they all sounded thin and clicky. I wanted one reusable sound engine module I could drop into any canvas game with named SFX and a li
10votes
1answers
1.9kviews
Prompt for a dark-mode pricing table that reads as premium, not a spreadsheet
I build a lot of dark-mode products and pricing tables are where AI output falls apart. The default is three equal cards, a wall of checkmarks, and one card with a garish "Most Popular" badge slapped
24votes
2answers
2.8kviews
Output contract that makes the model write code future-me won't hate
My gripe isn't that AI code is wrong, it's that it is unmaintainable: 80-line functions, clever one-liners, no seams for testing, magic numbers everywhere. It passes review by looking confident. I sto