> Two-phase code audit workflow for empirical research scripts. Use this skill when the user asks to review, audit, check, validate, or verify R or Python research code — especially code that processes licensed or sensitive data (WRDS, CRSP, WellDatabase, PLIDA). Also use when the user says "check my code", "review this script", "does this look right", or "audit my analysis."
npx skills add https://github.com/aspi6246/Claude-Code-Skills-for-Academics --skill code-audit
This is a two-phase audit. Phase 1 is strictly read-only — do not
execute any code. Phase 2 only proceeds with explicit user approval.
This separation matters because research code often touches licensed
datasets (WRDS, CRSP, WellDatabase, PLIDA) that have access restrictions,
and because running code on large datasets without review risks producing
results from buggy pipelines that then get embedded in manuscripts.
Read the code without executing anything. Produce a structured report
covering the sections below.
Callaway & Sant'Anna, etc.) or is vanilla TWFE flagged as problematic?
renv.lock, sessionInfo(), or equivalent)?sample date ranges, variable names repeated as strings)
Do NOT proceed to this phase unless the user explicitly says something like
"go ahead and run it", "you can execute", or "test it."
When approved:
dataset as a first step
large or exactly zero when they shouldn't be)
Present findings as a structured report with severity levels:
Examples: wrong clustering, bad merge inflating observations, post-treatment
controls, missing fixed effects.
conclusions. Examples: no duplicate check, missing parallel trends test,
hardcoded sample restrictions.
code quality or reproducibility. Examples: absolute file paths, missing
comments, inefficient code patterns.
End every audit with a Recommendations section listing concrete,
actionable fixes ordered by severity. Each recommendation should reference
the specific line(s) of code involved.
Comprehensive toolkit for creating, analyzing, and visualizing complex networks and graphs in Python. Use when working with network/graph data structures, analyzing relationships between entities, computing graph algorithms (shortest paths, centrality, clustering), detecting communities, generating synthetic networks, or visualizing network topologies. Applicable to social networks, biological networks, transportation systems, citation networks, and any domain involving pairwise relationships.
Interact with Zotero reference management libraries using the pyzotero Python client. Retrieve, create, update, and delete items, collections, tags, and attachments via the Zotero Web API v3. Use this skill when working with Zotero libraries programmatically, managing bibliographic references, exporting citations, searching library contents, uploading PDF attachments, or building research automation workflows that integrate with Zotero.
Comprehensive toolkit for creating, analyzing, and visualizing complex networks and graphs in Python. Use when working with network/graph data structures, analyzing relationships between entities, computing graph algorithms (shortest paths, centrality, clustering), detecting communities, generating synthetic networks, or visualizing network topologies. Applicable to social networks, biological networks, transportation systems, citation networks, and any domain involving pairwise relationships.
Create, analyze, and visualize complex networks and graphs in Python with NetworkX. Use when working with network/graph data structures, computing graph algorithms (shortest paths, centrality, clustering), detecting communities, generating synthetic networks (random, scale-free, small-world), reading/writing graph file formats, or drawing network topologies. Common applications include social, biological, transportation, and citation networks.
Use NeuroKit2 to build or audit reproducible research workflows for physiological time-series preprocessing, event/interval analysis, multimodal alignment, variability, and complexity. Trigger when code imports neurokit2 or needs its current APIs, schemas, and method-aware validation—not for diagnosis or device validation.
Interact with Zotero reference management libraries using the pyzotero Python client. Retrieve, create, update, and delete items, collections, tags, and attachments via the Zotero Web API v3. Use this skill when working with Zotero libraries programmatically, managing bibliographic references, exporting citations, searching library contents, uploading PDF attachments, or building research automation workflows that integrate with Zotero.
Comprehensive toolkit for creating, analyzing, and visualizing complex networks and graphs in Python. Use when working with network/graph data structures, analyzing relationships between entities, computing graph algorithms (shortest paths, centrality, clustering), detecting communities, generating synthetic networks, or visualizing network topologies. Applicable to social networks, biological networks, transportation systems, citation networks, and any domain involving pairwise relationships.
A practical, jargon-free guide to fp-ts functional programming - the 80/20 approach that gets results without the academic overhead. Use when writing TypeScript with fp-ts library.
Take aspi6246/code-audit from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.