principle-attack-the-premise — скилл для Claude Code
Скилл помогает проверить общую предпосылку после нескольких неудачных исправлений. Он нужен, когда новые фиксы проходят тот же барьер и снова ломаются.
npx skills add backnotprop/pstack --skill principle-attack-the-premise -a claude-codeЧто делает principle-attack-the-premise
Скилл предлагает остановиться после двух или более исправлений, которые опирались на одну предпосылку и провалились на одном барьере. Сначала нужно записать эту предпосылку одним предложением, затем найти наблюдение, которое изменилось бы при её ложности, и проверить его. Проверка должна быть повторяемой, а вывод опираться на распределение сбоев, а не только на их размер.
Если данные опровергают предпосылку, поиск причины нужно перенести на то, что объединяет сбои и не было учтено. Если предпосылка подтверждается, скилл предлагает задать следующий вопрос «почему» и проверить корневую причину. Он также советует убрать условие, которое создаёт проблему, вместо того чтобы каждый запуск компенсировать его последствиями.
Автоматический вызов отключён, поэтому скилл нужно явно попросить применить к текущей ситуации.
Какие задачи решает
- проверить общую предпосылку после двух неудачных исправлений
- найти наблюдение, которое опровергнет гипотезу
- сопоставить распределение сбоев с исходной причиной
- заменить компенсацию устранением условия проблемы
Примеры запросов агенту
- Примени principle-attack-the-premise: два исправления провалились на одном барьере, помоги записать общую предпосылку и проверить её.
- Используй этот скилл перед следующим фиксом. Найди повторяемую проверку, которая покажет, верна ли наша гипотеза.
- Разбери распределение сбоев и скажи, что в них общего, но не объясняется текущей предпосылкой.
Как установить principle-attack-the-premise
1Через Skills CLI (Vercel)
npx skills add backnotprop/pstack --skill principle-attack-the-premise -a claude-code2Вручную: положить файлы
~/.claude/skills/principle-attack-the-premise/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/principle-attack-the-premise/
1Через Skills CLI (Vercel)
npx skills add backnotprop/pstack --skill principle-attack-the-premise -a codex2Вручную: положить файлы
.agents/skills/principle-attack-the-premise/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add backnotprop/pstack --skill principle-attack-the-premise -a cursor2Вручную: положить файлы
.cursor/skills/principle-attack-the-premise/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install backnotprop/pstack principle-attack-the-premise2Вручную: положить файлы
.github/skills/principle-attack-the-premise/SKILL.md1Через Skills CLI (Vercel)
npx skills add backnotprop/pstack --skill principle-attack-the-premise -a gemini-cli2Командой платформы
gemini skills install https://github.com/backnotprop/pstack --path skills/principle-attack-the-premiseВручную: положить файлы
.devin/skills/principle-attack-the-premise/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add backnotprop/pstack --skill principle-attack-the-premise -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о principle-attack-the-premise
Как установить principle-attack-the-premise в Claude Code?
Выполните npx skills add backnotprop/pstack --skill principle-attack-the-premise -a claude-code, затем повторите npx skills add backnotprop/pstack --skill principle-attack-the-premise -a claude-code и проверьте файл ~/.claude/skills/principle-attack-the-premise/SKILL.md.
Что делает principle-attack-the-premise?
Скилл заставляет сначала записать и проверить предпосылку, которую разделяют несколько неудачных исправлений. Он помогает искать причину по данным, а не добавлять очередной фикс на той же гипотезе.
Можно ли рассчитывать на автоматический вызов скилла?
Нет, автоматический вызов отключён. Скилл нужно явно запросить в сообщении агенту.
Исходный текст
SKILL.md · MIT
--- name: principle-attack-the-premise description: "Apply when two or more fixes that share one premise have failed the same gate. Write the premise down and test it directly before you write another fix that assumes it." disable-model-invocation: true --- # Attack the Premise When two or more fixes that share one premise have failed the same gate, suspect the premise, not the fixes. **Why:** Each failed fix is evidence against the belief it assumed. A third fix on the same premise spends effort where the evidence already says the cause is not. **Pattern:** - **Write the premise down.** The premise is the one sentence that every failed fix assumed. - **Test the premise before the next fix.** Find an observation that would come out differently if the premise were false, and make it. Look at how the failures are distributed, not only at how large they are. Make the check rerunnable per [Build the Lever](../principle-build-the-lever/SKILL.md). - **Follow the evidence.** If it contradicts the premise, the cause is elsewhere. Look for what the failures have in common that the premise did not predict. If it confirms the premise, ask the next "why" per [Fix Root Causes](../principle-fix-root-causes/SKILL.md). The earlier fixes may have treated a consequence instead of the cause. - **Remove the condition instead of compensating for it**, per the [Laziness Protocol](../principle-laziness-protocol/SKILL.md). If the evidence shows that one part always lands on the losing side, change what puts it there. A mechanism that cleans up after it leaves the cause in place and adds work on every run. **Stop:** Do not start the next fix before the premise is written down and tested. This principle is distinct from [Redesign from First Principles](../principle-redesign-from-first-principles/SKILL.md), which rebuilds a design around a new requirement. It questions a fact the current design assumes.
© backnotprop · MIT · backnotprop/pstack