Skip to main content
skill CX Codex

principle-attack-the-premise — Claude Code skill

This skill tests the shared premise behind repeated failed fixes. Use it before writing another fix that hits the same gate.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add backnotprop/pstack --skill principle-attack-the-premise -a claude-code
Open on GitHub

What principle-attack-the-premise does

The skill applies when two or more fixes relied on the same premise and failed at the same gate. It asks the agent to write that premise as one sentence, then find an observation that would differ if the premise were false. The check should be repeatable, and the result should account for how failures are distributed rather than only how large they are.

If the evidence contradicts the premise, the investigation moves to what the failures share but the premise did not predict. If the premise holds, the skill points to the next “why” and a search for the root cause. It also favors removing the condition that creates the problem over compensating for its consequences on every run.

Automatic invocation is disabled, so you need to ask the agent to apply the skill explicitly.

What it helps with

  • test a shared premise after repeated failed fixes
  • find an observation that could disprove the current hypothesis
  • compare failure distribution with the assumed cause
  • remove the condition instead of compensating for its effects

Example prompts for the agent

  • Apply principle-attack-the-premise: two fixes failed at the same gate. Write down their shared premise and test it.
  • Use this skill before the next fix. Find a rerunnable check that can show whether our premise is false.
  • Inspect how the failures are distributed and identify what they share that the current premise does not explain.

How to install principle-attack-the-premise

1Skills CLI (Vercel)

npx skills add backnotprop/pstack --skill principle-attack-the-premise -a claude-code

2Manually: put the files in place

~/.claude/skills/principle-attack-the-premise/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/principle-attack-the-premise/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about principle-attack-the-premise

How do I install principle-attack-the-premise in Claude Code?

Run npx skills add backnotprop/pstack --skill principle-attack-the-premise -a claude-code, run npx skills add backnotprop/pstack --skill principle-attack-the-premise -a claude-code again, and check ~/.claude/skills/principle-attack-the-premise/SKILL.md.

What does principle-attack-the-premise do?

It makes the agent write down and test the premise shared by several failed fixes. The skill redirects the investigation when evidence points away from that premise.

Does the skill invoke automatically?

No. Automatic invocation is disabled, so you must explicitly ask the agent to use it.

Source text

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

Similar skills

All skills for Agent setup: memory, context, orchestration →

From the same set44

teach The skill explains codebases and architecture plainly without walls of text. It runs the how and why skills to combine implementation mechanics with design rationale. CX Codex +1 5,100installs tdd This skill makes the agent write a failing regression test for a bug before touching production code. It only kicks in when a cheap test path exists. CX Codex +1 5,100installs principle-experience-first A principle skill that shifts priority toward the user when product, UX, or feature-scope tradeoffs come up. Useful when deciding what to cut. CX Codex +1 5,100installs principle-separate-before-serializing-shared-state Architectural guideline for concurrent actors: eliminate shared mutable state across files or keys first, resorting to locks only when a single writer is strictly required. CX Codex +1 5,100installs principle-foundational-thinking A principle set for the stage before logic: pick core types and data structures, order the scaffold, check what concurrent actors share. CX Codex +1 5,100installs correct Finds repeated mistakes made by coding agents and makes them impossible through architecture, types, linters, or tests. Useful when agents keep making the same wrong edits. CX Codex +1 4,200installs benchmark-checklist A skill that makes the agent answer seven questions with evidence from a run before it reports a speedup or a regression. CX Codex +1 4,100installs principle-explain-the-number A skill for the moment before you trust a measured number: name what caps it, then rule out that the test measured something other than your work. CX Codex +1 4,100installs

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