# Principle attack the premise

> Principle attack the premise is an open-source agent skill for developer tools. Makes the agent stop repeating failed fixes and test the shared assumption first. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/michael-denyer/pstack-claude/tree/main/plugins/pstack/skills/principle-attack-the-premise
- **Repository:** https://github.com/michael-denyer/pstack-claude
- **GitHub stars:** 5,057
- **License:** MIT
- **Skill name:** principle-attack-the-premise
- **Collection:** https://github.com/michael-denyer/pstack-claude
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/michael-denyer/pstack-claude/tree/HEAD/plugins/pstack/skills/principle-attack-the-premise)
- [License: MIT](https://github.com/michael-denyer/pstack-claude/tree/HEAD/plugins/pstack/skills/principle-attack-the-premise)

## Features

- **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

## Install

### Claude Code

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

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

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

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

```sh
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.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [Principle fix root causes](https://ai-powered.com/skills/principle-fix-root-causes): Principle fix root causes is an open-source agent skill for developer tools.
- [Diagnostic reasoning](https://ai-powered.com/skills/diagnostic-reasoning): Diagnostic reasoning is an open-source agent skill for developer tools.
- [Debug](https://ai-powered.com/skills/debug-jasgujral): Debug is an open-source agent skill for developer tools.
- [Principle prove it works](https://ai-powered.com/skills/principle-prove-it-works): Principle prove it works is an open-source agent skill for developer tools.
- [Principle foundational thinking](https://ai-powered.com/skills/principle-foundational-thinking): Principle foundational thinking is an open-source agent skill for developer tools.
- [Principle never block on the human](https://ai-powered.com/skills/principle-never-block-on-the-human): Principle never block on the human is an open-source agent skill for developer tools.
- [Ci](https://ai-powered.com/skills/ci-chachamaru127): Ci is an open-source agent skill for developer tools.
- [Principle exhaust the design space](https://ai-powered.com/skills/principle-exhaust-the-design-space): Principle exhaust the design space is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/principle-attack-the-premise
