thinking-opportunity-cost — скилл для Claude Code: обзор и установка
Скилл заставляет агента считать упущенную выгоду перед запуском фич или рефакторинга. Он оценивает дельту ценности между выбранным решением и лучшей альтернативой.
npx skills add tjboudreaux/cc-thinking-skills --skill thinking-opportunity-cost -a claude-codeЧто делает thinking-opportunity-cost
Скилл задаёт чёткий алгоритм оценки решений при нехватке инженерного времени или бюджета. Вместо изолированного анализа выбранного пути агент обязан составить список реальных вариантов, включая статус-кво и бездействие. Каждая опция получает оценку прямой ценности и рисков в одинаковых единицах.
В расчёте выводятся два ключевых показателя: ценность лучшей отвергнутой альтернативы (best_forgone_value) и разница с ней (value_delta). Настоящая цена выбора складывается из прямых затрат и упущенной пользы. На тривиальных задачах фреймворк тратит время зря. Запускать его ради них бессмысленно.
Перед финальным вердиктом агент проверяет контрпример: не занижена ли ценность альтернативы и нет ли привязки к невозвратным затратам. В итоговый отчёт также заносятся постоянные потери вроде закрытия рыночного окна возможностей.
Какие задачи решает
- Сравнить разработку фичи своими силами с покупкой готового сервиса
- Выбрать приоритет между рефакторингом технического долга и продуктовыми задачами
- Оценить упущенную выгоду перед долгим выделением разработчиков на проект
- Проверить риск бездействия против запуска рискованного эксперимента
Примеры запросов агенту
- Используй thinking-opportunity-cost, чтобы выбрать между переписыванием биллинга и покупкой Stripe
- Оцени альтернативную стоимость выделения двух инженеров на внутренний тулинг через thinking-opportunity-cost
- Примени thinking-opportunity-cost к выбору между устранением техдолга и релизом новой фичи
Как установить thinking-opportunity-cost
1Через Skills CLI (Vercel)
npx skills add tjboudreaux/cc-thinking-skills --skill thinking-opportunity-cost -a claude-code2Вручную: положить файлы
~/.claude/skills/thinking-opportunity-cost/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/thinking-opportunity-cost/
1Через Skills CLI (Vercel)
npx skills add tjboudreaux/cc-thinking-skills --skill thinking-opportunity-cost -a codex2Вручную: положить файлы
.agents/skills/thinking-opportunity-cost/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add tjboudreaux/cc-thinking-skills --skill thinking-opportunity-cost -a cursor2Вручную: положить файлы
.cursor/skills/thinking-opportunity-cost/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install tjboudreaux/cc-thinking-skills thinking-opportunity-cost2Вручную: положить файлы
.github/skills/thinking-opportunity-cost/SKILL.md1Через Skills CLI (Vercel)
npx skills add tjboudreaux/cc-thinking-skills --skill thinking-opportunity-cost -a gemini-cli2Командой платформы
gemini skills install https://github.com/tjboudreaux/cc-thinking-skills --path skills/thinking-opportunity-costВручную: положить файлы
.devin/skills/thinking-opportunity-cost/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add tjboudreaux/cc-thinking-skills --skill thinking-opportunity-cost -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Из того же набора27
Похожие
Рядом в теме «Заметки, задачи и проекты»
Всё по теме «Заметки, задачи и проекты» →Вопросы о thinking-opportunity-cost
Как установить thinking-opportunity-cost в Claude Code?
Выполните команду npx skills add tjboudreaux/cc-thinking-skills --skill thinking-opportunity-cost -a claude-code. Инструмент добавит файл скилла в конфигурацию агента.
Зачем нужен скилл thinking-opportunity-cost?
Он требует от модели явно назвать лучший отклонённый сценарий и посчитать разницу между ним и выбранным вариантом. Это помогает отсекать задачи с отрицательной чистой пользой.
В каких случаях этот скилл применять нельзя?
Скилл не подходит для дешёвых обратимых решений и обязательных требований вроде закрытия критических уязвимостей безопасности.
Исходный текст
SKILL.md · MIT
--- name: thinking-opportunity-cost description: Before committing scarce time, people, or money, name the best forgone use of those resources and the value delta of the chosen path versus that alternative. disable-model-invocation: true --- # Opportunity Cost Core rule: every commitment displaces its best alternative. Report both that forgone value and the net value delta; decide on the delta, not the chosen path alone. ## When to Use - Allocating scarce time, headcount, budget, or attention across competing options - Feature prioritization, build-vs-buy, tech-debt vs product work - Saying yes to a large commitment that displaces other work - Comparing a bold path against polishing the status quo when windows may close ## When NOT to Use - Trivial or cheaply reversible choices where analysis costs more than the resource - No real alternative use (resource is idle, earmarked, or non-fungible) - Mandatory work (compliance, security fix, hard dependency) with no optional alternative - Inventing speculative alternatives only to look rigorous when the next-best is clearly worse ## Procedure 1. **State the commitment.** Name the choice, the scarce resource units (eng-weeks, dollars, calendar), and the decision horizon. 2. **List real alternatives, including do-nothing.** At least: proposed option, next-best productive use of the same resources, and status quo / wait. Drop fantasy options with no owner or feasibility. 3. **Value each path.** For each alternative, estimate direct value, strategic value, risk, and time-to-value in the same units. Prefer rough comparable magnitudes over fake precision. 4. **Compute best forgone value and value delta.** Identify the single best non-chosen alternative (may be do-nothing). `best_forgone_value` = its estimated value. `value_delta` = `chosen_value − best_forgone_value` (same units). True cost of choosing = direct cost of the choice + `best_forgone_value`. Prefer the option with the superior (positive) value delta after risk; a large positive chosen value is not enough if the forgone alternative is larger. 5. **Future tradeoff / permanent forgone options.** For serious alternatives (including the bold path): mark temporary recoverable costs vs permanent losses (window closes, lock-in, no re-entry). Prefer avoiding the greater permanent loss when acting downside is recoverable and non-catastrophic—even if near-term value_delta is slightly negative. Do not invent permanence for speculative upside without evidence. 6. **Strongest countercase and decide.** Steel the case that the best alternative or its value is misidentified (sunk-cost anchoring, status-quo undervalued, or a "free" option that still burns time). Recompute `value_delta` under that challenge. Then choose: proceed if delta stays favorable (or permanent-loss rule applies), else switch, wait, or split. Stop when ranking is stable. ## Output ```text Choice: … Resources committed: … Alternatives: A (proposed): value … risk … B (next-best): value … risk … C (do-nothing / wait): value … risk … Best forgone alternative: … Best forgone value: … Value delta (chosen_value − best_forgone_value): … Permanent vs temporary losses: … Decision: proceed | switch | wait | split — because value_delta … (and permanent-loss rule if used) Countercase checked: … ``` ## Verification - **Falsify:** If the analysis never names a concrete next-best use of the same resources, or reports only one number labeled both "opportunity cost" and "delta," it is incomplete—add B, then report `best_forgone_value` and `value_delta` separately. - **Stop:** When one best forgone alternative and a signed value delta determine the choice, stop enumerating weaker options. - **Over-application guard:** Do not run full accounting on mandatory or trivial work. Ignore sunk costs; revalue only from current state forward.
© tjboudreaux · MIT · tjboudreaux/cc-thinking-skills