thinking-bounded-rationality — скилл для Claude Code: поиск с порогом
Скилл останавливает поиск на первом варианте, который проходит заранее заданный порог, вместо бесконечного сравнения.
npx skills add tjboudreaux/cc-thinking-skills --skill thinking-bounded-rationality -a claude-codeЧто делает thinking-bounded-rationality
Скилл включается, когда перебор вариантов или сбор контекста может съесть весь бюджет хода. Сначала агент формулирует решение, остаток бюджета и обратимость выбора, потом пишет конкретные критерии «достаточно хорошо» — до того, как начнёт оценивать варианты. Дальше идёт последовательный перебор: каждый вариант сверяется только с порогом, полные матрицы сравнения не строятся.
Остановка на первом подходящем варианте — не компромисс, а осознанное решение. Если ничего не прошло порог после заданного лимита, скилл советует сохранить планку и честно сообщить, что подходящего варианта нет, а ослабить можно только критерий, заранее помеченный как необязательный, с записью об этом. Поднять планку после неудачи нельзя.
Есть предохранитель от лишнего применения: если факт закрывается одной дешёвой проверкой, скилл велит просто её сделать. Тесты, проверки безопасности и вопрос «починилось ли» он не трогает — там нужен верный ответ, а не достаточно убедительный. Необратимые решения вроде миграций или потери данных тоже вне его зоны.
Какие задачи решает
- остановить перебор вариантов, когда первый уже подходит
- задать критерии достаточности до начала поиска
- не растянуть сбор контекста на весь бюджет хода
- честно отчитаться, что подходящего варианта нет
- не путать проверку тестов с выбором из вариантов
Примеры запросов агенту
- Сравниваю три библиотеки для парсинга. Задай порог достаточности и остановись на первой подходящей.
- Поиск решения затянулся — примени thinking-bounded-rationality и зафиксируй бюджет.
- Ничего не прошло порог после лимита — так и напиши, планку не двигай.
Как установить thinking-bounded-rationality
1Через Skills CLI (Vercel)
npx skills add tjboudreaux/cc-thinking-skills --skill thinking-bounded-rationality -a claude-code2Вручную: положить файлы
~/.claude/skills/thinking-bounded-rationality/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/thinking-bounded-rationality/
1Через Skills CLI (Vercel)
npx skills add tjboudreaux/cc-thinking-skills --skill thinking-bounded-rationality -a codex2Вручную: положить файлы
.agents/skills/thinking-bounded-rationality/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add tjboudreaux/cc-thinking-skills --skill thinking-bounded-rationality -a cursor2Вручную: положить файлы
.cursor/skills/thinking-bounded-rationality/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install tjboudreaux/cc-thinking-skills thinking-bounded-rationality2Вручную: положить файлы
.github/skills/thinking-bounded-rationality/SKILL.md1Через Skills CLI (Vercel)
npx skills add tjboudreaux/cc-thinking-skills --skill thinking-bounded-rationality -a gemini-cli2Командой платформы
gemini skills install https://github.com/tjboudreaux/cc-thinking-skills --path skills/thinking-bounded-rationalityВручную: положить файлы
.devin/skills/thinking-bounded-rationality/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add tjboudreaux/cc-thinking-skills --skill thinking-bounded-rationality -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о thinking-bounded-rationality
Как установить thinking-bounded-rationality в Claude?
Выполните npx skills add tjboudreaux/cc-thinking-skills --skill thinking-bounded-rationality -a claude-code. Файл скилла окажется по пути ~/.claude/skills/thinking-bounded-rationality/SKILL.md.
Что делает thinking-bounded-rationality?
Задаёт явный порог «достаточно хорошо» до начала поиска и останавливает перебор на первом варианте, который его прошёл. Полные матрицы сравнения не строятся.
Когда этот скилл применять не стоит?
На необратимых решениях и там, где нужен верный ответ: тесты, проверки безопасности, миграции. Если факт закрывается одной дешёвой проверкой, скилл велит сделать её, а не искать компромисс.
Исходный текст
SKILL.md · MIT
--- name: thinking-bounded-rationality description: Use when search or investigation could run forever. Set an explicit good-enough threshold first, then stop at the first option that clears it. disable-model-invocation: true --- # Bounded Rationality Under finite tool, context, and time budgets, stop at the first option that meets a predeclared aspiration level. Optimize only when the good-to-best gap is worth the remaining budget. ## When to Use - Search or option comparison has no natural endpoint and could consume the turn budget. - Multiple options would clear the requirement and further comparison has diminishing returns. - The decision is reversible or low-stakes relative to more search. - You are gathering context beyond what the decision needs to ship. ## When NOT to Use - Irreversible or high-stakes choices (data loss, security, migrations, public commitments) where the good-to-best gap is material. - Correctness gates: tests, security checks, and "did the fix work?" need the right answer, not a sufficient-looking one. - One cheap lookup would settle the fact — do it; do not satisfice past it. - The aspiration level cannot be stated — clarify the requirement first. ## Procedure 1. **State decision and budget.** Name the choice, residual tool/context/time budget, and reversibility. 2. **Set aspiration before searching.** Write concrete pass/fail criteria for "good enough." Do not evaluate until the threshold is explicit. 3. **Search sequentially.** Score options in encounter order against the threshold only. Skip full matrices unless step 1 marked high-stakes/irreversible. 4. **Stop at first adequate.** When an option clears every criterion, select it immediately. 5. **Handle search failure without moving the goalposts.** If nothing clears after the pre-set cap, preserve the threshold and report no adequate option. Relax only a criterion predeclared as non-load-bearing, record the relaxation, and resume within a new cap; never raise the bar after failure. 6. **Commit.** Record choice and residual uncertainty; spend remaining budget on execution, not re-ranking. **Stop condition:** First option meets the predeclared aspiration level, or the search cap is exhausted with none adequate. ## Output ```text Decision: <choice> Aspiration: <pass/fail criteria> Search: evaluated N; stopped at first adequate | cap exhausted Selected: <option or none> Residual risk: <what further search might change> Next spend: <execution step> ``` ## Verification - Falsify if you kept comparing after an option cleared the threshold, or invented the threshold after seeing winners. - Falsify if a correctness gate or irreversible decision was treated as satisficeable. - Over-application guard: if one cheap check settles a fact, look it up — do not invoke this skill.
© tjboudreaux · MIT · tjboudreaux/cc-thinking-skills