Skip to main content
skill CX Codex

code-audit — Claude Code skill: what it does, how to install

code-audit audits empirical R and Python scripts through a two-stage protocol before running computations on research data.

no license ★ 165 updated 2026-08-21

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add aspi6246/Claude-Code-Skills-for-Academics --skill code-audit -a claude-code
Open on GitHub

What code-audit does

This workflow inspects data processing and econometric pipelines. The initial phase stays strictly read-only, preventing premature execution against restricted databases like CRSP or WRDS. It flags missing panel checks, inflated joins, bad controls, and invalid standard error clustering.

Execution happens only during the second stage when explicitly permitted. The assistant runs calculations against synthetic records or tiny sample extracts first, verifying coefficient stability and log convergence before any complete run.

Findings arrive structured by severity into critical bugs, warnings, and style notes, followed by code-level recommendations tied directly to line numbers.

What it helps with

  • detect observation inflation during panel data merges
  • verify standard error clustering and fixed effects choices
  • audit difference-in-differences setups for parallel trends
  • ensure script reproducibility with relative paths and fixed seeds

Example prompts for the agent

  • Audit empirical analysis script run_models.R before estimation
  • Review data cleaning logic in panel_build.py
  • Check whether instrumented variables satisfy first-stage requirements

How to install code-audit

1Skills CLI (Vercel)

npx skills add aspi6246/Claude-Code-Skills-for-Academics --skill code-audit -a claude-code

2Manually: put the files in place

~/.claude/skills/code-audit/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/code-audit/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about code-audit

How to install code-audit in Claude Code?

Run npx skills add aspi6246/Claude-Code-Skills-for-Academics --skill code-audit -a claude-code or place the definition at ~/.claude/skills/code-audit/SKILL.md.

What does code-audit do?

It guides Claude Code through a structured review of scientific code, separating passive static analysis from safe test runs on sample data.

Does the skill run research scripts immediately?

No, phase one never executes code. Claude Code asks for explicit approval before launching any test executions.

Similar skills

All skills for Science and research →

From the same set17

The whole set →
skill-writing-guide skill-writing-guide guides the creation and refinement of Claude Code skills. Turns repetitive chat workflows into reusable, properly structured instruction files. CX Codex +1 ★ 165repo stars pinboard This skill stores project notes, reminders, and ideas in PINBOARD.md. It can also list entries and move completed tasks to a Done section. CX Codex +1 ★ 165repo stars wtf Rewrites the previous answer in plain language when you did not follow it. Fires on “wtf”, “huh?” or “say that simpler”. CX Codex +1 ★ 165repo stars beamer-slides-teaching beamer-slides-teaching creates teaching decks in LaTeX Beamer using a defined set of layout conventions. Use it for lecture slides, discussion prompts, case studies, or multiple-choice questions. CX Codex +1 ★ 165repo stars r-empirical-finance Sets the R conventions your agent follows for empirical finance work: fixest regressions, DiD and IV models, Parquet loading through arrow, plots in ggplot2. CX Codex +1 ★ 165repo stars paper-editor paper-editor audits academic finance manuscripts across seven editorial stages and verifies revisions for journal submissions or R&R reports. CX Codex +1 ★ 165repo stars edmans-audit edmans-audit is a Claude Code skill that checks a finance paper's LaTeX draft against Alex Edmans' rejection framework before journal submission. CX Codex +1 ★ 165repo stars beamer-check beamer-check compiles a Beamer deck, reviews every rendered slide, then repairs the overflows, broken figures and blank frames it turns up. CX Codex +1 ★ 165repo stars

Project sponsors

Companies that keep this analytics open