git-sync
Skill572 starsChanged 39 days agoMITView on GitHub
Sync the current branch in one pass — commit the working tree as one commit per logical change (in the host repo's commit format, or the super-board writing standard), gate Supabase schema changes, merge-pull, resolve conflicts hunk by hunk, then push without force. Use when the user runs /git-sync or says "git-sync", "sync", "commit and push", "pull and push", or "sync my branch".
- Reads credentials
- Commits and pushes
7 other projects use a version of this.
Adopted by
Most recently taken up by
- IvanLi-CN/agent-toolkittheir own version, first seen Oct 15, 2026
- solplum/agent-git-workflow-skillstheir own version, first seen Oct 15, 2026
- ViktorSoroka07/claude-delivery-skillstheir own version, first seen Sep 28, 2026
- mgiovani/cc-arsenaltheir own version, first seen Sep 25, 2026
- Ldxs001/maby_skillstheir own version, first seen Aug 2, 2026
- ariffazil/arifOStheir own version, first seen May 11, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- ariffazil/arifOS★ 53same name
- kunwl123456/zeroclaw-skills-collection★ 27same name
- mgiovani/cc-arsenal★ 8same name
- solplum/agent-git-workflow-skills★ 3same name
- IvanLi-CN/agent-toolkit★ 0same name
- Ldxs001/maby_skills★ 0same name
- ViktorSoroka07/claude-delivery-skills★ 0same name
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 repository9 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- pr-security-reviewSkill
- super-boardSkill
- super-buildSkill
- super-collectSkill
- super-qaSkill
- super-reviewSkill
- ui-refine-loopSkill
- visualSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. 0 are common, 5 are distinctive, and 13 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
13
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 8
Commit what is in the working tree, pull, push, report.
- Very specific: line 9
Stop and tell the user when a step says stop.
- Very specific: line 14
Run git status, git branch --show-current and git rev-parse --abbrev-ref @{upstream}.
- Very specific: line 15
Run git fetch and git rev-list --left-right --count HEAD...@{upstream} for ahead/behind.
- Distinctive: line 16
Stop on a detached HEAD.
- Very specific: line 17
Stop when a merge, rebase, cherry-pick or revert is in progress that this run did not start (.git/MERGE_HEAD, .git/rebase-merge, …
- Distinctive: line 23
Read the diff (git diff, git diff --staged, untracked files) and group it into logical changes.
- Very specific: line 27
NEVER stage secrets: .env* (except .env.example), keys (*.pem, *.key, id_rsa*), credential or token files, or a diff line that holds a key.
- Very specific: line 32
Run the Supabase gate (section 3) before any commit that touches supabase/.
- Very specific: line 33
Commit each group. Let the hooks run.
- Distinctive: line 43
Keep any attribution trailer the session asks for.
- Very specific: line 54
When the CLI and local stack are up, run supabase migration list --local.
- Very specific: line 55
Run supabase db advisors (or the Supabase MCP get_advisors) when available.
- Distinctive: line 61
Run git pull --no-rebase. Merge, never rebase.
- Distinctive: line 62
No conflict: go to Push.
- Very specific: line 65
NEVER use -X ours, -X theirs, git checkout --ours/--theirs on a whole file, or delete a side to make the conflict go away.
- Very specific: line 68
Run the host's fast checks before concluding the merge: typecheck, lint and tests as the host's AGENTS.md, CLAUDE.md or package.json …
- Very specific: line 77
NEVER --force or --force-with-lease.
“Common” is measured: kept by at least 6 in 10 of the 4 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
/git-sync
Commit what is in the working tree, pull, push, report. One step per line.
Stop and tell the user when a step says stop. NEVER force push, rebase shared history, or
skip a hook (--no-verify).
1 · Look
- Run
git status,git branch --show-currentandgit rev-parse --abbrev-ref @{upstream}. - Run
git fetchandgit rev-list --left-right --count HEAD...@{upstream}for ahead/behind. - Stop on a detached HEAD.
- Stop when a merge, rebase, cherry-pick or revert is in progress that this run did not start
(
.git/MERGE_HEAD,.git/rebase-merge,.git/rebase-apply,.git/CHERRY_PICK_HEAD). - Nothing to commit and nothing ahead or behind: say "in sync" and stop.
2 · Commit
- Read the diff (
git diff,git diff --staged, untracked files) and group it into logical changes. One change, one commit. - Stage each group by explicit path (
git add -- <path>…). NEVERgit add -A,git add .orgit commit -a. - NEVER stage secrets:
.env*(except.env.example), keys (*.pem,*.key,id_rsa*), credential or token files, or a diff line that holds a key. Stop and warn, naming the file. - A file that looks like someone else's work in progress (another task's half-edit, a file you can't explain from this conversation): leave it unstaged and list it in the report.
- Changes already staged by the user are one group; commit them as they are.
- Run the Supabase gate (section 3) before any commit that touches
supabase/. - Commit each group. Let the hooks run; a failing hook is a stop, not a retry with
--no-verify.
Commit format. The host wins.
- The host's
AGENTS.md,CLAUDE.mdorCONTRIBUTING.mddefines a commit format: follow it (for example#N: type: description). - Otherwise use section "1 · Commit" of the super-board writing standard
(
.claude/skills/super-board/references/writing-standard.md): emoji,[type], scope, subject, 1–4 bullets,Closes #Nwhen the commit finishes a ticket. - Keep any attribution trailer the session asks for.
3 · Supabase gate
Runs only when a commit group touches supabase/ (migrations, schema, functions).
- The
supabaseskill is installed: follow its "Making and Committing Schema Changes" section and skip the rest of this list. - Each schema change has its own migration file named the way
supabase migration new <name>names it (supabase/migrations/<timestamp>_<name>.sql). A schema edit with no migration is a stop. - When the CLI and local stack are up, run
supabase migration list --local. - Run
supabase db advisors(or the Supabase MCPget_advisors) when available. - An advisor error is a stop. Warnings go in the report.
- CLI or stack not available: say which checks were skipped and why, then continue.
4 · Pull
- Run
git pull --no-rebase. Merge, never rebase. - No conflict: go to Push.
- Conflict: use the
resolving-merge-conflictsskill when it is installed. - Without it, resolve hunk by hunk and keep both sides' intent.
- NEVER use
-X ours,-X theirs,git checkout --ours/--theirson a whole file, or delete a side to make the conflict go away. - A hunk whose intent is unclear: stop and ask the user, showing both sides.
- Run the host's fast checks before concluding the merge: typecheck, lint and tests as the
host's
AGENTS.md,CLAUDE.mdorpackage.jsondocuments them. - Checks fail: fix the merge, not the checks. Still failing: stop and report.
- Conclude with
git commit --no-edit.
5 · Push
- The branch has an upstream:
git push. - A new branch:
git push -u origin <branch>. - NEVER
--forceor--force-with-lease. - The branch is the default or a protected branch (
main,master,production, or the repo's default fromgh repo view --json defaultBranchRef): push only after the user says yes in this conversation. Otherwise offer a branch and a PR instead. - Push rejected as non-fast-forward: go back to Pull once. Rejected again: stop.
6 · Report
Keep it short:
Committed <sha> <subject>
<sha> <subject>
Pulled <N> commits (<conflicts resolved: N files | no conflicts>)
Pushed <N> commits to <remote>/<branch>
Left out <path> — <why>
Supabase <advisors clean | N warnings | skipped: why>Drop the lines that do not apply.
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.

