collaborative-code

collaborative-code is a skill for Claude Code from emergent-wisdom/understanding-graph. It costs 58 tokens per session (1,358 once invoked), scanned A, original, MIT.

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 Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the understanding-graph plugin — 10 skills, 2 MCP servers shipped together

Good fit Partitioning work, checking ownership locks, assigning bounded tasks, sharing evidence-rich handoffs, regenerating outputs, and integrating changes through one path.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/emergent-wisdom/understanding-graph/collaborative-code
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.

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.

Or install understanding-graph, the plugin that ships this one along with the rest of its 10 skills, 2 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for collaborative-code

README.md
[![agentmods](https://agentmods.dev/badge/skills/emergent-wisdom/understanding-graph/collaborative-code/github.svg)](https://agentmods.dev/skills/emergent-wisdom/understanding-graph/collaborative-code)
Your own site
<a href="https://agentmods.dev/skills/emergent-wisdom/understanding-graph/collaborative-code"><img src="https://agentmods.dev/badge/skills/emergent-wisdom/understanding-graph/collaborative-code/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for collaborative-code

Your own site · 80×15
<a href="https://agentmods.dev/skills/emergent-wisdom/understanding-graph/collaborative-code"><img src="https://agentmods.dev/badge/skills/emergent-wisdom/understanding-graph/collaborative-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00058 $0.01358
Opus 5.5 $0.00023 $0.00543
Sonnet 5.5 $0.00012 $0.00272
Haiku 4.5 $0.00006 $0.00136

Measured 2mo ago against content hash 820207cf604c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo ago.

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. 2mo ago 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 yesterday), licensed MIT. It adds 58 tokens to every session and 1,358 once invoked, about $0.0002 per session on Opus 5.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

stale-sweep

Sweep the googleapis/mcp-toolbox repo for issues and PRs with no real activity in N days (default 60), sort each by whose silence it is (the author's, ours, or nobody's), and draft the nudge or close comment. Use whenever a maintainer asks for a stale sweep, backlog cleanup, or an SLO check, e.g. "stale sweep", "find…

googleapis/mcp-toolbox · 159 tokens

linear-tickets

Create or update high-quality Linear tickets while preserving the originating report, diagnostic links, attachments, and reporter/requester attribution. Read this whenever someone asks to create, recreate, or update a Linear issue.

langchain-ai/open-swe · 44 tokens

company-employee

The protocol every employee of a PenguinHarness organization follows — read the handbook first, act on [orgtrigger] work runs, schedule tickets from the desk session and do the work in ticket sessions, block instead of idling, ask the board in the all-hands channel before anything heavy, costly, irreversible or…

Prism-Shadow/penguin-harness · 85 tokens

company-ceo

Run a PenguinHarness organization as its CEO — turn the mission into a ticket tree, hire HR and finance first, partition the shared workspace, schedule the calendar, open a channel per stream, review tickets and report to the board in the all-hands channel.

Prism-Shadow/penguin-harness · 56 tokens

company-hr

Run HR for a PenguinHarness organization — guarantee every employee has an enabled calendar event, hire and offboard employees (channels included), evaluate and improve them (with the default-rsi-toolkit plugin's agent-optimization skill), and keep the handbook's role conventions current.

Prism-Shadow/penguin-harness · 58 tokens

company-mirror

Run a PenguinHarness organization that mirrors a real company — one digital twin per real colleague, each twin's desk bound to that colleague's chat bot, twins answering what the handbook already knows and relaying the rest to one another instead of hiring, scheduling and filing tickets.

Prism-Shadow/penguin-harness · 58 tokens