| name | sync-execute |
| description | Walks through each changed file one at a time, showing the diff and asking the user whether to apply it. Requires "upstream" or "downstream" argument. Use after sync-status to begin applying changes between cardano-parts templates and downstream repos. |
Sync Execute
Requires an argument: /sync-execute upstream or /sync-execute downstream.
If no argument is provided, ask the user which direction and WAIT for a response.
Configuration
Uses .ai/skills/sync-review/sync-config.local.json.
Workflow
-
Load config from .ai/skills/sync-review/sync-config.local.json.
-
Determine direction from the argument. If missing, ask and WAIT.
-
Build the changed-files list. Union of all files changed on the current
branch (vs base branch) across upstream and every configured downstream:
git diff --name-only <base-branch>...HEAD
Auto-detect base branch per repo (main or master), or use the
"base_branch" config override.
-
Process one repo at a time. For each repo:
- Apply
"exclude" patterns to remove files from consideration
- Apply
"rules" to auto-skip files with existing classifications (note
which rule matched)
- Work through remaining files one by one
-
For each file, follow the direction-specific workflow below.
Showing Diffs
At the start of the session, before processing any files, ask the user for
their terminal column width. Suggest they run in another shell
and paste the result. Use their answer as the value for all icdiff
commands. If they don't answer, default to 180.