No slash command · from lab-skills
Generate a publication-style processing-pipeline diagram from a small YAML spec: a flowing-backbone OVERVIEW (steps down a backbone, inputs branching in from the left, key decisions as blue annotations, output files branching right) plus an optional PER-STEP DETAIL view (one card per step showing input files -> key params/decisions -> output files). Use when the user wants to diagram, visualize, map, or document an analysis/processing pipeline or multi-script workflow; create a pipeline figure / schematic / flow diagram; or show/communicate the steps, key decisions, and input/output files of a pipeline. Spec-driven by design (you write a short YAML, not auto-parsed from code). Do NOT load for the analysis RESULT figures themselves (networks, heatmaps, trees), for generic flowcharts unrelated to a data pipeline, or for Quarto/script scaffolding (use script-organization).
Ships in lab-skills. 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.
Render a clean pipeline diagram in a flowing-backbone style (inputs branch in from the left, steps run down a tan backbone with the key decision of each step as a blue annotation, outputs branch out to the right with their file names). Spec-driven: you describe the pipeline in a short YAML file and a generic renderer draws it.
Do not use for the result figures (networks/heatmaps/trees), or for plain flowcharts with no data-pipeline structure.
scripts/<area>/ or outs/):
templates/pipeline_spec.example.yaml → pipeline.yaml.title and the
key decision (decision); add inputs/outputs for the overview and
script/files_in/files_out/params for the detail cards. Build the spec by
reading the project's numbered scripts: their input block (top of file), their
outs/XX_*/ outputs, and the genuine decisions they encode (thresholds, joins,
filters, what's assumed). Surface the real decisions — that's the point of the
blue annotations, not a restating of the title.matplotlib + pyyaml — use the project conda env):
python templates/render_pipeline.py pipeline.yaml outs/<area>/pipeline_overview --detail
Writes <prefix>.png/.pdf (overview) and, with --detail, <prefix>_detail.png/.pdf.| field | used by | meaning |
|---|---|---|
title | both | step name (bold) — required |
decision | overview | the KEY decision/assumption (blue italic). Use \n to wrap. |
inputs | overview | list of {label, kind: required|optional} (left nodes) |
outputs | overview | list of {label, file, terminal} (right nodes; file shown in monospace; terminal: true = purple end node) |
script | detail | script filename (card header) |
files_in / files_out | detail | exact file paths/names (basenames read best) |
params | detail | key params / decisions as short bullets |
Top-level: title, subtitle, optional theme: (override any palette colour, e.g.
theme: {line: '#888', blue: '#2a6'}).
decision text to the genuine choice (threshold, what's excluded, what's
assumed) — e.g. "trust an edge only if recovered in human", not "score the edges".files_in read best as basenames; the detail card puts files
and decisions on separate rows, but very long names still crowd — shorten them.templates/pipeline_spec.example.yaml (the synapse-PPI pipeline).templates/render_pipeline.py — generic renderer (overview + optional detail).templates/pipeline_spec.example.yaml — annotated example spec + schema.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 lab-skills34 skills in this plugin
/audit-projectPeriodic project health check - cross-check docs, prune conventions, find drift. Use when project documentation feels stale, before milestones, or when CLAUDE.md is getting long. Do NOT load for auditing skills (use /audit-skills) or data analysis scripts (use /audit-script).
/audit-scriptSystematic audit of data analysis scripts for bugs, analytical reasoning, data handling, style, and reproducibility. Includes domain verification phase that researches tools, file formats, and methods to catch domain-specific errors (not just code bugs). Use when auditing a script, reviewing code for correctness, checking for bugs, preparing a script for publication, or when the user says "audit this script", "review this code", "check this for bugs", or "is this script correct". Three modes: thorough (collaborative section-by-section), fast (Claude-driven with discussion), and report-only. Do NOT load for quick one-off questions about a single line or function.
/audit-skillsAudit Claude Code skills for bloat, trigger accuracy, structural quality, redundancy, and pruning opportunities. Use when skills feel bloated, before publishing to lab repo, after building several new skills, when reviewing a single newly-created skill before publishing, or when the user says "audit my skills", "review skills", "check skill quality", "audit this skill", or invokes /audit-skills. Covers both user-level (~/.claude/skills/) and project-level (.claude/skills/) skills, and supports both full-library scans and single-skill reviews. Do NOT load for auditing data analysis scripts (use /audit-script) or project documentation (use /audit-project).
/cleanup-scriptsSession-scoped script cleanup for data science projects. Checks scripts/scratch/ for working files that need consolidation into .qmd scripts, flags numbered non-.qmd files in scripts/, and verifies script-output directory correspondence. Use when finishing a coding session, when scripts/scratch/ has accumulated files, or when the user says "clean up scripts", "consolidate scratch", or "check script conventions". Lightweight and fast — reads files, no expensive computation.
/conda-envConda environment activation for Python commands. Use when running Python scripts, pip, or conda-dependent tools./data-handlingData handling best practices for R and Python data science analysis scripts. Use when writing data manipulation code, analysis pipelines, or .qmd scripts that process scientific/analytical data (e.g., filtering, joining, normalizing datasets). Do NOT load for general Python scripting, infrastructure code, or configuration management.