kg-maintain

kg-maintain is a skill for Claude Code, Codex from mironmax/claudecode-plugins. It costs 152 tokens per session (2,010 once invoked), scanned A, original, no licence file.

A maintenance tool for a knowledge graph. It performs a limited, resumable cleanup pass based on the graph's reported debt and health.

In plain words
What is it for?
Use it when the graph reports high debt, or when maintenance is explicitly requested. It also reacts during conversations to events such as user corrections.
Why use it?
It helps address accumulated graph maintenance work without requiring one large, uninterrupted cleanup.

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-maintain
Any agent
npx skills add mironmax/claudecode-plugins --skill kg-maintain
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-maintain

README.md
[![agentmods](https://agentmods.dev/badge/skills/mironmax/claudecode-plugins/kg-maintain.svg)](https://agentmods.dev/skills/mironmax/claudecode-plugins/kg-maintain)
Your own site
<a href="https://agentmods.dev/skills/mironmax/claudecode-plugins/kg-maintain"><img src="https://agentmods.dev/badge/skills/mironmax/claudecode-plugins/kg-maintain.svg" alt="Measured on agentmods" height="20"></a>
Per session 152 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,010 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.00152 $0.02010
Opus 5 $0.00076 $0.01005
Sonnet 5 $0.00030 $0.00402
Haiku 4.5 $0.00015 $0.00201

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

Security

Grade A, and why

kg-maintain 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 yesterday.

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-maintain/SKILL.md · 163 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. yesterday Changed · +28 lines fb4c18268ca0
  2. 4d ago First seen · 135 lines · 152 tokens per session scan A e782a82a560a

Subscribe to this mod's changes

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

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

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-recall

Search Remnic memories by natural-language query. Trigger phrases include "what do you remember about", "recall anything on", "have we discussed".

joshuaswarren/remnic · 35 tokens

remnic-remember

Store a durable memory in Remnic so every connected agent can recall it. Trigger phrases include "remember this", "save this for later", "add a note that".

joshuaswarren/remnic · 39 tokens