Command Palette

Search for a command to run...

Назад к скиллам
скилл № 90871

git-subagent-sync

Synchronize subagent changes to git on shared trunk across all lanes and all untracked WIP by default (or scoped via --lane/--paths). Enforces single-source…

БесплатноБез исполняемых скриптов
anthony-chaudharyот anthony-chaudhary★ 50 звёзд на GitHub

Установить git-subagent-sync в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

/git-subagent-sync — Synchronize Subagent Changes to Git on Shared Trunk

Coordinated, conflict-free synchronization protocol for parallel subagents and isolated workers operating on the shared trunk (main). By default, discovers, arbitrates, validates, and synchronizes all lanes and all untracked WIP across the repository (or narrows to an explicit --lane or --paths when provided). Prevents index lock collisions, uncommitted file cross-talk, branch drift, and peer clobbering by strictly enforcing coordinator-mediated git mutations, disjoint filesystem leases via dos arbitrate, detached build-isolation worktrees, and non-forgeable witness gates.

Core Invariants

  1. main-is-single-source: All committed work lands directly on trunk (main). Feature branches, side branches, and divergent branch worktrees are prohibited. The repository trunk guard rejects off-trunk transactions with OFF_TRUNK.
  2. All lanes & untracked WIP by default: In the absence of an explicit --lane or --paths constraint, synchronization automatically inventories the complete working tree, discovers all untracked WIP files (??), maps untracked files to their canonical lanes, arbitrates leases per lane, and drives each lane through isolated validation, package tests, atomic landing, and DOS witness gates.
  3. Untracked WIP preservation: Untracked source files (??) are first-class candidate WIP. They are mapped to their respective lane via dos.toml and committed as part of their package; they are never wiped, abandoned, or hidden behind wildcard .gitignore rules.
  4. Explicit paths only (No blanket staging): Git staging and landing operations require explicit pathspecs. "All lanes" does NOT mean git add -A or a blanket commit; it means iterating over all dirty lanes and landing each lane group with explicit pathspecs and its bindable (fak <lane>) stamp.
  5. Detached worktrees only: Concurrent filesystem isolation utilizes detached HEAD worktrees pinned at an explicit trunk SHA (git worktree add --detach <path> <sha> managed via fak worktree worker prepare). Never attach branch worktrees.
  6. Safe Landing within Worker Boundaries: Autonomous safe git sync landing (fak sync check, fak sync reconcile --apply, fak commit --path, fak sync push) is active by default working within each worker process upon test verification. Raw uncoordinated git commands (git add -A, raw unverified git commits/merges) remain strictly prohibited.
  7. Package-scoped verification only: Verification executes within isolated scopes (fak validate --mine <p>... and targeted package tests under WSL/Linux) without running unisolated global sweeps that contaminate clean builds with peer WIP.
  8. Autonomous landing upon task completion by default: When an agent, worker, or subagent completes any assigned task, it must follow the safe landing process itself by default working within each worker process rather than leaving uncommitted edits or waiting for interactive prompts. If coordinator context preservation or build isolation is required, the coordinator dispatches a dedicated landing/worker subagent to execute the verification and landing steps autonomously.
  9. Safe Merge & Structured Convergence: Strictly forbid unverified raw merges, --autostash, or force-pushes. Check for .git/MERGE_HEAD (MERGE_IN_PROGRESS); if active, halt and wait. Integrate upstream via fak sync check and fak sync reconcile --apply (supporting ROUTE_DISJOINT_INTEGRATE, ROUTE_SUPERSET_MERGE, and ROUTE_HOLD_DIRTY_COLLISION with fak wip park).
  10. Dual-Repo Synchronization (fak & fak-private): When cross-repo dependencies, shared interfaces (pkg/*), or companion platform modules are touched, synchronize both repositories. Check dirty states, fetch remotes for both, fast-forward both (fak sync reconcile --apply in fak, git pull --ff-only or fak-sync repo in fak-private), run go work sync, and verify boundary leak safety (python tools/scrub_public_copy.py --audit-staged).
  11. Strict Ban on PowerShell & Loose Scripts (Mandatory Modular Go Programs): Workers and subagents MUST NEVER author .ps1 (PowerShell), .sh, .bat, or loose scripts. All new automation, tooling, testing, or lifecycle utilities MUST be implemented as modular, integrated Go programs (cmd/*, Go leaves registered as fak CLI verbs, or quarantined sub-modules under tools/<name>/go.mod) providing long-term value. Unless there is an extraordinary, super heavily justified reason (~1 in entire repo), loose scripts are strictly banned.

Architecture & Roles

[Upstream Trunk: origin/main]
              │
      Coordinator Process
    ┌─────────┴─────────┐
    │  - Pre-flight checks & fak sync check
    │  - Full working-tree inventory (modified + all untracked WIP)
    │  - Lane classification via `fak sweep --json` & `dos.toml`
    │  - Multi-lane arbitration loop: `dos arbitrate` per lane
    │  - Al
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

  1. 01Read
  2. 02Bash
  3. 03Write
  4. 04Edit
  5. 05Grep
  6. 06Glob
  7. 07Task

FAQ

Что делает скилл git-subagent-sync?

Synchronize subagent changes to git on shared trunk across all lanes and all untracked WIP by default (or scoped via --lane/--paths). Enforces single-source invariants, safe merge convergence via `fak sync check`, `fak sync reconcile --apply`, and `fak sync push`, dual-repo synchronization (fak & fak-private), disjoint file-tree fencing via `dos arbitrate`, detached build-isolation worktrees, and atomic coordinator landing via `fak sweep --apply` or `fak commit --path`. Prevents index corruption, off-trunk drift, peer clobbering, and unverified worker self-reports. Use when synchronizing subagent changes across lanes on shared trunk.

Как установить скилл git-subagent-sync?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл git-subagent-sync запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить git-subagent-sync с