From git-workflow
Pull superproject and sync all submodules to latest tracking branches
How this command is triggered — by the user, by Claude, or both
Slash command
/git-workflow:sync [--help/-h]This command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
# Git Sync Command Pull superproject and sync all submodules to their latest tracking branches. ## Arguments Parse the following from `$ARGUMENTS`: - `--help` or `-h` - Show usage information and exit ## Instructions ### Step 1: Parse Arguments From `$ARGUMENTS`, extract: 1. **help**: if `--help` or `-h` is present, show the usage information below and stop. Do NOT delegate to the agent. ### Help Output If `--help` or `-h` is present, display this and stop: ### Step 2: Validate Submodules Exist If output is empty or the command fails, display this error and stop — do NOT dele...
Pull superproject and sync all submodules to their latest tracking branches.
Parse the following from $ARGUMENTS:
--help or -h - Show usage information and exitFrom $ARGUMENTS, extract:
--help or -h is present, show the usage information below and stop. Do NOT delegate to the agent.If --help or -h is present, display this and stop:
Usage: /git-workflow:sync [options]
Pull superproject and sync all submodules to latest tracking branches.
Only works in superprojects with submodules.
Options:
-h, --help Show this help message
Examples:
/git-workflow:sync Sync all submodules
git submodule status 2>/dev/null
If output is empty or the command fails, display this error and stop — do NOT delegate:
Error: No submodules found in the current repository.
This command only works in superprojects with submodules.
Launch the sync-agent agent:
Task tool:
- subagent_type: "sync-agent"
- description: "Sync submodules to latest"
- prompt: |
Sync the superproject and all submodules to their latest upstream state.
- Working directory: <current directory>
# Sync all submodules to latest
/git-workflow:sync
npx claudepluginhub shdennlin/agent-plugins --plugin git-workflow/syncPulls latest changes from git and synchronizes project documentation (prompt_plan.md, spec.md, CLAUDE.md, rules/) to reflect code changes. Supports --no-pull and --check-only flags.
/syncDeprecated command that is now a no-op. Directs users to use Dolt push/pull/commit/show instead.
/syncSynchronizes task status with git commit history, detecting discrepancies and automatically updating task tracking based on commit evidence. Also supports check-only mode and targeted sync by date/project.
/syncSynchronizes task status with git commit history, detecting discrepancies and automatically updating task tracking based on commit evidence. Also supports check-only mode and targeted sync by date/project.
/syncTriggers plan-sync to update downstream task specifications after implementation drift.
/syncGuides the user through promoting unmerged memoir branches into main, with options to merge all, pick branches, ignore, snooze, or clean up stale branches.