Activate Claude's extended thinking mode for complex coding problems that require deep reasoning, architectural decisions, or multi-step problem solving.
Use this prompt with Claude (Opus or Sonnet) when you need the model to think through a complex problem before answering. Works in Claude Code and the API.
I need you to think deeply about this problem before writing any code. Problem: [DESCRIBE THE COMPLEX PROBLEM] Context: - Codebase: [LANGUAGE/FRAMEWORK] - Constraints: [PERFORMANCE, COMPATIBILITY, OR DESIGN CONSTRAINTS] - Scale: [DATA SIZE, USER COUNT, OR THROUGHPUT REQUIREMENTS] Before you write a single line of code, I want you to: 1. **Analyze the problem space:** What are the core challenges? What makes this non-trivial? 2. **Consider approaches:** List 3 different architectural approaches with trade-offs for each (performance, maintainability, complexity) 3. **Identify edge cases:** What inputs, states, or conditions could break a naive implementation? 4. **Choose and justify:** Pick the best approach and explain your reasoning 5. **Plan the implementation:** Break it into ordered steps, noting dependencies between components 6. **Implement:** Write clean, production-ready code with error handling 7. **Verify:** Walk through your code mentally with a concrete test case Take your time. Thoroughness matters more than speed here.
"Claude Extended Thinking Prompt" is built on a principle most AI users overlook: models perform dramatically better when given negative constraints and audience specification rather than open-ended questions. This means you get production-quality code that handles edge cases and follows your stack conventions without the trial-and-error that wastes most people's time with AI.
These coding tips will help you get stronger results when using "Claude Extended Thinking Prompt" and similar prompts in this category.
"Claude Extended Thinking Prompt" is particularly useful in these situations. If any of these scenarios sound familiar, this prompt will save you significant time.
When you use "Claude Extended Thinking Prompt" with ChatGPT, Claude, or Gemini, here is what to expect in the AI output.
Adapt "Claude Extended Thinking Prompt" to your specific situation by modifying these key areas. The more context you add, the better the results.