shared-config-sync

shared-config-sync is a skill for Claude Code from apache/magpie. It costs 78 tokens per session (3,834 once invoked), scanned A, original, Apache-2.0.

A workflow for sending shared Claude configuration changes from a local folder to a private remote Git repository. Git is a system for tracking file changes and sharing them with other machines.

In plain words
What is it for?
Use it to pull remote changes, review local edits, create an approved commit, and push the shared configuration to its repository.
Why use it?
It helps detect local or remote changes before syncing, reducing the chance of overwriting work or pushing an outdated copy.

Skill for Claude Code ✓ vendor

Written for Claude Code: when-to-use in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

Part of the magpie-setup plugin — 12 skills shipped together

Good fit Use it to pull remote changes, review local edits, create an approved commit, and push the shared configuration to its repository.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/apache/magpie/shared-config-sync
About the project

Apache Magpie is a framework of agent-assisted workflows for maintaining Apache software projects, including issue triage, pull-request review, contributor mentoring, and security-report handling. Apache maintainers and developers use it to delegate repetitive project work to coding agents while retaining human review. Its catalogue entries are the skills, instructions, plugin, and settings that implement these workflows.

apache/magpie · 128 stars · on GitHub · magpie.apache.org

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add apache/magpie --skill shared-config-sync
Clone the repo
git clone --depth 1 https://github.com/apache/magpie

Made for: Claude Code.

Or install magpie-setup, the plugin that ships this one along with the rest of its 12 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for shared-config-sync

README.md
[![agentmods](https://agentmods.dev/badge/skills/apache/magpie/shared-config-sync/github.svg)](https://agentmods.dev/skills/apache/magpie/shared-config-sync)
Your own site
<a href="https://agentmods.dev/skills/apache/magpie/shared-config-sync"><img src="https://agentmods.dev/badge/skills/apache/magpie/shared-config-sync/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for shared-config-sync

Your own site · 80×15
<a href="https://agentmods.dev/skills/apache/magpie/shared-config-sync"><img src="https://agentmods.dev/badge/skills/apache/magpie/shared-config-sync.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,834 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00078 $0.03834
Opus 5.5 $0.00031 $0.01534
Sonnet 5.5 $0.00016 $0.00767
Haiku 4.5 $0.00008 $0.00383

Measured 3d ago against content hash 9909e8e91f7f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

shared-config-sync scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/magpie-setup/skills/shared-config-sync/SKILL.md · 216 lines

How it starts

The opening of the file, as written. The whole thing — 216 lines — stays where its author put it; the contents beside it link to each section on GitHub.

setup-shared-config-sync

This skill pushes local edits in ~/.claude-config/ to the sync repo's remote, so other machines can pull them. It is the counterpart to the periodic git pull --rebase --autostash that the framework's example sync.sh runs on a timer: that pulls upstream into the local clone; this skill pushes local changes upstream.

Adopter overrides

Before running its default behaviour, this skill consults setup-shared-config-sync.md in the personal layer (.apache-magpie-local/ when the project adopted Magpie, falling back to the main checkout's in a linked worktree, or <git-common-dir>/apache-magpie/ when Magpie is only installed; applied first, wins on conflict) and .apache-magpie-overrides/setup-shared-config-sync.md (committed, project-wide) in the adopter repo, if present, and applies any agent-readable overrides it finds. See docs/setup/agentic-overrides.md for the contract.

Hard rule: agents NEVER modify the snapshot under <adopter-repo>/.apache-magpie/. Local modifications go in the override file; framework changes go via PR to apache/magpie.


Hardcoded path

The sync repo lives at ~/.claude-config/, the convention documented in docs/setup/secure-agent-setup.md → Syncing user-scope config across machines. The path is intentionally not parameterised: the doc names one canonical location, so adopters with a sync repo elsewhere fork this skill.

The default remote

When the skill has to bootstrap a missing ~/.claude-config/ (see Bootstrapping a missing ~/.claude-config/), it resolves the remote to clone or create in this order:

Read the full file on GitHub · 216 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago Changed 9909e8e91f7f
  2. 22d ago Changed · +6 lines 2d9e07331d0d
  3. 28d ago Changed · -15 lines ffbfe0c7d42b
  4. 1mo ago Changed · +1 lines ad5c5cb6cbf7
  5. 1mo ago Changed 583eecc5d29d
  6. 1mo ago Changed · -5 tokens per session 8a53b61ee3d3
  7. 1mo ago Changed · -136 lines · -104 tokens per session d8715462e3c2
  8. 1mo ago Changed · +6 lines d1dfcd7cdeb5
  9. 1mo ago First seen · 354 lines · 187 tokens per session scan A 4b787b01a2d1

Subscribe to this mod's changes

shared-config-sync is a skill published in the GitHub repository apache/magpie (128 stars, last pushed yesterday), licensed Apache-2.0. It adds 78 tokens to every session and 3,834 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-14.