Skip to content
Back to skills

Multi Hypothesis

ASecurity

Root cause analysis that keeps several competing hypotheses alive and investigates each one independently (in parallel with sub-agents when the agent has them, otherwise one at a time), looking for disconfirming evidence first, instead of settling on the first plausible cause. Analysis only; no fixes. Use when the cause is unclear and several explanations are plausible, including intermittent or flaky failures nobody can reproduce (flaky tests/CI, "1 in N runs", only some users/requests), or ...

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 6, 2026
ai-agentsgobashgitapi

Works with

  • claude code
  • api

Security analysis

A100/100

Scanned November 6, 2026

npx -y skills add sanghyun-io/sanghyun-skills --skill multi-hypothesis --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Multi Hypothesis?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Multi Hypothesis
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sanghyun-io-multi-hypothesis/badge)](https://www.skillsdirectory.com/skills/sanghyun-io-multi-hypothesis)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: multi-hypothesis
description: |
  Root cause analysis that keeps several competing hypotheses alive and investigates each one independently (in parallel with sub-agents when the agent has them, otherwise one at a time), looking for disconfirming evidence first, instead of settling on the first plausible cause. Analysis only; no fixes.
  Use when the cause is unclear and several explanations are plausible, including intermittent or flaky failures nobody can reproduce (flaky tests/CI, "1 in N runs", only some users/requests), or the user asks for it: "원인 분석", "간헐적", "재현 안 됨", "flaky", "근본 원인", "왜 이렇게 됐는지", "여러 가능성", "다중 가설", "multi-hypothesis", "multiple working hypotheses", "root cause", "RCA", "postmortem".
  Do NOT use when one clue already points to a single cause (just debug it), for a quick "why does this line fail" question, or when the user wants a fix rather than an analysis.
---

# Multi-Hypothesis RCA

Basis: T.C. Chamberlin (1890), *The Method of Multiple Working Hypotheses*: don't get attached to the first explanation; keep several alive and trace each to the end. **Analysis only: do not propose recovery or fixes.**

Works with any coding agent. Sub-agents make it faster and keep investigations independent, but the method works without them (Step 4).

## Cost check first

This runs 3-5 investigations. Use it only when it pays off:
- Fewer than 3 independent, plausible hypotheses → investigate directly instead.
- The symptom reproduces locally and the stack trace points at one place → debug normally.
- Otherwise say up front that you will run several investigations, and get approval in Step 3.

## Model choice

Spend strong-model reasoning only where judgment is needed; push mechanical work down.
- **You (main session)**: deriving hypotheses, deciding what counts as evidence, synthesis. Use the strongest model available.
- **Investigators**: weigh evidence for and against one hypothesis. A balanced tier is enough.
- **Mechanical lookups** (grep/search, reading files and logs, listing recent commits or deploys, collecting timestamps): the cheapest tier that uses tools reliably. Investigators can hand these off or just do them.
- Pick models at run time from what this agent actually offers (e.g. the sub-agent tool's model option); don't assume a model name. Rough tiers: fast/cheap (Haiku-, mini-, flash-class), balanced (Sonnet-class), strongest (Opus-class or top reasoning models). With a single model, use it for everything.

## Procedure

1. **Fix the symptom**: from the request or args; if insufficient, ask (AskUserQuestion if available, otherwise in chat): what happens, since when, who is affected, what changed.
2. **Derive 3-5 hypotheses**: independent, mutually exclusive where possible, testable, falsifiable, specific ("stale DNS cache", not "environment issue"). Sweep each category once to avoid gaps: code/logic (boundaries, off-by-one), state/data (migrations, cache), environment/config (env vars, permissions, dependency versions), concurrency/timing (races, deadlocks, retry storms), infra/network (DNS, TLS, proxy, rate limits), human factors (recent changes, deploys, manual steps), external dependencies (third-party APIs, monitoring blind spots).
3. **Approval**: show the hypotheses and get approval (AskUserQuestion if available, otherwise in chat).
4. **Assign investigations**, using the template below.
   - **With sub-agents** (e.g. Claude Code `Agent`, `subagent_type: "general-purpose"`): one per hypothesis, **all started at once**, model per "Model choice". Their final message is their report. If agents from other work are running, give yours distinct names (`mh-1`...) and pass only this RCA's scope.
   - **Without sub-agents**: investigate one hypothesis at a time and keep them independent: (a) write each hypothesis's conclusion and evidence before starting the next; (b) don't revise an earlier conclusion while working on a later one, carry new evidence to Step 6 instead; (c) for whichever hypothesis you currently favor, look hardest for evidence against it.
5. **Investigate** (each hypothesis): disconfirming evidence first, no depth limit, until a verifiable conclusion. A real sub-hypothesis gets its own investigation (sub-agent or a separate pass).
6. **Synthesize** (you): no conclusion until every line of inquiry has reported. Shape the report to the result, no fixed template: single cause → narrative + appendix of refuted hypotheses; several causes → causal diagram or hypothesis × contribution table; all INCONCLUSIVE → hypothesis × evidence-needed table; interacting causes → matrix.
7. **Cleanup** (sub-agents only): confirm all agents this RCA started have finished; on abort, stop only those. **Never touch agents from other work.**

## Optional: Codex delegation (investigators only)

Only if a Codex delegation plugin such as [codex-core](https://github.com/sanghyun-io/codex-app-server-plugin) is installed; otherwise skip and use Glob/Grep/Read/Bash.
- Converging on INCONCLUSIVE and the cause may be deep in code behavior → `/codex-core:delegate --read-only` before concluding.
- Grep-level lookups → do them directly.
- Codex unavailable or failing → investigate as far as possible, and if still INCONCLUSIVE state why Codex was needed, why it was unavailable, and the next concrete verification step (file, query, experiment).

## Investigator prompt template

```
You are one investigator on a multi-hypothesis root cause analysis. Analysis only: do not propose fixes.

Hypothesis: {N: one-line summary + precise definition}
Symptoms / observations: {full symptom context}
Other hypotheses being checked separately (don't duplicate them): {list}

Job:
1. Look for evidence that would REFUTE this hypothesis first, then for confirming evidence.
2. Go as deep as needed to reach a verifiable conclusion.
3. If a distinct sub-hypothesis appears, investigate it separately (a sub-agent if you can start one).
4. Use a cheaper model or tool for pure lookups (search, file/log reading); keep the judgment yourself.

Final report:
- Conclusion: CONFIRMED / REFUTED / INCONCLUSIVE
- Evidence: file path + line + quote, or command + output
- Falsification attempts: what could have broken the hypothesis, and what happened
- Remaining uncertainty: what further checks would settle it
- Sub-hypotheses: results from any sub-agents
```

Example: `/multi-hypothesis:multi-hypothesis only some users get 401 errors after deploy`

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.