/analysis-workflow:declare-inputsfrom analysis-workflow
Write down what an analysis task consumed: read its scripts and notebooks and list, in the task's `inputs.yaml`, the stores with the keys it used, other tasks' files and data files. Use before each PR that changes a task's code; when `analysis-workflow trace` or `check inputs` names tasks without declared inputs; or when asked to declare or update the inputs of one or several task directories.
Ships in analysis-workflow. 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.
A task's code is the record of what it consumed. This skill reads it and writes the list to <task>/inputs.yaml,
which analysis-workflow trace follows from an artifact back to its sources. It works on a human's task
directory as on an agent's, finished earlier or just now. inputs.yaml is the one file it adds or changes; nothing
else in an earlier task directory is touched.
Given several, hand each to its own subagent, with this section as its brief.
Read every script and notebook of the task, scripts/_common.py and the workflow files in workflow/ included.
Follow calls into the repo's own package and into sibling packages far enough to see which keys a called
function uses, its defaults included.
List what the code uses, not merely loads: a key or a file read into a variable that nothing refers to is left out.
outputs/ or results/, and code imported from them;data/; tracked files under the root resources/ (such as the figure conventions); or
outside the repo by absolute path (~/... for a per-user cache, such as a downloaded model).Leave out what the task writes itself, keys it wrote and then reads back, and package code (src/, sibling
packages), which is part of the environment.
Resolve a path the code builds at run time (a date, a section name, a glob) against what is on disk. Stores
read by a loop are listed once, as a glob that matches just those stores (.../sample_*.zarr), with the keys
read from each; other files read by a loop or a glob, once, as their directory.
Write the list, and nothing else, to <task>/inputs.yaml. Paths inside the repo are relative to its root; keys
are named as the store's records name them. A task that consumes nothing gets [].
- path: data/<dataset>/processed/working/<object>.zarr
keys: [obs/annot_l2, obsm/X_pca, X]
- path: data/<dataset>/processed/spatialdata/<section>.zarr
keys: [shapes/cells, tables/table/obs/sample]
- path: analysis/<dataset>/<topic>/<other_task>/outputs/<file>
- path: data/<dataset>/raw/<file>
- path: resources/figure_conventions.yaml
analysis-workflow check inputs <task directory>, and correct what it reports.
Report each case you were unsure of in one line: what it is, and why it may or may not count as used.
What SKILL.md sets; muted values are Claude Code's defaults
analysis-workflow@quadbio is listed by quadbio/claude-plugins — review the source before installing
npx claudepluginhub quadbio/claude-plugins --plugin analysis-workflowOther plugins' skills for the same job
4 skills in this plugin
/allowLift one guard hook of the analysis-workflow conventions for this session. Only the human runs it, by typing `/analysis-workflow:allow <guard>` after a guard refused something they want done./analysis-workflowConventions for analysis repos where humans and coding agents work side by side. Use when starting, running or finishing an analysis task; writing any output from an analysis script; reading or writing a shared AnnData working object; adding a dataset path or constant; starting a new analysis project or adopting these conventions in an existing repo; or reviewing an analysis pull request./trace-lineageExplain how a data artifact was made: trace a key in a shared AnnData or SpatialData store, or a file in a task's outputs, back through the tasks that produced it, and write a summary of its history. Use when asked what created an artifact, what it is based on, for its lineage or provenance, or which tasks a published artifact rests on.