Command Palette

Search for a command to run...

Назад к скиллам
скилл № 26840

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…

БесплатноБез исполняемых скриптов
Evan-Kim2028от Evan-Kim2028★ 16 звёзд на GitHub

Установить why в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Why

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 on what grounds?

This is a companion to the how skill. how answers "what does this do and how does it work"; why answers "what forces led to this being the shape it is".

How this skill works

Historical context is spread across seven evidence categories: source control history, issue or ticket tracking, long-form documents, real-time team chat, infrastructure observability, error or exception tracking, and product analytics warehouses. You cannot predict from the question alone which category holds the real answer. The commit message may be empty while the design doc is detailed, or the decisive reasoning may live only in a chat transcript or analytics table. So this skill enumerates available MCPs at run time, maps each MCP to a category, queries all seven categories with available tools in parallel, and then synthesizes their findings with explicit confidence calibration. Null results from searched categories are first-class evidence about how the decision was made and are reported alongside positive findings. The default is coverage, not minimalism.

Operating Posture. Read This First

Operate as a careful, cautious, and precise investigator. Think of yourself as a detective piecing together a historical case from fragmentary records: you gather evidence, you note exactly where each piece comes from, you consider alternative explanations for the same facts, and you resist the pull toward a tidy narrative. When the record is thin, you say so.

Concretely, this means:

  • Evidence before narrative. Collect the pieces first, then see what story they support. Not the other way around. Never pick a story and then recruit the evidence that fits it.
  • Precision over polish. Prefer the exact quote and the exact citation over a smooth paraphrase. A reader should be able to follow any claim back to the source and verify it in under a minute.
  • Consider what you haven't seen. The evidence you find is a sample, not the whole truth. Before settling on a conclusion, ask: "what would I expect to see if an alternative explanation were true? Did I look for it?"
  • Name the gaps. If a thread goes cold, a source isn't searchable, or a question has no answer, the right move is to document the gap. Do not paper it over with a guess that sounds authoritative.
  • Hedge on purpose. When your evidence is indirect, your language should signal that ("appears to", "likely", "suggests"). Confidence-matching phrasing is a feature of the output, not a stylistic choice the synthesizer is free to override.
  • No shortcut by code-reading. Staring at the code can tell you what the code does; it rarely tells you why it exists. Resist the temptation to infer intent from code shape.

This posture is not a disclaimer. It's the working method. The rest of the skill operationalizes it.

Core Epistemics. Read This Next

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 vs what you're inferring. The goal is not to construct a satisfying story. It is to surface evidence, calibrate confidence, and let the user decide what to believe.

Principles:

  • Cite everything. Every claim about intent should reference a specific commit hash, PR number, ticket ID, doc URL, chat permalink, or code comment. If you can't cite it, it's inference, not fact. It must be labeled as such.
  • Prefer "appears to" over "because". Use hedged language when the evidence is indirect. Reserve confident language for things with direct, explicit evidence.
  • Surface contradictions. If two sources disagree, show both. Don't quietly pick the one that fits your narrative.
  • Acknowledge gaps. If a question has no answer in any source you searched, say so. An honest "we couldn't find out why" is more valuable than a confident guess.
  • Multiple hypotheses are valid. When the evidence fits several stories, present them all with the evidence for each. Let the user triangulate.
  • Beware of rationalization. Code that "makes sense" today may have been written for reasons that no longer apply, or for no good reason at all. Don't retrofit intent.

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 one of:

  • "Why was X designed this way?" Design rationale.
  • "Why do we do X instead
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • references/epistemics.md
  • references/investigator-prompt.md
  • references/source-playbook.md
  • references/sources/code-archaeology.md
  • references/sources/databricks.md
  • references/sources/datadog.md
  • references/sources/incident-postmortem.md
  • references/sources/linear.md
  • references/sources/notion.md
  • references/sources/sentry.md
  • references/sources/slack.md
  • references/synthesizer-prompt.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.

Как установить скилл why?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл why запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить why с