Shared context git skill
Use when multiple AI agents need to share durable project context through a Git-backed remote repository. This skill standardizes how agents bootstrap a shared context repo, sync before reading or writing, record facts and decisions in Markdown, prepare branch-first updates, detect conflicts, and leave a clean handoff using only standard Git CLI and bundled Bash helpers.From its SKILL.md
npx -y skills add kuil09/shared-context-git-skillAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its file declares
Copied from the file, not written here
The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
4.2 KB, 798 tokens by cl100k_base, as published. Nobody here has run it
Shared Context Git Skill
Use this skill when agents need a shared, reviewable memory outside any single chat session.
The shared memory lives in a separate Git repository made of Markdown files. Agents read the latest context before work, update it when meaningful facts or decisions change, and use Git history as the review trail.
Use This Skill For
- Bootstrapping a shared context repository with standard documents
- Syncing a local clone before reading or writing shared context
- Recording stable facts, active context, decisions, open questions, and handoffs
- Preparing branch-first context updates that can be reviewed as diffs
- Stopping safely when the local state is stale, dirty, or diverged
Core Rules
- Read before write. Fetch or sync first, then read
CONTEXT.mdbefore editing. - Keep shared memory in the repo, not only in session-local notes.
- Prefer branch-first updates. Direct pushes to the default branch should be rare and explicitly justified.
- Never overwrite conflicts automatically. If the repo is dirty or the branch has diverged, stop and reconcile.
- Separate facts from inferences. Verified facts belong in the stable sections; uncertainty stays visible in open questions or clearly labeled hypotheses.
- Record change history in commit messages, not in separate files. Use structured commit messages with Trigger/Applied/Unresolved fields.
Recommended Workflow
- If the repo does not exist yet, run
scripts/bootstrap_repo.sh. - In a local clone of the shared context repo, run
scripts/sync_context.sh. - Read
CONTEXT.mdandHANDOFF.mdif present. - If you expect to share updates, run
scripts/prepare_branch.sh --actor <name> --slug <topic>. - Update the Markdown files using the schema in references/schema.md.
- Run
scripts/validate_context.sh. - Review the diff and summarize the current state with
scripts/summarize_context.sh. - Commit and push only when the context change is meaningful and accurate.
Collaboration Modes
- Local draft only: sync, read, edit locally, validate, and stop without committing.
- Commit to branch and push: create a context branch, update docs, validate, commit, and push.
- PR proposal: do the Git work here, then hand off PR creation to provider-specific tooling outside this skill.
Repo Shape
Required documents:
CONTEXT.md
Optional documents:
HANDOFF.mdPOLICY.md
Use the templates in assets/templates/ and the detailed rules in the reference docs:
- references/schema.md
- references/update-rules.md
- references/conflict-policy.md
- references/handoff-guidelines.md
- references/git-workflows.md
Script Guide
scripts/bootstrap_repo.sh: create the initial document set from templatesscripts/check_divergence.sh: report divergence ofcontext/*branches from the base branch and flag stale branchesscripts/cleanup_branches.sh: remove merged, oldercontext/*branches locally and optionally onoriginscripts/sync_context.sh: fetch remote changes and fast-forward the base branch when safescripts/prepare_branch.sh: create or switch to a branch namedcontext/<actor>/<YYYY-MM-DD>-<slug>scripts/validate_context.sh: check required files and headingsscripts/summarize_context.sh: print a compact status summary and compaction hints
If a task needs host-specific PR creation or repo policy enforcement, keep this skill focused on the Git-native workflow and use separate tooling for the provider-specific step.
What ships with it: 36 files
112.6 KB alongside SKILL.md, 9 of them executable
.claude-plugin/
- marketplace.json165 B
agents/
- claude.yaml951 B
- codex.yaml948 B
- openai.yaml951 B
assets/
- templates/CONTEXT.md472 B
- templates/HANDOFF.md380 B
- templates/POLICY.md534 B
references/
- competitive-tools-analysis.md12.2 KB
- conflict-policy.md1.5 KB
- cto-cmo-sync-process.md5.2 KB
- git-workflows.md1.7 KB
- handoff-guidelines.md1.1 KB
- schema.md1.3 KB
- update-rules.md2.1 KB
scripts/
- bootstrap_repo.shruns1.9 KB
- check_divergence.shruns3.3 KB
- cleanup_branches.shruns4.0 KB
- prepare_branch.shruns2.5 KB
- summarize_context.shruns2.0 KB
- sync_context.shruns2.5 KB
- validate_context.shruns1.1 KB
tests/
- bootstrap_repo.bats2.8 KB
- check_divergence.bats7.5 KB
- cleanup_branches.bats8.4 KB
- prepare_branch.bats3.6 KB
- run_tests.shruns390 B
- summarize_context.bats3.6 KB
- sync_context.bats3.0 KB
- test_helper.bashruns2.5 KB
- validate_context.bats2.3 KB
- .gitmodules112 B
- LICENSE1.0 KB
- README.ja.md8.7 KB
- README.ko.md7.5 KB
- README.md7.7 KB
- README.zh.md6.6 KB