/analysis-workflow:trace-lineagefrom analysis-workflow
Explain 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.
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.
One artifact per report: a key in a store, or a file.
From the analysis repo, run
analysis-workflow trace <store> <key> # or: analysis-workflow trace <file>
It prints the tasks on the path as JSON: each with its id, author and date, what it made on the path and what
it consumed that no task made; and an edge per pair of tasks, listing what one took from the other. If it names
tasks without declared inputs, say which, offer to run the declare-inputs skill on them, and stop: a trace is
only as complete as the declarations it follows.
Read the README of each task on the path for its opening sentence.
Write the report in exactly this form.
## <key> in <store>
Written by <task> (<author>, <date>): <clause from the task README's opening sentence>.
History, oldest first
1. <task> (<author>, <date>): from <inputs used>, giving <keys or files written>.
2. ...
Source data: <files under data/<dataset>/raw/, data/<dataset>/resources/ or the root resources/, or outside the repo>
No record: <artifacts on the path that no record covers, or "none">
Print the report, and save it where the human says if they name a path.
The summary states what the trace and the READMEs say, nothing more. An artifact marked no record, or a task
that is not in this checkout, is listed as that.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
analysis-workflow@quadbio is listed by quadbio/claude-plugins — review the source before installing
npx claudepluginhub quadbio/claude-plugins --plugin analysis-workflow4 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./declare-inputsWrite 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.