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★ 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
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 withOFF_TRUNK.- All lanes & untracked WIP by default: In the absence of an explicit
--laneor--pathsconstraint, 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. - Untracked WIP preservation: Untracked source files (
??) are first-class candidate WIP. They are mapped to their respective lane viados.tomland committed as part of their package; they are never wiped, abandoned, or hidden behind wildcard.gitignorerules. - Explicit paths only (No blanket staging): Git staging and landing operations require explicit pathspecs. "All lanes" does NOT mean
git add -Aor a blanket commit; it means iterating over all dirty lanes and landing each lane group with explicit pathspecs and its bindable(fak <lane>)stamp. - Detached worktrees only: Concurrent filesystem isolation utilizes detached HEAD worktrees pinned at an explicit trunk SHA (
git worktree add --detach <path> <sha>managed viafak worktree worker prepare). Never attach branch worktrees. - 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. - 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. - 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.
- 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 viafak sync checkandfak sync reconcile --apply(supportingROUTE_DISJOINT_INTEGRATE,ROUTE_SUPERSET_MERGE, andROUTE_HOLD_DIRTY_COLLISIONwithfak wip park). - 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 --applyinfak,git pull --ff-onlyorfak-sync repoinfak-private), rungo work sync, and verify boundary leak safety (python tools/scrub_public_copy.py --audit-staged). - 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 asfakCLI verbs, or quarantined sub-modules undertools/<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
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Read - 02
Bash - 03
Write - 04
Edit - 05
Grep - 06
Glob - 07
Task
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), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…