collaborative-code

A skill for coordinating multiple contributors working on the same graph-based software project, with explicit ownership, locks, handoffs, and integration steps.

In plain words
What is it for?
Partitioning work, checking ownership locks, assigning bounded tasks, sharing evidence-rich handoffs, regenerating outputs, and integrating changes through one path.
Why use it?
It prevents contributors from editing the same project areas at once and keeps generated files consistent with the shared source graph.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/emergent-wisdom/understanding-graph/collaborative-code
Any agent
npx skills add emergent-wisdom/understanding-graph --skill collaborative-code
Clone the repo
git clone --depth 1 https://github.com/emergent-wisdom/understanding-graph

Made for: Claude Code, Codex.

Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,358 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00058 $0.01358
Opus 5 $0.00029 $0.00679
Sonnet 5 $0.00012 $0.00272
Haiku 4.5 $0.00006 $0.00136

Measured yesterday against content hash 820207cf604c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

collaborative-code scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/collaborative-code/SKILL.md · 139 lines

How it starts

The opening of the file, as written. The whole thing — 139 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Collaborative Graph-Native Code

Use the code document graph as the shared source tree. Generated files are read-only projections for builds and tests. Contributors must never patch them.

Required server surface

This skill requires the server to run with TOOL_MODE=collaborative_coding and advertise the solver_* tools. If those tools are unavailable, do not imitate persistent tasks, ownership, or locks in chat. Work serially through code-work, or ask the user to restart the server in collaborative-coding mode before concurrent mutation.

Partition before concurrent mutation

The integration owner must:

  1. Inspect the artifact roots or subtrees that bear on the requested change and check active locks. Read broader topology or history only when it affects partitioning; do not run a fixed orientation ritual.
  2. If guided navigation would help at a consequential partition or design choice, ask for concrete graph-sensitive possibilities:
graph_suggest_next({
  task: "Build and integrate this graph-native software project",
  workflow: "collaborative_coding"
})

Consider the weights, then choose, combine, modify, or reject the routes for this task. In direct mode, partition and coordinate through the graph without this call. If a selected route needs re-entry, call graph_understand with its stance and focus. The roll is guidance, not a coordination state machine. 3. Assign one owner per document root or disjoint subtree. Avoid two active writers on the same node or sibling-order chain. 4. Give each solver a bounded outcome, owned node IDs, forbidden subtrees, dependencies, acceptance commands, and required handoff shape. 5. Name one integration owner before mutation begins.

Lock graph ownership

Locks protect graph resources, not generated files:

solver_lock({
  resource_ids: ["n_code_root"],
  holder_id: "parser-contributor",
  scope: "subtree",
  duration_minutes: 10,
  reason: "Own parser source nodes through handoff"
})

Read the full file on GitHub · 139 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 139 lines · 58 tokens per session scan A 820207cf604c

Subscribe to this mod's changes

collaborative-code is a skill published in the GitHub repository emergent-wisdom/understanding-graph (1 stars, last pushed 6d ago), licensed MIT. It adds 58 tokens to every session and 1,358 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

Virtual Embryo — atlas data + knowledge graph

Query the Virtual Embryo knowledge graph (mouse/human developmental biology: genes, anatomy, Theiler/Carnegie stages, gene expression, diseases, papers) and its 3D atlas catalog (anatomical OPT/light-sheet volumes + 3D spatial- transcriptomics datasets), and visualise those datasets in 3D with the volume3d / spatial3d…

aristoteleo/PantheonOS · 170 tokens

braindb

Memory recall and save. Use at every conversation start and whenever the user shares personal information, expertise, project context, preferences, or decisions worth remembering long-term.

dimknaf/braindb · 36 tokens

braindb-agent

Persistent memory across sessions via the BrainDB agent. Use at conversation start and whenever you need to recall what you know about the user or save new information to long-term memory.

dimknaf/braindb · 40 tokens

braindb-custom-profile

How to author a BrainDB custom profile — prompt add/replace fragments and an optional keyless ingestor — that shapes wiki naming/structure and feeds a custom ingestion source, with zero effect on defaults when inactive.

dimknaf/braindb · 49 tokens

session-ingest

Ingest a coding session JSONL into AKB as structured notes — session report + parallel-drafted TIL / task / idea / decision sub-notes. Auto-discovers the current session's JSONL when no positional path is given (Claude / Codex). --delegate {target} fires the work to another target's CLI and exits.

dnotitia/akb · 74 tokens

akb-ingest

Ingest whatever you point at into an AKB vault — a local file, a web URL, a GitHub PR/release/commit, a Confluence page, or a Jira issue. Auto-detects the source type and dispatches to a specialized ingest subagent; the router fetches and writes nothing itself. One target per invocation; globs expand to a sequential…

dnotitia/akb · 87 tokens