/research-core:file-safetyfrom research-core
Prevents accidental overwrites of important files, especially in data science projects with data/ and outs/ directories. Guides safe file modification, renaming, and script output integrity.
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.
_updated, _with_new_column)outs/ does not establish disposability.Never create standalone scripts solely to modify outputs from other scripts.
If modifications are needed:
Do NOT create intermediate "fixer" scripts that modify upstream outputs after the fact — this breaks the reproducibility chain between scripts and their outputs.
If you're not sure whether a file is safe to overwrite, ask:
These additional rules apply in projects with project-type: data-science or that use the script-organization conventions (numbered scripts, data/ for inputs, outs/ for outputs).
Each script writes only to its own output folder under outs/. Never write to another script's output folder.
For new lettered workflows, group producer-owned child directories under one topic root, such as
outs/15_topic/15a_threshold/ and outs/15_topic/15b_modules/. A stage may read upstream sibling
outputs, but it writes and preserves/replaces only its own child directory and completion record.
Never clear or move the shared topic root as routine cleanup of one stage. Existing flat shared
layouts retain their registered paths and explicit per-stage ownership until separately scoped
adoption; this convention does not authorize moving their files.
# Script 03_plots.qmd writes ONLY to:
out_dir <- here("outs/03_plots")
# NEVER write to another script's folder:
# here("outs/01_analysis/modified_data.rds") # WRONG
data/ is Read-OnlyScripts never write to data/. This directory contains only external/immutable inputs (raw data, collaborator files, annotations). If your code produced it, it goes in outs/.
# BAD: Creating a script to add Gene.short to another script's output
# This disconnects the file from the script that produced it
# GOOD: Downstream plotting script joins against lookup at runtime
limma_res <- readRDS(here("outs/01_analysis/limma_results_annotated.rds")) %>%
left_join(gene_name_lookup, by = "trinity_gene_id")
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
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).