Coordinates safe staging and committing when multiple agents or people share one Git working tree, preventing accidental absorption of another owner's in-flight work.
Ships in shared-checkout-git. 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 index is shared state. Two agents editing disjoint files are fine; two agents touching the index are not.
git add -A, amend another agent's commit, or reset the shared
index to repair a collision.Do validation and review before requesting any index coordination. Never reserve main or hold other agents' commits while waiting on jobs, checks or reviews. Coordinate only overlapping files and the brief index/commit operation; disjoint work can proceed. Release any explicit hold as soon as that operation ends.
git add followed by a separate git commit is two actions, and another owner's
commit can land between them however fast you are. That absorbed two agents' work
in one day, one of them a 417-line file that ended up inside an unrelated commit.
So either run validation before staging, or hold the change unstaged until the commit is issued:
git commit -- path/one path/two # index cannot decide what you commit
A path-scoped commit takes the working-tree state of everything matching the
pathspec, so a directory in that pathspec silently widens the commit to every
modified file beneath it, including another owner's. git commit -- scripts/
intended to carry 21 files and carried 27: the extra six were a concurrent
owner's in-flight edits, which went from unstaged work in their tree to pinned
in someone else's commit. Their git status then reads clean, which is
misleading rather than reassuring, and the commit is not a valid execution pin
for either owner's change.
So enumerate the files. If the list is long enough to be tempting to collapse, that is a sign the change should be several commits.
Printing the index without reading it is a performative check, not a real one. Read the output and stop on an unexpected path.
Reading the index is also the wrong object when the commit is path-scoped,
because such a commit bypasses the index entirely. An index verified to hold
exactly the intended paths gives real confidence about a staged commit and none
at all about git commit -- <paths>; that mismatch is how the six files above
got through a check that passed. Verify what the commit will actually take:
git commit --dry-run -- path/one path/two # the resolved list, before it lands
Then compare that list against your own change set — ideally its source, such as the isolated worktree or branch the work was developed in — rather than against your memory of it. In a shared checkout the difference between the two is exactly the other owner's work.
What SKILL.md sets; muted values are Claude Code's defaults
/shared-checkout-git:shared-checkout-gitfrom shared-checkout-git
npx claudepluginhub uchicago-dsi/ai-sci-skills --plugin shared-checkout-gitOther plugins' skills for the same job