agentsclimarketplace

Shared context git skill

Skill kuil09/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

Install
npx -y skills add kuil09/shared-context-git-skill

Assembled 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

  1. Read before write. Fetch or sync first, then read CONTEXT.md before editing.
  2. Keep shared memory in the repo, not only in session-local notes.
  3. Prefer branch-first updates. Direct pushes to the default branch should be rare and explicitly justified.
  4. Never overwrite conflicts automatically. If the repo is dirty or the branch has diverged, stop and reconcile.
  5. Separate facts from inferences. Verified facts belong in the stable sections; uncertainty stays visible in open questions or clearly labeled hypotheses.
  6. Record change history in commit messages, not in separate files. Use structured commit messages with Trigger/Applied/Unresolved fields.

Recommended Workflow

  1. If the repo does not exist yet, run scripts/bootstrap_repo.sh.
  2. In a local clone of the shared context repo, run scripts/sync_context.sh.
  3. Read CONTEXT.md and HANDOFF.md if present.
  4. If you expect to share updates, run scripts/prepare_branch.sh --actor <name> --slug <topic>.
  5. Update the Markdown files using the schema in references/schema.md.
  6. Run scripts/validate_context.sh.
  7. Review the diff and summarize the current state with scripts/summarize_context.sh.
  8. 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.md
  • POLICY.md

Use the templates in assets/templates/ and the detailed rules in the reference docs:

Script Guide

  • scripts/bootstrap_repo.sh: create the initial document set from templates
  • scripts/check_divergence.sh: report divergence of context/* branches from the base branch and flag stale branches
  • scripts/cleanup_branches.sh: remove merged, older context/* branches locally and optionally on origin
  • scripts/sync_context.sh: fetch remote changes and fast-forward the base branch when safe
  • scripts/prepare_branch.sh: create or switch to a branch named context/<actor>/<YYYY-MM-DD>-<slug>
  • scripts/validate_context.sh: check required files and headings
  • scripts/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/

agents/

Keep looking

Skills are one crate of 326,422. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.