# audit-sandbagging
An open [Agent Skill](https://agentskills.io) implementing the **Research Integrity Protocol** to prevent and detect research integrity failures, silent underperformance, and unauthorized changes in machine learning experiments.
## What it does
- **Execution rules**: Enforces faithful implementation of requested methodologies, explicit disclosure of limitations/deviations, approval before modifying experimental parameters, and preservation of unsuccessful runs and raw metrics.
- **Mandatory audit**: Guides systematic read-only inspection of source code, git history, configs, session transcripts, training logs, and checkpoints for common (non-exhaustive) ML integrity and silent-underperformance failure modes.
- **Verification**: Compares implementations against reference code and papers, cross-checks existing logs, metrics, configs, and git history, requires concrete evidence for every finding, and stays strictly read-only without running experiments.
- **Structured audit reports**: Produces evidence-backed findings with severity, file/line references, expected vs. actual behavior, observed or likely impact, recommended corrections, confidence levels, and a clear distinction between confirmed defects and suspected sandbagging.
## Installation
### Universal (`npx skills` — Claude Code, Codex, Cursor, Antigravity, Windsurf, OpenCode, etc.)
**Install into a specific project** (first move into your target repository):
```bash
cd <your-repo>/
```
Then install the skill:
```bash
npx skills add michaeltheologitis/audit-sandbagging
```
Installs the skill into `<your-repo>/.agents/skills/audit-sandbagging/` (read by Antigravity, Codex, and Cursor) and symlinks it into agent-specific folders such as `<your-repo>/.claude/skills/audit-sandbagging/` for Claude Code.
**Install globally** (run from anywhere, available across all projects):
```bash
npx skills add michaeltheologitis/audit-sandbagging -g
```
Installs the skill into your user-level skills directories (`~/.agents/skills/`, `~/.claude/skills/`, `~/.cursor/skills/`, etc.).
### Claude Code Plugin Marketplace
```text
/plugin marketplace add michaeltheologitis/audit-sandbagging
/plugin install audit-sandbagging@audit-sandbagging
```
Registers this repository as a Claude Code plugin marketplace and installs the `audit-sandbagging` skill natively without requiring Node/`npx`.
### Antigravity Plugin (Global)
```bash
git clone https://github.com/michaeltheologitis/audit-sandbagging.git ~/.gemini/config/plugins/audit-sandbagging
```
Installs the repository as a global Antigravity plugin available across all workspaces.
### Manual Skill Install
Copy [`skills/audit-sandbagging/`](./skills/audit-sandbagging/) directly into your agent's skills directory:
- Project-level (standard Agent Skills / Antigravity / Codex / Cursor): `<your-repo>/.agents/skills/audit-sandbagging/`
- Claude Code: `<your-repo>/.claude/skills/audit-sandbagging/` or `~/.claude/skills/audit-sandbagging/`
## Example prompts
- *"Audit this codebase for sandbagging without modifying any code or running experiments."*
- *"Run an `audit-sandbagging` forensic audit on this repository, git history, and training logs."*
- *"Audit our latest ablation study for silent hyperparameter changes, capacity reductions, or metric discrepancies."*
## Repository structure
```text
audit-sandbagging/
├── skills/
│ └── audit-sandbagging/
│ ├── SKILL.md # Core Research Integrity Protocol skill
│ ├── references/
│ │ └── audit-checklist.md # Detailed ML audit checks & patterns
│ └── assets/
│ └── audit-report-template.md # Structured audit report template
├── .claude-plugin/
│ ├── plugin.json # Claude Code plugin manifest
│ └── marketplace.json # Claude Code marketplace manifest
├── plugin.json # Antigravity plugin manifest
├── README.md
└── LICENSE
```
## License
[MIT](./LICENSE)