/research-core:debugging-before-patchingfrom research-core
Systematic debugging workflow that enforces diagnosis before patching. Traces data flow, prints intermediate state, and shares findings before proposing fixes.
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.
None: SKILL.md is the whole skill.
When something doesn't work or the user reports an error, diagnose first — never jump straight to writing fixes.
If the failure is in data handling — a join, a filter, unexpected NAs, a row count that changed when it shouldn't have — load the data-handling skill as well. It carries the diagnostic recipes for those; this skill only points at where to look.
When a value is wrong at step N, trace backwards:
# Before the problematic operation
cat("Input dimensions:", nrow(data), "x", ncol(data), "\n")
cat("Key column values:", head(unique(data$key)), "\n")
cat("NAs in key:", sum(is.na(data$key)), "\n")
# After the problematic operation
cat("Output dimensions:", nrow(result), "x", ncol(result), "\n")
# Before the problematic operation
print(f"Input dimensions: {data.shape}")
print(f"Key column values: {data['key'].unique()[:10]}")
print(f"NAs in key: {data['key'].isna().sum()}")
# After the problematic operation
print(f"Output dimensions: {result.shape}")
names(data) / data.columns)str(data) / data.dtypes)When possible, isolate the problem to a small reproducible example before attempting a fix.
na.rm = TRUEWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
25 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).
/audit-scriptAudit a scientific or data-analysis script, connected workflow, or publication producer for bugs, analytical validity, data handling, reproducibility, outputs, and readability. Use when reviewing code, preparing a substantial phase for scientific discussion, checking collaborator code, or investigating whether retained results can be trusted. Do not use for a quick question about one line or for project-document drift (use audit-project).
/cleanup-scriptsConsolidate scratch or exploratory code from the current work when its retained role is known. Use when the user asks to clean up scripts, when session-owned scratch files need disposition, or when a changed workflow has unclear helper/output ownership. Selecting and simplifying a complete publication or durable handoff path needs its own agreed scope. Do not use as a mandatory project-wide closeout scan or to enforce numbering, lifecycle labels, or one script format.
/conda-envConda environment activation for Python commands. Use when running Python scripts, pip, or conda-dependent tools.npx claudepluginhub musserlab/lab-claude-skills --plugin research-core