agentleFS
wavestone-sawavestone-sa/agentic-spec-skills/skills/hypothesis-lab/SKILL.md

hypothesis-lab

Skill2 starsChanged 5 months agoApache-2.0View on GitHub

Run a hypothesis-driven investigation — turn a fuzzy problem or improvement goal into a catalogue of falsifiable hypotheses, test each with a real experiment, and finish with a leverage-ranked action stack; optionally implement the confirmed measures as individually revertable commits. For structured debugging with several suspects, or proving which variation wins. User-invoked only; call it with /hypothesis-lab.

3 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions3 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 3

    1. sergeeey/Claude-cod-top-2026★ 9same name
    2. ChewbaccaRoars/pathfinder-skills★ 2same name
    3. vibemarketologru/vibe-landing-kit★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository5 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If a problem description, file path, log, or prior analysis came with the invocation, go to Step 1.

    line 31
  2. Very specific:

    Read the problem input in full (no limit/offset) and scan the relevant code/data yourself before any subagent fires.

    line 41
  3. Very specific:

    Write experiment code under harness/H#/, raw output under results/H#/, any run spec under specs/H#/ (its own ID's subfolder — never the …

    line 110
  4. Very specific:

    If the first result looks stochastic, replicate and report a rate per references/methodology.md Rule 2.

    line 112
  5. Very specific:

    Evidence spot-check (anti-fabrication): Before flipping a block to ✔️, confirm the cited results/H#/ file exists and is non-trivial (real …

    line 120

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Hypothesis Lab

Turn root-cause guesses or change ideas into a catalogue of falsifiable hypotheses, test each one with a real experiment, and end with a synthesized, leverage-ranked action stack. Works for two cases:

  • Debugging — "why does X break / collapse / fail."
  • Improvement — "how do I make X faster / cheaper / better-behaved" where nothing is strictly broken. Hypotheses are change ideas; the falsification criterion is a measurable improvement threshold; the verdict says whether the change is worth shipping.

The gold-standard output shape and the blank template live in references/blueprint.md. The verdict taxonomy and rigor rules live in references/methodology.md. Read both before drafting.

Initial setup

  • If a problem description, file path, log, or prior analysis came with the invocation, go to Step 1.
  • Otherwise reply with one concise prompt: what is the problem or improvement goal, where is the relevant code/data, and what does "better" mean here? Then wait. Do not draft against empty scope.

Process

Step 1 — Frame

  1. Read the problem input in full (no limit/offset) and scan the relevant code/data yourself before any subagent fires.
  2. Pick a short kebab-case <slug> and create the run folder (default docs/agents/hypotheses/<slug>/ in the target project; propose it at the gate, the user may redirect):

    docs/agents/hypotheses/<slug>/
      HYPOTHESES.md              # the catalogue (copy of references/blueprint.md)
      harness/H1/ H2/ …          # experiment scripts, one subfolder per hypothesis
      results/H1/ H2/ …          # raw experiment output, one subfolder per hypothesis
      specs/H1/ H2/ …            # job/run specs, one subfolder per hypothesis

    Per-hypothesis subfolders keep parallel subagents from colliding on filenames.

  3. Copy references/blueprint.md into the run folder as HYPOTHESES.md and fill the top sections:
    • Introduction / Problem or Improvement goal — for a bug: symptoms + impact; for an improvement: current behavior + the concrete target ("X is 2s, want <1s; no quality regression"). State scope and explicit exclusions (things deliberately not tested, e.g. hardware you can't change).
    • Data basis — datasets / inputs / segments and what each one shows.
    • Dependencies & Requirements — tools, API keys, test data, access that must exist to run the tests. If something here is missing, this is the only thing that may halt the unattended run later.

Step 2 — Generate the catalogue

Brainstorm candidate hypotheses from the problem + your code/data scan, honouring the exclusions from Step 1. For each:

  • Claim — one falsifiable sentence.
  • Falsification criterion (mandatory) — pre-registered per references/methodology.md Rule 1: fixed now, before any data.
  • Planned measure — the experiment. Include a baseline / control condition where it applies (treated vs. untreated, with vs. without).
  • Leverage — rough estimate of impact-if-true, used to rank.
  • Depends on (optional) — the hypothesis ID whose result this experiment needs before it can run (e.g. H3 only makes sense once H1 confirmed). Leave — if independent.

Rank by leverage, then assign IDs (H1, H2, …) in that ranked order — the ID order is the absolute run order. A block with a Depends on entry waits for its parent's result regardless of its own position. Fill the overview table (including the Depends on column) and write a skeleton block per hypothesis (claim + falsification criterion + planned measure), all status ⏳.

Step 3 — Gate (the single approval)

Present to the user: the proposed run folder, the ranked catalogue, and any cost/risk flags (API spend, time, anything stateful a test would touch). The user approves / edits / adds / removes / reorders. Nothing expensive runs before this.

Step 4 — Run (unattended)

Spawn one subagent per approved hypothesis. Respect the run order and the Depends on field: fan out all hypotheses with no unmet dependency in parallel (single message, multiple Agent calls); a dependent hypothesis fires only after its parent's result block is in. As each returns, spot-check the evidence (below), paste its result block into the catalogue, flip its status to ✔️, and update the overview table. Mark a block 🔄 while its subagent is running. Keep going without asking until all blocks are done.

Per-hypothesis subagent contract — pass the claim, the falsification criterion, the planned measure, the hypothesis ID, and the run-folder + data paths. Instruct it to:

  • Write experiment code under harness/H#/, raw output under results/H#/, any run spec under specs/H#/ (its own ID's subfolder — never the bare folders).
  • If the first result looks stochastic, replicate and report a rate per references/methodology.md Rule 2.
  • Return only a filled result block — no logs, no narration: the result data/table, an Evidence path pointing at the raw results/H#/ file the table was derived from, the verdict (from the taxonomy), and Meaning / Consequence (what to do about it). Everything noisy stays in harness/H#/ and results/H#/.

Evidence spot-check (anti-fabrication). Before flipping a block to ✔️, confirm the cited results/H#/ file exists and is non-trivial (real output, not an empty or hand-written stub). If a result block has no evidence file or the file is missing/empty, do not accept it — send the subagent back to produce real output. A result without a backing artifact never enters the catalogue.

Step 5 — Synthesize

Once every block is done, write the closing sections of the catalogue:

  • Overall finding — the single most important finding, stated plainly.
  • Action stack — recommended measures ranked by leverage (a table: priority · measure · source hypothesis · effect).
  • Implementation order — the sequence to actually do the work.
  • Do NOT do — the disproven approaches, so nobody retries them.

Step 6 — Deliver

Report the catalogue path. Markdown only — do not launch any HTML viewer.

Step 7 — Implement confirmed measures (opt-in)

The catalogue is the deliverable; implementing the fixes is a separate, opt-in follow-on. After Step 6, offer it: "Implement the confirmed measures now?" If the user declines, stop here. If they accept, follow references/implementation.md — one measure per atomic commit, re-measured in the integrated system, individually revertable.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.