agentleFS
amaar-mcamaar-mc/wit/skills/coordinate/SKILL.md

coordinate

Skill46 starsChanged 8 months agoMITView on GitHub

Coordinate with other AI agents before editing code. Declares intents, acquires semantic locks, and checks for conflicts to prevent merge conflicts in multi-agent workflows.

6 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions6 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 6

    1. swyxio/skills★ 171same name
    2. jsboige/CoursIA★ 16same name
    3. GhostlyGawd/recursive-harness★ 3same name
    4. AcKeskin/contexture★ 2same name
    5. bftelman/skills★ 2same name
    6. MuhammadFarhantahirvoltic/project-relay★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repositoryOne other file it gives its agents.

The file

We split this skill into the rules it gives an agent

11 rules. 0 are common, 4 are distinctive, and 7 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Check if Wit is initialized:

    line 10
  2. Very specific:

    If active: run wit status to see what other agents are doing.

    line 14
  3. Very specific:

    If inactive: check if the wit command exists:

    line 15
  4. Very specific:

    If installed but not initialized: run wit init to start coordination.

    line 19
  5. Distinctive:

    If not installed: skip all coordination.

    line 20
  6. Very specific:

    Check the response for conflicts.

    line 28
  7. Very specific:

    If you get a LOCK_CONFLICT, another agent is actively editing that symbol.

    line 34
  8. Distinctive:

    Always declare intent BEFORE editing files, not after.

    line 51
  9. Distinctive:

    If you receive a conflict warning, do NOT ignore it — adjust your plan to avoid the conflicting region.

    line 53
  10. Very specific:

    If wit commands fail with connection errors, the daemon may not be running.

    line 54
  11. Very specific:

    If wit is not installed (command -v wit fails), skip all coordination silently.

    line 60

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

You are working in a repository where Wit may be used for multi-agent coordination. Other AI agents may be working on this codebase simultaneously. Follow this protocol to prevent merge conflicts.

On session start

  1. Check if Wit is initialized:
    test -d .wit && echo "wit:active" || echo "wit:inactive"
  2. If active: run wit status to see what other agents are doing.
  3. If inactive: check if the wit command exists:
    command -v wit >/dev/null 2>&1 && echo "wit:installed" || echo "wit:not-installed"
    • If installed but not initialized: run wit init to start coordination.
    • If not installed: skip all coordination. Wit is not available in this environment.

Before editing any file

  1. Declare your intent — announce what you plan to work on:
    wit declare --description "Brief description of planned work" --files src/path/to/file.ts
    Check the response for conflicts. If hasConflicts is true, read the conflict items — another agent may be working in the same area. Adjust your approach if needed.
  2. Lock specific symbols you plan to modify (functions, classes, types):
    wit lock --symbol "src/path/to/file.ts:functionName"
    If you get a LOCK_CONFLICT, another agent is actively editing that symbol. Work on a different part of the code instead.
  3. Check coordination state at any time:
    wit status
    This shows all active intents, locks, and contracts across all agents.

After finishing your work

  1. Release your locks:
    wit release --symbol "src/path/to/file.ts:functionName"

Rules

  • Always declare intent BEFORE editing files, not after.
  • Lock at the symbol level (function, class, type), not the file level.
  • If you receive a conflict warning, do NOT ignore it — adjust your plan to avoid the conflicting region.
  • If wit commands fail with connection errors, the daemon may not be running. Run wit init to restart it.
  • Locks auto-expire after 30 minutes. Release them early when you finish.
  • The --json flag on any command gives machine-readable output.

When to skip coordination entirely

  • If wit is not installed (command -v wit fails), skip all coordination silently.
  • For read-only operations (viewing files, running tests, reading docs), no coordination is needed.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.