dkg-node

dkg-node is a skill for Claude Code, Codex from OriginTrail/dkg. It costs 58 tokens per session (23,515 once invoked), scanned B, original, Apache-2.0.

A set of instructions for using an OriginTrail Decentralized Knowledge Graph node as a memory system. It covers temporary private notes, shared notes with peers, and permanent on-chain records.

In plain words
What is it for?
Use it to inspect node details, work with context graphs, manage private or shared memory, and publish records permanently.
Why use it?
It gives the agent a defined way to store, retrieve, share, and publish information while keeping track of which knowledge graph it belongs to.

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/origintrail/dkg/dkg-node
Any agent
npx skills add OriginTrail/dkg --skill dkg-node
Clone the repo
git clone --depth 1 https://github.com/OriginTrail/dkg

Made for: Claude Code, Codex.

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 dkg-node

README.md
[![agentmods](https://agentmods.dev/badge/skills/origintrail/dkg/dkg-node.svg)](https://agentmods.dev/skills/origintrail/dkg/dkg-node)
Your own site
<a href="https://agentmods.dev/skills/origintrail/dkg/dkg-node"><img src="https://agentmods.dev/badge/skills/origintrail/dkg/dkg-node.svg" alt="Measured on agentmods" 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 23,515 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 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.23515
Opus 5 $0.00029 $0.11758
Sonnet 5 $0.00012 $0.04703
Haiku 4.5 $0.00006 $0.02352

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

Security

Grade B, and why

dkg-node scanned grade B with 2 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 4d 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.

Sends data to an external URLmediumData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

curl -X POST $BASE_URL/api/context-graph/create -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"id":"my-project","name":"My Project"}'

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- `curl http://127.0.0.1:9200/api/status | jq '{version, commit, commitShort, buildTime, distTag, installMode, nodeRole}'` — the running daemon's version, commit, and install mode. Mismatch between `dkg --version` and th
packages/cli/skills/dkg-node/SKILL.md · 999 lines

How it starts

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

DKG V10 Node Skill

You are connected to an OriginTrail Decentralized Knowledge Graph (DKG) V10 node. This skill teaches you the full node API surface so you can operate autonomously.

1. Node Info

This section is dynamically generated from node state at serve-time.

  • Node version: (dynamic)
  • Base URL: (dynamic)
  • Peer ID: (dynamic)
  • Node role: (dynamic — core or edge)
  • Available extraction pipelines: (dynamic)

If the Node UI injects a target context graph for the turn, use that target directly. If no target is injected or configured, call dkg_list_context_graphs / GET /api/context-graph/list; agent tool surfaces default that list to the caller's created/joined context graphs, with scope: "all" for every graph the node knows about.

Context Graph IDs

For write or mutation routes, always pass the injected target context graph id, an exact existing context graph id from dkg_list_context_graphs / GET /api/context-graph/list, or the full did:dkg:context-graph:<id> URI.

  • A context graph created locally can have a bare canonical id, for example local-notes, with full URI did:dkg:context-graph:local-notes.
  • A joined or curated context graph can have a curator-scoped canonical id, for example 0x1234567890abcdef1234567890abcdef12345678/team-notes, with full URI did:dkg:context-graph:0x1234567890abcdef1234567890abcdef12345678/team-notes.

Do not guess from the display name, shorten a curator-scoped id, or pass only a suffix slug such as team-notes when the listed id is 0x.../team-notes. Write routes reject unknown, ambiguous, or non-canonical targets before writing so they cannot accidentally create shadow context graphs.

1a. Operating the node (install, update, troubleshoot)

Before reasoning about install state, run dkg doctor. Detects orphan repository clones, version skew between the daemon and the global dkg CLI, served-UI / source mismatch, broken plugin install roots, and other install-layout anomalies. Use dkg doctor --json for a machine-parsable report; the state field always carries the full diagnostic snapshot (daemon entry point, install mode, node role, dkg-home, current version + commit, auto-update settings) independent of any anomaly findings.

Read the full file on GitHub · 999 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. 4d ago First seen · 999 lines · 58 tokens per session scan B 9e93ed89ebce

Subscribe to this mod's changes

dkg-node is a skill published in the GitHub repository OriginTrail/dkg (144 stars, last pushed today), licensed Apache-2.0. It adds 58 tokens to every session and 23,515 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 2 findings (sends data to an external url, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

recall

Recall this repository's OwnMem local memory before changing code, and keep it healthy. Use when a repository contains .ownmem/, when past debugging lessons could apply ("have we hit this before", "why is it done this way"), or when the user mentions ownmem, project memory, or recalling across sessions.

grpcer/ownmem · 66 tokens

memory-protocol

Universal protocol for total-agent-memory MCP server. Activate at session start, before any non-trivial task, after every significant action, on errors, and at session end. Relevant whenever the user mentions: memory, recall, past context, decisions history, conventions, lessons learned, "продолжаем", "сохранись"…

vbcherepanov/total-agent-memory · 120 tokens

memory

Activate this skill when starting a new session, beginning a new task, saving knowledge, recalling past decisions, or after completing significant work. Also activate on errors to log them for pattern analysis. Relevant when the user asks about memory, past context, lessons learned, decisions history, project…

vbcherepanov/total-agent-memory · 65 tokens

recallnest

Recover cross-session context with RecallNest, search durable memory before repeat exploration, store durable decisions and lessons, and checkpoint unfinished work.

AliceLJY/recallnest · 30 tokens

recallnest

Recover cross-session context with RecallNest, search durable memory before repeat exploration, store durable decisions and lessons, and checkpoint unfinished work.

AliceLJY/recallnest · 30 tokens

yggdrasil-memory

Durable, cross-session, cross-project memory for the user's work via Yggdrasil. Use at the START of any non-trivial task to recall prior decisions, solutions, and lessons (yggrecall / yggbootstrap), and AFTER solving something reusable to save it (yggremember). Trigger when the user says "have we done this before"…

VonderVuflya/Yggdrasil · 141 tokens