/calkit:conventionsfrom calkit
Defines Calkit project conventions: calkit.yaml structure, environment types, pipeline stages, CLI commands, and version control patterns. Loads automatically in Calkit projects.
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.
Calkit is a tool for research project management focused on automation and
reproducibility—enabling continuous delivery for research.
It provides a unified
interface over Git (source control) and DVC (data versioning), and adds
environment management and pipeline orchestration on top. The central artifact
is calkit.yaml, the project's metadata database.
calkit.yaml filecalkit.yaml lives at the repo root and contains:
requirements—what must be true of the machine before anything runs
(apps on PATH, environmental variables, setup steps, machine
properties like CPU count); formerly called dependencies, which
still worksenvironments—computational environments (Python venvs, Conda, Docker,
R, Julia, MATLAB, etc.)pipeline.stages—the reproducible pipelinequestions—research questions, hypotheses, and answers backed by
evidence the pipeline producesnotebooks—registered Jupyter notebooksdatasets, figures, publications—versioned project outputsprocedures, calculations, references—supporting metadatashowcase—elements shown on the project's Calkit homepageA minimal example:
environments:
main:
kind: uv
path: pyproject.toml
pipeline:
stages:
process-data:
kind: python-script
script_path: scripts/process.py
environment: main
inputs:
- data/raw.csv
outputs:
- data/processed.csv
Every pipeline stage must reference a named environment defined in
environments. Calkit enforces this to ensure reproducibility. Supported
kinds:
| Kind | Spec file |
|---|---|
uv | pyproject.toml (with uv.lock) |
uv-venv | requirements.txt |
venv | requirements.txt |
conda | environment.yml |
pixi | pixi.toml |
docker | (image name, no local spec file needed) |
renv | renv.lock |
julia | Project.toml |
matlab | (no spec file) |
ssh | (remote host config) |
slurm | (HPC cluster config) |
For Python, default to a uv project environment, created with
calkit new uv-env -n <name> <packages>, which writes pyproject.toml and
uv.lock; set the Python version with --python, which becomes
requires-python. Use uv-venv only for a project that already has a
requirements.txt it should keep.
Example environment definitions:
environments:
py:
kind: uv
path: pyproject.toml
texlive:
kind: docker
image: texlive/texlive:latest-full
r-env:
kind: renv
path: renv.lock
Calkit generates a lock file for each environment under .calkit/env-locks/
and uses it as a DVC dependency. If the environment changes, affected stages
are automatically flagged for re-run.
Stages live under pipeline.stages in calkit.yaml. Every stage requires
kind and environment. Most stages also declare inputs and outputs.
| Parameter | Type | Notes |
|---|---|---|
kind | string | Required. See stage kinds below. |
environment | string | Required. Must match a key in environments. |
inputs | list | Files this stage reads. Changes trigger re-run. |
outputs | list | Files this stage writes. Stored in Git or DVC. |
wdir | string | Working directory (relative to repo root). |
always_run | bool | Force re-run even if nothing changed. |
iterate_over | list | Parameterize the stage over a list of values. |
description | string | Human-readable description. |
See the calkit.yaml schema for details.
The most common stage kinds are python-script, shell-script, shell-command,
jupyter-notebook.
By default, outputs are stored with DVC (large file storage). Use
storage: git for small files that belong in version control:
outputs:
- data/processed.csv # DVC (default)
- path: data/meta.json
storage: git # committed to Git
- path: results/summary.txt
storage: git
delete_before_run: false # don't delete before re-running
- path: results/runs
storage: git
ignore: ["*.log"] # neither stored nor part of the output
Use from_stage_outputs to declare that a stage depends on another stage's
outputs rather than listing individual files:
stages:
collect-data:
kind: python-script
script_path: scripts/collect.py
environment: main
outputs:
- data/raw.csv
process-data:
kind: python-script
script_path: scripts/process.py
environment: main
inputs:
- from_stage_outputs: collect-data
outputs:
- data/processed.csv
stages:
train-model:
kind: python-script
script_path: scripts/train.py
environment: main
args:
- "--model={model}"
iterate_over:
- arg_name: model
values:
- linear-regression
- random-forest
inputs:
- data/processed.csv
outputs:
- models/{model}.pkl
Calkit compiles calkit.yaml into dvc.yaml when calkit run is called.
Do not edit dvc.yaml directly—it is a generated file. The authoritative
pipeline definition is always calkit.yaml.
DVC handles:
calkit push / calkit pull| Command | What it does |
|---|---|
calkit run | Run the pipeline (skips unchanged stages) |
calkit run --force | Force re-run all stages |
calkit status | Show which stages are stale |
calkit xr <file> | Auto-detect stage type, env, I/O, add to pipeline |
calkit xenv -n <env> -- <cmd> | Run a command in a named environment |
calkit push | Push Git commits and DVC-tracked files to remotes |
calkit pull | Pull latest code and data |
calkit save | Auto-add, commit, and push (Git + DVC) |
calkit commit -m "msg" | Commit all tracked changes (Git + DVC) |
calkit add <file> | Add a file to version control |
calkit check env --name <env> | Verify an environment matches its spec |
calkit new | Create new project objects (notebook, dataset, etc.) |
calkit new question "<text>" | Record a research question |
calkit list questions | List questions with what each has and lacks |
calkit show question <n> | Show a question with its answer rendered from evidence |
calkit check questions | Check answers against current evidence |
calkit xr: The fastest path to a reproducible stagexr ("execute and record") is the recommended way to add scripts and
notebooks to the pipeline for the first time. It:
.py, .ipynb, .R,
.jl, .m, .sh, .tex)calkit.yaml and dvc.yamlcalkit xr scripts/run.py # Python script
calkit xr notebooks/analysis.ipynb # Jupyter notebook
calkit xr paper/paper.tex # LaTeX document
calkit xr scripts/run.R # R script
calkit xr scripts/run.py --input data/raw.csv --output results/out.csv
calkit xr scripts/run.py --environment main
calkit xr scripts/run.py --dry-run # see what would happen without running
Research in a Calkit project is organized around the questions list in
calkit.yaml. Follow this workflow:
calkit new question. If the user hasn't stated
one, ask them for it rather than inventing it. Add a hypothesis if
they have one.answer citing that evidence. Read numbers out of results
files and put them in the prose with {name} placeholders instead of
typing them in, either one per kind: value entry, or several from one
file with a kind: result entry's values mapping of names to keys.calkit check questions,
then use the check-questions skill to judge whether each answer's
wording still follows from its evidence.See the Calkit docs on questions for the full evidence schema.
.calkit/env-locks/): committed to Git, act as DVC dependenciesdvc.yaml: generated by Calkit—don't edit manually.calkit/: Calkit's internal directory—commit its contents unless they
are large generated filesCalkit's data model emphasizes provenance.
Any derived artifact (produced by a script, notebook, etc.) should be
produced by the pipeline so we can know if it's up-to-date w.r.t. its
inputs and process definition.
Imported artifacts should have attribution.
Primary artifacts should have attestation, including AI-generated content,
though the human is considered the author and AI is noted with a with_ai field.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub calkit/calkit --plugin calkit8 skills in this plugin
/add-pipeline-stageAdd a single new stage to an existing Calkit pipeline. Use when the user invokes `/calkit:add-pipeline-stage` or asks to add a script, notebook, or command to the pipeline./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./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.Other plugins' skills for the same job