Skip to content
Skills Library
Programming · Automation

dx-sync

/dx-sync

Sync plugin updates to consumer repos — runs sync-consumers.sh with selected repos and options. Use when you say "sync plugins", "update consumers", "push to all repos".

Repository
dx-aem-flow ↗
Licence
MIT
Last repository change
27.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
3
Scripts
2
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 2 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: scripts/migrate-config.sh, scripts/sync-consumers.sh

What it does and when to use it

Sync plugin updates to consumer repos — runs sync-consumers.sh with selected repos and options. Use when you say "sync plugins", "update consumers", "push to all repos".

Triggers from the description

sync pluginsupdate consumerspush to all repos

Arguments

/dx-sync [--dry-run] [--parallel] [repo1 repo2 ...] — repo names from .ai/config.yaml repos:
Original author description

Sync plugin updates to consumer repos — runs sync-consumers.sh with selected repos and options. Use when you say "sync plugins", "update consumers", "push to all repos".

How it works

  1. 1. Locate Sync Script
  2. 2. Show Consumer Repo Table
  3. 3. Parse Arguments
  4. 4. Run Sync
  5. 5. Report Results
  6. Rules
Original SKILL.md headings · 86 lines, 467 words
SKILL.md preview
---
name: dx-sync
description: Sync plugin updates to consumer repos — runs sync-consumers.sh with selected repos and options. Use when you say "sync plugins", "update consumers", "push to all repos".
when_to_use: "Use when syncing plugin updates to consumer repos. Trigger on 'sync plugins', 'update consumers', 'push to all repos', 'dx-sync', or when a plugin update needs to propagate to downstream projects."
argument-hint: "[--dry-run] [--parallel] [repo1 repo2 ...] — repo names from .ai/config.yaml repos:"
disable-model-invocation: true
allowed-tools: ["read", "edit", "search", "write", "agent"]
---

You sync plugin updates to consumer AEM repos using the `sync-consumers.sh` script. Any consumer repo can run this skill — there is no hub. Repos are listed in `.ai/config.yaml` under `repos:`.

## 1. Locate Sync Script

The sync script lives in this skill's scripts directory:

```bash
SYNC_SCRIPT="${CLAUDE_SKILL_DIR}/scripts/sync-consumers.sh"
```

If it doesn't exist, try the repo root fallback:
```bash
SYNC_SCRIPT="$(git rev-parse --show-toplevel)/internal/sync-consumers.sh"
```

If neither exists, STOP: "sync-consumers.sh not found."

## 2. Show Consumer Repo Table

Read `repos:` from `.ai/config.yaml`. Present the available repos and their capabilities:

```markdown
| Repo | Path | Base Branch | Work Branch | FE | BE |
|------|------|-------------|-------------|:--:|:--:|
| brand-a | ../Brand-A-Project | development | feature/ai-sync | Yes | No |
| backend | ../AEM-Backend | develop | feature/ai-sync | Yes | Yes |
| brand-b | ../Brand-B-Project | development | feature/ai-sync | Yes | No |
```

> All repos come from the `repos:` section in `.ai/config.yaml`. The current repo is excluded (you don't sync to yourself).

## 3. Parse Arguments

From `$ARGUMENTS`, extract:
- **Flags:** `--dry-run`, `--parallel`, `--no-git`, `--no-pr`
- **Repos:** Repo names from `.ai/config.yaml` `repos:` section
- If no repos specified, defaults to all configured repos

If no arguments at all, ask: "Sync all repos? Or specify which ones (e.g., `brand-a backend`). Add `--dry-run` to preview."

## 4. Run Sync

```bash
bash "$SYNC_SCRIPT" $ARGUMENTS
```

The script handles:
1. Merge `origin/<base-branch>` into work branch
2. Copy utility scripts to `.ai/lib/`
3. Copy output templates to `.ai/templates/`
4. Generate Copilot agents (with dual tool names for Copilot CLI + VS Code Chat)
5. Config migration (runs versioned migrations on the consumer's `.ai/config.yaml`; updates `dx.version` to match the plugin version)
6. Sync Claude rules (`.claude/rules/`)
7. Sync AI rules (`.ai/rules/`)
8. Sync instructions (`.github/instructions/`)
9. Sync VS Code MCP config (`.vscode/mcp.json` — mirrors ADO/Atlassian from root `.mcp.json`)
10. Sync VS Code Chat settings (`.vscode/settings.json` — `chat.instructionsFilesLocations`, `chat.agentSkillsLocations`)
11. Cleanup (remove rules not applicable to repo capabilities)
12. Commit and push
13. Create/update PR

## 5. Report Results

After the script completes, present:

```markdown
## Sync Complete

| Repo | Status | PR |
|------|--------|-----|
| brand-a | synced | PR #<id> |
| backend | synced | PR #<id> |
| brand-b | synced | PR #<id> |
```

If `--dry-run` was used, note: "Dry run — no changes were made."

## Rules

- **Never run without user confirmation** — always show the repo table and confirm before syncing
- **Use --no-pr when needed** — pass `--no-pr` to skip PR creation for specific runs
- **Dry-run first on uncertainty** — if unsure about scope, suggest `--dry-run` first
- **Read script output** — the script reports per-step status; relay any errors to the user
- **Runs from any consumer repo** — reads repos from `.ai/config.yaml`, syncs to sibling repos via relative paths
Files in this package (3)
  • SKILL.md 4 KB
  • scripts/migrate-config.sh 13 KB
  • scripts/sync-consumers.sh 32 KB

Versions

The database has no other skills named dx-sync.

Database snapshot: 13.11.2026 · package version 66a488e145d5 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100sync-repos
    Smart sync of all Egregore repos (memory + managed repos + current repo) — fetches first, only pulls if behind. Use for /sync-repos or 'sync all repos'.
  • 86sync-repos
    Smart sync of all Egregore repos (memory + managed repos + current repo) — fetches first, only pulls if behind. Use for /sync-repos or ''sync all repos''.
  • 100marketplace-sync
    This skill should be used when the user asks to "update the marketplace", "refresh the github page", "sync plugins.json", "update docs/plugins.json", or mentions keeping the GitHub Pages site in sync with plugin changes.
  • 91ensure-repo-sync
    Check or sync named local repos when the user explicitly requests repo sync or invokes /ensure-repo-sync.
  • 100asynchronous-messaging-competing-consumers
    Use this skill when scaling message throughput across distributed consumer worker pools using the Competing Consumers pattern.
  • 100portfolio-auto
    Auto-sync GitHub repos to portfolio website. Scans GitHub repos, captures screenshots with Playwright, generates project entries, and updates projects-data.js or Supabase DB. Use when user asks to "update portfolio", "sync projects", "add my repos to portfolio", or "refresh…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.