/why:whyfrom Why
Investigates motivation, design rationale, and historical decisions behind code using git blame, commit logs, PR metadata, and connected systems. Useful for understanding why code works a certain way, design rationale, regressions, or postmortems.
Ships in Why. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Investigate the intent and constraints behind existing code. Identify why code took its current shape, what alternatives were rejected, and what edge cases or incidents forced specific defenses.
Companion to how (runtime behavior) and blast-radius (downstream impact).
Parse user question and gather initial git context:
git blame -L <start>,<end> <file>
git log --follow -p -20 -- <file>
gh pr view <number> --json title,body,author,comments,reviews
Record file paths, line ranges, symbols, commit SHAs, and linked ticket numbers.
Start with sources likely to answer the question. A commit or linked design record may be sufficient. Use other tools only when they resolve a material gap or contradiction, or the user requests broader coverage. Tool availability alone does not justify a query.
For independent searches that benefit from delegation, use investigator-prompt.md. Keep simple investigations in the parent. Potential sources include:
Stop when the evidence sufficiently answers the question. Report the sources actually consulted and material limits; do not inventory or query unrelated systems to satisfy a coverage template.
Answer a simple question directly with citations and any material uncertainty. For a complex investigation, use synthesizer-prompt.md to organize:
LICENSE (opens in a new tab)references/epistemics.md (opens in a new tab)references/investigator-prompt.md (opens in a new tab)references/sources/code-archaeology.md (opens in a new tab)references/sources/incident-postmortem.md (opens in a new tab)references/synthesizer-prompt.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub khaneliman/khanelinix --plugin whyOther plugins' skills for the same job