Finishing a Development Branch
obra/superpowers
Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.
Commit and push the user's shared Claude config to the ~/.claude-config sync repo, rebasing first so a push never buries work from another machine.
$ npx skills add apache/magpie --skill shared-config-sync -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install apache/magpie shared-config-sync --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/apache/magpie.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/magpie-setup/skills/shared-config-sync .claude/skills/shared-config-sync && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "shared-config-sync" agent skill from https://github.com/apache/magpie/tree/main/plugins/magpie-setup/skills/shared-config-sync into .claude/skills/shared-config-sync/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "shared-config-sync", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/apache/magpie/tree/main/plugins/magpie-setup/skills/shared-config-syncType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add apache/magpie --skill shared-config-sync -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install apache/magpie shared-config-sync --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/apache/magpie.git skills-src && mkdir -p .agents/skills && cp -r skills-src/plugins/magpie-setup/skills/shared-config-sync .agents/skills/shared-config-sync && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "shared-config-sync" agent skill from https://github.com/apache/magpie/tree/main/plugins/magpie-setup/skills/shared-config-sync into .agents/skills/shared-config-sync/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "shared-config-sync", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add apache/magpie --skill shared-config-sync -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install apache/magpie shared-config-sync --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/apache/magpie.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/plugins/magpie-setup/skills/shared-config-sync .cursor/skills/shared-config-sync && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "shared-config-sync" agent skill from https://github.com/apache/magpie/tree/main/plugins/magpie-setup/skills/shared-config-sync into .cursor/skills/shared-config-sync/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "shared-config-sync", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/apache/magpie.git --path plugins/magpie-setup/skills/shared-config-sync--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add apache/magpie --skill shared-config-sync -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install apache/magpie shared-config-sync --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/apache/magpie.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/plugins/magpie-setup/skills/shared-config-sync .gemini/skills/shared-config-sync && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "shared-config-sync" agent skill from https://github.com/apache/magpie/tree/main/plugins/magpie-setup/skills/shared-config-sync into .gemini/skills/shared-config-sync/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "shared-config-sync", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install apache/magpie shared-config-syncInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add apache/magpie --skill shared-config-sync -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/apache/magpie.git skills-src && mkdir -p .github/skills && cp -r skills-src/plugins/magpie-setup/skills/shared-config-sync .github/skills/shared-config-sync && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "shared-config-sync" agent skill from https://github.com/apache/magpie/tree/main/plugins/magpie-setup/skills/shared-config-sync into .github/skills/shared-config-sync/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "shared-config-sync", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add apache/magpie --skill shared-config-sync -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install apache/magpie shared-config-sync --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/apache/magpie.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/plugins/magpie-setup/skills/shared-config-sync .opencode/skills/shared-config-sync && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "shared-config-sync" agent skill from https://github.com/apache/magpie/tree/main/plugins/magpie-setup/skills/shared-config-sync into .opencode/skills/shared-config-sync/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "shared-config-sync", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
shared-config-syncCommit and push the user's shared Claude config to the ~/.claude-config sync repo, rebasing first so a push never buries work from another machine.
Shared Config Sync is an agent skill from apache/magpie. Commit and push the user's shared Claude config to the ~/.claude-config sync repo, rebasing first so a push never buries work from another machine. Bootstraps the repo when it is missing. Never force-pushes, never rewrites pushed history, never creates a public remote, and touches nothing outside ~/.claude-config/.
Its SKILL.md is about 3.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Development. It works with Git. The repository describes itself as: Agent-assisted maintainership and development framework for Apache projects — Triage, Mentoring, Drafting (agent-authored fixes with human review), and Pairing (developer-side… The licence is Apache-2.0.
2 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit d1f8f2c. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
gitghclaudeopencodeFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use git and gh, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Shared Config Sync loads about 3.8k tokens when it runs. Until then it costs about 85 tokens; SKILL.md has 1,816 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from apache/magpie at commit d1f8f2c, republished under its Apache-2.0 licence (© apache). 1,816 words, ~3,779 tokens.
.claude/skills/shared-config-sync/SKILL.md (or your agent's skills folder).<!-- Placeholder convention (see AGENTS.md#placeholder-convention-used-in-skill-files):
<project-config> → adopting project's `.apache-magpie/` directory -->
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.
<!-- BEGIN MAGPIE BLOCK: adopter-overrides — generated from tools/dev/blocks/adopter-overrides.md -->
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.
<!-- END MAGPIE BLOCK: adopter-overrides -->
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.
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:
git@gitlab.com:me/claude-config.git") wins over everything.git@github.com:<handle>/claude-config.git, the SSH form the doc's
Setting up a fresh host
snippet uses.
<handle> comes from gh api user --jq .login (requires an authenticated gh).
The repo name is claude-config.If neither resolves (gh is missing or unauthenticated and the user gave no URL), ask the user for the remote URL rather than guessing.
Any remote the skill creates is private (see the golden rules); never public.
--force, no --force-with-lease, no --no-verify, no rewriting commits already pushed to the remote.
The sync repo is the source of truth between machines; rewriting its history can lose work from a machine that has not been pulled here yet.~/.claude-config/.
If the user's intended change is to a file in ~/.claude/ directly (not via a symlink into ~/.claude-config/), surface that and stop; they need a different action, not this skill.
The one exception is the fresh-host symlink wiring during bootstrap (ln -sfn ~/.claude-config/... ~/.claude/...), and only after the user confirms it; see
Bootstrapping a missing ~/.claude-config/.gh repo create), it always passes --private: never public, never --internal unless the user asks.
~/.claude/CLAUDE.md carries personal collaboration preferences and the scripts may reference internal paths; a public config repo leaks both.
This mirrors the doc's "a private git repository (private, not public …)" rule.--private visibility, remote URL, the files it will scaffold) and waits for explicit approval before running gh repo create or the initial git push.
Cloning an existing remote is lower-risk (it writes only into the new ~/.claude-config/ checkout) and may proceed without a separate confirmation, though the skill still reports what it cloned.~/.claude-config/. If the path exists but is not a git working tree, stop and surface it; do not rm it or git init over it.
Bootstrap only ever creates a ~/.claude-config/ that was entirely absent.git fetch shows the local checkout is behind the remote, run git pull --rebase --autostash before the commit + push.
Concurrent work from another machine takes precedence; the local commit lands on top, as the example sync.sh does for the periodic pull.git commit runs.--trailer. Agent-authored commits carry the trailer the user's commit-attribution convention names, resolved per commit-attribution.md (the sync repo has no project file, so the user's choice applies, else Generated-by: <agent> (<model>)), where <agent> and <model> are the agent and model you are actually running as (e.g. Claude (Opus 4.8), OpenCode (Big Pickle)). Add it with git commit --trailer, never in the message body.
Do not hardcode either, and never use Co-Authored-By:.
Canonical wording: AGENTS.md → Commit and PR conventions.sync.sh uses flock --nonblock on ~/.claude-config/.sync.lock so two sync runs do not race.
If .sync.lock is held, do not steal the lock; surface the conflict and stop.
The other process is likely the user's recurring sync timer.~/.claude-config/Reached from Walk-through step 1 when the sync repo is entirely absent.
The goal is a working ~/.claude-config/ git checkout wired to a private remote, by cloning the default remote if it exists or creating it if not.
The skill touches nothing outside the new checkout except the confirmed fresh-host symlink wiring at the end.
Resolve the remote per The default remote: an explicit URL the user passed, else git@github.com:<handle>/claude-config.git with <handle> from gh api user --jq .login.
If neither resolves (gh missing/unauthenticated and no URL given), ask the user for the remote URL and stop until they provide one; do not guess a handle.
gh repo view <handle>/claude-config: exit 0 ⇒ exists, non-zero ⇒ does not exist.
If the error is auth/permission rather than "not found", surface it and stop rather than assuming absence.git ls-remote <url>: exit 0 ⇒ exists, non-zero ⇒ does not exist / unreachable.git clone <url> ~/.claude-config.
This low-risk path (it writes only the new checkout) may proceed without a separate create-confirmation; report the clone result.
Then continue to Step B4 — fresh-host symlink wiring and resume the sync walk-through from step 2 (typically "in sync, nothing to do").
Creating an outward-facing remote is confirm-first (golden rule).
Show the full plan and wait for explicit approval: the repo name, --private visibility, the remote URL, and the files to be scaffolded.
On approval:
Create the private remote.
gh repo create <handle>/claude-config --private --description "Personal Claude Code shared config (synced across machines)"
(no --clone, no auto-init; the local scaffold below becomes the first commit).Init + scaffold the minimal layout under ~/.claude-config/, matching the doc's
Layout and
A minimal sync.sh:
git init -b main ~/.claude-config
~/.claude-config/
├── README.md # what's in the repo + per-machine install steps
├── sync.sh # the pull/commit/push helper (chmod +x)
├── scripts/ # (empty; hooks land here as the user adopts them)
└── .gitignore # excludes .sync.lock and any *.credentials* / secretssync.sh is the verbatim script from the doc's
A minimal sync.sh
section.
.gitignore must at minimum carry .sync.lock (the flock file) so the lock is never committed.
Initial commit + push. git add the scaffolded files individually (never git add -A; see Walk-through step 5), commit with the resolved attribution trailer (via --trailer), git remote add origin <url>, then git push -u origin main.
The new (or freshly cloned) checkout only protects this host once its tracked artifacts are symlinked into ~/.claude/.
This is the one write outside ~/.claude-config/ the skill performs, and only after the user confirms.
Offer to run the
Setting up a fresh host
wiring (the ln -sfn ~/.claude-config/… ~/.claude/… block, which mvs any pre-existing real file to .bak before symlinking).
If the user declines, point them at that doc section.
Wire only the artifacts the checkout contains; on a brand-new scaffold scripts/ may be empty, so this step is often a no-op beyond CLAUDE.md.
cd ~/.claude-config and verify it is a git working tree pointing at a private remote.
~/.claude-config/,
then resume the sync walk-through from step 2.~/.claude-config/; they resolve it, then re-invoke.git fetch origin to learn the remote's current state.
Report:
git status --short),.gitignore.Decide the action. The four reachable states:
git pull --rebase --autostash first; if rebase succeeds cleanly, proceed to the commit-then-push flow.
If rebase conflicts, stop and surface — conflicts in ~/.claude-config/ are the user's to resolve, not the skill's.Pull-with-rebase (when applicable). Run git pull --rebase --autostash.
Report what changed (commits pulled, files touched).
Stage + commit (when applicable). For each modification the user approves:
git add <file> for the specific file (never git add -A or git add . — the sync repo is the user's most personal directory and git add -A risks staging an editor swap file or a .DS_Store you forgot to gitignore),git commit -m '<subject>' -m '<body>' --trailer '<trailer>' with the approved message.
<trailer> is the resolved attribution trailer (see the golden rule above) — the actual agent and model you are running as, not a hardcoded value; omit --trailer when the convention is none.Probe the gpg-agent cache first when commit.gpgsign is true: a token-backed key with a cold cache stalls this commit until gpg: signing failed: Timeout.
Surface a dialogue, or hand the user the command — see
AGENTS.md → Commit and PR conventions.
Push. git push to the upstream branch. No --force.
A rejected (non-fast-forward) push means another machine pushed after our git fetch in step 2; stop, surface, and recommend re-invoking the skill (which repeats the fetch + pull-with-rebase).
Do not retry in-flight.
Report:
sync.sh on the user's other hosts picks the change up on its next run; do not nag about this).If the changes touched a file under ~/.claude-config/scripts/ that is symlinked from ~/.claude/scripts/, also note that the change is immediately live on this host, since the symlink resolves to the modified file.
No re-cp needed.
© apache, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in plugins/magpie-setup/skills/shared-config-sync of apache/magpie.
Open the folder on GitHubat commit d1f8f2c
Shared Config Sync next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Shared Config Sync this skillapache/magpie | 110 | — | ~3.8k | Automated safety check: Pass | Apache-2.0 | |
| Finishing a Development Branchobra/superpowers | 296k | 5 repos | ~1.9k | Automated safety check: Pass | MIT | |
| Code Review ChecklistshareAI-lab/learn-claude-code | 78k | 5 repos | ~1.1k | Automated safety check: Pass | MIT | |
| Codebase Knowledge Graph Q&AEgonex-AI/Understand-Anything | 85k | 1 repos | ~1.2k | Automated safety check: Pass | MIT | |
| Code Design Rationale Investigatorcursor/plugins | 10k | 9 repos | ~2.6k | Automated safety check: Pass | None | |
| Understand Diff AnalysisEgonex-AI/Understand-Anything | 85k | 1 repos | ~1.4k | Automated safety check: Pass | MIT |
obra/superpowers
Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.
shareAI-lab/learn-claude-code
Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.
Egonex-AI/Understand-Anything
Answers questions about a codebase by searching a prebuilt knowledge graph of its files, functions, classes and dependencies, not by rereading every source file.
cursor/plugins
Digs into why code is shaped the way it is by checking git history, pull requests and connected tools in parallel, then reporting a cited read on the tradeoffs.
Egonex-AI/Understand-Anything
Reads your git changes or a pull request against a prebuilt knowledge graph of the project to explain what changed, which components are affected and what is risky.
Egonex-AI/Understand-Anything
Gives an in-depth explanation of one file, function or module by reading the project's knowledge graph and checking that the graph is still fresh.
apache/magpie
Scan the release distribution area (dist/release/<project/ when releasedistbackend = svnpubsub, or the configured distribution location), identify releases past the project's retention rule, and…
apache/magpie
Read-only audit of GitHub Actions runner compatibility for one repository, a repository set, one Apache project, or the full Apache org.
apache/magpie
Add the Release Manager's public key to the project KEYS file: check it meets the ASF strength floor, draft the KEYS diff, and emit the svn (or backend) commands and keyserver reminder for the RM to…
apache/magpie
Print a human-readable index of every skill installed for this repository, grouped by the family each one declares, with the name to invoke it by and the first sentence of its description.
apache/magpie
Draft a teaching-register comment on a GitHub issue or PR thread on the configured <upstream repo, aimed at a contributor missing context the maintainer would spell out.
apache/magpie
Show how Magpie is adopted in this repo — install method and pin, drift, wired agent targets, installed skill families, symlink health — and change that wiring from the same view.
Works with
Categories
Commit and push the user's shared Claude config to the ~/.claude-config sync repo, rebasing first so a push never buries work from another machine. Shared Config Sync is an agent skill from apache/magpie.claude-config sync repo, rebasing first so a push never buries work from another machine.
Shared Config Sync fits situations like: development work in your project.
Run `npx skills add apache/magpie --skill shared-config-sync -a claude-code`. Or copy the skill folder (plugins/magpie-setup/skills/shared-config-sync in apache/magpie) into .claude/skills/shared-config-sync in your project. Claude Code loads it when a task matches its description.
Run `npx skills add apache/magpie --skill shared-config-sync -a codex`. Or copy the skill folder (plugins/magpie-setup/skills/shared-config-sync in apache/magpie) into .agents/skills/shared-config-sync in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add apache/magpie --skill shared-config-sync -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/shared-config-sync, .gemini/skills/shared-config-sync, .github/skills/shared-config-sync and .opencode/skills/shared-config-sync in your project.
Going by SKILL.md and its folder, Shared Config Sync needs the command-line tools its instructions call (git, gh, claude and opencode).
SKILL.md contains no URLs. Its commands use git and gh, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Shared Config Sync is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.8k tokens (SKILL.md is roughly 15k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Shared Config Sync: Finishing a Development Branch (obra/superpowers, 296k stars), Code Review Checklist (shareAI-lab/learn-claude-code, 78k stars), Codebase Knowledge Graph Q&A (Egonex-AI/Understand-Anything, 85k stars) and Code Design Rationale Investigator (cursor/plugins, 10k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
apache (a GitHub organization) maintains it in apache/magpie, which has 110 GitHub stars. The repository holds 47 skills in this directory. The repository was last updated on October 6, 2026.
Source: apache/magpie on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.