/research-core:audit-scriptfrom research-core
Audits scientific or data-analysis scripts for bugs, analytical validity, data handling, reproducibility, outputs, and readability. Use when reviewing code for publication or checking collaborator work.
Ships in research-core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
An audit prepares evidence for scientific discussion. It does not accept a method, result, phase, or manuscript claim. Calibrate depth to the consequences, uncertainty, anomalies, novelty, and existing project gates.
Read the project instructions and registered active-file/scientific authority before opening scripts or data. Confirm the host, checkout, environment guidance, dirty state, and which outputs must be preserved. Identify the scientific question, the intended use of the result, and any specific concern already raised.
Do not assume the filename supplied by the user is the whole audit unit. For a substantial phase, trace the connected retained workflow:
Organize review around conclusions and data flow. Account for each contributing producer without creating one worker, checklist, or permanent report per script. A terminal figure or report is a real output even if no later script reads it.
If the user asks about one bounded script, keep the scope bounded unless evidence shows that a connected producer/helper can change the answer. Explain any necessary expansion and its benefit.
Decide which combination of static inspection, small diagnostics, fixtures, execution, equivalence comparison, domain research, and independent review can distinguish the plausible failure modes. Reuse recent valid evidence for unchanged code.
Normally obtain an independent perspective for substantial scientific work. A lead reviewing worker-authored code can provide it; lead-authored, consequential, unfamiliar, or complex work usually benefits from a fresh reviewer. Keep small or tightly coupled review local. Choose the reviewer count and tools from separable work and lead review capacity, without fixed fan-out. The optional auditor prompt can brief a bounded cold read.
Research unfamiliar tool, file-format, library, or method semantics when correctness depends on them. Prefer primary documentation and record the exact unresolved assumption. Familiar operations do not require a ceremonial web search or a comprehensive domain checklist.
Before running anything, state the failure being tested, the expected discriminating evidence, and the authorized inputs/outputs. Use the project environment. Do not rerun expensive science, replace retained outputs, install dependencies, or launch jobs merely because an audit is active. Use a fresh or confirmed disposable destination when execution is appropriate.
Read the main workflow in execution/data-flow order and inspect helpers where they are called. Evaluate what is relevant from these connected questions.
outs/ or replace an existing specialized custody record.For collaborator code, judge the intended scientific purpose and operating context. Do not impose one researcher's preferred directory, numbering, Quarto, or documentation patterns as universal correctness.
For each consequential candidate finding, determine whether it actually occurs in the intended use case and what it changes. Run a focused diagnostic when authorized and useful; otherwise label the finding as static or unverified. Separate:
Severity follows consequence, not aesthetics. Do not turn theoretical edge cases into action items, and do not recommend a more complex fix unless it reduces a plausible risk.
For substantial phase work, preserve one concise durable audit record in the appropriate existing plan, Issue, or audit report. It should contain:
Create a separate report only when it will be a useful handoff or project record. A small review can stay in the task/plan discussion. Worker notes are inputs to the integrated record, not a required permanent artifact of their own.
Hand back the scientific question, approach, principal findings, actual data-flow path, and the plots/tables or examples that matter. Explain influential exploration and dismissed results in proportion to their effect. Distinguish code defects, method choices, interpretation questions, and presentation issues.
The subsequent joint review proceeds in this order: what was done, what it means, whether the approach is scientifically right, and then whether the code implements it faithfully. Invite the scientist's interpretation. A passing audit or “no findings” supplies neither scientific acceptance nor permission for downstream work.
After substantive fixes or investigation, reassess the integrated updated result and downstream basis. Reuse still-valid evidence; do not present only the latest changed script. Report actual checks and limits, and stop when additional checks would repeat the same evidence rather than change confidence.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
scientific-audit, code-review, reproducibility, data-analysis
npx claudepluginhub musserlab/lab-claude-skills --plugin research-core25 skills in this plugin
/analysis-distillationDistill exploratory or complex scientific analysis into the smallest readable workflow that supports a phase review, paper, report, or durable handoff. Use when a settled phase result needs consolidation, or selected results need publication-ready code, a newcomer reproduction route, or a maintained analysis path. Do not use to choose an unresolved scientific method, perform ordinary session cleanup, or rewrite a working pipeline merely to impose a preferred structure.
/analysis-review-dashboardBuild or refresh a browser dashboard for independently reviewing a scientific analysis, from a short workflow to a branching pipeline. Organize existing evidence into a pipeline overview, scientific task pages and complete script reviews with file and object previews. Use when the user asks for an analysis review dashboard or linked pipeline/task/script pages. Do not use for a task-status dashboard, source-code distillation alone, or a script audit alone.
/audit-projectReview project documentation, authority, navigation and workflow drift; propose careful, reversible consolidation when useful. Use for project health or documentation reconciliation, not script correctness (audit-script) or skill quality (a separate maintainer audit; use plugin-feedback for a student plugin report).
Other plugins' skills for the same job