# Research harness work

> Research harness work is an open-source agent skill for analytics and data. Runs approved analysis tasks as logged scripts and records verified evidence. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/maxwell2732/claudecode-research-harness-workflow/tree/main/skills/research-harness-work
- **Repository:** https://github.com/maxwell2732/claudecode-research-harness-workflow
- **GitHub stars:** 42
- **License:** MIT
- **Skill name:** research-harness-work
- **Collection:** https://github.com/maxwell2732/claudecode-research-harness-workflow
- **Categories:** [analytics and data](https://ai-powered.com/categories/analytics-and-data)
- **Listing updated:** 2026-12-03

## About

This skill executes analysis tasks that have already been approved in an analysis_plan.md file for a research project. For each task it reads the script, log, output, and definition-of-done details, writes a reproducible script in the study's language (R by default), runs it, and checks that the log and output files exist before marking the task complete.

The workflow is built around verification. Scripts record sample sizes, sample restrictions, model coefficients and standard errors in a log, and results reported back to the user are quoted from that log rather than interpreted. If a script fails, the agent gets up to three repair attempts; after that it records the error in the plan and marks the task blocked instead of inventing output. Tasks with unresolved questions or blocked status are not run without user direction.

It expects an analysis-ready dataset under data/processed/, a written analysis plan produced by a companion planning step, and an R, Stata, or Python environment capable of running the script. It is meant to run before a separate review skill that checks identification and causal claims.

## When your agent uses it

> RES: Execute approved analysis tasks from analysis_plan.md. Writes scripts, runs them, saves logs and outputs, updates task status. Trigger: run analysis, execute task, run regression, produce table, produce figure. Do NOT load for: planning, review, release, setup, audit, cleaning.

## What it can access

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

- [Instructions only, no scripts](https://github.com/maxwell2732/claudecode-research-harness-workflow/tree/HEAD/skills/research-harness-work)
- [Asks for: Read, Write, Edit, Bash, Glob, Grep](https://github.com/maxwell2732/claudecode-research-harness-workflow/blob/HEAD/skills/research-harness-work/SKILL.md)
- [License: MIT](https://github.com/maxwell2732/claudecode-research-harness-workflow/tree/HEAD/skills/research-harness-work)

## Features

- **Plan-driven task execution:** Runs only tasks listed and approved in analysis_plan.md, with status tracking from todo to done.
- **Reproducible script writing:** Generates analysis scripts with header comments, project-relative paths, and a fixed random seed when needed.
- **Log-based result recording:** Captures dataset size, restrictions, model output, and estimation sample size in a log file.
- **Evidence verification:** Checks that the script exited cleanly and that log and output files exist before marking a task done.
- **Failure escalation:** Retries failed scripts a limited number of times, then records the error and blocks the task.

## Good for

- Run the regression specified for task 1.1 in the analysis plan
- Produce the descriptive summary table for stage 2
- Generate the figure defined in the approved plan and save its log
- Execute all todo tasks in the plan in sequence

## Install

### Claude Code

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

```sh
/plugin marketplace add maxwell2732/claudecode-research-harness-workflow
/plugin install claudecode-research-harness-workflow@claudecode-research-harness-workflow
```

Or copy only this skill to `~/.claude/skills/research-harness-work`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/maxwell2732/claudecode-research-harness-workflow.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/research-harness-work &&
cp -R "$tmp/skills/research-harness-work" ~/.claude/skills/research-harness-work &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/research-harness-work` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/research-harness-work` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/maxwell2732/claudecode-research-harness-workflow.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/research-harness-work &&
cp -R "$tmp/skills/research-harness-work" ~/.agents/skills/research-harness-work &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/research-harness-work` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/research-harness-work` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/maxwell2732/claudecode-research-harness-workflow.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/research-harness-work &&
cp -R "$tmp/skills/research-harness-work" ~/.cursor/skills/research-harness-work &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/research-harness-work` 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/maxwell2732/claudecode-research-harness-workflow.git --path skills/research-harness-work
```

Or copy the folder to `~/.gemini/skills/research-harness-work` yourself.

### VS Code

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/maxwell2732/claudecode-research-harness-workflow.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/research-harness-work &&
cp -R "$tmp/skills/research-harness-work" ~/.copilot/skills/research-harness-work &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/research-harness-work` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/maxwell2732/claudecode-research-harness-workflow.git
```

Then copy `claudecode-research-harness-workflow/skills/research-harness-work` into your agent's skills folder as `research-harness-work`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need before Research harness work runs?

It needs an analysis_plan.md file created by the planning step and the analysis-ready dataset under data/processed/.

### Does Research harness work write results without checking them?

No. It reports only numbers present in the log file and requires the log and output files to exist before marking a task done.

### What happens if the script keeps failing?

After three attempts it records the error and reason in analysis_plan.md, marks the task blocked, and asks the user to decide how to proceed.

### Which programming language does Research harness work use?

It uses the language the study specifies, such as R, Stata, or Python, and defaults to R when none is given.

### How do I install Research harness work in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/research-harness-work to use it in all your projects, or to .claude/skills/research-harness-work in one project. Or install the claudecode-research-harness-workflow plugin, which includes it: /plugin marketplace add maxwell2732/claudecode-research-harness-workflow, then /plugin install claudecode-research-harness-workflow@claudecode-research-harness-workflow.

### Does Research harness work 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 Research harness work?

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 Research harness work?

The closest alternatives to Research harness work are Research harness clean, Research harness plan, Research harness audit, Data analysis and Rea analysis optimization.

## Where this comes from

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

## Alternatives

- [Research harness clean](https://ai-powered.com/skills/research-harness-clean): Research harness clean is an open-source agent skill for analytics and data.
- [Research harness plan](https://ai-powered.com/skills/research-harness-plan): Research harness plan is an open-source agent skill for health and science.
- [Research harness audit](https://ai-powered.com/skills/research-harness-audit): Research harness audit is an open-source agent skill for analytics and data.
- [Data analysis](https://ai-powered.com/skills/data-analysis): Data analysis is an open-source agent skill for analytics and data.
- [Rea analysis optimization](https://ai-powered.com/skills/rea-analysis-optimization): Rea analysis optimization is an open-source agent skill for developer tools.
- [Quantitative analysis](https://ai-powered.com/skills/quantitative-analysis): Quantitative analysis is an open-source agent skill for analytics and data.
- [Data scientist](https://ai-powered.com/skills/data-scientist): Data scientist is an open-source agent skill for analytics and data.

---
Source: https://ai-powered.com/skills/research-harness-work
