# Why

> Why is an open-source agent skill for developer tools. Explains why code and decisions are the way they are, citing the historical record. 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/why
- **Repository:** https://github.com/michael-denyer/pstack-claude
- **GitHub stars:** 5,057
- **License:** MIT
- **Skill name:** why
- **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 answers questions about design rationale, such as why a choice was made, why a threshold has its value, or what caused a regression. Instead of reading the current code to guess intent, the agent is told to trace the commits and pull request discussions that introduced the target and each later change, and to consult other sources when that trail is thin.

The answer is meant to be a cited read on the decision and its tradeoffs. The agent quotes what the original authors wrote, labels its own conclusions as inferences, and states plainly what the record does not explain. Runtime behavior questions are routed to a separate skill named how.

The skill ships as a single SKILL.md with no scripts. Some platform-specific notes point to mapping files for Codex, GitHub Copilot, Muse and Antigravity inside the same plugin, so the agent needs access to the repository's history and its discussions to work well.

## When your agent uses it

> Use for 'why does X work this way', 'why we picked Y', design rationale, regressions, postmortems, or data-backed thresholds. Returns a cited read on decisions and tradeoffs. Use how for runtime behavior.

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

## Features

- **Decision rationale lookup:** Explains why a design choice or library pick was made by tracing its history.
- **Regression tracing:** Walks through the changes that followed an introduction to find what shifted.
- **Cited answers:** Quotes the authors' own words and separates them from the agent's inferences.
- **Gap reporting:** States what the record does not answer rather than filling the gap with guesses.
- **Threshold justification:** Looks for the data or discussion behind numeric limits in the code.

## Good for

- Ask why a configuration value was chosen and what evidence supported it
- Find out what change introduced a regression and why it was made
- Review the tradeoffs behind a past architecture decision
- Reconstruct the reasoning in a postmortem from commits and pull requests

## 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/why`:

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

For one project only, put the folder in `.claude/skills/why` inside it instead.

### Codex

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

For one repository only, put the folder in `.agents/skills/why` inside it instead.

### Cursor

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

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

Or copy the folder to `~/.gemini/skills/why` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/why`:

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

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

## FAQ

### When does Why trigger?

It is meant for questions such as why something works a certain way, why a option was picked, design rationale, regressions, postmortems, or data-backed thresholds. Questions about runtime behavior are directed to the how skill instead.

### Does Why read the code to answer?

No. The instructions say to answer from the record, meaning commits and pull request discussions that introduced the target and later changes, with other sources used when the trail is thin.

### Does Why run any scripts?

No scripts are included. The folder contains only the SKILL.md file.

### How do I install Why in Claude Code?

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

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 Why?

The closest alternatives to Why are How, Show me your work, Architecture decision records, Git archaeology and Principle fix root causes.

## Where this comes from

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

## Alternatives

- [How](https://ai-powered.com/skills/how): How is an open-source agent skill for developer tools.
- [Show me your work](https://ai-powered.com/skills/show-me-your-work): Show me your work is an open-source agent skill for developer tools.
- [Architecture decision records](https://ai-powered.com/skills/architecture-decision-records): Architecture decision records is an open-source agent skill for developer tools.
- [Git archaeology](https://ai-powered.com/skills/git-archaeology): Git archaeology is an open-source agent skill for developer tools.
- [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.
- [Decision log](https://ai-powered.com/skills/decision-log-berkcangumusisik): Decision log 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.
- [Repository governance lifecycle](https://ai-powered.com/skills/repository-governance-lifecycle): Repository governance lifecycle is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/why-michael-denyer
