bridge-sync
Skill13 starsChanged 13 days agoMITView on GitHub
End-of-sprint batch-sync: pushes ALL pending scope:core + scope:org commits from the user branch to BOTH upstreams (open-bridge + org overlay) in one operation. NOT for a single commit (use /promote) or file-level adaptation (/contribute). Trigger: "/bridge-sync", "sync to upstreams", "push to both", "end-of-sprint sync", "sync all pending".
In this repository44 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/board-pilot/references/agents.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- a2aSkill
- archiveSkill
- board-pilotSkill
- bridge-auditSkill
- bridge-contributeSkill
- bridge-curatorSkill
- bridge-explorerSkill
- bridge-greetingSkill
- bridge-leak-checkSkill
- bridge-learnSkill
- bridge-onboardSkill
- bridge-overlaySkill
- bridge-promoteSkill
- bridge-statusSkill
- briefingSkill
- calendarSkill
- capability-brokerSkill
- channelSkill
- cmuxSkill
- cockpitSkill
- dashboardSkill
- debriefSkill
- doc-systemSkill
- github-projects-managerSkill
- html-canvasSkill
- html-slidesSkill
- knowledge-repo-initSkill
- mail-draftSkill
- mandantsSkill
- meeting-transcriptionSkill
- object-storeSkill
- onboard-simSkill
- remoteSkill
- scheduleSkill
- secretsSkill
- spec-kickoffSkill
- task-close-postmortemSkill
- tmuxSkill
- tracker-syncSkill
- workloadSkill
- workspaceSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 24
Read the referenced file ONLY when triggered.
- Distinctive: line 29
After a refactor that touched many CORE+org files — manual cherry-pick is tedious
- Very specific: line 30
When /promote has been deferred for days and there's a backlog
- Very specific: line 31
When you want both bks-lab/open-bridge and your org overlay updated in one operation
≈ “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
Bridge Sync — Batch end-of-sprint upstream sync
/bridge-sync is the wide-net complement to /promote and /contribute.
| Skill | Granularity | Use case |
/promote | per-commit | "promote this batch of recent commits" |
/contribute | per-file | "scan for upstream-worthy files, adapt, PR" |
/bridge-sync | per-sprint | "push EVERYTHING pending to both upstreams now" |
Read the referenced file ONLY when triggered.
When to use
- End of a work-sprint, ready to publish all upstream-worthy changes at once
- After a refactor that touched many CORE+org files — manual cherry-pick is tedious
- When
/promotehas been deferred for days and there's a backlog - When you want both
bks-lab/open-bridgeand your org overlay updated in one operation
NOT for:
- A single commit (
/promoteis leaner) - File-level adaptation work (
/contribute --adaptdoes that) - USER-only changes (those stay local)
Arguments
| Argument | Effect | Default |
(none) | Full sync to both upstreams | — |
--dry-run | Show routing matrix, don't push | false |
--repo open-bridge | Sync only to open-bridge | both |
--repo <your-bridge> | Sync only to your org overlay | both |
--since <ref> | Sync commits since this ref (default: last sync tag) | last sync |
--no-scrub | Disable open-bridge scrubbing (DANGER — only for emergency) | false |
Prerequisites
- Current branch must be
user/*. Refuses ondevelopment/main. bridge-config.yaml.upstreams[]defines BOTH upstreams.git remotehasorigin(your fork) +upstream(typically<your-org>/<your-bridge>).- For open-bridge sync:
ghCLI authenticated with cross-fork PR rights. - The org overlay must be a normal-layout repo. An overlay that carries
overlay.manifest.yamlis a flat mirror read only below itsdefaults.source_root(tree/when unset):/bridge-syncrefuses it, because a cherry-pick lands every file at the overlay's repo root where no consumer reads it. Workflow Step 0a fetches each overlay and runspython3 scripts/overlay-export.py --check-ref {name}/{branch}(any non-zero exit refuses, an unfetched ref included). Build that overlay instead withpython3 scripts/overlay-export.py --target <overlay checkout> --scope <tier> --dry-run, then the same command without--dry-run(docs/org-overlays.md§ Authoring an overlay). open-bridge still syncs.
Decision Tree
User wants to...
├── Full sync (default) → references/workflow.md
├── Dry-run / preview routing → references/workflow.md (stop after Step 4)
├── Sync only one repo → references/workflow.md § --repo override
├── Overlay with a manifest (flat mirror) → refuse; docs/org-overlays.md § Authoring an overlay
├── Configure scrub patterns → rules/promote-safety.md per-repo blocklists
├── Tag the sync point → references/workflow.md § sync-tag
└── PR merge fails after squash-merge → references/pr-recovery-patterns.md
(stale-ancestor / non-fast-forward)Safety
/bridge-sync runs a three-layer safety pipeline per destination
(see rules/promote-safety.md for the full rule):
scrub_rules.<dest>— auto-rewrite during cherry-pick. Maps personal/internal tokens (your username, org, hostnames) to placeholders. Configured inbridge-config.yaml.promote.scrub_rules.content_blocklist.<dest>— hard-block scan after scrub. Hits classify asscrubable(handled by layer 1),adaptable(defer for/contribute --adapt), orpersonal-PII(refuse).- Universal patterns — private keys, API tokens, paths — always blocked regardless of destination.
A commit hitting an adaptable pattern doesn't block the whole sync —
it gets routed as 🟡 in the matrix and deferred. The clean commits still
ship. --no-scrub only disables layer 1 (auto-rewrite); layers 2+3
always run.
Workflow recipes for conflict resolution (DU / UU / divergent structure),
MIXED-CU cherry-picks, and residual-leak fixup (git commit --fixup +
rebase --autosquash) live in references/workflow.md § Step 5.
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.

