why
Use for 'why does X work this way', 'why we picked Y', design rationale, regressions, postmortems, or data-backed thresholds. Discovers available MCPs and…
от jeremybrasher★ 41 звезда на GitHub
Установить why в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Why
When to use
Why does X work this way, design rationale, regressions, postmortems, data-backed thresholds. Companion to how.
Do not use when:
- Pure runtime how questions (use how)
- No target can be anchored
- User wants speculative redesign, not an evidence read
Intake — before you proceed
You need all of the following. If any is missing, stop.
- Target (code, pattern, feature, or named decision)
- Question type
- Code anchor seeds or a path to obtain them
If any is missing, stop. Say what is missing and what you need. Do not invent inputs to keep moving.
HOLD — stop and return this, not a polished guess
When you cannot proceed, return the gap.
| Condition | What is missing | What it needs | Return instead |
|---|---|---|---|
| Target unresolvable even from context | A referent | File, symbol, or decision name | I need a target. Holding. |
| Cannot establish any code anchor | Paths/symbols/commits | Access to git or pointed files | No anchor. Holding investigators. |
| Would guess a force with no citation | Evidence or an inference label | Source or explicit guess tag | Do not present guesses as facts. |
| User wanted how/runtime | Wrong skill | Route to how | This is a how question. Holding why. |
A HOLD is a return value, not a delay before you guess.
Defaults: cut first
This operation defaults to less, not more.
- Document null searches; do not skip quietly
- Skip investigators only with written justification
- Synthesize; do not paste dumps
- Expansion needs evidence from the request or the observed system — not from a habit of completeness.
Will not produce
- Uncited certainty
- Skipping categories without justification
- Readonly Ask mode that strips MCP
Before you return
Run this check. If any item fails, fix or HOLD — do not hand over a guess.
- Sources consulted section present
- Claims labeled measured/inferred/guess
- Coverage map includes gaps
What this process changes
The recipe is not a neutral mirror. It changes the work:
- Available MCP set shapes which why stories are findable
- PR descriptions can be post-hoc rationalizations
- Parallel investigators amplify the loudest paper trail
What still needs a human: Which inferred causes to trust, and whether thin trails mean unknown.
Method card — same family every run
A later agent runs this from this file alone.
- Parse target -> code anchor -> coverage map -> parallel investigators -> synthesize with epistemics.
Domain recipe
The following is the domain behavior to keep. Alignment sections above constrain intake, pauses, cuts, and refusals; they do not replace this recipe.
Investigate the motivation and intent behind code.
Companion to the how skill. how answers what the code does and how it works. why answers what forces led to its shape.
Operating Posture
Operate as a careful, cautious, and precise investigator. Be honest about what you know vs what you're inferring. Read references/epistemics.md for the full confidence framework and phrasing guide. The synthesizer must follow it.
Step 1. Understand the Target and the Question
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 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?" 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.
Step 2. Establish the Code Anchor
Before spawning investigators, anchor the investigation in concrete code. You need:
- The relevant file path(s) and line range(s)
- The key symbols (function names, class names, constants)
- An initial commit list. The last few commits touching the target.
- PR numbers from merge commits (pattern
(#1234)in the subject line)
Build this inline.
# 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.
Step 3. Spawn Parallel Investigators (default posture)
Default to the full parallel investigation.
Discovery
Before spawning investigators, list the available MCPs from the Cursor environment. Use the available-tools map when present. Otherwise insp
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- SCORE.json
- SOURCE.md
FAQ
Что делает скилл why?
Use for 'why does X work this way', 'why we picked Y', design rationale, regressions, postmortems, or data-backed thresholds. Discovers available MCPs and queries each evidence category (source control, issue tracker, long-form docs, real-time chat, infrastructure observability, error tracking, product analytics warehouse) in parallel, then returns a cited read on decisions and tradeoffs. Use how for runtime behavior. Observe required inputs first; HOLD when they are missing rather than guessing.
Как установить скилл why?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл why запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…