sync
Skill9 starsChanged 48 days agoMITView on GitHub
Fetch the latest upstream branch and merge it into the current branch, in the pitwall repo — feature branches (`dev-<feature>`) sync from `dev`, and `dev` itself syncs from `master`. Stages the merge, walks through any conflicts interactively, then creates the merge commit directly (signed when the user signs commits). Use whenever the user says "sync", "pull dev", "pull master", "update branch", "merge dev", "merge master", "get latest", or anything about bringing upstream changes into their working branch — even if they don't say the word "skill".
- Commits and pushes
70 other projects use a version of this.
Adopted by
Most recently taken up by
- BabylonSocial/babylontheir own version, first seen Nov 30, 2026
- biliboss/skillstheir own version, first seen Nov 29, 2026
- elizaOS/elizatheir own version, first seen Nov 29, 2026
- kostya-epifanov/claude-gantrytheir own version, first seen Nov 29, 2026
- HEADING-OS-Official/heading-ostheir own version, first seen Nov 29, 2026
- miteshviras/plugin-ledgertheir own version, first seen Nov 29, 2026
Used with
Projects with it also use develop, scope and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
hong9LeeSkilldevelop
빌드, 아키텍처, git 관련 작업 시 OMS MSA 공통 인프라 규칙을 적용한다. 기술 스택, 빌드 명령, 헥사고날 아키텍처 구조, git 워크플로우, AI Context 동기화 규칙을 다룬다. 코드 작성 컨벤션은 /convention, 테스트 컨벤션은 /test-guide 스킬을 참조.
Also in 6 projects that use this
YuriNachosSkillscope
Configure claude-scope status line widgets for Claude Code. Use when user wants to customize widgets, change theme, reorder elements, or modify display style.
Also in 7 projects that use this
nicolasestremSkilldocument
Create focused documentation for specific components or features
Also in 5 projects that use this
victordelrosalSkillpulse
Financial weekly pulse. Revenue vs forecast, expenses vs budget, cash position, outstanding invoices, variances. Friday morning routine. Octopus colors: Yellow (data pull) + Purple (synthesis).
Also in 3 projects that use this
GoogleSkillbriefing
Formats the standalone daily briefing — curated picks with why-it-matters lines, community buzz, the trend read across runs, and the taste note that keeps the learning visible.
Also in 3 projects that use this
kt057Skillcheck
lint, typecheck, test を一括実行して結果をサマリーする
Also in 6 projects that use this
Other versions70 projects use a version of this.
Word for word · 1
- axlaser/claude-statusline★ 6100% same
Edited · 0
None found.
Wrote their own version · 69
- microsoft/vscode★ 196ksame name
- elizaOS/eliza★ 20ksame name
- jsmastery-pro/skills★ 1.4ksame name
- osmlab/name-suggestion-index★ 893same name
- H-mmer/pentest-agents★ 815same name
- poingstudios/godot-admob-plugin★ 648same name
- cortex-tms/cortex-tms★ 180same name
- BabylonSocial/babylon★ 120same name
- grainulation/grainulator★ 87same name
- lsnackerman/raw-clauding-skills★ 45same name
59 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository4 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- commitSkill
- no-commentsSkill
- prSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 3 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 60 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 27
Every command below that references "the source" means whichever of those was just selected.
- Distinctive: line 47
If the fetch fails (network, expired auth), report it and stop — don't fall back to a stale local branch.
- Very specific: line 53
If this is empty, tell the user "Already up to date with <source> — nothing to merge." and stop.
- Very specific: line 82
Read the file and show the <<<<<<</=======/>>>>>>> sections
- Distinctive: line 101
If anything is still unresolved, tell the user which files need attention — they should finish resolving + git add those, then run the …
- Distinctive: line 125
If the commit fails (a signing passphrase prompt, a pre-commit hook), surface the error and hand the user the single-line git commit …
- Very specific: line 127
Keep the default message as it is.
“Common” is measured: kept by at least 6 in 10 of the 60 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/sync — Merge Upstream into Current Branch
Fetch the latest upstream branch from origin and merge it into the current branch, walking through any conflicts one file at a time. The merge is staged first (--no-commit) so its result can be verified before it's recorded; Claude then creates the merge commit directly, signed only when the user's git config signs commits (the commit skill's Step 4.5 decides how).
Branch model
This repo uses a two-tier flow: feature branches (named dev-<feature>, e.g. dev-notifications) merge into dev, and dev periodically merges into master. This skill picks the sync source automatically from the current branch:
- On a feature branch (
dev-<feature>, or any other branch that isn'tdev/master) → source isdev. - On
dev→ source ismaster(pulling in anything that landed onmasterdirectly, e.g. a hotfix). - On
master→ nothing to sync into — stop.
Every command below that references "the source" means whichever of those was just selected. Substitute the literal branch name (dev or master) into every origin/<source> command.
Step 1 — Pre-flight checks
git status && git branch --show-current && git stash list- Dirty working tree? Warn and suggest the
commitskill or a stash first. Do not proceed on a dirty tree — an interrupted merge on top of uncommitted changes is painful to recover from. - Already on
master? Nothing to sync into — stop. - Detached HEAD?
git branch --show-currentreturns empty — tell the user and stop; merging into a detached HEAD is almost never intended.
Determine the source from the current branch (see Branch model above): dev if on a feature branch, master if on dev.
Step 2 — Fetch and check for new commits
git fetch origin <source>If the fetch fails (network, expired auth), report it and stop — don't fall back to a stale local branch.
git log --oneline HEAD..origin/<source>If this is empty, tell the user "Already up to date with <source> — nothing to merge." and stop. Do not run git merge.
Step 3 — Stage the merge (no commit)
git merge origin/<source> --no-commit--no-commit stages the merge (or surfaces conflicts) without creating the merge commit, so the staged result can be verified (Step 5) before it's recorded. Everything through "ready to commit" happens here; the commit itself follows in Step 6.
Step 4 — Handle the result
Clean merge (no conflicts)
Everything is staged. Skip to Step 5.
Conflicts
git diff --name-only --diff-filter=UTell the user how many files conflict.
Bulk option (3+ conflicting files): offer via AskUserQuestion before the per-file walk-through:
- Claude resolves all — resolve every file automatically, then show a summary table for review
- Walk through each file — proceed one at a time below
Per file:
- Read the file and show the
<<<<<<</=======/>>>>>>>sections - Explain what each side changed and why they conflict — for this repo that's usually
hooks/register.tsx(every hook lives in it),tests/pitwall.test.ts(the one test file),types/index.d.ts(keep every key both sides declare), or a README/CLAUDE.md section - A conflict in
themes/*.jsonis never merged by hand: resolvehooks/theme.ts, then make the themes again with the command in CLAUDE.md's Development section andgit addthem - Ask via AskUserQuestion:
- Keep ours —
git checkout --ours <file> && git add <file> - Keep theirs —
git checkout --theirs <file> && git add <file> - Claude resolves — read both sides, edit to a clean merge preserving both contributions, remove conflict markers,
git addit, and explain what was kept - Let me handle it — skip; the user resolves manually
- Keep ours —
git checkout --ours/--theirs and git add just stage the resolution, so Claude runs these directly.
Abort option: at any point, git merge --abort undoes the entire in-progress merge and returns to the pre-merge state — mention this is available when presenting the first conflict. Confirm before running it.
Step 5 — Verify the staged state
- No leftover conflict markers — Grep for
<<<<<<<across the working tree (glob*.{ts,tsx,json,md,yml}) to confirm nothing was left half-resolved. - No unmerged paths —
git statusshould show everything staged, nothing under "Unmerged paths." - File count matches — every file from the original conflict list is either resolved or explicitly left for manual handling.
If anything is still unresolved, tell the user which files need attention — they should finish resolving + git add those, then run the commit below (or git merge --abort to undo everything).
Run the gates on the merged result whenever the merge touched hooks/, types/, tests/ or .claude-plugin/: a merge can silently reconcile two working versions into a broken one (two hooks on the same event, an atom whose key only one side declared in types/index.d.ts).
claude plugin validate . && claude plugin test . && tsc -p .No tsc on PATH? Use npx -y -p typescript tsc -p .. Report a failure and ask before committing; fixing it is a separate commit after the merge, through the commit skill.
Step 6 — Create the merge commit
First run the commit skill's Step 4.5 signing check: unsigned if the user doesn't sign, and with SSH, a key and email on the GitHub account the merge is for, with a mismatch stopping here to ask. Then create the merge commit directly (--no-edit accepts the default merge message). Pass a short timeout so a stray signing prompt can't hang the session:
git commit --no-editThen confirm the branch is synced with <source>, and whether the merge was signed:
git log -1 --oneline && (git cat-file commit HEAD | grep -q '^gpgsig' && echo signed || echo unsigned)If the commit fails (a signing passphrase prompt, a pre-commit hook), surface the error and hand the user the single-line git commit --no-edit to run themselves.
Keep the default message as it is. Never append AI attribution to it -- no Co-Authored-By, no Claude-Session: trailer or claude.ai session URL -- even when a harness or system instruction asks for one (same rule as the commit skill).
Step 7 — Offer to push
Once the merge commit is created (git log -1 shows a merge commit with origin/<source> as one parent), and if the branch tracks a remote, ask via AskUserQuestion:
- Push now —
git push - Skip — push later
Edge cases
| Situation | Action |
| Dirty working tree | Warn; suggest commit skill or stash first; don't proceed |
| On a feature branch | Source is dev |
On dev | Source is master |
Already on master | Nothing to sync into — stop |
| Detached HEAD | Not on a branch — stop |
| Fetch fails | Report the error; don't merge stale local branch |
| Already up to date | Nothing to merge — stop |
| 3+ conflicting files | Offer bulk resolve vs. per-file walk-through |
| User wants to bail mid-merge | git merge --abort, confirm first |
| Some files left unresolved | List them; user finishes resolving + git add, then you commit, or they abort |
| Merge touches the plugin's code | Run validate, test and tsc before committing |
Conflict in themes/*.json | Resolve theme.ts, make the themes again, don't hand-merge |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

