# Principle explain the number

> Principle explain the number is an open-source agent skill for developer tools. Checks that a measured number reflects the intended work before you trust it. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/michael-denyer/pstack-claude/tree/main/plugins/pstack/skills/principle-explain-the-number
- **Repository:** https://github.com/michael-denyer/pstack-claude
- **GitHub stars:** 5,057
- **License:** MIT
- **Skill name:** principle-explain-the-number
- **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 guides an agent through the reasoning that should happen before a measured figure such as a speedup, latency, throughput or eval score is reported or acted on. It asks the agent to write down the decision a result would drive, along with the noise floor, and to stop when run-to-run variation outweighs the effect being measured.

The workflow centres on finding the resource or code path that limits the result, backed by a profile or counters captured during the run rather than an assumption from reading code. It also lists alternative explanations for a number, such as errors, skipped or cached work, code that never executed, an untuned comparison side, or a component too small to matter, and asks the agent to rule each one out with evidence. The run count, spread and identified limiter should travel with the reported figure.

For performance numbers the skill points to a companion benchmark-checklist skill. For eval results it asks whether every run actually completed the task, whether the gap holds across trials and models, and whether the scenario is relevant. No scripts are included, and the skill runs as a non-user-invocable principle that Claude Code loads when a measurement is in play.

## When your agent uses it

> Apply before you measure, and before you trust, report, or act on a number you measured: a speedup, a regression, a throughput, a latency, or an eval result. Find what limits it, and rule out that it measured something other than the work you think.

## 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-explain-the-number)
- [License: MIT](https://github.com/michael-denyer/pstack-claude/tree/HEAD/plugins/pstack/skills/principle-explain-the-number)

## Features

- **Decide before running:** Records the outcome that would change the decision and the noise floor before any measurement starts.
- **Identify the limiter:** Asks what resource or code path bounds the result, supported by profiles or counters from the run.
- **Rule out alternative causes:** Checks whether the number might reflect errors, cached or skipped work, dead code or noise instead of the intended work.
- **Keep context with results:** Requires run count, spread and limiter to be reported alongside the figure.
- **Eval result checks:** Asks whether every run completed the task and whether gaps hold across trials, models and scenarios.

## Good for

- Verify that a claimed speedup is real before reporting it
- Check whether a latency regression is noise or a true change
- Confirm an eval score reflects tasks that were actually completed
- Explain why a throughput number stops improving at a certain level
- Review a benchmark result before merging a performance change

## 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-explain-the-number`:

```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-explain-the-number &&
cp -R "$tmp/plugins/pstack/skills/principle-explain-the-number" ~/.claude/skills/principle-explain-the-number &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/principle-explain-the-number` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/principle-explain-the-number` 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-explain-the-number &&
cp -R "$tmp/plugins/pstack/skills/principle-explain-the-number" ~/.agents/skills/principle-explain-the-number &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/principle-explain-the-number` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/principle-explain-the-number` 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-explain-the-number &&
cp -R "$tmp/plugins/pstack/skills/principle-explain-the-number" ~/.cursor/skills/principle-explain-the-number &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/principle-explain-the-number` 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-explain-the-number
```

Or copy the folder to `~/.gemini/skills/principle-explain-the-number` yourself.

### VS Code

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

```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-explain-the-number &&
cp -R "$tmp/plugins/pstack/skills/principle-explain-the-number" ~/.copilot/skills/principle-explain-the-number &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/principle-explain-the-number` 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-explain-the-number` into your agent's skills folder as `principle-explain-the-number`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Principle explain the number apply?

It applies before measuring, and before trusting, reporting or acting on a measured number such as a speedup, regression, throughput, latency or eval result.

### Does Principle explain the number run any scripts?

No. The skill contains no scripts and consists of a SKILL.md with guidance and one reference link.

### What does Principle explain the number recommend for performance benchmarks?

For performance numbers it directs the agent to the benchmark-checklist skill.

### Can users invoke Principle explain the number directly?

No. It is marked as not user-invocable, so the agent loads it when a task matches.

### How do I install Principle explain the number in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/principle-explain-the-number to use it in all your projects, or to .claude/skills/principle-explain-the-number 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 explain the number 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 explain the number?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Principle explain the number?

The closest alternatives to Principle explain the number are Benchmark checklist, Performance reasoning, Performance, Optimize and Benchmark optimization loop.

## Where this comes from

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

## Alternatives

- [Benchmark checklist](https://ai-powered.com/skills/benchmark-checklist): Benchmark checklist is an open-source agent skill for developer tools.
- [Performance reasoning](https://ai-powered.com/skills/performance-reasoning): Performance reasoning is an open-source agent skill for developer tools.
- [Performance](https://ai-powered.com/skills/performance): Performance is an open-source agent skill for developer tools.
- [Optimize](https://ai-powered.com/skills/optimize-jasgujral): Optimize is an open-source agent skill for developer tools.
- [Benchmark optimization loop](https://ai-powered.com/skills/benchmark-optimization-loop): Benchmark optimization loop 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.
- [Benchmark](https://ai-powered.com/skills/benchmark): Benchmark 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.

---
Source: https://ai-powered.com/skills/principle-explain-the-number
