/research-core:pipeline-diagramfrom research-core
Generates publication-style processing-pipeline diagrams from a YAML spec. Creates a flowing-backbone overview with inputs, steps, decisions, and outputs, plus optional per-step detail cards. Useful for documenting multi-script analysis workflows.
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.
Render a clean pipeline diagram in a flowing-backbone style: inputs branch in from the left, steps run down the center with key decisions annotated, and outputs branch right. The built-in theme is a neutral public default. Use a project or optional private style resource only when the researcher or project explicitly selects it.
Do not use for the result figures (networks/heatmaps/trees), or for plain flowcharts with no data-pipeline structure.
pipeline-diagram/SKILL.md; do not assume its templates/ directory
exists inside the current project. Confirm both bundled files before continuing:
PIPELINE_SKILL_DIR="<absolute directory containing this SKILL.md>"
test -f "$PIPELINE_SKILL_DIR/templates/pipeline_spec.example.yaml"
test -f "$PIPELINE_SKILL_DIR/templates/render_pipeline.py"
cp "$PIPELINE_SKILL_DIR/templates/pipeline_spec.example.yaml" scripts/<area>/pipeline.yaml
If either check fails, stop and report the missing installed resource rather than guessing a
project-local path.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 "$PIPELINE_SKILL_DIR/templates/render_pipeline.py" \
scripts/<area>/pipeline.yaml outs/<area>/pipeline_overview --detail
Writes <prefix>.png/.pdf/.svg (overview) and, with --detail,
<prefix>_detail.png/.pdf/.svg. The overview canvas is 14 inches wide and at least 7 inches
high (height grows with step count); detail is 13 inches wide with 2.2 inches per step plus
one inch. PNG is 300 DPI; PDF and SVG retain vector geometry.| 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; replace every illustrative value with the project's actual inputs, decisions, and outputs.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
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