Claude Fable 5 Prompts for Web Developers: UI, Code Review, Debugging
40+ battle-tested Claude Fable 5 prompts for web developers — app planning, PRDs, code review, UI fixes, debugging, backend, and database queries.
P
PromptsRushJune 11, 2026
•18 min read
On this page
14 sections
Claude Fable 5 Prompts for Web Developers: UI, Code Review, Debugging
Read
0%
0 views
Claude Fable 5 is the writing-tier Claude — but it codes well enough that for most of a web developer's day, it is the model you want open in another tab. Cheaper than Opus 4.7, faster than GPT-5.5, prose-quality good enough for PRDs and architecture decisions, and competent at the back-and-forth that a real review or debug session looks like.
This post is the prompt library we run at PromptsRush across the full web dev loop — from "we should probably build this" to "why is staging on fire." 42 prompts across seven categories, every one tested against a real task. Hero prompts have copy buttons. The rest are numbered and ready to lift.
Why Fable 5 Fits the Web Developer Loop
The previous model comparison we ran ranked Fable 5 just behind Opus 4.7 and GPT-5.5 on raw SWE-bench, but ahead of both on τ-bench (tool-use reliability) and Terminal-Bench (long-horizon ops). For day-to-day web work that triangle matters more than the SWE-bench number.
Three reasons Fable 5 specifically fits this workload:
1M context for full repo dumps. Paste a 200k-token repo into the prompt and Fable 5 still reasons clearly about it. Most code review and refactor prompts in this list assume you do this.
Long-form prose plus code. PRDs, ADRs, runbooks — the writing artifacts a senior engineer produces look more like writing than like code. Fable 5 owns this lane.
~3x cheaper than Opus 4.7 at similar quality for routine work. Run Fable 5 as default; reserve Opus 4.7 for hard multi-hour autonomous runs.
Pro tip: Save a Claude Project per major repo with the file tree, the CLAUDE.md (or README), and a recent PR diff in the project knowledge. Every prompt below gets sharper when the model already has the repo context.
Category 1 — App Planning & PRDs (Prompts 1–7)
Before any code: scoping, PRDs, and the decision artifacts that prevent you from building the wrong thing.
Prompt 1 — Full PRD From a Loose Idea
Ready to use
I have pasted my loose product notes above. Write a complete PRD for a v1 web app. Required sections: problem statement (single paragraph, must name the user and what currently sucks), non-goals (the three things this v1 explicitly does not do), user stories (3-5 as 'As X, I want Y, so that Z'), success metrics (one leading and one lagging, both quantified), risks (top 3 with mitigations), and an open-questions section. Maximum 1,500 words. No corporate filler. If the idea has a fatal flaw, flag it in the open-questions section and stop padding the rest.
Here is my PRD draft above. Cut it to the smallest possible MVP that still proves the central hypothesis. Output: (1) the hypothesis in one sentence, (2) the single feature that proves or disproves it, (3) every feature you cut and a one-line reason, (4) the user journey for the surviving feature in 4-6 steps. The MVP must be shippable in 14 days by a 2-person team. If it cannot, name what is blocking and propose a smaller cut.
App architecture brief. Given the PRD I just pasted, propose an architecture for a {{stack: e.g. Next.js + Postgres + Vercel}} build. Output: a Mermaid component diagram, the three highest-risk integration points, the auth strategy, the data model in DBML, and the deploy pipeline. Justify each choice in one line.
Stack chooser. Given the PRD and team profile I have pasted (team size, languages they know, deploy preferences, latency requirements), recommend a primary stack and a fallback. Compare on: ramp time, hosting cost at 10k MAU, hiring market, ecosystem maturity. End with a single recommendation.
Feature-vs-debt decision. I have pasted our roadmap and our current open-bug list. For each item, classify as feature / debt / risk. Recommend the next two-week slot of work. Defend the recommendation against the strongest counterargument in one paragraph.
RFC writer. Write an RFC for {{proposed change}}. Required sections: motivation, prior art (link to similar systems if possible), proposal, alternatives considered, trade-offs, rollout plan, success criteria, and the question I am asking the team to weigh in on. Tone: confident author, open to being wrong.
Pre-mortem. Assume this initiative ships and fails 12 months from now. Write a post-mortem from that future state. Be specific about the failure mode — code, hiring, product, market — and name the single decision that, made differently today, would have prevented the failure.
Category 2 — Code Reviews (Prompts 8–14)
Reviews are where Fable 5 earns its keep daily. These prompts produce the kind of feedback a senior reviewer would write — specific, actionable, no hedging.
Prompt 8 — Senior-Engineer PR Review
Ready to use
You are a senior staff engineer reviewing a pull request. I have pasted the full diff and the linked ticket above. Review it the way you would in real life. Output: (1) the top three risks ordered by severity, (2) the single architectural concern most likely to bite us in six months, (3) any change that should have been a separate PR, (4) the specific files and line numbers for each comment. Do not be polite. If the diff is fine, say so in one sentence and stop. Do not invent issues to look thorough.
Review this diff for security issues only. Categories to check: authn/authz changes, input validation, SQL/command injection paths, secrets handling, CORS / CSRF, dependency additions with known CVEs, rate-limit gaps. For each finding: file:line, severity (low/med/high/critical), proof or repro, recommended fix. If no findings, return 'no security issues found in this diff' and stop.
Refactor opportunity scan. I have pasted N source files above. Find duplication, identify the three highest-value extractions, and propose names for the extracted units. Do not invent abstractions justified by fewer than three callsites. Output as a numbered plan.
Test gap finder. Given this source file and its test file, list the behaviours that are not tested. Rank by likelihood of causing a future regression. Suggest the three highest-value tests to add and write the first one in full.
Type-safety auditor. Review this TypeScript file for any-types, unsafe casts, missing exhaustiveness checks, and type narrowing opportunities. For each finding: file:line, the loose type, and the tightened replacement. Skip findings where tightening would break public API.
Style and idiom checker. Compare this new code against the conventions in the rest of the file. Flag any places where the new code diverges from the existing pattern. Do not propose style changes to existing code — only the new lines.
Commit message rewriter. Here is my git diff and draft commit message. Rewrite to follow Conventional Commits. Explain the why, not the what. Call out breaking changes. Subject line under 72 characters.
Category 3 — Development Plans & Task Breakdown (Prompts 15–20)
Prompt 15 — Sprint Plan From a Spec
Ready to use
Given the spec I have pasted and a team of {{N}} engineers for a 2-week sprint, produce a sprint plan. Output: (1) the goal in one sentence, (2) tickets ordered by dependency, (3) per-ticket estimate in engineer-hours, (4) the critical path highlighted, (5) what gets cut if the team loses a person mid-sprint. No ticket larger than 8 hours — split if needed.
Prompt 16 — Ticket Writer With Acceptance Criteria
Ready to use
Convert this rough description into a Jira/Linear ticket. Required fields: title (action-led, under 80 chars), description with context and links, acceptance criteria as a checklist where every item is verifiable, edge cases to handle, the smallest test that proves it works, and a rough estimate (S/M/L). Skip the corporate templating — keep it tight.
Estimation challenger. Here is my estimate for this work. Argue why it is wrong. What did I miss — unknowns, integration overhead, review cycles, edge cases? Suggest a more honest estimate with a confidence band, not a point.
Migration plan. We are migrating from {{X}} to {{Y}}. Given the system I have pasted, produce a migration plan: phases, the order of components to move, the backwards-compat shim required at each phase, rollback strategy per phase, and the metric that confirms each phase succeeded.
Dependency map. Here is my backlog of N tickets. Map the dependencies between them. Identify the critical path. Suggest the three tickets that should start this week to unblock the rest.
Definition of done. Write a "definition of done" for a {{type of work}} in our team. Concrete and minimal — no compliance theatre. Each item must be observable in code, tests, or runbooks, not in someone's head.
Category 4 — UI & Frontend Fixes (Prompts 21–27)
Where Fable 5 surprises most often. The model has a working sense of design that is rare in frontier LLMs.
Prompt 21 — CSS / Layout Bug Diagnoser
Ready to use
I have pasted the component JSX, its CSS, and a screenshot description of what is broken. Diagnose the layout bug. Output: (1) the actual cause in one sentence, (2) the minimal fix, (3) two alternative fixes if the minimal one has side effects, (4) the principle behind why this happens — so I do not hit it again. Be specific about flexbox vs grid vs positioning behaviour.
Audit this React component for accessibility. Check: semantic HTML, heading order, ARIA usage, keyboard navigation, focus management, color contrast (assume the colors I have pasted), screen reader announcements, and any motion that needs prefers-reduced-motion. Output: a numbered list of findings with severity (low/med/high) and the specific code change for each. If a finding cannot be auto-fixed, explain what the manual review needs to verify.
Component refactor for composability. Here is a React component that is doing too much. Refactor it into a primary component and 2-3 sub-components. Preserve the public API. Output the refactored files with brief comments only where the boundary choice is non-obvious.
Tailwind audit. Audit my component's Tailwind classes for: redundant utilities, classes that should be extracted into a @apply block, responsive breakpoint inconsistencies, and any dark-mode pair I missed. Output: the cleaned-up JSX.
Form validation generator. Given this form's fields, generate a Zod schema, the per-field error messages (clear, human, no "Invalid input"), the submit handler with optimistic UI, and the loading / success / error states. Use react-hook-form.
Animation primitive. I want a {{description of motion}} animation for this component. Implement using Framer Motion. Provide variants for hover, tap, and the entrance transition. Respect prefers-reduced-motion automatically.
Responsive breakpoint check. Here is my component. Walk through how it renders at 360px, 768px, 1024px, and 1440px. Identify where it breaks and the smallest CSS change to fix each breakpoint. Do not propose a full responsive rewrite if it works at three of the four widths.
I have pasted a stack trace and the relevant source code above. Diagnose. Output: (1) the actual root cause in one sentence — not the symptom, (2) the proximate cause line(s), (3) why this is surfacing now (recent change? load? data?), (4) the minimal fix, (5) the test I should add to make sure this never silently returns. If the trace is ambiguous, list the two most likely causes and what info would distinguish them.
Here is a customer bug report (often vague). Produce a minimal repro plan: the exact steps, the inputs that should trigger the bug, the data state required, and what 'observed' vs 'expected' looks like for each step. If the report is missing critical info, list the three questions to ask back — phrased so a non-technical user can answer.
Performance triage. I have pasted a flame graph and the relevant code. Identify the top three optimizations by expected impact. For each: the specific change, the expected speedup, the risk of breaking something. Skip changes saving less than 5% of wall time.
Memory leak hunter. Given this React component and the description of growing memory over a session, identify the most likely leak source. Common patterns to check: missing cleanup in useEffect, event listeners, subscriptions, refs to detached DOM. Recommend the fix and the way to verify it.
Race condition finder. Walk through this async flow line by line. Identify any race conditions, missing cancellation tokens, state updates after unmount, or stale closures. For each: the failure mode, the input timing that triggers it, and the fix.
Hydration mismatch fix. I am hitting a hydration mismatch in this Next.js / React component. Trace the divergence between server and client output. Identify which value is non-deterministic between the two passes and the cleanest fix (suppressHydrationWarning is not the answer unless I prove no other fix works).
Network failure replay. I have pasted the network tab from a failed request. Diagnose the failure: client-side timeout, server-side error, CORS, auth, payload size, content-type mismatch. Recommend the next debug step in priority order.
Design an endpoint for {{capability}}. Output: the method and route, the request schema in Zod, the response schema in Zod (success and error variants), the auth requirement, rate limit recommendation, idempotency strategy if mutating, and the three failure modes the handler must address. Then write the handler skeleton in {{language/framework}}. No business logic — just the contract and the skeleton.
Auth flow audit. Here is our auth implementation. Audit it for: session fixation, CSRF, token leakage, missing rate limits, refresh-token rotation, logout completeness across devices, and password-reset hijack paths. For each finding: severity, repro, fix.
Webhook handler. Write a webhook handler for {{provider}} that verifies the signature, validates the payload with Zod, deduplicates by event ID, processes asynchronously via a queue, and exposes a replay endpoint for the last 24 hours. Include the failure-recovery path.
Background job designer. Design a background job for {{task}}. Cover: schedule or trigger, idempotency strategy, retry policy with backoff, alerting on failure, the metric I watch to know it is healthy, and the rollback procedure if it ships broken.
Rate-limit strategy. Design rate limits for this API. Per-endpoint limits based on the cost and abuse risk of each call. Token-bucket vs sliding-window for each. Where the limit lives (edge, gateway, app). What happens at limit (429 vs 503 vs queue). Output as a config table.
Given the schema I have pasted, write the SQL for: {{question in plain English}}. Use the dialect for {{Postgres/MySQL/BigQuery/Snowflake}}. Explain in one line what the query does. If the schema cannot answer the question, say so — do not invent columns. If there are indexing implications, mention them in a single line at the end.
Here is a slow SQL query and its EXPLAIN (ANALYZE) output. Identify the actual bottleneck — sequential scan, missing index, bad join order, oversized intermediate, plan cache miss. Propose three rewrites in priority order with the expected speedup for each. If a new index is needed, write the CREATE INDEX statement and quantify the write-side cost.
Schema reviewer. Here is a proposed schema. Review for: missing indexes on FKs, columns that should be NOT NULL with defaults, types that under-use the dialect (text vs varchar, jsonb vs json, timestamp vs timestamptz), missing audit columns, and any denormalisation that needs explicit justification.
Migration safety check. Here is a database migration. Tell me: what locks does this take, what happens to a row being written mid-migration, the rollback plan, and whether this needs to be split into smaller migrations to ship safely on a {{N}}-million-row table. Concrete about Postgres / MySQL behaviour, not generic.
Data backfill plan. I need to backfill {{column or table}} for {{N}} rows. Design the plan: batch size, throttling strategy, idempotency, progress tracking, the metric I monitor for replication lag, and the rollback if the backfill produces wrong values. Cover what happens if it dies halfway.
ORM-to-SQL escape hatch. Here is the ORM query and its generated SQL. Rewrite as a hand-rolled SQL query that runs faster and is more legible. Keep the result shape identical. Note the cases where the rewrite would not be equivalent (nullability differences, ordering, locking).
The Full Web Dev Loop With Fable 5
Single prompts are useful. The compound win is chaining them. The loop we run for any non-trivial feature:
Build. Backend prompts (35-39) for new endpoints, UI prompts (21-27) for the frontend.
Review. Prompt 8 (senior review) on every meaningful PR. Prompt 9 (security) on anything touching auth or input.
Ship. Prompt 43 (migration safety) on the DB change. Prompt 44 (backfill plan) if data needs to move.
Triage. When something breaks: Prompt 28 (stack trace) or Prompt 29 (repro) depending on whether you have the error or just the report.
Run this loop once and the prompts feel like overhead. Run it for ten features and the time saved compounds — most teams we have onboarded report 30-50% less time spent on the writing and review parts of the loop.
Fable 5 vs Opus 4.7 for Coding — When to Switch
Task
Default to
Why
PRD / RFC / architecture writing
Fable 5
Prose quality leads here
PR code review
Fable 5
~3x cheaper, quality matches at this task size
UI / component work
Fable 5
Design sense + fast iteration
Routine debugging from a stack trace
Fable 5
Good enough; faster turn
Multi-hour autonomous refactor
Opus 4.7
Long-horizon coherence still wins
Complex algorithmic work
Opus 4.7
Raw SWE-bench advantage shows here
Production-critical migration design
Opus 4.7
Reserve the deepest reasoning for blast-radius decisions
If you read the 42 prompts above carefully, they share the same moves. Steal them for your own:
Paste the actual code, not a description. Fable 5 reasons about real files better than about summaries of files. Long context is cheap; use it.
Output format spelled out. "Output: (1) cause, (2) fix, (3) test." beats "diagnose this." Vague asks produce vague answers.
Forbid hedging. "Do not be polite." "If the diff is fine, say so and stop." Removing the model's default to look thorough is the single biggest quality lift.
Constraints kill filler. "Under 1,500 words." "Skip findings that affect <5% of wall time." Constraints force prioritisation.
Ask for the principle. Many prompts above end with "tell me the principle so I do not hit this again." That phrase turns a fix into a learning artifact.
Pre-mortem and counter-argument. Several prompts ask the model to argue against itself. This is how you stop confidently wrong outputs from shipping.
Pro tip: If a prompt is not working, almost never rephrase the question. Add a constraint that makes the lazy answer impossible. That fixes 80% of mediocre outputs.
Where to Run These
Claude.ai web app. Best for PRDs, RFCs, sprint plans, review prompts — anything where you are reading the output as much as the code is consuming it.
Claude Code. Best for Categories 4, 5, 6, 7 — UI fixes, debugging, backend, database. The autonomous loop on top of these prompts is where Fable 5 actually ships changes.
Anthropic API. Best for wiring code review into CI. The senior-review prompt (8) and security-review prompt (9) make excellent PR-comment bots when integrated with GitHub Actions.
Multi-model aggregators like Genspark. Useful when you want to A/B Fable 5 against Opus 4.7 or GPT-5.5 on the same prompt before committing the workflow.
The Verdict
Fable 5 is the model most web developers should default to in mid-2026. Cheaper than Opus, faster on routine work, better than GPT-5.5 on prose artifacts like PRDs and ADRs, and competent enough at the back-and-forth of a real review that you stop noticing it is not Opus.
The 42 prompts above are not the ceiling. They are the floor. Run them for thirty days, save the variants that worked on your codebase, and you will have your own internal library that beats anything you can find in a prompt-pack repo. The unlock is not the prompts — it is the habit of treating prompts as a growing library, tuned to the actual shape of your work.
Prompt Library — the full searchable collection across every category.
All AI Models — model catalogue with current pricing and capabilities.
❓
Frequently Asked Questions
10 questions answered
Both, with different strengths. Claude.ai is better for planning, review, and writing artifacts (PRDs, RFCs, sprint plans). Claude Code is better for prompts that need to actually touch files, run tests, and iterate — debugging, UI fixes, backend handlers, database migrations. For most teams the right setup is both — Claude.ai for the desk work, Claude Code for the IDE work.
Yes, when used inside Anthropic's commercial tiers — Claude.ai Team/Enterprise and the Anthropic API are covered by no-training-on-your-data terms. If you are on the consumer Claude.ai plan, check your settings. For regulated codebases (HIPAA, PCI, etc.), use the Anthropic API through a BAA where required.
Save your CLAUDE.md / style guide and 5-10 example files as Project Knowledge in a Claude Project. Fable 5 picks up conventions from examples better than from rules — naming patterns, file structure, import ordering, comment density. Update the project knowledge whenever the style evolves.
Prompt 8 (Senior PR Review). It is the easiest to wire into your existing workflow, it produces the most immediately useful output, and it teaches you what Fable 5 reads in your code without you having to direct it. Once you trust the review output, the other categories slot in naturally.
Less than other models on routine work — Fable 5's tool-use efficiency means it tries running its own code more often when in Claude Code. But yes, on novel APIs and edge cases it can still confidently produce wrong code. The mitigation is in the prompt: ask for tests, ask it to predict the output before running, and ask it to flag any function it is not 100% sure exists in the library version you use.
For greenfield features in well-documented stacks, yes — Claude Code with these prompts can produce a working feature in one session. For features that touch shared core logic or have non-obvious business rules, treat the output as a strong first draft and review it like you would a junior engineer's work.
Claude Code's built-in review is more general and tuned for friendliness. Prompt 8 is tuned to produce the output of a senior staff engineer who does not have time to be polite — fewer findings, sharper, more specific. Use Prompt 8 when you want substantive review; use the built-in for a quick sanity check.
Yes — every database prompt above asks you to specify the dialect. Fable 5 handles dialect-specific behaviours (Postgres jsonb operators, MySQL utf8mb4 quirks, BigQuery partitioning, Snowflake clustering) well as long as you name the engine in the prompt. If you skip the dialect, expect Postgres-flavoured SQL by default.
A typical PR review (Prompt 8) on a 500-line diff with the relevant repo context costs roughly $0.05-$0.15 per call on the Anthropic API at Fable 5 pricing ($3 in / $15 out per 1M tokens). For a team shipping 200 PRs per month, that is under $30/month for full review coverage. Caching the repo context drops it further.
Prompt 17 — the estimation challenger. Engineering teams systematically under-estimate. A prompt that argues against your own estimate, in your own context, before you commit to the sprint, catches more bad estimates than retrospectives ever will. Run it on every non-trivial ticket.