# Hypothesis testing

> Hypothesis testing is an open-source agent skill for health and science. Turns observations into falsifiable hypotheses with variables, controls and a validation. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/poemswe/co-researcher/tree/main/skills/hypothesis-testing
- **Repository:** https://github.com/poemswe/co-researcher
- **GitHub stars:** 143
- **License:** MIT
- **Skill name:** hypothesis-testing
- **Collection:** https://github.com/poemswe/co-researcher
- **Categories:** [health and science](https://ai-powered.com/categories/health-and-science)
- **Listing updated:** 2026-12-02

## About

This skill guides the agent through scientific hypothesis development and experimental design. It walks from an initial observation to a refined research question, a null and alternative hypothesis with a stated causal mechanism, and a variable matrix that defines independent, dependent, control, confound, mediator and moderator roles with measurable definitions.

The workflow also covers choosing a design such as an RCT, quasi-experiment or observational study, planning confound mitigation, and defining the exact data patterns that would reject the alternative hypothesis. It adds checks for whether the study can actually test the hypothesis, including a pilot to confirm a mechanism proxy occurs and a test of any outcome scorer on real outputs before the plan is frozen.

The skill is a single SKILL.md file with no scripts. Its frontmatter lists web search, web fetch, and file read, grep and glob tools. It is distributed as a Claude Code plugin through a marketplace, and the repository is MIT licensed.

## When your agent uses it

> You must use this when formulating testable hypotheses, designing experimental controls, or defining falsification criteria.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/poemswe/co-researcher/tree/HEAD/skills/hypothesis-testing)
- [License: MIT](https://github.com/poemswe/co-researcher/tree/HEAD/skills/hypothesis-testing)

## Features

- **Hypothesis construction:** Builds null and alternative hypotheses with a stated causal mechanism from an observation.
- **Variable mapping:** Assigns roles to independent, dependent, control, confound, mediator and moderator variables with operational definitions.
- **Design selection:** Compares RCTs, quasi-experiments and longitudinal or cross-sectional observational designs for a given question.
- **Falsification criteria:** Specifies the concrete result patterns that would reject the alternative hypothesis.
- **Manipulation check:** Plans a pilot to confirm the mechanism proxy and treatment step occur before pre-registration.
- **Scorer validation:** Tests outcome parsers on awkward real outputs and sets a tie-break rule before analysis.

## Good for

- Turn an observed pattern in experiment logs into a testable hypothesis
- Design a controlled experiment to compare two model prompts
- Define what results would falsify a research claim
- Map variables and confounds for a planned user study
- Check whether an evaluation scorer is reliable before running it

## Install

### Claude Code

This skill ships in the `co-researcher` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add poemswe/co-researcher
/plugin install co-researcher@co-researcher-marketplace
```

Or copy only this skill to `~/.claude/skills/hypothesis-testing`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/poemswe/co-researcher.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/hypothesis-testing &&
cp -R "$tmp/skills/hypothesis-testing" ~/.claude/skills/hypothesis-testing &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/hypothesis-testing` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/hypothesis-testing` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/poemswe/co-researcher.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/hypothesis-testing &&
cp -R "$tmp/skills/hypothesis-testing" ~/.agents/skills/hypothesis-testing &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/hypothesis-testing` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/hypothesis-testing` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/poemswe/co-researcher.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/hypothesis-testing &&
cp -R "$tmp/skills/hypothesis-testing" ~/.cursor/skills/hypothesis-testing &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/hypothesis-testing` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/poemswe/co-researcher.git --path skills/hypothesis-testing
```

Or copy the folder to `~/.gemini/skills/hypothesis-testing` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/hypothesis-testing`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/poemswe/co-researcher.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/hypothesis-testing &&
cp -R "$tmp/skills/hypothesis-testing" ~/.copilot/skills/hypothesis-testing &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/hypothesis-testing` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/poemswe/co-researcher.git
```

Then copy `co-researcher/skills/hypothesis-testing` into your agent's skills folder as `hypothesis-testing`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Hypothesis testing trigger?

Its description says to use it when formulating testable hypotheses, designing experimental controls, or defining falsification criteria.

### Does Hypothesis testing need scripts or external services?

It includes no scripts. Its frontmatter lists web search, web fetch and file reading tools, and it works through instructions alone.

### Which clients does Hypothesis testing support?

It is packaged as a Claude Code plugin through a marketplace, so it is listed for Claude Code.

### What output does Hypothesis testing produce?

A structured write-up with a research question, H0 and H1, a mechanism, a variable matrix, design type, manipulation check, falsification criteria and a scorer check.

### How do I install Hypothesis testing in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/hypothesis-testing to use it in all your projects, or to .claude/skills/hypothesis-testing in one project. Or install the co-researcher plugin, which includes it: /plugin marketplace add poemswe/co-researcher, then /plugin install co-researcher@co-researcher-marketplace.

### Does Hypothesis testing run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Hypothesis testing?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Hypothesis testing?

The closest alternatives to Hypothesis testing are Hypothesis gen, Quantitative analysis, Research methodology, Qualitative research and Systematic review.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Hypothesis gen](https://ai-powered.com/skills/hypothesis-gen): Hypothesis gen is an open-source agent skill for health and science.
- [Quantitative analysis](https://ai-powered.com/skills/quantitative-analysis): Quantitative analysis is an open-source agent skill for analytics and data.
- [Research methodology](https://ai-powered.com/skills/research-methodology): Research methodology is an open-source agent skill for health and science.
- [Qualitative research](https://ai-powered.com/skills/qualitative-research): Qualitative research is an open-source agent skill for health and science.
- [Systematic review](https://ai-powered.com/skills/systematic-review): Systematic review is an open-source agent skill for health and science.

---
Source: https://ai-powered.com/skills/hypothesis-testing
