EngramGraph: Skill for Claude Code

.agents/skills/knowledge-graph/SKILL.md

knowledge-graph is a skill for Claude Code from AsiaOstrich/EngramGraph. It costs 124 tokens per session (981 once invoked), scanned A, original, MIT.

A relationship-based memory tool for answering questions that connect specifications, technical decisions, and source code. It can use a graph service or fall back to Markdown files.

In plain words
What is it for?
Use it to find multi-step impact chains, resolve project identifiers, and follow links such as code to specification to decision.
Why use it?
It helps trace how one item affects related decisions, requirements, and code instead of searching each area separately.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: installed under .agents/ (shared by several agents).

This is AsiaOstrich/EngramGraph's own configuration. It tells Claude Code how to work on EngramGraph itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything EngramGraph configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is **Language**: English | [繁體中文](../../locales/zh-TW/skills/knowledge-graph/SKILL.md).

Reuse

Borrowing it

Nothing to install: this file belongs to AsiaOstrich/EngramGraph. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/AsiaOstrich/EngramGraph/main/.agents/skills/knowledge-graph/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/AsiaOstrich/EngramGraph

Made for: Claude Code.

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 knowledge-graph

README.md
[![agentmods](https://agentmods.dev/badge/skills/asiaostrich/engramgraph/knowledge-graph/github.svg)](https://agentmods.dev/skills/asiaostrich/engramgraph/knowledge-graph)
Your own site
<a href="https://agentmods.dev/skills/asiaostrich/engramgraph/knowledge-graph"><img src="https://agentmods.dev/badge/skills/asiaostrich/engramgraph/knowledge-graph/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 knowledge-graph

Your own site · 80×15
<a href="https://agentmods.dev/skills/asiaostrich/engramgraph/knowledge-graph"><img src="https://agentmods.dev/badge/skills/asiaostrich/engramgraph/knowledge-graph.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 124 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 981 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00124 $0.00981
Opus 5.5 $0.00050 $0.00392
Sonnet 5.5 $0.00025 $0.00196
Haiku 4.5 $0.00012 $0.00098

Measured 14d ago against content hash 8ea55a971896, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

knowledge-graph scanned grade A with 1 finding 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 14d 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.

Makes network callslowCapability

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

allowed-tools: Read, Glob, Grep, Bash(curl:*)
.agents/skills/knowledge-graph/SKILL.md · 63 lines

How it starts

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

Knowledge Graph | 知識圖

Language: English | 繁體中文

Answer structural questions across specs, decisions, and code — "what is the full impact chain of XSPEC-205?" — using the Knowledge Graph Memory relationship schema. Works with or without a graph engine.

回答橫跨規格、決策與程式碼的結構性問題——「XSPEC-205 的完整影響鏈是什麼?」——依據知識圖記憶標準的關係 schema。有無圖引擎皆可運作。

Implements: XSPEC-237 Phase 5 — knowledge-graph skill (EngramGraph opt-in)

Mode Selection | 模式選擇

Detect which mode to use before answering:

Condition Mode
ENGRAM_URL set, or a local graph engine responds on /health Service mode (engine)
Otherwise Degraded mode (Markdown)

Workflow | 工作流程

  1. Resolve the target — normalise the argument to a canonical id (XSPEC-205, DEC-062, a function name).
  2. Choose mode — probe for a graph engine (service) else fall back (degraded).
  3. Service mode (AC-5b) — issue a single multi-hop query and present the returned chain, including cross-domain links (code → spec → decision):
    curl -s -X POST "$ENGRAM_URL/graph/impact-analysis" \
      -H 'content-type: application/json' \
      -d '{"nodeId":"XSPEC-205","maxHops":3}'
    
  4. Degraded mode (AC-5a) — with no engine, read the target document, follow its impacts/impacted_by/supersedes/related front-matter and inline [[ref]] links by reading the linked files, and assemble the chain manually (bounded by reading depth).
  5. Present the chain — list the connected Specs and Decisions, the edge type for each hop, and (if present) each node's confidence, highest first.
  6. State the mode used — always say whether the answer came from the engine or Markdown fallback, so completeness is clear.

Relationship Schema | 關係 schema

See knowledge-graph-memory. Front-matter fields: related, impacts, impacted_by, supersedes, implements. Edge derivation: Decision impacts Spec → IMPACTS; Decision supersedes Decision → SUPERSEDES.

Read the full file on GitHub · 63 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 14d ago First seen · 63 lines · 124 tokens per session scan A 8ea55a971896

Subscribe to this mod's changes

knowledge-graph is a skill published in the GitHub repository AsiaOstrich/EngramGraph (3 stars, last pushed today), licensed MIT. It adds 124 tokens to every session and 981 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-16.

Related

Other skills, from other repositories

mushroom

Live graph memory for agents — query and create entities, derive relationships by rule, explain why two things are associated, read the graph at a past commit, ask what a change would do, and answer as one role. Trigger on: memory, remember, recall, relationship, entity, association, why are X and Y related, as of…

MatthewSherlin/mushroomdb · 0 tokens

omnigraph

Operate OmniGraph graphs and deployments. Use for .pg schemas, .gq queries, OmniGraph CLI commands, file:///s3:///az:// graph URIs, cluster.yaml, operator config, bearer-authenticated servers, graph-backed knowledge or memory, Blob values, embeddings, branches, commits, and change feeds. Apply especially before schema…

ModernRelay/omnigraph · 94 tokens

kivgraph

Use Kivgraph's local MCP server to search symbols, read their source, and follow references, dependencies, cross-repository consumers and graph status in the indexed code graph.

Luqueee/kivgraph · 39 tokens

openclaw

Persistent memory for agents. Stores preferences, decisions, facts, and events as a connected knowledge graph. Recalled by who, what, when, or why.

hypabase/hypabase · 32 tokens

brain-dream

Brain maintenance -- replay conversations, fix graph quality, surface signals.

X-Arc-ai/brain-cli · 16 tokens

shodh-memory

Persistent memory system for AI agents. Use this skill to remember context across conversations, recall relevant information, and build long-term knowledge. Activate when you need to store decisions, learnings, errors, or context that should persist beyond the current session.

varun29ankuS/shodh-memory · 53 tokens