agent/claude/code/commands/sync.md
Snider 89cc44eaf6
feat(code): add /code:sync for dependent module sync (#119)
Add sync command that:
- Finds dependent modules from repos.yaml
- Updates composer.json with new version
- Supports --dry-run for preview
- Auto-detects current module from directory

Migrated from core-claude PR #63.

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 07:31:51 +00:00

23 lines
454 B
Markdown

---
name: sync
description: Sync changes across dependent modules
args: <module_name> [--dry-run]
---
# Sync Dependent Modules
When changing a base module, this command syncs the dependent modules.
## Usage
```
/code:sync # Sync all dependents of current module
/code:sync core-tenant # Sync specific module
/code:sync --dry-run # Show what would change
```
## Action
```bash
"${CLAUDE_PLUGIN_ROOT}/scripts/sync.sh" "$@"
```