/calkit:resolve-merge-conflictsfrom calkit
Resolves Git merge conflicts in Calkit projects, handling dvc.lock, stage run records, and pipeline outputs. Use when a merge, pull, or rebase stops with conflicts.
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.
Some conflicted files record what the pipeline ran rather than what anyone wrote, so they're resolved per stage by Calkit, not by editing text.
Done by Calkit, never by hand:
dvc.lock and .calkit/stage-runs.json, in the project and any
subproject. Don't edit them or take one side whole with
git checkout --ours/--theirs: that mixes stages, or drops the records of
stages that only ran on the other side.dvc.lock entry came from.dvc.yaml, which is generated from calkit.yaml. Once calkit.yaml is
resolved, take either side (git checkout --ours dvc.yaml) and run
calkit status, which rewrites it.Done by you, with judgment: everything else, e.g., source code,
calkit.yaml, and manuscripts. When the two sides disagree about intent,
not just text, ask the user.
Prefer calkit merge BRANCH to git merge. It sets up the merge driver,
resolves what it can, and checks out DVC-tracked outputs afterwards. Most
stages merge without a conflict: one changed on one side only takes that
side.
Each needs one choice, which decides its dvc.lock entry, run record, and
Git-tracked outputs together:
ours or theirs: keep that side's result.rerun: keep neither, so calkit run reruns it.You have no terminal for the prompt, so pass choices as options:
calkit fix merge-conflicts --theirs fit --rerun figures
calkit fix merge-conflicts --prefer rerun
Name subproject stages as calkit check stage-runs does, e.g.,
sub/dvc.yaml:stage. Run it without options first to list the stages that
need a choice.
To choose, compare each side's inputs with the merged ones. If the merged
inputs match one side, keep that side. If they match neither, e.g., both
sides edited the code, the stage will rerun either way, so choose rerun.
If a stage is expensive to run, or its result is shared with others, ask the
user. During a rebase, "ours" is the branch being rebased onto, and
"theirs" is the commit being replayed.
git add the remaining files.calkit merge --continue, with any stage choices still
needed. For a rebase or cherry-pick, run calkit fix merge-conflicts,
then git rebase --continue or git cherry-pick --continue.calkit status, then calkit run if stages are stale.calkit check stage-runs to confirm every stage matches its run.What SKILL.md sets; muted values are Claude Code's defaults
8 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./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.npx claudepluginhub calkit/calkit --plugin calkitOther plugins' skills for the same job