/calkit:connect-overleaf-projectfrom calkit
Connects an Overleaf document (paper, thesis, poster) to a Calkit project so figures and numbers come from a reproducible pipeline. Works in the browser via Overleaf's Calkit panel and locally via the CLI.
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.
The person writes in Overleaf, e.g., a paper, thesis, or poster, and their scripts and data are somewhere on their machine or a shared drive. The job is to connect the two: a Calkit project with the document in it, stages that make what the document shows, and the document reading those outputs instead of pasted copies. The writing stays theirs. Change only how the document includes figures and numbers.
Work in two places:
Never type passwords or tokens. If something asks the person to sign in, stop and ask them to do it.
In the Overleaf tab, open the Calkit panel from the launcher at the bottom right, which reads "Calkit: not linked" when the document isn't connected. It's in a shadow root, so it may not show in the page's accessibility tree; take a screenshot to find it.
Click "Make this paper reproducible", check the project name, privacy, and
folder, and create the project. Name the folder for what the document is,
e.g., paper only for a paper, and thesis for a thesis. A project with
several publications may keep them under pubs, e.g., pubs/paper-1 and
pubs/thesis, and presentations under presentations. The panel then
shows the project and "in sync". If the document should go in a project the
person already has, use "Use a project I already have" instead.
Without the browser extension, calkit overleaf import URL SUBFOLDER adds the
document to an existing local project, using Overleaf's Git access.
calkit clone OWNER/NAME ~/calkit/NAME
~/calkit/ is the usual place, unless the person keeps projects elsewhere,
e.g., ~/research or ~/dev.
Read the document's .tex files and list:
\includegraphics{drag.png}Then find the scripts and data that made them. Ask the person where they
keep their analysis before searching their files. Match a figure to its
script by its file name, savefig calls, axis labels, and data columns.
Don't move or delete anything in their folders; copy what the project needs.
Copy scripts into scripts/ and data into data/, then change paths in the
scripts to be relative to the project root. Where a number in the text comes
from a script, have the script write it to a results file, e.g.,
results/drag.json, rather than only printing it.
Add each script as a stage, previewing first:
calkit xr scripts/plot_drag.py --dry-run
calkit xr scripts/plot_drag.py
Check the detected inputs, outputs, and environment in calkit.yaml. Large
data belongs in DVC; see the conventions skill.
Load the package and swap each pasted figure and typed result for the output that makes it:
\usepackage{calkit}
...
The mean drag coefficient was \ckvalue{results/drag.json}{mean_cd}.
\ckfigure[width=0.6\linewidth]{figures/drag.png}
\cktable{results/summary.tex}
Remove the pasted copies the document no longer includes, and drop them from
the LaTeX stage's inputs.
Data at the start of the chain needs an origin: created_by for data the
person measured or collected, or imported_from with a public URL or DOI
for data from elsewhere. A file on their laptop or a private drive isn't
somewhere it can be imported from. Ask the person which it is; don't guess.
datasets:
- path: data/drag_data_FINAL.csv
title: Drag measurements
created_by:
- name: Their Name
email: [email protected]
A PNG or PDF can't be created by a person, since an app or script exports
it. If no script makes it, ask the person what they made it in, copy that
file into the project, e.g., figures/src/setup.svg, and add a stage that
exports it. Inkscape SVGs and GIMP files are exported as the pipeline runs;
anything else is a manual step, which asks the person to export it again
when its file changes:
pipeline:
stages:
export-setup:
kind: inkscape-export # or gimp-export
source_path: figures/src/setup.svg
outputs:
- paper/setup.png
export-diagram:
kind: manual-step
message: In PowerPoint, export paper/diagram.png from slide 2
open:
app: PowerPoint
path: figures/src/diagram.pptx
inputs:
- figures/src/diagram.pptx
outputs:
- paper/diagram.png
calkit run --save --overleaf -m "Make the drag figure from its script"
calkit check repro
Then, in the Overleaf tab:
\ckvalue or \ckfigure to confirm it traces back to its stage
and data.Tell the person what you connected, what you asked them about, and anything left without an origin.
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./Other plugins' skills for the same job