sync
Skill6 starsChanged 3 months agoMITView on GitHub
Update the current feature branch with the latest changes from its base branch (rebase by default, merge when asked). TRIGGER when the user says "sync with main", "update my branch", "rebase on main", "catch up with main", "pull in main", "bring this branch up to date", "merge main into this branch", "/nyann:sync". Trigger on "resolve conflicts" only when the user specifically ties it to syncing — otherwise that's a manual resolve. Do NOT trigger on "pull" alone (that's a different operation for updating main itself). Do NOT trigger on main/master/develop — those are long-lived branches and sync-skill refuses them. Do NOT trigger on commit / push / PR — those are separate skills.
50 other projects use a version of this.
Adopted by
Most recently taken up by
- microsoft/vscodetheir own version, first seen Nov 12, 2026
- thekinv21/NotificationServicetheir own version, first seen Oct 3, 2026
- GavinGreenwood/agentic-workflow-templatetheir own version, first seen Oct 2, 2026
- kapadias/nonnatheir own version, first seen Oct 1, 2026
- thekinv21/RBAC_Authenticationtheir own version, first seen Oct 1, 2026
- lurio84/claude-skillstheir own version, first seen Oct 1, 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.
bamechoSkilldevelop
开发实施阶段详细规则;进入开发实施时读取;包含执行流程、代码规范、一致性审计、方案包迁移
Also in 6 projects that use this
vltingSkillscope
Interactive planning + orchestration. Approval-gated workflow covering saga→epic→task hierarchy via progressive scoping.
Also in 6 projects that use this
kt057Skillcheck
lint, typecheck, test を一括実行して結果をサマリーする
Also in 7 projects that use this
nicolasestremSkilldocument
Create focused documentation for specific components or features
Also in 5 projects that use this
Microsoft AzureSkilltest
Also in 9 projects that use this
jdonohooSkillarchitect
Architect Vern - Systems design, scalable architecture, production-grade thinking. The blueprints before the build.
Also in 7 projects that use this
Other versions50 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 50
- microsoft/vscode★ 196ksame name
- jsmastery-pro/skills★ 1.4ksame name
- H-mmer/pentest-agents★ 984same name
- cortex-tms/cortex-tms★ 182same name
- iurykrieger/claude-bedrock★ 104same name
- jdpolasky/ai-chief-of-staff★ 104same name
- grainulation/grainulator★ 86same name
- anombyte93/atlas-session-lifecycle★ 85same name
- tomascortereal/claude-code-setup★ 62same name
- lsnackerman/raw-clauding-skills★ 44same name
40 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 repository41 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- add-team-sourceSkill
- bootstrap-projectSkill
- check-prereqsSkill
- cleanup-branchesSkill
- commitSkill
- diagnoseSkill
- diff-profileSkill
- doctorSkill
- explain-diffSkill
- explain-stateSkill
- fleet-retrofitSkill
- fleetSkill
- gen-ciSkill
- gen-claudemdSkill
- gen-dependency-updaterSkill
- gen-devcontainerSkill
- gen-templatesSkill
- gh-protectSkill
- hotfixSkill
- iac-applySkill
- iac-planSkill
- inspect-profileSkill
- learn-profileSkill
- migrate-profileSkill
- new-branchSkill
- optimize-claudemdSkill
- prSkill
- record-decisionSkill
- releaseSkill
- retrofitSkill
- route-docsSkill
- settingsSkill
- setupSkill
- shipSkill
- suggestSkill
- sync-team-profilesSkill
- undo-bootstrapSkill
- undoSkill
- wait-for-pr-checksSkill
- watchSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.
0
Common
Most of the 45 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 34
Default to rebase. Use merge when:
- Very specific: line 43
If unclear, you MUST call the AskUserQuestion tool (not plain text):
- Very specific: line 93
Read the conflicts[] array from the JSON.
- Distinctive: line 101
If the user wants to bail: git rebase --abort or git merge --abort.
“Common” is measured: kept by at least 6 in 10 of the 45 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
Wraps bin/sync.sh. Rebases (or merges) the current feature branch
onto its base, after a clean-tree + branch-safety check.
1. Pre-flight (the script does these; your job is to interpret them)
- Not a git repo (exit 2) → tell the user; stop.
- Detached HEAD / main / master / develop (exit 2) → refuse with
a clear message; suggest switching to a feature branch first
(
/nyann:branchcreates one). - Dirty working tree (status=
dirtyin JSON) → stop and tell the user to commit or stash first. Don't silently stash on their behalf —git stashis a footgun when the rebase also conflicts.
2. Choose strategy
Default to rebase. Use merge when:
- The user explicitly says "merge" (not "rebase").
- The profile's branching strategy is
gitflowand the target base isdevelop/main(shared long-lived branches — some teams ban rebase on these). - The branch has already been pushed to a shared remote and has open PRs (rebasing rewrites history; merges don't).
If unclear, you MUST call the AskUserQuestion tool (not plain text):
{
"questions": [
{
"question": "How should upstream changes be integrated?",
"header": "Strategy",
"multiSelect": false,
"options": [
{ "label": "Rebase (Recommended)", "description": "Keeps history linear; replays your commits on top of base" },
{ "label": "Merge", "description": "Preserves original commits; adds a merge commit" }
]
}
]
}3. Resolve base
bin/sync.sh picks base via: --base > @{upstream} > origin/HEAD
main. Override only when the user explicitly names a different target ("sync against develop"). Normally trust the resolution.
4. Invoke
bin/sync.sh --target <cwd> [--strategy rebase|merge] [--base <branch>] [--dry-run]--dry-run reports what would happen without mutating. Use it when
the user is cautious or you want to show them the ahead/behind count
first.
5. Interpret the output JSON
| status | meaning | what to tell the user |
up-to-date | behind == 0 | "Already up to date with <base>." No action needed. |
synced | operation completed | "Synced via <strategy>. Now <ahead> ahead, 0 behind." |
dirty | working tree had uncommitted changes | "Working tree has uncommitted changes. Commit or stash first." |
skipped | base not found locally or on origin | "Couldn't find <base> locally or on origin. Check the branch name." |
conflicts | rebase/merge halted mid-operation | See §6 — this is the tricky case. |
6. When conflicts happen
The script stops and leaves the working tree in a rebase-in-progress or merge-in-progress state. Do NOT call sync again — the script doesn't know how to resume.
Read the conflicts[] array from the JSON. For each file, offer to
help resolve it (read the file, show conflict markers, ask the user
which side to keep). When the user is done:
- For rebase:
git add <resolved-files>thengit rebase --continue. - For merge:
git add <resolved-files>thengit -c user.email=... -c user.name=... commit --no-editto finalize.
If the user wants to bail: git rebase --abort or git merge --abort.
Either returns the working tree to its pre-sync state.
When to hand off
- "Now push and PR" →
prskill. - "The conflicts are too messy, just abort" → run
git rebase --abort/git merge --abortyourself and confirm. - "Update main itself" → out of scope; tell the user
git checkout main && git pullhandles that.
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.

