| name | multi-repo-git |
| description | Use when performing git operations (sync, branch, status) across the SEBT repos — switching branches, pulling latest, creating feature branches, or checking repo state |
| allowed-tools | Bash(git -C:*) |
Multi-Repo Git Operations
Manage git operations across the SEBT repositories in parallel. Since the monorepo
consolidation (ADR 0017), there are two: this monorepo (portal + state contract + CO
connector) and the external DC connector.
Repositories
# The DC connector is a sibling checkout of the monorepo.
monorepo="$(git rev-parse --show-toplevel)"
dc_connector="$(dirname "$monorepo")/sebt-self-service-portal-dc-connector"
All git commands MUST use git -C <repo-path> to be explicit about the target directory.
Operations
sync — Checkout main and pull latest
Default: both repos. User may specify a subset.
- Run
git -C <path> checkout main on each repo (parallel)
- Run
git -C <path> pull on each repo (parallel)
- Report results in a summary table
branch — Create or checkout a feature branch
Requires: branch name from user, and which repos to target (ask if not specified).
- To create:
git -C <path> checkout -b <branch>
- To checkout existing:
git -C <path> checkout <branch>
Run in parallel across targeted repos. Report results.
status — Show state of all repos
Run git -C <path> status --short --branch on both repos in parallel.
Present as a summary table:
Rules
- Parallel execution: Always run independent git commands across repos in parallel (multiple Bash tool calls in one message).
- Atomic commands: Each
git -C call is a separate Bash invocation. Never chain with && or ;.
- Read-only by default: Only
sync and status run without confirmation. For branch, confirm the branch name and target repos before executing.
- Always summarize: End every operation with a concise table showing results per repo.