/abbestack:whyfrom abbestack
Use for 'why does X work this way', 'why we picked Y', design rationale, regressions, postmortems, or data-backed thresholds. Queries the three available evidence sources (git history, Notion, GitHub issues) in parallel, then returns a cited read on decisions and tradeoffs. Use how for runtime behavior.
Ships in abbestack. 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 motivation and intent behind code. Why was it built this way? What edge cases were considered? What product, business, or operational constraints shaped the design? What alternatives were rejected, and why?
Companion to the how skill. how answers what the code does and how it works. why answers what forces led to its shape.
Historical context spreads across evidence sources. This environment has three configured sources: git history (git log, git blame, PR bodies via gh), Notion (the Notion MCP is already configured), and GitHub issues (gh issue). Query all three in parallel by default, then synthesize with explicit confidence calibration. Null results from searched sources are first-class evidence about how the decision was made; report them alongside positive findings. The default is coverage, not minimalism.
Operate as a careful, cautious, precise investigator. Think like a detective piecing together a historical case from fragmentary records. When the record is thin, say so.
Concretely:
This posture is the working method, not a disclaimer.
This skill builds a patchwork understanding from fragmented historical evidence. Tickets go stale. Chat threads get deleted. Commit messages lie. People change their minds between the PR description and the implementation. The original author may have left the company.
Be ruthlessly honest about what you know versus what you're inferring. The goal is not a satisfying story; it is to surface evidence, calibrate confidence, and let the user decide.
Principles:
Read references/epistemics.md for the full confidence framework and phrasing guide. The synthesizer must follow it.
Parse what the user is asking. The target is usually a chunk of code, a pattern, a feature, or a named design decision. The question is usually one of:
If the target is vague ("why do we do it this way?" with no clear referent), make your best guess from conversation context (open files, recent edits, cursor location, what was just discussed). State your interpretation briefly so the user can redirect if you're off, then proceed.
Before spawning investigators, anchor the investigation in concrete code. You need:
(#1234) in the subject line)Build this inline. It's cheap, and every investigator needs it.
# Blame target lines for last-touch commits
git blame -L <start>,<end> <file>
# Full file history, with patches, through renames
git log --follow -p -- <file>
# Last N commits touching the file, PR numbers visible
git log --oneline -20 -- <file>
# Extract PR numbers from a commit message
git log -1 --format=%B <commit>
Pull PR bodies and discussion via gh for any substantive commits:
gh pr view <number> --json title,body,author,createdAt,mergedAt,labels,closingIssuesReferences,comments,reviews
Capture this as seed context (file paths, symbols, commits, PR numbers, linked ticket IDs). Pass it to the investigators so they don't rediscover it.
Default to the full parallel investigation. You cannot tell from the question alone which source holds the answer without looking. So look across all three sources, in parallel, by default. One investigator per source; each owns one tool's query vocabulary and result shape. Launch them in a single message so they run concurrently. Each investigator is a read-only subagent on the explore role in model-roster.md; put each one on a different model from that row.
Each investigator gets:
references/investigator-prompt.mdreferences/sources/incident-postmortem.md if the target code looks defensive (null checks, retry logic, timeout handling, rate limiting, feature flags, egress guards, OOM handlers)Source control investigator (references/sources/code-archaeology.md, adapted to plain git + gh; no MCP). Git history, gh pr view for PR bodies and review threads, code comments, tests. Always spawn; the only guaranteed source. Best at surfacing implementation-time rationale captured during review. PR descriptions stating the problem, review threads debating alternatives, inline comments encoding non-obvious constraints, test names that encode motivating edge cases, and commit messages linking tickets or incidents. Most trustworthy because it ties directly to the diff that shipped.
GitHub issues investigator (via gh issue; no separate MCP). Tickets, issue threads, labels, linked PRs. Best at surfacing the product or business forcing function. Customer requests, compliance deadlines, parent-initiative framing, issue-level scope changes, and labels that categorize the motivation (customer:*, incident-followup, compliance, perf-regression). Strongest when the why is external to engineering. Search both open and closed issues; closed does not mean irrelevant.
Notion investigator (references/sources/notion.md, via the Notion MCP). PRDs, specs, RFCs, design docs, ADRs, postmortems, meeting notes. Best at surfacing long-form design rationale. Problem statements, explicit "alternatives considered" and "rejected approaches" sections, strategy documents that set priorities, ADRs with finalized decisions, and postmortem action items that tie directly to code. Where the why is written out before it becomes code.
Sources that exist elsewhere but have no configured source in this environment — real-time team chat, infrastructure observability, error/exception tracking, product analytics warehouses — are out of scope. Do not improvise access to them. Note their absence in the final Sources Consulted section as gaps, not choices.
Only skip with an explicit, written justification that goes in the final "Sources Consulted" section. Two valid reasons:
"It's pure feature code, GitHub issues won't have anything" is not sufficient. Run the search; let the null result speak. The cost of an investigator returning empty is one subagent. The cost of missing a design doc that actually exists is a wrong answer.
If your scope assessment suggests a single-commit trivial target where the PR description already contains the complete answer, you may answer inline only after confirming all three searches would be redundant. Say so explicitly. This should be rare.
You are the synthesizer. Write the synthesis with this thread's own model; do not hand it to a subagent (the explain role in model-roster.md).
Work from:
references/epistemics.mdreferences/synthesizer-prompt.mdThe job is the final output: a confidence-weighted, evidence-cited narrative with clearly separated "what we know" and "what we're inferring" sections, plus honest acknowledgment of gaps and null-result sources.
Present the synthesis to the user. Keep the confidence language exactly as calibrated. The epistemic framing is the product. Dropping the hedges to sound more authoritative is the exact failure mode this skill exists to prevent.
The final output uses this structure. Adapt as needed, but keep the confidence separation intact.
The Question. Restate what the user asked, concisely.
The Code in Question. File paths, line ranges, and key symbols. One or two lines so the reader is anchored.
What We Found (direct evidence). Claims with explicit citations (PR #, issue #, doc URL, commit hash, code comment with file:line). Each bullet is a thing we have textual evidence for. Use present tense and quote or paraphrase the source.
What We Can Reasonably Infer. Claims well-supported by indirect evidence or combinations of signals, but not explicitly stated anywhere. Each bullet must explain the inference chain: "Given A and B, it's likely that C." Use hedged language ("appears to", "likely", "suggests").
Competing Hypotheses. If the evidence fits multiple stories, list them. For each, give the hypothesis, the evidence for it, and the evidence against it. Don't force a winner when the record doesn't support one. (Skip this section if there's a clear answer.)
What We Don't Know. Explicit gaps. Questions the user asked that the evidence didn't answer. Sources we searched and came up empty. Be specific. "We searched GitHub issues for 'rate limit' and found no ticket discussing this specific threshold" is more useful than "we don't know why."
Sources Consulted. One line per investigator, including the ones that returned nothing. The reader should see at a glance (a) which sources were queried, (b) which came back empty, (c) which were skipped and why, and (d) which have no configured source here at all. This coverage map lets the user judge breadth and redirect if something obvious was missed.
Format each line as: - <Source>: <what was searched>. <what was found, or "no relevant results," or "skipped. reason">.
Example:
git log --follow backend/retry.ts, PRs #49074, #47812. Found PR #49074 introduced exponential backoff and linked #4421.After the Sources Consulted block, if the user's why question is a precursor to actually changing this code, convert the lineage findings into a Preserve / Change / Avoid / Risk constraint set suitable for planning the change.
references/epistemics.md. Confidence tiers and phrasing guide. The synthesizer must follow it.references/investigator-prompt.md. Base prompt template for investigator subagents.references/synthesizer-prompt.md. Synthesis instructions for this thread, including the output format.references/sources/notion.md. Playbook for the Notion investigator.references/sources/code-archaeology.md. Playbook material for the source-control investigator.references/sources/incident-postmortem.md. Cross-cutting playbook; give it to any investigator when the target code looks defensive.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/sources/notion.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
33 skills in this plugin
/blast-radiusFind what a change could break somewhere else before it ships, beyond the diff, and prove the one fact it's safe because of by running real code instead of writing it up. Use for 'blast radius of X', 'what could this break', or reviewing a small diff you don't trust./codebase-designShared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary./domain-modelingBuild and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a CONTEXT.md, or recording or editing an ADR.Other plugins' skills for the same job
Generated from the plugin's indexed repository (abbeazale/abbestack) — no native marketplace selected
npx claudepluginhub p/abbeazale-abbestack