Agent skill

Distributed Mesh

by FritzAndFriends in FritzAndFriends/SharpSite

How to coordinate with squads on different machines using git as transport

MITAuto-check passedDevelopment

Install Distributed Mesh

skills CLI
$ npx skills add FritzAndFriends/SharpSite --skill distributed-mesh -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install FritzAndFriends/SharpSite distributed-mesh --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/FritzAndFriends/SharpSite.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.copilot/skills/distributed-mesh .claude/skills/distributed-mesh && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
distributed-mesh
GitHub stars
145
Used in
2 other repos
Token cost
~3.1k tokens
SKILL.md length
1,420 words
Files
4
Skills in repo
18
Repo updated
First seen
Licence
MIT

At a glance

How to coordinate with squads on different machines using git as transport

  • Works in 6 steps: ASK the user for mesh topology → GENERATE mesh.json → COPY sync scripts → …
  • Development work in your project
  • SKILL.md covers SCOPE, Context, Patterns and Examples, plus 2 more sections
  • Runs PowerShell and Shell scripts from its folder; calls git and bash; reaches partner.dev

What it does

Distributed Mesh is an agent skill from FritzAndFriends/SharpSite. How to coordinate with squads on different machines using git as transport

Its SKILL.md is about 3.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files (for example `sync-mesh.sh`).

It sits in Development. It works with Git. The repository describes itself as: A basic CMS built with .NET 9 and Blazor. The licence is MIT.

When your agent uses it

  • Development work in your project

Example prompts

  • “/distributed-mesh”

Requirements

  • A Bash shell
  • PowerShell

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. ASK the user for mesh topology
  2. GENERATE mesh.json
  3. COPY sync scripts
  4. RUN --init (if Zone 2 state repo exists)
  5. WRITE a decision entry
  6. STOP

What it can do on your machine

Read from SKILL.md and the folder at commit c35e5e0. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (PowerShell and Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • git
    • bash

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • partner.dev

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Distributed Mesh loads about 3.1k tokens when it runs. Until then it costs about 23 tokens; SKILL.md has 1,420 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~23
When it runs · the whole SKILL.md, loaded when a task matches
~3.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from FritzAndFriends/SharpSite at commit c35e5e0, republished under its MIT licence (© FritzAndFriends). 1,420 words, ~3,084 tokens.

Download SKILL.mdSave it as .claude/skills/distributed-mesh/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
distributed-mesh
description
How to coordinate with squads on different machines using git as transport
domain
distributed-coordination
confidence
high
source
multi-model-consensus (Opus 4.6, Sonnet 4.5, GPT-5.4)

SCOPE

✅ THIS SKILL PRODUCES (exactly these, nothing more):

  1. mesh.json — Generated from user answers about zones and squads (which squads participate, what zone each is in, paths/URLs for each), using mesh.json.example in this skill's directory as the schema template
  2. sync-mesh.sh and sync-mesh.ps1 — Copied from this skill's directory into the project root (these are bundled resources, NOT generated code)
  3. Zone 2 state repo initialization (if applicable) — If the user specified a Zone 2 shared state repo, run sync-mesh.sh --init to scaffold the state repo structure
  4. 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
json
{
  "squads": {
    "auth-squad": { "zone": "local", "path": "../auth-squad/.mesh" },
    "ci-squad": {
      "zone": "remote-trusted",
      "source": "git@github.com: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 — you start at Phase 0 (manual sync) and only move forward when the team decides complexity is justified.

Mesh State Repo

The shared mesh state repo is a plain git repository — NOT a Squad project. It holds:

  • One directory per participating squad
  • Each directory contains at minimum a SUMMARY.md with the squad's current state
  • A root README explaining what the repo is and who participates

No .squad/ folder, no agents, no automation. Write partitioning means each squad only pushes to its own directory. The repo is a rendezvous point, not an intelligent system.

If you want a squad that observes mesh health, that's a separate Squad project that lists the state repo as a Zone 2 remote in its mesh.json — it does NOT live inside the state repo.

Examples

Developer Laptop + CI Squad (Zone 2)

Auth-squad agent wakes up. git pull brings ci-squad's latest results. Agent reads: "3 test failures in auth module." Adjusts work. Pushes results when done. Overhead: one git pull, one git push.

Two Orgs Collaborating (Zone 3)

Payment-squad fetches partner's published SUMMARY.md via curl. Reads: "Risk scoring v3 API deprecated April 15. New field device_fingerprint required." The consuming agent (in payment-squad's team) reads this information and uses it to inform its work — for example, updating payment integration code to include the new field. Partner can't see payment-squad's internals.

Same Org, Shared Mesh Repo (Zone 2)

Three squads on different machines. One shared git repo holds the mesh. Each squad: git pull before work, git push after. Write partitioning ensures zero merge conflicts.

Show full SKILL.md (570 more words)Show less

AGENT WORKFLOW (Deterministic Setup)

When a user invokes this skill to set up a distributed mesh, follow these steps exactly, in order:

Step 1: ASK the user for mesh topology

Ask these questions (adapt phrasing naturally, but get these answers):

  1. Which squads are participating? (List of squad names)
  2. For each squad, which zone is it in?
    • local — same filesystem (just need a path)
    • remote-trusted — different machine, same org, shared git access (need git URL + ref)
    • remote-opaque — different org, no shared auth (need HTTPS URL to published contract)
  3. For each squad, what's the connection info?
    • Local: relative or absolute path to their .mesh/ directory
    • Remote-trusted: git URL (SSH or HTTPS), ref (branch/tag), and where to sync it to locally
    • Remote-opaque: HTTPS URL to their SUMMARY.md, where to sync it, and auth type (none/bearer)
  4. Where should the shared state live? (For Zone 2 squads: git repo URL for the mesh state, or confirm each squad syncs independently)
Step 2: GENERATE mesh.json

Using the answers from Step 1, create a mesh.json file at the project root. Use mesh.json.example from THIS skill's directory (.squad/skills/distributed-mesh/mesh.json.example) as the schema template.

Structure:

json
{
  "squads": {
    "<squad-name>": { "zone": "local", "path": "<relative-or-absolute-path>" },
    "<squad-name>": {
      "zone": "remote-trusted",
      "source": "<git-url>",
      "ref": "<branch-or-tag>",
      "sync_to": ".mesh/remotes/<squad-name>"
    },
    "<squad-name>": {
      "zone": "remote-opaque",
      "source": "<https-url-to-summary>",
      "sync_to": ".mesh/remotes/<squad-name>",
      "auth": "<none|bearer>"
    }
  }
}

Write this file to the project root. Do NOT write any other code.

Step 3: COPY sync scripts

Copy the bundled sync scripts from THIS skill's directory into the project root:

  • Source: .squad/skills/distributed-mesh/sync-mesh.sh

  • Destination: sync-mesh.sh (project root)

  • Source: .squad/skills/distributed-mesh/sync-mesh.ps1

  • Destination: sync-mesh.ps1 (project root)

These are bundled resources. Do NOT generate them — COPY them directly.

Step 4: RUN --init (if Zone 2 state repo exists)

If the user specified a Zone 2 shared state repo in Step 1, run the initialization:

On Unix/Linux/macOS:

bash
bash sync-mesh.sh --init

On Windows:

powershell
.\sync-mesh.ps1 -Init

This scaffolds the state repo structure (squad directories, placeholder SUMMARY.md files, root README).

Skip this step if:

  • No Zone 2 squads are configured (local/opaque only)
  • The state repo already exists and is initialized
Step 5: WRITE a decision entry

Create a decision file at .squad/decisions/inbox/<your-agent-name>-mesh-setup.md with this content:

markdown
### <YYYY-MM-DD>: Mesh configuration

**By:** <your-agent-name> (via distributed-mesh skill)

**What:** Configured distributed mesh with <N> squads across zones <list-zones-used>

**Squads:**
- `<squad-name>` — Zone <X> — <brief-connection-info>
- `<squad-name>` — Zone <X> — <brief-connection-info>
- ...

**State repo:** <git-url-if-zone-2-used, or "N/A (local/opaque only)">

**Why:** <user's stated reason for setting up the mesh, or "Enable cross-machine squad coordination">

Write this file. The Scribe will merge it into the main decisions file later.

Step 6: STOP

You are done. Do not:

  • Generate sync scripts (they're bundled with this skill — COPY them)
  • Write validator code
  • Write test files
  • Create any other modules, libraries, or application code
  • Modify existing squad files (team.md, routing.md, charters)
  • Auto-advance to Phase 2 or Phase 3

Output a simple completion message:

✅ Mesh configured. Created:
- mesh.json (<N> squads)
- sync-mesh.sh and sync-mesh.ps1 (copied from skill bundle)
- Decision entry: .squad/decisions/inbox/<filename>

Run `bash sync-mesh.sh` (or `.\sync-mesh.ps1` on Windows) before agents start to materialize remote state.

Anti-Patterns

❌ Code generation anti-patterns:

  • Writing mesh-config-validator.js or any validator module
  • Writing test files for mesh configuration
  • Generating sync scripts instead of copying the bundled ones from this skill's directory
  • Creating library modules or utilities
  • Building any code that "runs the mesh" — the mesh is read by agents, not executed

❌ Architectural anti-patterns:

  • Building a federation protocol — Git push/pull IS federation
  • Running a sync daemon or server — Agents are not persistent. Sync at startup, publish at shutdown
  • Real-time notifications — Agents don't need real-time. They need "recent enough." git pull is recent enough
  • Schema validation for markdown — The LLM reads markdown. If the format changes, it adapts
  • Service discovery protocol — mesh.json is a file with 10 entries. Not a "discovery problem"
  • Auth framework — Git SSH keys and HTTPS tokens. Not a framework. Already configured
  • Message queues / event buses — Agents wake, read, work, write, sleep. Nobody's home to receive events
  • Any component requiring a running process — That's the line. Don't cross it

❌ Scope creep anti-patterns:

  • Auto-advancing phases without user decision
  • Modifying agent charters or routing rules
  • Setting up CI/CD pipelines for mesh sync
  • Creating dashboards or monitoring tools

© FritzAndFriends, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files in .copilot/skills/distributed-mesh of FritzAndFriends/SharpSite.

  • SKILL.md
  • mesh.json.example
  • sync-mesh.ps1
  • sync-mesh.sh

Open the folder on GitHubat commit c35e5e0

Used in 2 other repositories

We found 3 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 2 other GitHub owners. This page covers the copy in FritzAndFriends/SharpSite, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Distributed Mesh next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Distributed Mesh compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Distributed Mesh this skillFritzAndFriends/SharpSite1452 repos~3.1kAutomated safety check: PassMIT
Finishing a Development Branchobra/superpowers297k5 repos~1.9kAutomated safety check: PassMIT
Code Review ChecklistshareAI-lab/learn-claude-code78k5 repos~1.1kAutomated safety check: PassMIT
Code Design Rationale Investigatorcursor/plugins10k9 repos~2.6kAutomated safety check: PassNone
Contributor-First PR MergeHKUDS/OpenHarness16k1 repos~847Automated safety check: PassMIT
Finishing A Development Branchfarm-fe/farm5.6k34 repos~1.8kAutomated safety check: PassMIT

Similar skills

  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    297k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Code Review Checklist

    shareAI-lab/learn-claude-code

    Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.

    78k GitHub starsUsed in 5 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Official

    Digs into why code is shaped the way it is by checking git history, pull requests and connected tools in parallel, then reporting a cited read on the tradeoffs.

    10k GitHub starsUsed in 9 repos~2.6k tokens
    DevelopmentAuto-check passed
  • Merges external GitHub pull requests while keeping the original author credited, and fixes conflicts after the merge instead of rewriting the contribution.

    16k GitHub starsUsed in 1 repo~847 tokens
    DevelopmentAuto-check passed
  • A skill your agent uses when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for…

    5.6k GitHub starsUsed in 34 repos~1.8k tokens
    DevelopmentAuto-check passed
  • Moves a package from another TryGhost repository into Ghost as an internal workspace package while keeping its Git history, with checkpoints for the steps that need an administrator.

    56k GitHub stars~3.8k tokensUpdated today
    DevelopmentAuto-check passed

More from FritzAndFriends/SharpSite

All 18 skills in this repo
  • Architectural Proposals

    FritzAndFriends/SharpSite

    How to write comprehensive architectural proposals that drive alignment before code is written

    145 GitHub starsUsed in 2 repos~1.6k tokens
    Auto-check passed
  • Client Compatibility

    FritzAndFriends/SharpSite

    Platform detection and adaptive spawning for CLI vs VS Code vs other surfaces

    145 GitHub starsUsed in 2 repos~1.3k tokens
    Auto-check passed
  • Docs Standards

    FritzAndFriends/SharpSite

    Microsoft Style Guide + Squad-specific documentation patterns

    145 GitHub starsUsed in 2 repos~567 tokens
    Auto-check passed
  • Economy Mode

    FritzAndFriends/SharpSite

    Shifts Layer 3 model selection to cost-optimized alternatives when economy mode is active.

    145 GitHub starsUsed in 2 repos~1.3k tokens
    Auto-check passed
  • External Comms

    FritzAndFriends/SharpSite

    PAO workflow for scanning, drafting, and presenting community responses with human review gate

    145 GitHub starsUsed in 2 repos~3.1k tokens
    Auto-check passed
  • Gh Auth Isolation

    FritzAndFriends/SharpSite

    Safely manage multiple GitHub identities (EMU + personal) in agent workflows

    145 GitHub starsUsed in 2 repos~1.6k tokens
    Auto-check: notes

Works with

Categories

Questions about Distributed Mesh

What does Distributed Mesh do?

How to coordinate with squads on different machines using git as transport. Distributed Mesh is an agent skill from FritzAndFriends/SharpSite.

When should I use Distributed Mesh?

Distributed Mesh fits situations like: development work in your project.

How do I install Distributed Mesh in Claude Code?

Run `npx skills add FritzAndFriends/SharpSite --skill distributed-mesh -a claude-code`. Or copy the skill folder (.copilot/skills/distributed-mesh in FritzAndFriends/SharpSite) into .claude/skills/distributed-mesh in your project. Claude Code loads it when a task matches its description.

How do I install Distributed Mesh in Codex?

Run `npx skills add FritzAndFriends/SharpSite --skill distributed-mesh -a codex`. Or copy the skill folder (.copilot/skills/distributed-mesh in FritzAndFriends/SharpSite) into .agents/skills/distributed-mesh in your project. Codex loads it when a task matches its description.

Can I use Distributed Mesh in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add FritzAndFriends/SharpSite --skill distributed-mesh -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/distributed-mesh, .gemini/skills/distributed-mesh, .github/skills/distributed-mesh and .opencode/skills/distributed-mesh in your project.

What does Distributed Mesh need to run?

Going by SKILL.md and its folder, Distributed Mesh needs PowerShell and a shell for the scripts in its folder and the command-line tools its instructions call (git and bash). Our summary lists: A Bash shell; PowerShell.

Does Distributed Mesh access the network?

SKILL.md names 1 domain. In commands or code: partner.dev; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Distributed Mesh safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Distributed Mesh use?

Distributed Mesh is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Distributed Mesh use?

About 3.1k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Distributed Mesh?

Skills that share tags, products or a category with Distributed Mesh: Finishing a Development Branch (obra/superpowers, 297k stars), Code Review Checklist (shareAI-lab/learn-claude-code, 78k stars), Code Design Rationale Investigator (cursor/plugins, 10k stars) and Contributor-First PR Merge (HKUDS/OpenHarness, 16k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Distributed Mesh?

FritzAndFriends (a GitHub organization) maintains it in FritzAndFriends/SharpSite, which has 145 GitHub stars. The repository holds 18 skills in this directory. The repository was last updated on April 30, 2026.

Source: FritzAndFriends/SharpSite on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.