Skip to content
Skill

Principle attack the premise

Makes the agent stop repeating failed fixes and test the shared assumption first

Principle attack the premise is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
5.1K
Last commit
License
MIT
Listing updated

Similar skills

About Principle attack the premise

This skill applies when two or more fixes built on the same underlying assumption have already failed the same quality gate. Instead of writing yet another patch, the agent is directed to state that shared premise in one sentence and then design a direct observation that would look different if the premise were false.

The workflow asks the agent to examine how failures are distributed rather than only their size, and, if the evidence contradicts the premise, to look for a pattern the premise did not predict. Where one component consistently ends up on the losing side, the advice is to change the cause of that outcome rather than layering on a mechanism that compensates for it.

The skill is plain instructional text with no scripts. It is written for coding work in a Claude Code plugin setup and needs no extra tools or inputs beyond the agent's normal access to the codebase and its test results.

When your agent uses it

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.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 2 files (992 bytes) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the pstack plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add michael-denyer/pstack-claude
/plugin install pstack@pstack-claude

Or copy only this skill to ~/.claude/skills/principle-attack-the-premise:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michael-denyer/pstack-claude.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/principle-attack-the-premise &&
cp -R "$tmp/plugins/pstack/skills/principle-attack-the-premise" ~/.claude/skills/principle-attack-the-premise &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/principle-attack-the-premise inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/principle-attack-the-premise to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michael-denyer/pstack-claude.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/principle-attack-the-premise &&
cp -R "$tmp/plugins/pstack/skills/principle-attack-the-premise" ~/.agents/skills/principle-attack-the-premise &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/principle-attack-the-premise inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/principle-attack-the-premise to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michael-denyer/pstack-claude.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/principle-attack-the-premise &&
cp -R "$tmp/plugins/pstack/skills/principle-attack-the-premise" ~/.cursor/skills/principle-attack-the-premise &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/principle-attack-the-premise inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/michael-denyer/pstack-claude.git --path plugins/pstack/skills/principle-attack-the-premise

Or copy the folder to ~/.gemini/skills/principle-attack-the-premise yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/principle-attack-the-premise:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michael-denyer/pstack-claude.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/principle-attack-the-premise &&
cp -R "$tmp/plugins/pstack/skills/principle-attack-the-premise" ~/.copilot/skills/principle-attack-the-premise &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/principle-attack-the-premise inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/michael-denyer/pstack-claude.git

Then copy pstack-claude/plugins/pstack/skills/principle-attack-the-premise into your agent's skills folder as principle-attack-the-premise. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Shared premise identification
Guides the agent to write down the single assumption that every failed attempt relied on.
Direct premise testing
Prompts the agent to find and run an observation that would differ if the premise were false.
Failure distribution analysis
Directs attention to how failures are spread across cases rather than only their magnitude.
Root cause redirection
Encourages changing what causes a consistent losing outcome instead of adding cleanup logic.
Fix gating rule
Blocks writing the next fix until the premise has been recorded and tested.

Good for

  • Fix a flaky test after several patches failed the same CI check
  • Figure out why repeated refactors keep breaking the same module
  • Investigate why a performance fix keeps regressing under the same benchmark
  • Diagnose repeated lint or build gate failures that new patches do not resolve

Principle attack the premise FAQ

When does Principle attack the premise trigger?

It applies when two or more fixes that share one premise have failed the same gate.

Does Principle attack the premise run any scripts or require extra tools?

No. The skill has no scripts and does not set allowed tools; it is instructional text only.

Is Principle attack the premise available for Claude Code?

It is distributed as part of the pstack Claude Code plugin in the pstack-claude marketplace.

How do I install Principle attack the premise in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/principle-attack-the-premise to use it in all your projects, or to .claude/skills/principle-attack-the-premise in one project. Or install the pstack plugin, which includes it: /plugin marketplace add michael-denyer/pstack-claude, then /plugin install pstack@pstack-claude.

Does Principle attack the premise run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Principle attack the premise?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Principle attack the premise?

The closest alternatives to Principle attack the premise are Principle fix root causes, Diagnostic reasoning, Debug, Principle prove it works and Principle foundational thinking.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from michael-denyer/pstack-claude

  1. Makes the agent read pstack's poteto-mode skill first and follow its routing

    • Open source
    • 5.1K GitHub stars
    • Developer tools
  2. Has the agent restate your goals and the problem you're solving in its own words

    • Open source
    • 5.1K GitHub stars
    • Productivity
  3. Sketches types, signatures and module layout before the agent writes code

    • Open source
    • 5.1K GitHub stars
    • Developer tools
  4. Runs parallel candidate attempts at a task, then merges the best parts into one artifact

    • Open source
    • 5.1K GitHub stars
    • Developer tools
  5. Drafts a personal working-style skill from your past agent conversations

    • Open source
    • 5.1K GitHub stars
    • Developer tools