chronicle-mcp: Skill for Claude Code

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

initialize-knowledge-graph is a skill for Claude Code 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 Code

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

This is loerei/chronicle-mcp's own configuration. It tells Claude Code how to work on chronicle-mcp 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 chronicle-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to loerei/chronicle-mcp. 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/loerei/chronicle-mcp/main/.agents/skills/initialize-knowledge-graph/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/loerei/chronicle-mcp

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/loerei/chronicle-mcp/initialize-knowledge-graph/github.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/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 initialize-knowledge-graph

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. 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.00059 $0.00561
Opus 5.5 $0.00024 $0.00224
Sonnet 5.5 $0.00012 $0.00112
Haiku 4.5 $0.00006 $0.00056

Measured 1mo ago against content hash a06b02859067, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 1mo ago), licensed MIT. It adds 59 tokens to every session and 561 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

knowledge-ingest

Ingest documents, articles, conversations, or supplied text into Knowledge with retained originals, sourced claims, entity updates, timelines, and cross-links; also learn durable lessons from a set of conversations, transcripts, or past sessions (/learn). Routes meetings to knowledge-meeting-ingest and short thoughts…

openclaw/openclaw · 67 tokens

forget

Remove a personal fact, preference, relationship detail, topic, or prior event from Muse's active memory and stop existing copies or automations from bringing it back. Use for explicit requests such as 'forget that', 'don't remember this about me', or 'remove that from your memory'. Do not use when 'forget it' merely…

asgeirtj/system_prompts_leaks · 74 tokens

mem0-oss-to-platform

Plan, then execute, a migration of a project from the mem0 open-source / self-hosted SDK (local Memory class) to the mem0 Platform / hosted SDK (MemoryClient). TRIGGER when: the developer wants to move, switch, or migrate mem0 off OSS/self-hosted to the hosted API, e.g. "migrate my mem0 setup to the platform", "switch…

mem0ai/mem0 · 217 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

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