project-sync
Skill0 starsChanged 4 months agoMITView on GitHub
Sync durable .project/ state via the state branch. Use with /project-sync.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- RumbleJack56/skillstheir own version, first seen Oct 20, 2026
- kaiohenricunha/dotbabeltheir own version, first seen Oct 17, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- RumbleJack56/skills★ 2same name
- kaiohenricunha/dotbabel★ 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 repository42 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- content-rewriteSkill
- content-writeSkill
- core-auditSkill
- core-bootstrapSkill
- core-commitSkill
- core-explainSkill
- core-finalizeSkill
- core-orchestrateSkill
- core-pullSkill
- core-setupSkill
- core-updateSkill
- design-convertSkill
- design-shipSkill
- design-tokensSkill
- dev-inspectSkill
- dev-learnSkill
- dev-manualSkill
- dev-optimizeSkill
- dev-securitySkill
- dev-shipSkill
- dev-tweakSkill
- game-debugSkill
- game-optimizeSkill
- game-shipSkill
- game-tweakSkill
- marketing-contentSkill
- marketing-researchSkill
- marketing-screenshotsSkill
- project-addSkill
- project-appSkill
- project-memorySkill
- project-planSkill
- project-removeSkill
- project-researchSkill
- project-seedSkill
- project-todoSkill
- project-tunnelSkill
- team-issuesSkill
- team-outsourceSkill
- team-reviewSkill
- team-verifySkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
All procedures live in .claude/skills/shared/STATE-SYNC.md.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Project Sync
Sync the durable subset of a project's gitignored .project/ folder across your own
devices, via the orphan branch claude/state. Backlog, dashboard, seed, learnings,
archive, and feature dossiers travel with the repo without ever being tracked on a
working branch — Model A stays intact.
All procedures live in .claude/skills/shared/STATE-SYNC.md; this skill wires them to
the push / pull / status modes and reports the result.
Trigger
/project-sync [push|pull|status] — no argument → mode is chosen in PHASE 1.
Platform
Detect platform: Windows ($PSVersionTable exists) → PowerShell; macOS/Linux →
bash. Command variants for both OSes are in shared/STATE-SYNC.md.
Process
PHASE 0: Pre-flight
Follow shared/STATE-SYNC-PUSH.md § Preflight & temp-worktree hygiene. Concretely:
- Main-checkout gate — compute
main_root/current_root. Ifcurrent_root != main_root→ exit: "project-sync only runs on the main checkout. You are in worktree{current_root}. RunExitWorktree(action: keep)first, then retry." (Worktree.project/is symlinks back to main.) - Repo + remote — inside a git repo with a non-empty
git remote; else exit: "state sync requires a git remote." .project/exists — else exit: "no.project/to sync — run/core-setupfirst."- Hygiene —
git worktree prune; remove any dangling$STATE_WT. - Branch resolution — per
shared/STATE-SYNC.md § 2. Ifproject.json#team.mode == "team"and no branch is recorded in.project/session/state-sync.json, and the mode (PHASE 1) ispush→ AskUserQuestion for the branch name (first optionclaude/state-{user}= recommended). Persist the choice.
PHASE 1: Mode dispatch
Argument push / pull / status. No argument → AskUserQuestion:
- "Status (Recommended)" — show what would sync, change nothing
- "Push" — send local durable state to the state branch
- "Pull" — bring remote state into this device
PHASE 2: Execute
- status —
git fetch origin "$STATE_BRANCH"; show the resolved branch, remote SHA vsstate-sync.json#lastSyncedSha, local drift (thecollect-into-LAST-worktree check fromSTATE-SYNC.md § 7, reported as a changed-file count), and last push/pull timestamps. No writes. - push — follow
shared/STATE-SYNC-PUSH.md § Push procedure(incl. first-time orphan and push-rejected retry). Updatestate-sync.json. - pull — follow
shared/STATE-SYNC.md § 7(Pull procedure & conflict matrix). Updatestate-sync.json.
PHASE 3: Report
ASCII table:
STATE SYNC ─ {mode}
───────────────────────────────────────────
Branch claude/state[-user]
Remote SHA {shortsha} (was {last shortsha})
Pushed {n} file(s) | —
Pulled {n} file(s) | —
Merged {n} file(s) | —
Conflicts {n resolved} | —
lastSyncedSha {shortsha}
───────────────────────────────────────────Fill only the rows relevant to the mode (status shows drift counts, no SHA change).
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.

