kg-extract

kg-extract is a skill for Claude Code, Codex from mironmax/claudecode-plugins. It costs 12 tokens per session (1,815 once invoked), scanned A, original, no licence file.

A tool that maps a codebase's architecture into a knowledge graph. A codebase is the collection of source files that make up a software project.

In plain words
What is it for?
Use it to record the structure and relationships of an existing codebase in the knowledge graph.
Why use it?
It helps preserve how the project's parts relate to one another instead of leaving that understanding only in the agent's current context.

Skill for Claude CodeCodex

Part of the knowledge-graph plugin — 5 skills, 3 hooks, 1 MCP server shipped together

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/mironmax/claudecode-plugins/kg-extract
Any agent
npx skills add mironmax/claudecode-plugins --skill kg-extract
Clone the repo
git clone --depth 1 https://github.com/mironmax/claudecode-plugins

Made for: Claude Code, Codex.

Or install knowledge-graph, the plugin that ships this one along with the rest of its 5 skills, 3 hooks, 1 MCP server.

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 kg-extract

README.md
[![agentmods](https://agentmods.dev/badge/skills/mironmax/claudecode-plugins/kg-extract.svg)](https://agentmods.dev/skills/mironmax/claudecode-plugins/kg-extract)
Your own site
<a href="https://agentmods.dev/skills/mironmax/claudecode-plugins/kg-extract"><img src="https://agentmods.dev/badge/skills/mironmax/claudecode-plugins/kg-extract.svg" alt="Measured on agentmods" height="20"></a>
Per session 12 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,815 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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.00012 $0.01815
Opus 5 $0.00006 $0.00907
Sonnet 5 $0.00002 $0.00363
Haiku 4.5 $0.00001 $0.00181

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

Security

Grade A, and why

kg-extract 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 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.

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.

knowledge-graph/skills/kg-extract/SKILL.md · 183 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

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 · 183 lines · 12 tokens per session scan A 133055b68395

Subscribe to this mod's changes

kg-extract is a skill published in the GitHub repository mironmax/claudecode-plugins (5 stars, last pushed 3d ago), with no licence file. It adds 12 tokens to every session and 1,815 once invoked, about $0.0001 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

ori-memory

Persistent agent memory with learning retrieval. Knowledge graph on markdown files — capture insights, decisions, research, and learnings during work, then retrieve them weeks or months later. Use when knowledge is too valuable to lose but too much to inject into every prompt.

aayoawoyemi/Ori-Mnemos · 54 tokens

forgetful-entities

Model the things knowledge attaches to — people, organisations, devices, products, system components. Use when a new thing surfaces that memories will reference, when relationships between things need recording (owns, depends on, part of), or when another skill routes a pointable thing here. Litmus: an entity is a…

ScottRBK/forgetful · 80 tokens

forgetful-explore

Explore the Forgetful knowledge graph when flat search isn't enough — cross-project investigations, "what do we know about X", entity-centred questions, tracing how decisions connect. Use when recall returns fragments that reference entities or trail across domains. Walks memories, entities, and relationships into one…

ScottRBK/forgetful · 65 tokens

agent-activity-audit

Audit recent agent transcripts (Claude Code and Codex) to learn how a tool, system, or skill is actually being used in the wild. Surfaces failure modes, friction, success patterns, and concrete improvement candidates from real session data. Use this when you want to improve a developer-facing system that agents…

hyperb1iss/sibyl · 71 tokens

remnic-memory-workflow

Shared memory workflow for Claude Code agents connected to Remnic — recall before acting, observe during work, remember at the end. Trigger phrases include "what do you remember about", "save this for later", "any context from last time".

joshuaswarren/remnic · 54 tokens

remnic-entities

Browse entities in the Remnic knowledge graph and surface their facts and relationships. Trigger phrases include "tell me about the entity", "look up", "what do we know about".

joshuaswarren/remnic · 41 tokens