/pauls-skills:whyfrom pauls-skills
Investigate why code is the way it is (design rationale, a tradeoff, a strange threshold, defensive code, a regression, dead code) by searching git history, PRs, and every connected source (GitHub issues, Google Drive docs, email, chat, logs, analytics) in parallel, then return a cited answer that separates what's known from what's inferred. Use for "why does X work this way", "why did we pick Y", "where did this number come from", postmortems, or before changing code whose purpose is unclear. For how it works, use `how`.
Ships in pauls-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Investigate the motivation and intent behind code. The companion how skill answers what the code does. why answers what forces led to its shape.
Work as a careful, cautious, precise investigator. Be honest about what you know versus what you're inferring. Read references/epistemics.md before writing the answer; it defines the confidence tiers and phrasing every claim must follow.
The target is usually a chunk of code, a pattern, a feature, or a named design decision. The question is usually a design rationale, a tradeoff, a motivating edge case, an external constraint, dead code, or a broad history sweep.
If the target is vague ("why do we do it this way?"), infer it from the conversation (open files, recent edits, what was just discussed). State your interpretation in one line so the user can redirect, then proceed.
Before spawning anything, gather the seed context yourself:
git blame -L <start>,<end> <file> # last-touch commits
git log --follow --oneline -20 -- <file> # recent history through renames
git log -1 --format=%B <commit> # full message, PR numbers like (#123)
gh pr view <n> --json title,body,author,createdAt,mergedAt,labels,closingIssuesReferences,comments,reviews
The anchor is: file paths and line ranges, key symbols, the last few commits touching the target, PR numbers, and any linked issue IDs. It goes to every investigator.
Default to the full parallel investigation. The goal is a complete coverage map. Document the null; don't skip the search.
Check which tools this session actually has, including deferred tools (search with ToolSearch). Map each to one evidence category using references/sources/connectors.md:
gh). Always available.gh, Linear, Jira, Asana).A connector that's listed but needs authentication counts as unavailable. Record it as a gap; don't try to authenticate.
One general-purpose agent per category that has a working tool, all in a single message so they run concurrently. Each owns exactly one source; don't give one agent several. Use a cheaper model (Sonnet or Haiku) for the investigators; they gather, they don't conclude.
Each investigator's prompt is references/investigator-prompt.md filled in, plus:
references/sources/connectors.md (or references/sources/code-archaeology.md for source control);references/sources/incident-postmortem.md if the target looks defensive (null checks, retries, timeouts, rate limits, feature flags, error boundaries, try/catch around a specific call);Tell every investigator it is read-only: no file edits, no commits, no posting, no sending.
Only with a written reason that goes in Sources Consulted:
For a trivial single-commit target whose PR description already answers the question completely, you may answer inline, but say explicitly that you skipped the sweep and why. This should be rare.
When every investigator has returned, write the answer yourself following references/synthesis-guide.md and references/epistemics.md. Spot-check any citation you're unsure of before repeating it. Never cite code as evidence of its own intent.
Use the structure from references/synthesis-guide.md: The Question, The Code in Question, What We Found, What We Can Reasonably Infer, Competing Hypotheses, What We Don't Know, Sources Consulted, Confidence Summary. Keep Sources Consulted as one line per category, including the ones that returned nothing or were skipped, with the reason.
If the user is asking because they're about to change this code, end with a Preserve / Change / Avoid / Risk list that turns the findings into constraints for the change.
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/connectors.md (opens in a new tab)references/sources/incident-postmortem.md (opens in a new tab)references/synthesis-guide.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ops-pivers/claude-skills --plugin pauls-skills41 skills in this plugin
/aim-higherTake a task, research how top practitioners in its field work, push it to go deeper across altitude, depth, range and verification, grill the user until the plan is settled, then do the work and prove it worked with real measurements./animateBuild an animation from scratch, making the decisions in the order that determines whether it feels right — should it animate at all, what purpose, which tool, which properties, which curve and duration, how it interrupts, how it exits. Writes the implementation. Use when asked to animate something, add motion, make a component feel alive, or build a transition. For critiquing existing motion use review-animations; for auditing a whole codebase use improve-animations./Other plugins' skills for the same job