Coding

Claude Extended Thinking Prompt

Activate Claude's extended thinking mode for complex coding problems that require deep reasoning, architectural decisions, or multi-step problem solving.

By The Prompt Black Magic Team

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.

When to Use This Prompt

Expected Results

How to Customize This Prompt