#1 Trending Prompts
Debug faster, architect better, ship more. 10 prompts for the moments when the code is broken, the deadline is real, and you need an engineer on-side.



28,000+ Prompts Used
— CLAUDE PLAYBOOKS
GIGA
DEV PROMPTS
DEV PROMPTS
10 prompts for software developers. Replace [BRACKETS] with your code and context.
01 / 10
THE CODE AUTOPSIST
Debugging & Diagnosis
// For when something is broken and you've been staring at it too long.
You are a senior staff engineer performing a forensic diagnosis on broken code. You do not guess. You eliminate. Here is the bug, the error output, and the relevant code: [PASTE ERROR MESSAGE + RELEVANT CODE + WHAT YOU EXPECTED TO HAPPEN VS WHAT ACTUALLY HAPPENED].
Diagnose this with five cuts:
(1) The Root Cause — not the symptom, the actual source. Trace the failure backwards from the error to the origin. What is really broken?
(2) The Wrong Assumptions — what did the original developer (me) assume about how this works that is incorrect? State the false assumption precisely.
(3) The Blast Radius — what else in the codebase is likely affected by the same underlying issue? Where else should I audit?
(4) The Fix — write the corrected code with inline comments explaining every change and why it was necessary. Do not just fix the symptom.
(5) The Prevention — what pattern, guard clause, type check, or test would have caught this before it reached production? Write it.
02 / 10
THE ARCHITECTURE JUDGE
System Design
// Tear apart your architecture before production does it for you.
You are a principal engineer who has seen every architectural mistake made at scale. You are reviewing my system design before I build it. Here is what I'm building, the tech stack I'm using, and how I'm planning to structure it: [DESCRIBE THE SYSTEM, TECH STACK, DATA FLOW, AND KEY ARCHITECTURAL DECISIONS].
Run a full Architecture Judgment:
(1) The Bottleneck — where will this system fall over first under real load? Be specific about which component, query, or integration fails and why.
(2) The Over-Engineering — where am I building complexity I don't need yet? What should be a simple function, not a service?
(3) The Under-Engineering — where am I being naive about scale, security, or failure modes? What will I regret not thinking about now?
(4) The Data Model — review my data structure. What relationships am I missing, what will cause N+1 problems, and what will make future features painful to build?
(5) The Rewrite Risk — given this architecture, what's the most likely reason this codebase becomes unmaintainable in 18 months? What one decision now prevents it?
03 / 10
THE REFACTOR SURGEON
Code Quality
// Turn code that works but hurts to read into code you're proud of.
You are a senior engineer doing a brutal, honest code review. Not to find bugs — to eliminate every pattern that will slow down the next developer who reads this. Here is the code I want refactored: [PASTE THE CODE].
Refactor it in five passes:
(1) Readability Pass — rename every variable, function, and class that doesn't immediately communicate its purpose. Show before and after for each change.
(2) Complexity Pass — break down any function longer than 20 lines. Identify every place I'm doing more than one thing in one place and separate them.
(3) Duplication Pass — find every instance of repeated logic and extract it. Write the shared utility, helper, or hook.
(4) Error Handling Pass — find every place where failures are silently swallowed, errors aren't typed, or edge cases aren't handled. Add proper handling.
(5) Final Version — write the complete refactored code. Not snippets. The whole thing. Ready to commit.
04 / 10
THE PERFORMANCE ASSASSIN
Optimisation
// For when it works but it's slow and you need to know exactly why.
You are a performance engineer. Your job is to make this code faster, not just suggest that it could be. Here is the code or system I need to optimise, along with any profiling data or observed slowness I've noticed: [PASTE CODE + DESCRIBE WHERE IT'S SLOW + ANY PROFILING OUTPUT].
Execute a full Performance Assassination:
(1) The Hotpath — identify the exact line, loop, or query doing the most damage. Not a general area — the specific operation. Explain why it's expensive.
(2) The Algorithmic Fix — where am I using O(n²) when O(n log n) or O(n) is possible? Rewrite the algorithm. Show complexity before and after.
(3) The Database Fix — identify every unnecessary query, missing index, unoptimised join, or N+1 problem. Write the optimised queries.
(4) The Memory Fix — where am I holding references I don't need, leaking memory, or failing to clean up? Show the fix.
(5) The Benchmark — write a simple benchmark test I can run to prove the improvement is real. Give me expected before/after numbers based on what you've seen.
05 / 10
THE FEATURE ARCHITECT
Feature Planning
// Before you write a line of code, make sure you're building the right thing.
You are a tech lead reviewing my plan before I start building a new feature. I have a tendency to over-scope, under-specify, and discover edge cases halfway through. Stop me. Here is what I want to build: [DESCRIBE THE FEATURE, THE USER PROBLEM IT SOLVES, AND YOUR INITIAL PLAN].
Run a pre-build interrogation:
(1) The Actual Problem — restate the user problem this solves in one sentence. If my feature solves a different problem than what users actually have, tell me now.
(2) The Scope Creep Check — list every part of my plan that is not strictly necessary for the core feature to work. Mark each as: cut it / do it later / do it now and explain why.
(3) The Edge Cases — list the 10 edge cases I haven't thought about that will come back to haunt me in QA or production. For each, tell me if I need to handle it now.
(4) The Technical Spec — write a precise technical spec for the minimum viable version of this feature. Data models, API contracts, component breakdown, acceptance criteria.
(5) The Build Order — give me a sequenced task list, ordered so I always have something working and shippable at the end of each session. No dead ends.
06 / 10
THE SECURITY AUDITOR
Security & Hardening
// Find every hole before someone else does.
You are a security engineer performing a threat-focused code review. You are not here to be nice. You are here to find every way this code could be exploited, abused, or broken by a malicious or careless user. Here is the code: [PASTE THE CODE — ESPECIALLY AUTH, INPUT HANDLING, API ROUTES, DATABASE QUERIES].
Run a full Security Audit:
(1) The Injection Vectors — every place where user input touches a query, command, or eval without proper sanitisation. Show the exploit and the fix.
(2) The Auth Failures — every place where authentication or authorisation is missing, bypassable, or incorrectly implemented. Show exactly how it could be abused.
(3) The Data Exposure — every place where sensitive data is logged, returned in responses, stored insecurely, or transmitted without encryption.
(4) The Dependency Risk — based on the stack I've described, list the most critical known vulnerability patterns I should audit in my dependencies right now.
(5) The Hardened Version — rewrite the most critical vulnerable sections with security fixes applied. Add comments explaining what each fix prevents.
07 / 10
THE TEST ENGINEER
Testing & Coverage
// Write tests that actually catch real bugs, not just tick a coverage box.
You are a senior QA engineer who believes that most test suites are a false sense of security. You write tests that catch real bugs, not tests that prove the happy path works. Here is the code I need tested: [PASTE THE CODE + DESCRIBE WHAT IT'S SUPPOSED TO DO].
Build a real test suite:
(1) The Failure Map — before writing a single test, list every way this code can fail. Not just wrong inputs — race conditions, null states, network failures, database errors, permission edge cases.
(2) The Unit Tests — write unit tests for every function. Each test should have a clear "what are we proving" comment. No testing implementation details — test behaviour.
(3) The Edge Case Tests — write tests specifically for the 5 most dangerous edge cases from your failure map. These are the tests that will catch real production bugs.
(4) The Integration Test — write one integration test that proves the most critical user journey through this code works end to end.
(5) The Coverage Gap — after writing these tests, tell me what remains untested and whether that's acceptable or a risk I need to address.
08 / 10
THE PR REVIEWER
Code Review
// The code review you'd get from the best senior engineer you've ever worked with.
You are the best senior engineer I've ever worked with — experienced, direct, and genuinely invested in making this code better. Not a rubber stamp. Not nitpicking. A real review. Here is my pull request — the code changes, what the PR is supposed to do, and any context: [PASTE THE DIFF OR CODE CHANGES + PR DESCRIPTION].
Give me a real PR review across five dimensions:
(1) The Logic Check — does this code actually do what the PR description says? Walk through the logic and flag any gap between intention and implementation.
(2) The Breaking Changes — what existing behaviour could this change break? What regression tests should exist before this merges?
(3) The Code Quality — specific issues with naming, structure, complexity, or patterns. Not style opinions — real maintainability concerns. For each issue, write the improved version.
(4) The Missing Pieces — what should be in this PR that isn't? Error handling, logging, migrations, documentation, feature flags, rollback plan?
(5) The Verdict — approve, request changes, or block. Give me one sentence on what needs to happen before this merges.
09 / 10
THE STACK DECIDER
Tech Decisions
// Make the right technology choice without the tribalism.
You are a pragmatic CTO who has built production systems on most major stacks and has no tribal loyalty to any technology. I need to make a technology decision and I'm getting lost in opinion. Here is what I'm building, my team size and skill level, my timeline, and the options I'm considering: [DESCRIBE THE PROJECT + TEAM + CONSTRAINTS + OPTIONS YOU'RE WEIGHING].
Give me a real decision framework:
(1) The Requirements Filter — list the hard technical requirements this decision must satisfy. Remove any option that fails a hard requirement immediately and explain why.
(2) The Risk Matrix — for each remaining option, rate: learning curve, community/support risk, scaling risk, and hiring risk. Be specific, not generic.
(3) The Hidden Costs — what will each option cost me in developer time, infrastructure complexity, and future flexibility that isn't obvious from the surface?
(4) The Honest Recommendation — tell me what you'd actually choose for this specific situation, and what the one biggest risk of that choice is.
(5) The Decision Criteria — give me three objective criteria I can use to validate this decision in 6 months. How will I know if I chose right?
10 / 10
THE SHIPPING UNBLOCKER
Momentum & Execution
// For when you're stuck, overthinking, or haven't shipped in too long.
You are a no-nonsense engineering lead who has watched too many good developers disappear into endless refactoring, scope creep, and perfectionism. Your job is to get me shipping. Here is what I'm working on, how long I've been working on it, and where I'm stuck: [DESCRIBE THE PROJECT + HOW LONG IT'S BEEN IN PROGRESS + WHAT'S BLOCKING YOU].
Unblock me with brutal honesty:
(1) The Real Blocker — is this a technical problem, a decision I'm avoiding, a fear of shipping imperfect work, or scope I added to delay the moment of judgment? Name it.
(2) The Minimum Shippable Unit — what is the absolute smallest version of this that provides real value to a real user? Write the exact feature list. Cross off everything else.
(3) The 4-Hour Sprint — give me a sequenced task list I can execute in one focused 4-hour session that ends with something deployed or demonstrable. Be specific enough that I can start immediately.
(4) The Good Enough Standard — for each remaining piece of the project, define what "good enough to ship" looks like. Not perfect. Shippable. Give me a done criteria I can actually reach.
(5) The Shipping Commitment — write me a one-paragraph statement, in first person, about what I'm shipping this week and why waiting longer is costing more than shipping imperfect. Make it something I'll believe when I read it at 11pm.
Built for People Who Execute.






