/calkit:add-pipeline-stagefrom calkit
Adds a single stage to a Calkit pipeline, wiring environments, inputs/outputs, and storage mode. Use when extending a data pipeline with a new script, notebook, or command.
Ships in calkit. 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.
Add a single new stage to an existing Calkit pipeline—wiring up the right environment, inputs, outputs, and storage mode.
Read calkit.yaml to understand what environments are already defined (you
will reuse one if it fits) and what stages already exist and what they output
(your new stage may depend on them).
calkit xrUse xr when the stage is a script or notebook file (.py, .ipynb, .R,
.jl, .m, .sh, .tex) and you want auto-detection of I/O and
environment.
calkit xr scripts/new-stage.py --dry-run # preview first
calkit xr scripts/new-stage.py # run for real
Override detected I/O or environment if needed:
calkit xr scripts/new-stage.py \
--input data/processed.csv \
--input config/params.yaml \
--output results/output.csv \
--environment main
After running, inspect the new stage in calkit.yaml to confirm I/O is
correct.
Write YAML directly when the stage is a shell command, or when you need
iterate_over, specific storage modes, or other fine-grained control.
| File type | Stage kind |
|---|---|
.py | python-script |
.ipynb | jupyter-notebook |
.sh | shell-script |
| Inline command | shell-command or command |
.tex | latex |
.R | r-script |
.jl | julia-script |
.m | matlab-script |
docker run ... | docker-command |
pipeline:
stages:
# ... existing stages ...
new-stage-name:
kind: python-script
script_path: scripts/new-stage.py
environment: main # must match a key in environments:
inputs:
- data/processed.csv
outputs:
- results/output.csv
If the new stage reads files produced by an existing stage, declare them as inputs. List files explicitly, or depend on all outputs of a prior stage:
inputs:
- data/processed.csv # explicit file
- from_stage_outputs: process-data # all outputs of that stage
If an existing stage reads files your new stage now produces, update that stage's inputs too.
git—small or text files collaborators should see without calkit pull
(PDFs, summary CSVs, HTML reports)dvc (default)—large or binary filesoutputs:
- results/large-matrix.npy # DVC (default)
- path: results/summary.csv
storage: git
- path: results/report.html
storage: git
delete_before_run: false # keep old version if stage is skipped
calkit run # run full pipeline
calkit run new-stage-name # run only this stage
calkit status # check what's stale
calkit commit -am "Add new-stage-name stage"
environments. Run
calkit check env --name <env> to verify.dvc.yaml: Don't—it's auto-generated from calkit.yaml.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
8 skills in this plugin
/build-paper-pipelineBuild the pipeline stages a manuscript's TODO comments ask for, working backwards from the writing to the analysis behind it, and keep the project's questions and answers matching the paper. Use when the user invokes `/calkit:build-paper-pipeline`, leaves TODO comments in a manuscript for an agent to address, or asks to work backwards from the writing to the project behind it. Only for TODOs in a manuscript, and only in a Calkit project; not TODO comments in source code, not GitHub issues, not a task list in someone's notes./check-questionsReview a Calkit project's questions and answers against their evidence. Use when the user invokes `/calkit:check-questions`, asks whether the project's answers are still true, or after a pipeline run changes results that answers cite./check-reproducibilityCheck whether a project is fully traceable, and fix what isn't, including numbers typed into a manuscript that no pipeline output accounts for. Use when the user invokes `/calkit:check-reproducibility`, asks whether a project is reproducible, or asks where a number in a paper came from./connect-overleaf-projectConnect an Overleaf project, e.g., a paper, thesis, or poster, to a Calkit project and the scripts and data behind it, so its figures and numbers come from a pipeline. Use when the user invokes `/calkit:connect-overleaf-project`, asks to connect an Overleaf project (often one open in their browser) to Calkit, or asks to make an Overleaf document reproducible. Not for only signing in to Overleaf./conventionsCalkit conventions and foundational context. Load whenever working in a Calkit project—defines calkit.yaml structure, environments, pipeline stages, CLI commands, and version control conventions./create-pipelineConvert an existing repo with ad hoc scripts into a fully reproducible Calkit pipeline. Use when the user invokes `/calkit:create-pipeline` or asks to make a project reproducible end-to-end.npx claudepluginhub calkit/calkit --plugin calkitOther plugins' skills for the same job