distributed-mesh
БесплатноЗапускает вложенные скриптыНе проверенHow to coordinate with squads on different machines using git as transport
от github★ 5 758 звёзд на GitHubОб этом скилле
SCOPE
✅ THIS SKILL PRODUCES (exactly these, nothing more):
mesh.json— Generated from user answers about zones and squads (which squads participate, what zone each is in, paths/URLs for each), usingmesh.json.examplein this skill's directory as the schema templatesync-mesh.shandsync-mesh.ps1— Copied from this skill's directory into the project root (these are bundled resources, NOT generated code)- Zone 2 state repo initialization (if applicable) — If the user specified a Zone 2 shared state repo, run
sync-mesh.sh --initto scaffold the state repo structure - A decision entry in
.squad/decisions/inbox/documenting the mesh configuration for team awareness
❌ THIS SKILL DOES NOT PRODUCE:
- No application code — No validators, libraries, or modules of any kind
- No test files — No test suites, test cases, or test scaffolding
- No GENERATING sync scripts — They are bundled with this skill as pre-built resources. COPY them, don't generate them.
- No daemons or services — No background processes, servers, or persistent runtimes
- No modifications to existing squad files beyond the decision entry (no changes to team.md, routing.md, agent charters, etc.)
Your role: Configure the mesh topology and install the bundled sync scripts. Nothing more.
Context
When squads are on different machines (developer laptops, CI runners, cloud VMs, partner orgs), the local file-reading convention still works — but remote files need to arrive on your disk first. This skill teaches the pattern for distributed squad communication.
When this applies:
- Squads span multiple machines, VMs, or CI runners
- Squads span organizations or companies
- An agent needs context from a squad whose files aren't on the local filesystem
When this does NOT apply:
- All squads are on the same machine (just read the files directly)
Patterns
The Core Principle
"The filesystem is the mesh, and git is how the mesh crosses machine boundaries."
The agent interface never changes. Agents always read local files. The distributed layer's only job is to make remote files appear locally before the agent reads them.
Three Zones of Communication
Zone 1 — Local: Same filesystem. Read files directly. Zero transport.
Zone 2 — Remote-Trusted: Different host, same org, shared git auth. Transport: git pull from a shared repo. This collapses Zone 2 into Zone 1 — files materialize on disk, agent reads them normally.
Zone 3 — Remote-Opaque: Different org, no shared auth. Transport: curl to fetch published contracts (SUMMARY.md). One-way visibility — you see only what they publish.
Agent Lifecycle (Distributed)
1. SYNC: git pull (Zone 2) + curl (Zone 3) — materialize remote state
2. READ: cat .mesh/**/state.md — all files are local now
3. WORK: do their assigned work (the agent's normal task, NOT mesh-building)
4. WRITE: update own billboard, log, drops
5. PUBLISH: git add + commit + push — share state with remote peers
Steps 2–4 are identical to local-only. Steps 1 and 5 are the entire distributed extension. Note: "WORK" means the agent performs its normal squad duties — it does NOT mean "build mesh infrastructure."
The mesh.json Config
{
"squads": {
"auth-squad": { "zone": "local", "path": "../auth-squad/.mesh" },
"ci-squad": {
"zone": "remote-trusted",
"source": "[email protected]:our-org/ci-squad.git",
"ref": "main",
"sync_to": ".mesh/remotes/ci-squad"
},
"partner-fraud": {
"zone": "remote-opaque",
"source": "https://partner.dev/squad-contracts/fraud/SUMMARY.md",
"sync_to": ".mesh/remotes/partner-fraud",
"auth": "bearer"
}
}
}
Three zone types, one file. Local squads need only a path. Remote-trusted need a git URL. Remote-opaque need an HTTP URL.
Write Partitioning
Each squad writes only to its own directory (boards/{self}.md, squads/{self}/*, drops/{date}-{self}-*.md). No two squads write to the same file. Git push/pull never conflicts. If push fails ("branch is behind"), the fix is always git pull --rebase && git push.
Trust Boundaries
Trust maps to git permissions:
- Same repo access = full mesh visibility
- Read-only access = can observe, can't write
- No access = invisible (correct behavior)
For selective visibility, use separate repos per audience (internal, partner, public). Git permissions ARE the trust negotiation.
Phased Rollout
- Phase 0: Convention only — document zones, agree on mesh.json fields, manually run
git pull/git push. Zero new code. - Phase 1: Sync script (~30 lines bash or PowerShell) when manual sync gets tedious.
- Phase 2: Published contracts + curl fetch when a Zone 3 partner appears.
- Phase 3: Never. No MCP federation, A2A, service discovery, message queues.
Important: Phases are NOT auto-advanced. These are project-level decisions —
Установить distributed-mesh в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл distributed-mesh?
How to coordinate with squads on different machines using git as transport
Как установить скилл distributed-mesh?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл distributed-mesh запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic