code-work

A coding guide for building, debugging, refactoring, and testing software whose source is stored as connected document nodes. It treats generated code files as temporary outputs rather than the main source.

In plain words
What is it for?
Use it for programming projects, algorithms, modules, configuration, tests, and reorganizing code into reusable units.
Why use it?
It helps keep code structure, shared logic, configuration, and tests organized and traceable while working through the project’s 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/code-work
Any agent
npx skills add emergent-wisdom/understanding-graph --skill code-work
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 2,319 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.02319
Opus 5 $0.00029 $0.01159
Sonnet 5 $0.00012 $0.00464
Haiku 4.5 $0.00006 $0.00232

Measured 2d ago against content hash c3fae261aed2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

code-work 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 2d 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/code-work/SKILL.md · 211 lines

How it starts

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

Graph-Native Code

Treat the graph as the source tree. A generated .py, .ts, .json, or test file is a disposable projection used for execution; never patch it directly.

Represent the project

  • Use one document root per generated file. Give it the intended filename and fileType.
  • Use ordered child nodes for meaningful code units: imports, types, functions, classes, helpers, implementation blocks, exports, fixtures, and tests.
  • A leaf should have one coherent responsibility and reason to change. Make it addressable when you may need to understand, test, revise, move, reuse, or remove it independently. Do not create a node for every line.
  • When behavior is duplicated, put the shared function/class in the appropriate module node, update callers/imports, and remove the copies. The graph does not replace ordinary modular design; it makes that design movable and inspectable.
  • Represent configuration, package manifests, and tests as document roots too.
  • Connect durable design concepts to the concrete nodes they implement.

For code file types, generation concatenates root content and descendants as raw code in document order. Node titles are graph metadata, not emitted code.

Enter the work

If guided navigation would help at a real implementation choice, ask the graph for several concrete possibilities:

graph_suggest_next({
  task: "Build or change this graph-native software project and verify it",
  workflow: "coding"
})

Consider higher-weighted routes seriously, then choose, combine, modify, or reject them according to the actual task. The suggestions are provocations, not a state machine or exhaustive menu. In direct mode, choose these moves yourself and use the graph tools immediately; no coding capability is lost. If the useful route requires prior context, follow it with graph_understand, carrying the suggested stance and focus. If the task is already locally clear, make the next coherent graph-native code move instead.

Read the full file on GitHub · 211 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. 2d ago First seen · 211 lines · 58 tokens per session scan A c3fae261aed2

Subscribe to this mod's changes

code-work is a skill published in the GitHub repository emergent-wisdom/understanding-graph (1 stars, last pushed 7d ago), licensed MIT. It adds 58 tokens to every session and 2,319 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-query

Answer a question from the AKB vault — decompose, search (hybrid / graph), ground in compiled-truth-over-timeline precedence, and synthesize a cited answer with gap/conflict/stale flags. Read-only.

dnotitia/akb · 50 tokens