/research-core:cleanup-scriptsfrom research-core
Consolidates scratch or exploratory code when its retained role is known. Helps decide whether to keep, integrate, preserve as evidence, or remove session-owned files.
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.
Clean up only the files and workflows in the agreed scope. The goal is to leave retained work discoverable and runnable without tidying away useful exploration, provenance, or outputs.
Read the project instructions and registered active-file/scientific authority before moving or deleting code. Identify the session-owned files, their purpose, current consumers, producing outputs, and any related plan/Issue. Preserve unrelated dirty work.
Do not infer status from a path name. scratch/ or exploratory/ may contain disposable trials,
influential investigation, a retained terminal report, or code still cited by a document. For each
candidate, determine:
Use the project's actual conventions; do not impose numbered scripts, QMD, lifecycle headers, or a
fixed scripts//outs/ correspondence on projects that do not use them.
Helpers should exist because they reduce a researcher's burden, not because every unnumbered file
must leave scripts/. Do not split sole-use logic when its calling workflow is clearer inline. Do
not renumber or rename working producers merely to regularize an inventory.
Before consolidating code, trace its outputs and downstream uses. Generated, ignored, or orphaned does not mean disposable. Moving or archiving a producer does not move, recreate, or invalidate its outputs automatically.
For retained scientific use, verify that the relevant producer, launcher, helpers and configuration
match a focused commit, and record that identity with the inputs, command, seed and environment in
the project's established provenance record. Reuse an existing commit when the source is unchanged;
unrelated dirty work does not block the scoped source. Keep scripts and outputs separate rather than
copying a generic source bundle into outs/, and preserve any specialized custody record the project
already requires. Cleanup does not automatically commit scientific source merely because files were
inspected or moved. The lead or assigned worker handles a needed scoped commit or push only when
the task and user or project instructions authorize it; the analytical script must never stage, commit or push.
Owned draft or experimental code may be committed before scientific acceptance. A retained
scientific run still requires a settled approach and source that matches the recorded commit.
If a later run is needed, use a fresh destination unless the existing destination is confirmed producer-owned and disposable. Cleanup itself does not authorize a scientific rerun.
Show the concrete stay/integrate/preserve/remove mapping when a destructive or consequential move needs a decision. Within already authorized, reversible session work, apply routine consolidation without reopening settled implementation choices.
After editing:
Report the files consolidated, retained, removed, or left unresolved; affected consumers; checks; and limits. Do not create a project-wide audit report, rebuild summaries, or scan unrelated scripts as a cleanup side effect.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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