/dwin-skills:whyfrom Dwin Skills
Find out why code is the way it is from its history, reviews, tickets, docs, and other records, and say how sure each answer is. Use when the user asks why something is built, written, or behaves a certain way, why a choice was made, or where a number or limit came from.
Ships in Dwin Skills. 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.
Code shows what it does, not why it exists. The reason lives in commits, reviews, tickets, design docs, chat, and runtime data, and every one of those records is incomplete and sometimes contradicts another. Find the evidence, and give each claim with how sure the evidence makes it.
Work as a careful investigator: keep what the record says apart from what you infer. references/epistemics.md defines the confidence tiers and the wording for each. Read it before you write the answer.
The target is a piece of code, a pattern, a feature, or a named decision. The question asks for a rationale, a trade-off, the edge case behind the code, an outside constraint, whether the code is dead, or a sweep of its history.
When the target is vague, take your best reading from the conversation: open files, recent edits, what was just discussed. State it in one line so the user can redirect, and continue.
When the question carries a guess ("I assume it's for performance?"), the guess is one candidate to check against the evidence, the same as any other.
Gather the seed that every later step uses:
git log --follow --oneline -- <file>,
git blame -L <start>,<end> <file>, and git log -S '<exact text>' for
when a line or a constant appeared;gh pr view <number> --json title,body,author,mergedAt,labels,closingIssuesReferences,comments,reviews;gh api --paginate repos/{owner}/{repo}/pulls/<number>/comments;Sort the sources this session can reach into seven categories:
git and gh;Place each connected tool, CLI, and MCP server by its name, instructions, and tools. Note any that could fit two categories. references/sources.md says what each category is best at and how to search it.
Search every category that has a source. The goal is a complete coverage map, and an empty search is a finding. A category is skipped only with a written reason that goes into the answer: no source for it is reachable here, which is a gap and not a choice, or it provably cannot bear on the target, such as error tracking for a build-time script. When the target is defensive code, such as a null check, a retry, a timeout, a rate limit, a feature flag, or a memory guard, add the incident searches from the sources reference to every category.
When your host can start agents, run one investigator per category in
parallel, each owning one source and briefed with
references/investigator-brief.md, the code
anchor, and the user's question. swarm says how your host starts them and
which model suits research. Investigators only read. Without agents, work
through the categories yourself, one at a time, under the same brief.
A trivial target, whose single pull request already states the whole answer, may be answered from the anchor. Do that only after confirming the other searches would add nothing, and say so in the answer.
Weigh the findings by references/synthesis.md: merge overlapping citations, surface contradictions, place every claim in a tier, spot-check the citations you are unsure of, and name the gaps. When the findings are long, hand them to one fresh agent along with the synthesis and epistemics references. Present its answer with the confidence wording intact.
Use the structure in the synthesis reference. Sources Consulted keeps one line per category, including those that found nothing and those skipped, with the reason.
When the question comes before a change to this code, end with the constraints the change must respect:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub dwin/skills --plugin dwin-skills52 skills in this plugin
/arenaHave several agents attempt the same task, pick the strongest attempt as the base, and graft the best parts of the others into it. Use for "arena this" or when one attempt at an artifact would lock in the wrong shape./autopilotDrive a branch to a ready pull request. Keeps it current with its base, gets local review from a different model family, marks it ready, and handles CI and AI-reviewer feedback. With `merge`, also merges it. Use when the user invokes autopilot./babysitMonitor or babysit an open pull request through CI, mergeability changes, and review feedback. Use when the user asks to watch a PR, keep checking it, diagnose checks, address in-scope findings, or stay with it until it is merged, closed, or genuinely needs user input.