
Why
Explains why code and decisions are the way they are, citing the historical record
Why is an open-source agent skill for developer tools. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 5.1K
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Why
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.
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 1 file (1 KB) 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-claudeOr copy only this skill to ~/.claude/skills/why:
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.
Copy the skill folder to ~/.agents/skills/why 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/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.
Copy the skill folder to ~/.cursor/skills/why 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/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.
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/whyOr copy the folder to ~/.gemini/skills/why yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/why:
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.
Get the folder:
git clone --depth 1 https://github.com/michael-denyer/pstack-claude.gitThen 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.
What it does
- 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
Why 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.
More from michael-denyer/pstack-claude

Makes the agent read pstack's poteto-mode skill first and follow its routing
- Open source
- 5.1K GitHub stars
- Developer tools

Has the agent restate your goals and the problem you're solving in its own words
- Open source
- 5.1K GitHub stars
- Productivity

Prototype 2-3 competing designs and compare them before committing to one
- Open source
- 5.1K GitHub stars
- Developer tools

Sketches types, signatures and module layout before the agent writes code
- Open source
- 5.1K GitHub stars
- Developer tools

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

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



