project-sync
Skill0 starsChanged 2 months agoMITView on GitHub
Fan out the current repo's CLAUDE.md, .claude/commands, and .claude/skills into Codex, Gemini, and Copilot project-scope analogues (.codex/skills, .gemini/skills, .github/prompts, .github/instructions) plus refresh AGENTS.md, GEMINI.md, and .github/copilot-instructions.md from the project's rule floor. Wraps `dotbabel project-sync`. Use when adopting cross-CLI workflows in a repo for the first time, or when adding a new command/skill that needs to be visible to Codex/Gemini/Copilot. Triggers on: "sync this repo", "project sync", "fan out commands", "wire up gemini for this project", "add this command to codex", "make this skill available in copilot", "regenerate AGENTS.md for this project".
In this repository48 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- changelogSkill
- dependabot-sweepSkill
- markdownSkill
- merge-prSkill
- pre-prSkill
- pr-tldrSkill
- tldrSkill
- agents-searchSkill
- audit-and-fixSkill
- aws-specialistSkill
- azure-specialistSkill
- code-simplifierSkill
- create-assessmentSkill
- create-auditSkill
- create-experimentSkill
- create-inspectionSkill
- crossplane-specialistSkill
- deploy-statusSkill
- detect-flakySkill
- fix-with-evidenceSkill
- flyctlSkill
- gcp-specialistSkill
- gitSkill
- ground-firstSkill
- handoffSkill
- kubernetes-specialistSkill
- local-attestSkill
- plan-graderSkill
- post-pr-reviewSkill
- pr-conductorSkill
- pulumi-specialistSkill
- quality-reviewSkill
- release-conductorSkill
- reproduce-bugSkill
- review-prSkill
- review-prsSkill
- rollback-prodSkill
- security-auditSkill
- security-reviewSkill
- smoke-testSkill
- specSkill
- terraform-specialistSkill
- terragrunt-specialistSkill
- validate-specSkill
- veracity-auditSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 0 are distinctive, and 5 are 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.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 55
Dry-run first: Always run dotbabel project-sync --dry-run before mutating.
- Very specific: line 59
Apply: Run dotbabel project-sync (no --dry-run).
- Very specific: line 61
Verify: Run dotbabel check-project-sync and report ok / missing / stale counts.
- Very specific: line 87
Always operate on the user's current working directory unless they pass an explicit --repo <path>.
- Very specific: line 89
Never run --force. The plan reserves it for collision overrides.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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 — Repo-local cross-CLI fan-out
Thin wrapper around dotbabel project-sync. The binary owns all writes; this
skill maps natural-language requests to the right invocation and surfaces
dry-run output before mutating the repo.
When to invoke
- The user wants to adopt cross-CLI workflows in a repo that already has
.claude/commands/*or.claude/skills/*, but noAGENTS.md/GEMINI.md/.github/prompts//.github/instructions/wiring. - A new command or skill was just added to
.claude/, and the user wants Codex/Gemini/Copilot to see it without leaving the editor. - The user asks for "drift check" or "is this repo synced" — run
dotbabel check-project-syncinstead and surface the diff. - First-time setup: if
.dotbabel.jsonis missing, suggestdotbabel project-initfirst.
Workflow
- Pre-flight. Confirm cwd is a git repo and contains
CLAUDE.md(with or without rule-floor markers) plus at least one of.claude/commands/or.claude/skills/. If.dotbabel.jsonis absent, mention that defaults will apply (nocli_substitutions, full fan-out to codex/gemini/copilot, gating on each CLI'scommand -vcheck). - Dry-run first. Always run
dotbabel project-sync --dry-runbefore mutating. Summarize the planned actions to the user (count of instruction files, count of new symlinks per CLI). Pause for confirmation unless the user already said "do it" or "go ahead" in the same turn. - Apply. Run
dotbabel project-sync(no--dry-run). If the user passed--all, propagate it. - Verify. Run
dotbabel check-project-syncand reportok/missing/stalecounts. Exit non-zero output should be surfaced. The check applies the samegate_on_cli_presencegate as the sync, so a CLI absent fromPATHis reported asskipped <cli>: not on PATHrather than as drift. Propagate--allhere too when the user passed it in step 3, so both commands cover the same CLIs.
Triggers and invocations
| Trigger phrase | Invocation |
| "sync this repo", "project sync", "fan out commands" | dotbabel project-sync --dry-run then apply |
| "wire up gemini for this project" | dotbabel project-sync --all (covers all) |
| "is this repo synced", "drift check the project sync" | dotbabel check-project-sync (read-only) |
| "regenerate AGENTS.md for this project" | dotbabel project-sync (instructions are part of the run) |
| "set up project sync here", "first-time project sync" | dotbabel project-init then project-sync |
Reference: Copilot mapping
The Copilot CLI fan-out targets .github/prompts/*.prompt.md (commands) and
.github/instructions/*.instructions.md (skills) inside the target repo.
See references/copilot-mapping.md for the
full layout and rationale.
Boundaries
- Always operate on the user's current working directory unless they pass an
explicit
--repo <path>. Never silently target a different repo. - Never run
--force. The plan reserves it for collision overrides; defer to the binary's existing collision warnings. - For consumer repos with no
.dotbabel.json, the convention path applies (entireCLAUDE.mdbecomes the rule floor when markers are absent). fan_outaccepts onlycodex,gemini, andcopilot. A typo aborts the run withCONFIG_UNKNOWN_CLI; fix the name rather than dropping the gate.fan_out_layoutisper-cliby default. Undershared, Codex and Gemini both point at one.cli/skills/tree, so describe changes by the canonical path instead of naming each CLI directory twice. Switching an existing repo leaves.codex/skills.bak-<timestamp>behind — say so, so the user can delete it. An unknown value aborts withCONFIG_UNKNOWN_LAYOUT.cli_excludedmaps a CLI to command basenames and skill ids it must not receive. Suggest it when a command describes a Claude-only flow. The sync removes an excluded link it wrote earlier and reportsremoved: <path>; mention that so the user expects the deletion in the diff. Undershared, an exclusion forcodexorgeminiapplies to both and the sync warns when the lists differ. A malformed value aborts withCONFIG_INVALID_EXCLUSION.- This skill is for project-scope sync. For user-scope (
~/.claude/,~/.codex/,~/.gemini/) bootstrap, usedotbabel bootstrapinstead.
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.

