agentsclimarketplace

Bridge sync

Skill bks-lab/open-bridge/skills/bridge-sync

Your AI coding agent starts every session knowing your repos, your clients, and how you work — a plain git repo of markdown + YAML it reads at session start, independent of model or frontend. Context compounds instead of restarting. MIT.

Install
npx -y skills add bks-lab/open-bridge --skill bridge-sync

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 8 stars8 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

End-of-sprint batch-sync: pushes ALL pending scope:core + scope:org commits from the local user branch to BOTH upstreams (open-bridge + your org overlay) in one operation, with per-destination scrubbing and parallel PR creation. Complements /promote (per-commit) and /contribute (per-file) with a sprint-level workflow. Trigger: "/bridge-sync", "sync to upstreams", "push to both", "batch promote", "end-of-sprint sync", "sync all pending", "push everything to both repos".

SKILL.md

3.9 KB, as published. Nobody here has run it

Bridge Sync — Batch end-of-sprint upstream sync

/bridge-sync is the wide-net complement to /promote and /contribute.

SkillGranularityUse case
/promoteper-commit"promote this batch of recent commits"
/contributeper-file"scan for upstream-worthy files, adapt, PR"
/bridge-syncper-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 /promote has been deferred for days and there's a backlog
  • When you want both bks-lab/open-bridge and your org overlay updated in one operation

NOT for:

  • A single commit (/promote is leaner)
  • File-level adaptation work (/contribute --adapt does that)
  • USER-only changes (those stay local)

Arguments

ArgumentEffectDefault
(none)Full sync to both upstreams
--dry-runShow routing matrix, don't pushfalse
--repo open-bridgeSync only to open-bridgeboth
--repo <your-bridge>Sync only to your org overlayboth
--since <ref>Sync commits since this ref (default: last sync tag)last sync
--no-scrubDisable open-bridge scrubbing (DANGER — only for emergency)false

Prerequisites

  • Current branch must be user/*. Refuses on development / main.
  • bridge-config.yaml.upstreams[] defines BOTH upstreams.
  • git remote has origin (your fork) + upstream (typically <your-org>/<your-bridge>).
  • For open-bridge sync: gh CLI authenticated with cross-fork PR rights.

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
├── 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):

  1. scrub_rules.<dest> — auto-rewrite during cherry-pick. Maps personal/internal tokens (your username, org, hostnames) to placeholders. Configured in bridge-config.yaml.promote.scrub_rules.
  2. content_blocklist.<dest> — hard-block scan after scrub. Hits classify as scrubable (handled by layer 1), adaptable (defer for /contribute --adapt), or personal-PII (refuse).
  3. 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.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.