ultra-think — команда для Claude Code: разбор решений и установка
Запускает многошаговый разбор задачи: вскрывает скрытые допущения, предлагает конкурирующие варианты и проверяет каждый на прочность. Пригодится, когда решение дорогое и не хочется ошибиться.
npx claude-code-templates@latest --command utilities/ultra-thinkЧто делает ultra-think
Команда принимает текст задачи в аргументе и требует разложить её по пунктам: что на самом деле спрашивают, какие допущения зашиты в вопрос, кто зависит от результата. Дальше нужно минимум три разных подхода, а не три варианта одного и того же.
Каждый вариант оценивается через несколько линз — техническую, экономическую, человеческую, системную, временную, — и агент сам объясняет, какие из них уместны. Потом идёт враждебная проверка: для ведущего решения нужно построить аргумент против него и через инверсию найти путь к гарантированному провалу, чтобы рекомендация его обошла. Отдельно требуются параллель из другой дисциплины и последствия второго порядка на 6 месяцев, 2 года и 10 лет.
На выходе — шаблон с разделами: анализ проблемы, варианты, рекомендация с дорожной картой и метриками, альтернативный взгляд. Если контекста мало, команда задаёт до трёх уточняющих вопросов, а не додумывает за вас. Для самых тяжёлых решений автор советует включить extended thinking в настройках Claude.
Какие задачи решает
- разложить архитектурное решение на варианты и выбрать один
- найти допущения, которые спрятаны в самой постановке задачи
- проверить план на сценарий провала до того, как его начнут делать
- оценить последствия выбора через полгода и через годы
- получить рекомендацию с явно помеченной неуверенностью
Примеры запросов агенту
- /ultra-think Стоит ли переезжать на микросервисы или дорабатывать монолит?
- /ultra-think Как масштабировать систему под рост трафика и снизить расходы?
- /ultra-think Как улучшить API, не ломая обратную совместимость?
Как установить ultra-think
1Через claude-code-templates
npx claude-code-templates@latest --command utilities/ultra-think2Вручную: положить файлы
.claude/commands/ultra-think.mdВызов — /ultra-think. Для всех проектов — ~/.claude/commands/
Вручную: положить файлы
~/.codex/prompts/ultra-think.mdВызов — /prompts:ultra-think. В Codex этот формат помечен устаревшим, замена — скиллы
Вручную: положить файлы
.github/prompts/ultra-think.prompt.mdВручную: положить файлы
.gemini/commands/ultra-think.tomlGemini хранит команды в TOML: текст запроса — в поле prompt
Вопросы о ultra-think
Как установить ultra-think в Claude?
Выполните npx claude-code-templates@latest --command utilities/ultra-think, после чего файл окажется по пути .claude/commands/ultra-think.md.
Что делает ultra-think?
Проводит структурированный разбор задачи: формулирует проблему, предлагает не менее трёх разных решений, оценивает их по нескольким линзам и проверяет ведущий вариант на прочность через аргументы против.
Что нужно, чтобы команда дала толковый ответ?
Достаточный контекст: домен, ограничения и цель того, кто принимает решение. Если этого нет, команда задаст до трёх уточняющих вопросов.
Исходный текст
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