Skip to main content
skill CX Codex

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

code-sweep audits research code folders against paper figures, tables, and raw data before paper submission. It flags inconsistencies and proposes confirmed fixes one by one.

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-sweep -a claude-code
Open on GitHub

What code-sweep does

The skill verifies alignment across .Rmd analysis scripts, generated assets, and TeX manuscripts. It inspects YAML metadata headers, verifies that referenced input and output paths exist, and traces \includegraphics and \input calls inside Paper/main.tex to confirm that active scripts account for every figure. Discrepancies are tagged as either MUST-FIX or SUGGESTED.

Execution safety is tested by purling active scripts with knitr and running a 120-second dry run on downsampled data. It also monitors deterministic execution, requiring an explicit set.seed() whenever random sampling functions appear in code.

Without a Code/ directory present the skill halts immediately, and full registry reconciliation relies on build_registry.R provided by script-registry.

What it helps with

  • detect missing source scripts for figures cited in TeX files
  • dry-run R markdown analysis scripts to catch runtime errors
  • locate unseeded random variables across analytical pipelines
  • reconcile missing input datasets and outdated generated outputs

Example prompts for the agent

  • /code-sweep
  • /code-sweep --no-dryrun
  • run a code sweep before paper submission

How to install code-sweep

1Skills CLI (Vercel)

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

2Manually: put the files in place

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

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

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

Questions about code-sweep

How to install code-sweep in Claude Code?

Run npx skills add aspi6246/Claude-Code-Skills-for-Academics --skill code-sweep -a claude-code in your terminal.

What does code-sweep do?

It performs an automated milestone audit of empirical research code, finding drift across scripts, metadata registries, generated figures, and TeX drafts.

What is the relationship between code-sweep and script-registry?

The skill extends script-registry by reusing its YAML schema, directory rules, and the build_registry.R builder while adding status flags and seed verification.

Similar skills

All skills for Science and research →

From the same set17

The whole set →
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 script-registry script-registry maintains an R Markdown script catalog across academic projects, tracks data dependencies, and prevents duplicate analysis files. CX Codex +1 ★ 165repo stars spin-up The spin-up skill gathers project context before a coding session, including Git state and notes from recent work. Use it to pick up where the last session stopped. CX Codex +1 ★ 165repo stars wrap-up Automatically saves everything you did in a session before moving to the next one. Triggers on 'wrap up' or similar cues — creates session logs, updates project notes, saves changes to Git. CX Codex +1 ★ 165repo stars data-profiler data-profiler enforces a structured R exploratory protocol for empirical datasets. It verifies observation units, missing patterns, and panel structure before any regression runs. CX Codex +1 ★ 165repo stars top5-framing top5-framing is a Claude Code skill that assesses how broadly an economics or finance paper’s argument reaches. It activates for draft reviews and reframing abstracts, introductions, or journal pitches. CX Codex +1 ★ 165repo stars glossary A per-project dictionary in GLOSSARY.md covering definitions, abbreviations and command phrases the agent carries out on a single word. CX Codex +1 ★ 165repo stars canvas-lms-api The canvas-lms-api skill guides Python work with the Canvas LMS REST API, from updating course modules and pages to uploading files. Use it to build or troubleshoot course content sync scripts. CX Codex +1 ★ 165repo stars

Project sponsors

Companies that keep this analytics open