# Research harness audit

> Research harness audit is an open-source agent skill for analytics and data. Read-only audit of raw research data: variables, missingness, IDs, merge keys. 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-audit
- **Repository:** https://github.com/maxwell2732/claudecode-research-harness-workflow
- **GitHub stars:** 42
- **License:** MIT
- **Skill name:** research-harness-audit
- **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 inspects raw data files for a social science or econometrics study without modifying them. It inventories each file's format, size, row and column counts, then profiles every variable with type, missing counts, range and sample values. It also checks candidate identifiers for uniqueness and overlap across files, reviews time variables, flags high missingness, duplicate rows, apparent unit mismatches and unusual missing-value codes, and lists possible merge keys without performing any merge.

The workflow runs in ten steps and ends by filling a report template into reports/data_audit_report.md and saving a dated log. It compares the raw data against the study specification and gives each required element a feasible, partially feasible or infeasible verdict. An infeasible result tells the user to revise the spec before cleaning begins. The skill forbids changing raw files, recoding variables, running models, or inferring meanings from variable names that a data dictionary does not confirm.

It expects a study_spec.md created by the companion setup skill, raw data under data/raw/, and the research harness folder layout. It is packaged as a Claude Code plugin skill and uses Read, Write, Bash, Glob and Grep.

## When your agent uses it

> RES: Read-only audit of raw data: variable inventory, missingness, IDs, units, merge keys, feasibility. Produces data_audit_report.md. Trigger: audit data, inspect data, data audit, check raw data. Do NOT load for: cleaning, analysis, review, release, setup.

## 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-audit)
- [Asks for: Read, Write, Bash, Glob, Grep](https://github.com/maxwell2732/claudecode-research-harness-workflow/blob/HEAD/skills/research-harness-audit/SKILL.md)
- [License: MIT](https://github.com/maxwell2732/claudecode-research-harness-workflow/tree/HEAD/skills/research-harness-audit)

## Features

- **Variable inventory profiling:** Records type, missing counts, range and sample values for each variable as named in the file headers.
- **ID and merge key checks:** Tests candidate identifiers for uniqueness and value overlap across files, leaving unconfirmed matches unresolved.
- **Missingness and coding review:** Flags variables missing over half their values and suspicious sentinel codes such as -9 or 9999.
- **Time variable inspection:** Reports ranges and formats of year, wave or date fields and notes panel gaps or mixed formats.
- **Feasibility verdict:** Checks whether outcome, exposure, sample restrictions and sample size can be built from the raw data.
- **Read-only audit log:** Writes a dated log and report while forbidding edits to files under data/raw/.

## Good for

- Audit all raw survey files before starting a cleaning step
- Check whether a candidate ID is unique within a CSV or Stata file
- Find out which datasets can be merged on a shared identifier
- Confirm whether the planned outcome can be built from the raw variables
- Flag variables with heavy missingness or sentinel codes in a raw dataset

## 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-audit`:

```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-audit &&
cp -R "$tmp/skills/research-harness-audit" ~/.claude/skills/research-harness-audit &&
rm -rf "$tmp"
```

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

### Codex

Copy the skill folder to `~/.agents/skills/research-harness-audit` 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-audit &&
cp -R "$tmp/skills/research-harness-audit" ~/.agents/skills/research-harness-audit &&
rm -rf "$tmp"
```

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

### Cursor

Copy the skill folder to `~/.cursor/skills/research-harness-audit` 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-audit &&
cp -R "$tmp/skills/research-harness-audit" ~/.cursor/skills/research-harness-audit &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/research-harness-audit` 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-audit
```

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

### VS Code

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

```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-audit &&
cp -R "$tmp/skills/research-harness-audit" ~/.copilot/skills/research-harness-audit &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/research-harness-audit` 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-audit` into your agent's skills folder as `research-harness-audit`. Agents that support SKILL.md read one folder per skill.

## FAQ

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

It needs a study_spec.md file, which the setup skill produces, and raw data at the path listed in that spec's section 3. If the spec is missing, it stops and asks you to run setup first.

### Does Research harness audit change my raw data?

No. The skill forbids modifying any file under data/raw/, and it does not clean, reshape or recode variables. Its only outputs are the audit report and a log.

### What is the output?

It fills a template and saves reports/data_audit_report.md along with logs/audit_YYYYMMDD.log.

### When should I not use Research harness audit?

The skill's trigger notes say not to load it for cleaning, analysis, review, release or setup tasks.

### Does Research harness audit perform merges?

No. It only lists candidate merge key pairs with overlap percentages and labels them as likely, possible or unclear.

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

Copy the skill folder from GitHub to ~/.claude/skills/research-harness-audit to use it in all your projects, or to .claude/skills/research-harness-audit 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 audit 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 audit?

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 audit?

The closest alternatives to Research harness audit are Research harness clean, Research harness work, Data analysis, Data scientist and Datanalysis credit risk.

## 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 work](https://ai-powered.com/skills/research-harness-work): Research harness work 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.
- [Data scientist](https://ai-powered.com/skills/data-scientist): Data scientist is an open-source agent skill for analytics and data.
- [Datanalysis credit risk](https://ai-powered.com/skills/datanalysis-credit-risk): Datanalysis credit risk is an open-source agent skill for analytics and data.
- [Famou data analysis](https://ai-powered.com/skills/famou-data-analysis): Famou data analysis is an open-source agent skill for analytics and data.
- [Market researcher](https://ai-powered.com/skills/market-researcher): Market researcher is an open-source agent skill for analytics and data.
- [Duo proprietary data reports](https://ai-powered.com/skills/duo-proprietary-data-reports): Duo proprietary data reports is an open-source agent skill for analytics and data.

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