Skip to main content
command

ultra-think — Claude Code command: what it does, how to install

Runs a structured analysis of a hard problem: surfaces hidden assumptions, proposes competing solutions, stress-tests each one. Useful when a decision is expensive to get wrong.

Install into Claude Code · claude-code-templates All methods and platforms ↓
npx claude-code-templates@latest --command utilities/ultra-think
Open on GitHub

What ultra-think does

You pass the problem as an argument, and the command forces it apart: what is actually being asked, which assumptions sit inside the question, who is affected by the outcome. Then it wants at least three genuinely different approaches, not three flavours of the same idea.

Each option gets judged through the lenses that fit the problem — technical, economic, human, systemic, temporal — and the agent has to justify which ones apply. Next comes adversarial testing: argue against the leading option, invert the question and work out what would guarantee failure, then steer the recommendation away from those paths. One cross-domain parallel and second-order effects at 6 months, 2 years and 10 years are required too.

Output follows a fixed template: problem analysis, solution options, recommendation with roadmap and success metrics, alternative perspectives. When context is thin, it asks up to three targeted questions instead of guessing. For the hardest calls, the author suggests turning on extended thinking in your Claude settings.

What it helps with

  • break an architecture decision into options and pick one
  • expose assumptions baked into the question itself
  • test a plan against its own failure scenario before building
  • weigh consequences at six months and at several years
  • get a recommendation with uncertainty stated openly

Example prompts for the agent

  • /ultra-think Should we migrate to microservices or improve our monolith?
  • /ultra-think How do we scale the system for more traffic while cutting costs?
  • /ultra-think How can we improve our API without breaking backward compatibility?

How to install ultra-think

1claude-code-templates

npx claude-code-templates@latest --command utilities/ultra-think

2Manually: put the files in place

.claude/commands/ultra-think.md

Call it with /ultra-think. For all projects use ~/.claude/commands/

Questions about ultra-think

How do I install ultra-think in Claude?

Run npx claude-code-templates@latest --command utilities/ultra-think, which places the file at .claude/commands/ultra-think.md.

What does ultra-think do?

It runs a structured analysis: frames the problem, generates at least three distinct solutions, evaluates them across relevant lenses, and attacks the leading option with counter-arguments before recommending anything.

What does the command need to work well?

Enough context: the domain, the constraints, and the decision-maker's goals. If that is missing, it asks up to three targeted questions first.

Source text

ultra-think.md · MIT
---
description: "Multi-framework structured analysis: surfaces hidden assumptions, generates competing solutions, stress-tests each with adversarial reasoning, and delivers confidence-calibrated recommendations"
argument-hint: "[problem or question to analyze]"
---

# Deep Analysis and Problem Solving Mode

Deep analysis and problem solving mode

## Instructions

Analyze the problem or question provided: **$ARGUMENTS**

Before proceeding, identify: the core challenge, key constraints, implicit assumptions, and who is affected by the outcome.

**Before beginning analysis**, check whether $ARGUMENTS provides enough context:
- If the problem is specific and the domain is clear, proceed immediately to analysis.
- If critical context is missing (e.g., the domain, the constraints, or the decision-maker's goals), ask up to three targeted questions before proceeding. Do not ask unnecessary questions.

## Required Analysis Elements

Your analysis must address all of the following. Order and depth are yours to determine based on the problem:

- **Problem framing**: What is actually being asked? What assumptions are embedded in the question?
- **Competing solutions**: At least 3 meaningfully different approaches, not variations of the same idea.
- **Multi-lens evaluation**: Assess each solution across the lenses most relevant to this problem (technical, economic, human, systemic, temporal — select and justify which apply).
- **Adversarial testing**: For each leading solution, argue against it. What would have to be true for it to fail badly? Use inversion — ask what you would do to guarantee failure, then ensure the recommendation avoids those paths.
- **Cross-domain insight**: Draw at least one non-obvious parallel from a different field or discipline.
- **Second-order effects**: What does each approach make more or less likely to happen in 6 months, 2 years, 10 years?
- **Synthesis**: Which approach or combination is recommended? Why, given the specific trade-offs?
- **Confidence calibration**: For each key claim, note where uncertainty is high and what would change the recommendation.

## Structured Output Template

Present findings using this structure:

```
## Problem Analysis
- Core challenge
- Key constraints
- Critical success factors

## Solution Options
### Option 1: [Name]
- Description
- Pros/Cons
- Implementation approach
- Risk assessment

### Option 2: [Name]
[Similar structure]

## Recommendation
- Recommended approach
- Rationale
- Implementation roadmap
- Success metrics
- Risk mitigation plan

## Alternative Perspectives
- Contrarian view
- Future considerations
- Areas for further research
```

## Output Expectations

- Every solution option is evaluated on its own merits, not just compared relatively.
- Reasoning chains are explicit — conclusions reference the evidence or logic that produced them.
- Uncertainty is surfaced, not hidden. If data is insufficient, say so and specify what would resolve it.
- The recommendation section is actionable: next steps are specific enough to begin on immediately.
- Length matches problem complexity. Avoid padding.

## Usage Examples

```bash
# Architectural decision
/ultra-think Should we migrate to microservices or improve our monolith?

# Complex problem solving
/ultra-think How do we scale our system to handle 10x traffic while reducing costs?

# Strategic planning
/ultra-think What technology stack should we choose for our next-gen platform?

# Design challenge
/ultra-think How can we improve our API to be more developer-friendly while maintaining backward compatibility?
```

> **Tip**: For the hardest decisions, enable extended thinking in your Claude Code settings. This command's structured analysis pairs with Claude's native reasoning capabilities for deeper results.

© davila7 · MIT · davila7/claude-code-templates

Similar slash commands

All slash commands for Agent setup: memory, context, orchestration →
think tw93 Turns a rough idea into a plan with a recommendation, success criteria, and checks. Use it to weigh architecture choices or prepare a handoff before coding. CX Codex +1 15,000installs boost-prompt official github This skill asks about scope and constraints, then turns the answers into a detailed Markdown prompt. Use it when a task request starts out vague. 9,779installs skill-creator official openai Official guide for drafting and updating agent skills. It structures procedures, bundled scripts, and documentation while keeping token overhead low. CX Codex +1 4,900installs prompt-optimizer YannJY02 Analyzes draft prompts, finds missing project context, and matches ECC commands. Prepares a ready-to-paste prompt before you start complex tasks. CX Codex +1 5,300installs security-hardening Seth Hobson This command runs a staged security review: vulnerability scanning, threat modeling, and architecture checks. Use it when a project needs a documented hardening pass. CX Codex 437installs modernize-review official Anthropic modernize-review prompts a human to confirm or reject business rules extracted from legacy code and logs the verdicts. It prevents migration plans from codifying unintended defects. ★ 44,635repo stars modernize-reimagine official Anthropic A slash command from the code-modernization plugin that rebuilds a legacy system on a new architecture from extracted intent, with two human checkpoints. ★ 44,635repo stars revise-claude-md official Anthropic Reviews your active session to extract practical codebase learnings and updates CLAUDE.md or .claude.local.md. Helpful after discovering new CLI flags or test quirks. ★ 44,635repo stars

From the same set205

The whole set →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor