Opus extended thinking

From frankxai/claude-skills-library · View interactive version

Opus extended thinking is an AI agent skill from the GitHub repository frankxai/claude-skills-library. Use Claude's extended/adaptive thinking for deep reasoning, complex analysis, and multi-step synthesis — both the prompt patterns that elicit deliberation and the current thinking API (adaptive thinking + the effort parameter). Use when a problem needs thorough deliberation before answering, or when

How to use this skill

Skill file

Extended & Adaptive Thinking

This skill covers Claude's ability to reason deeply before responding — both the prompt patterns

that elicit genuine deliberation (model-agnostic, below) and the current thinking API (how to

turn it on and tune its depth). It applies to the current Claude family: Fable 5 (most capable),

Opus 5 (default), Sonnet 5, and Haiku 4.5.

Model IDs and API details move fast. This skill is dated; always confirm against

platform.claude.com.


How thinking works today (the API)

The modern control is adaptive thinking plus the effort parameter — not a fixed token

budget. The older thinking: {type: "enabled", budget_tokens: N} is **deprecated on Opus 4.6 and

removed (returns a 400) on Opus 4.7, Opus 4.8, and Fable 5** — do not use it on current models.

# Current pattern (Opus 5, Sonnet 5, and the older Opus 4.8 / 4.7 / 4.6, Sonnet 4.6)
response = client.messages.create(
    model="claude-opus-5",
    max_tokens=16000,
    thinking={"type": "adaptive", "display": "summarized"},  # default display is "omitted"
    output_config={"effort": "high"},  # low | medium | high | xhigh | max
    messages=[{"role": "user", "content": "Solve this step by step..."}],
)

minimum of high for most intelligence-sensitive tasks; drop to medium/low for routine work.

max is for the hardest, latency-insensitive cases (max/xhigh are Opus-tier + Fable 5, not Haiku).

billed; the text is just empty). Set "summarized" to surface a readable summary to users.

{type: "disabled"} 400s), and the raw chain of thought is never returned (only summaries).

Everything below is about eliciting good deliberation through prompting — it works regardless of

which model or effort level you choose.


Understanding deliberate reasoning

What it is

Adaptive/extended thinking lets the model:

When it engages

With adaptive thinking on, the model decides when and how much to think — typically when:


Prompt Patterns for Deep Thinking

Pattern 1: Explicit Deliberation Request

Before answering, take time to:
1. Consider the problem from multiple angles
2. Identify potential pitfalls or edge cases
3. Weigh different approaches
4. Then provide your best response

Question: [Your complex question]

Pattern 2: Multi-Perspective Analysis

I need a thorough analysis of [topic].

Please consider:
- The technical perspective
- The business/practical perspective
- The user/human perspective
- Potential risks and downsides
- Long-term implications

Take your time to reason through each before synthesizing.

Pattern 3: Step-by-Step Reasoning

Walk me through your reasoning on this problem step by step.
Don't jump to conclusions - show your work.

Problem: [Complex problem]

For each step, explain:
- What you're considering
- Why you're making that choice
- What alternatives you rejected and why

Pattern 4: Devil's Advocate

I'm planning to [action/decision].

Before you help me execute this:
1. Steelman the opposing view - what's the best argument against?
2. What am I potentially missing or underweighting?
3. What would make this fail?
4. Only then, if it still seems right, help me proceed.

Pattern 5: Synthesis Request

I have [number] different sources/perspectives on [topic]:
[List them]

Please synthesize these into a coherent understanding that:
- Identifies where they agree
- Explains where they conflict and why
- Weighs the evidence/arguments
- Provides your reasoned conclusion

Task Types That Benefit Most

1. Strategic Planning

Prompt pattern:
"Help me think through [strategic decision].
Consider: current state, desired outcome, constraints,
multiple paths, risks of each, second-order effects.
Don't rush to a recommendation - reason through thoroughly first."

2. Code Architecture Decisions

Prompt pattern:
"I'm deciding between [Option A] and [Option B] for [system].
Before recommending, analyze:
- Scalability implications
- Maintenance burden
- Team capability fit
- Migration complexity
- What we might regret in 2 years"

3. Creative Development

Prompt pattern:
"I want to create [creative work] about [theme].
Before writing, explore:
- Different narrative approaches
- Tonal variations
- Structural options
- What makes this theme resonate
Then develop the direction that feels most promising."

4. Problem Diagnosis

Prompt pattern:
"[System/situation] is exhibiting [problem].
Don't jump to the obvious cause.
Consider:
- What are all possible causes?
- What evidence supports/refutes each?
- What's the most likely root cause?
- What would I need to verify to be sure?"

5. Research Synthesis

Prompt pattern:
"Help me understand [complex topic].
I need you to:
- Break down the key concepts
- Explain how they relate
- Identify what's well-established vs debated
- Note what's commonly misunderstood
- Synthesize into a coherent mental model"

Anti-Patterns to Avoid

❌ Rushing to Action

Bad: "Write me a function that does X"
Better: "I need a function that does X. Before coding,
        let's consider: edge cases, error handling,
        interface design, testing approach."

❌ Accepting First Answer

Bad: "What's the best database for my app?"
Better: "What database should I use for [specific requirements]?
        Consider multiple options, tradeoffs between them,
        and what factors should weight most heavily."

❌ Binary Thinking

Bad: "Should I do A or B?"
Better: "I'm choosing between A and B, but I'm open to
        alternatives I haven't considered. What's the
        best path forward given [context]?"

❌ Ignoring Uncertainty

Bad: "Tell me the answer to [complex question]"
Better: "Help me understand [complex question].
        Be explicit about what's certain vs uncertain,
        and what evidence supports different views."

Extended Thinking Triggers

Use these phrases to encourage deeper deliberation:

Analytical Triggers:

Critical Triggers:

Synthesis Triggers:


Output Quality Indicators

Signs extended thinking is working well:

Signs it might need more prompting:


Combining with Other Patterns

Extended Thinking + Agentic Execution

"First, think through the best approach to [task].
Consider alternatives and tradeoffs.
Once you have a clear plan, execute it autonomously,
but note any decision points where you chose between options."

Extended Thinking + Iterative Refinement

"Draft an initial approach to [problem].
Then critique your own draft - what could be better?
Revise based on your critique.
Show me both the final version and key improvements you made."

Extended Thinking + User Collaboration

"Analyze [situation] and identify the key decision points.
For each decision, explain the tradeoffs.
Before proceeding, I'll tell you my priorities,
then you can recommend the path that fits best."

When NOT to Use Extended Thinking

Some tasks benefit from quick, direct responses:

For these, don't add complexity. Just ask directly.


Model notes (current family)

work; thinking is always on. Reserve for genuinely demanding tasks (it is priced above Opus tier).

Supersedes Opus 4.8 as current; unlike 4.8, thinking runs adaptive even if you omit the parameter.

Sonnet 4.6 as current.

All current models excel at sustained reasoning chains, self-correction when given space, nuanced

"it depends" answers, and multi-factor synthesis — raise effort before adding prose scaffolding

when you need more rigor.


Integration with FrankX System

Use extended thinking for:


Extended thinking is about quality of cognition, not length of output. The best responses come from genuine deliberation - use these patterns to unlock that capability.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.