initialize-knowledge-graph

initialize-knowledge-graph is a skill for Claude Code, Codex from loerei/chronicle-mcp. It costs 59 tokens per session (561 once invoked), scanned A, original, MIT.

A project-starting workflow that reads domain documents and the main code structure, then creates a Knowledge Graph in a Memory MCP server. A Knowledge Graph stores concepts, relationships, and facts so an agent can reuse them later.

In plain words
What is it for?
Use it when starting work in a repository or introducing a memory server, especially when the project has CONTEXT files, architecture decision records, and clearly defined modules.
Why use it?
It reduces the need to repeatedly explain the project's terminology, architecture, and domain relationships to the agent.

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/loerei/chronicle-mcp/initialize-knowledge-graph
Any agent
npx skills add loerei/chronicle-mcp --skill initialize-knowledge-graph
Clone the repo
git clone --depth 1 https://github.com/loerei/chronicle-mcp

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/loerei/chronicle-mcp/initialize-knowledge-graph.svg)](https://agentmods.dev/skills/loerei/chronicle-mcp/initialize-knowledge-graph)
Your own site
<a href="https://agentmods.dev/skills/loerei/chronicle-mcp/initialize-knowledge-graph"><img src="https://agentmods.dev/badge/skills/loerei/chronicle-mcp/initialize-knowledge-graph.svg" alt="Measured on agentmods" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 561 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.00059 $0.00561
Opus 5 $0.00030 $0.00280
Sonnet 5 $0.00012 $0.00112
Haiku 4.5 $0.00006 $0.00056

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

Security

Grade A, and why

initialize-knowledge-graph 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 3d 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.

.agents/skills/initialize-knowledge-graph/SKILL.md · 42 lines

How it starts

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

Initialize Knowledge Graph

Automate the discovery of domain terminology and codebase structure, translating them into persistent nodes (Entities), edges (Relations), and facts (Observations) inside the Memory MCP server.

This ensures the agent starts with high-signal context and complete terminology alignment without requiring manual explanation.

Process

1. Discovery & Research

Scan the codebase to gather high-level domain information and structural entry points:

  • Domain Docs: Look for CONTEXT.md, CONTEXT-MAP.md, and any files in docs/adr/.
  • Glossary & Jargon: Extract canonical terms, abbreviations, and descriptions defined in these files.
  • Codebase Structure: Scan major modules, entry points, or directory layout using get_repo_outline or get_file_tree.

2. Formulate Entity List

Before writing to the graph, list all identified entities and their relationships. Group them into:

  • Concepts: Core business domains or components (e.g. Character card, Persona card).
  • Actors/Roles: Active agents or user roles in the system (e.g. User, Bot).
  • Structures: Physical or logical data layouts (e.g. Lorebook, Database).

3. Populate the Graph (Memory Ingestion)

Proactively call the memory MCP server mutation tools to build the knowledge graph structure:

  • Create Entities: Call create_entities to add all mapped concepts and actors. Include a brief, precise description in each node's observations.
  • Set Relations: Call create_relations to establish structural and semantic connections.
  • Configure Aliases (CRITICAL): For any acronyms, shortcuts, or alternate names, create a separate Entity and link it to the canonical Entity using an is_alias_of or synonym_of relation.
    • Example: Create Auth as a Concept, and establish Auth $\rightarrow$ is_alias_of $\rightarrow$ Authentication.

4. Verify & Confirm

Validate that the knowledge graph is correctly populated:

  • Call read_graph or perform a search_nodes query on major terms to verify the nodes are correctly linked and queryable.
  • Present a concise, professional summary of the initialized entities and relationships to the user.

Read the full file on GitHub · 42 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. 3d ago First seen · 42 lines · 59 tokens per session scan A a06b02859067

Subscribe to this mod's changes

initialize-knowledge-graph is a skill published in the GitHub repository loerei/chronicle-mcp (0 stars, last pushed 9d ago), licensed MIT. It adds 59 tokens to every session and 561 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

mem0-oss-to-platform

Plan and then execute a migration of a project from the mem0 open-source / self-hosted SDK (the local Memory class) to the mem0 Platform / hosted / managed SDK (the MemoryClient class). Use this whenever a developer wants to move, switch, or migrate their mem0 usage off OSS/self-hosted to the hosted API — e.g.…

mem0ai/mem0 · 273 tokens

Cortex

Operate Cortex, the LifeOS memory system — the typed Knowledge Archive (People, Companies, Ideas, Research with typed related: links) plus recall of prior work sessions, ISAs, and conversations. Search, add, harvest, develop, ingest, distill, graph-navigate, recall. USE WHEN cortex, knowledge, knowledge base, search…

danielmiessler/LifeOS · 196 tokens

auditing-subgroup-fairness

Audit an OpenMed NER or de-identification model for performance disparities across demographic subgroups (sex, age band, race/ethnicity when available) using openmed.eval.fairnessreport. Use when the user wants per-subgroup recall and leakage, wants to check whether de-identification under-protects a group, wants to…

maziyarpanahi/openmed · 148 tokens

agent-memory

../../../engineering/agent-memory/skills/agent-memory/SKILL.md.

alirezarezvani/claude-skills · 0 tokens

memory

Use when the user asks to remember, recall, forget, update, search, or inspect durable OpenSquilla memory, including profile facts in USER.md and long-term notes in MEMORY.md or memory//.md.

opensquilla/opensquilla · 44 tokens

ha-data-stores

Map of Hope Agent's local data stores and safe read-only query workflow. Use when the user asks where Hope Agent stores data, wants to inspect sessions/messages/memory/logs/background jobs/knowledge indexes/settings, asks the model to query local app data, or debugging requires checking persisted state. Trigger…

shiwenwen/hope-agent · 115 tokens