kb-maintainer

kb-maintainer is an agent for Claude Code from haowjy/creative-writing-skills. It costs 56 tokens per session (544 once invoked), scanned A, original, Apache-2.0.

A documentation-structure agent for reorganising knowledge bases, .context folders, and other documentation trees. It splits, merges, renames, and repairs links without deciding whether the content itself is true.

In plain words
What is it for?
Use it to restructure documentation, repair cross-references, remove empty or orphaned pages, and check links and diagrams.
Why use it?
It keeps documentation organised and removes structural clutter while leaving factual decisions to the person or agent responsible for the content.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: names the NotebookEdit tool.

Part of the creative-writing-skills plugin — 28 skills, 5 agents shipped together

Good fit Use it to restructure documentation, repair cross-references, remove empty or orphaned pages, and check links and diagrams.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/haowjy/creative-writing-skills/kb-maintainer
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.

Clone the repo
git clone --depth 1 https://github.com/haowjy/creative-writing-skills

Made for: Claude Code.

Or install creative-writing-skills, the plugin that ships this one along with the rest of its 28 skills, 5 agents.

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 kb-maintainer

README.md
[![agentmods](https://agentmods.dev/badge/agents/haowjy/creative-writing-skills/kb-maintainer/github.svg)](https://agentmods.dev/agents/haowjy/creative-writing-skills/kb-maintainer)
Your own site
<a href="https://agentmods.dev/agents/haowjy/creative-writing-skills/kb-maintainer"><img src="https://agentmods.dev/badge/agents/haowjy/creative-writing-skills/kb-maintainer/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 kb-maintainer

Your own site · 80×15
<a href="https://agentmods.dev/agents/haowjy/creative-writing-skills/kb-maintainer"><img src="https://agentmods.dev/badge/agents/haowjy/creative-writing-skills/kb-maintainer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 544 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.00056 $0.00544
Opus 5.5 $0.00022 $0.00218
Sonnet 5.5 $0.00011 $0.00109
Haiku 4.5 $0.00006 $0.00054

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

Security

Grade A, and why

kb-maintainer 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 10d 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.

plugin/claude/agents/kb-maintainer.md · 57 lines

What it actually says

KB Maintainer

Survey the target tree before changing anything. Maintain the structural health of documentation trees (KB, .context/, docs/, design/): split what has grown too big, group what has scattered, name things for what they hold. If no target is specified, default to the project knowledge base and name the resolved target in your report.

Prune structural dead weight: empty stubs, pages orphaned by a move or merge, indexes listing nothing. Content that merely looks stale is not yours to delete; flag it for the caller.

You surface content problems; you never decide content truth. The caller holds the mined context and human decisions. Flag contradictions, staleness, superseded knowledge, gaps, and layer misplacement inline with /creative-writing-skills:knowledge-layers' marker. For git-level merge conflicts, reconcile non-semantic structure only; flag contradictory claims for the caller.

Verify every tree you touched with /creative-writing-skills:md-validation before reporting: links, the KB link graph, diagrams.

Load these skills before starting, unless they are already in your context: /creative-writing-skills:shared-dao, /creative-writing-skills:shared-workspace, /creative-writing-skills:llm-writing, /creative-writing-skills:information-hierarchy, /creative-writing-skills:knowledge-layers, /creative-writing-skills:qi-layer, /creative-writing-skills:md-validation.

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. 10d ago First seen · 57 lines · 56 tokens per session scan A 01230e3963ec

Subscribe to this mod's changes

kb-maintainer is an agent published in the GitHub repository haowjy/creative-writing-skills (567 stars, last pushed 10d ago), licensed Apache-2.0. It adds 56 tokens to every session and 544 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-10-28.

Related

kb-maintainer compared with agents from other repositories

kb-maintainer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
kb-maintainerhaowjy/creative-writing-skillsAgent56710d agoApache-2.0A56Claude Code
playwright-test-generatormicrosoft/playwrightAgent99kyesterdayApache-2.0A151Claude Code
.NET-Notebook-Migration-Agentmicrosoft/ai-agents-for-beginnersAgent79k4d agoMITA33Claude Code
code-revieweranthropics/claude-cookbooksAgent54k2d agoMITA52Claude Code
AVM Owner Triagegithub/awesome-copilotAgent41kyesterdayMITA61Claude Code
Ultimate Transparent Thinking Beast Modegithub/awesome-copilotAgent41kyesterdayMITA11Claude Code
WinForms Expertgithub/awesome-copilotAgent41kyesterdayMITA19Claude Code