kb-maintain

kb-maintain is a command for Claude Code from andisab/swe-marketplace. It costs 41 tokens per session (416 once invoked), scanned A, original, MIT.

A command that runs a maintenance sweep on a knowledge-base website. It checks due facts against primary sources, updates confirmed information, records changes, and can report findings without writing them in dry-run mode.

In plain words
What is it for?
Use it in a weekly scheduled job to maintain a knowledge-base site, review its maintenance table, research due items, apply updates, and report drift or dry-run results.
Why use it?
It removes the manual work of starting and coordinating recurring knowledge-base reviews. It also limits edits to facts that are due and confirmed, reducing accidental rewrites.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the knowledgeware plugin — 4 skills, 1 command, 1 agent shipped together

Good fit Use it in a weekly scheduled job to maintain a knowledge-base site, review its maintenance table, research due items, apply updates, and report drift or dry-run results.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add andisab/swe-marketplace
Claude Code
/plugin install knowledgeware

Made for: Claude Code.

Or install knowledgeware, the plugin that ships this one along with the rest of its 4 skills, 1 command, 1 agent.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/andisab/swe-marketplace/kb-maintain/github.svg)](https://agentmods.dev/commands/andisab/swe-marketplace/kb-maintain)
Your own site
<a href="https://agentmods.dev/commands/andisab/swe-marketplace/kb-maintain"><img src="https://agentmods.dev/badge/commands/andisab/swe-marketplace/kb-maintain/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-maintain

Your own site · 80×15
<a href="https://agentmods.dev/commands/andisab/swe-marketplace/kb-maintain"><img src="https://agentmods.dev/badge/commands/andisab/swe-marketplace/kb-maintain.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 416 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.00041 $0.00416
Opus 5.5 $0.00016 $0.00166
Sonnet 5.5 $0.00008 $0.00083
Haiku 4.5 $0.00004 $0.00042

Measured today against content hash 630af5e6a3e7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

kb-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 today.

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.

plugins/knowledgeware/commands/kb-maintain.md · 30 lines

What it actually says

Run a maintenance sweep against the knowledgebase site at: $ARGUMENTS

Read ${CLAUDE_PLUGIN_ROOT}/agents/kb-maintainer.md and execute its runbook in this session (not as a subagent — you need the Agent tool to fan out research subagents, which run on Sonnet). The governing contract is ${CLAUDE_PLUGIN_ROOT}/skills/knowledgebase/references/maintenance.md; its §5 protocol is binding.

Summary of what you will do (the runbook is authoritative):

  1. Parse the site's maintenance page — the master volatility table is your work order.
  2. Compute the due-list by cadence. Touch nothing that is not due.
  3. Fan out research subagents on Sonnet, clustered by authoritative source.
  4. Apply confirmed deltas surgically: research file → fan-out pages → earned stamps → one changelog row. With --dry-run, report instead of writing.
  5. Report drift as suggestions only — never restructure or rewrite the site.

If $ARGUMENTS is empty, ask for the site directory rather than guessing.

Scheduling recipe

Weekly headless run (cron, launchd, or any scheduler):

claude -p "/knowledgeware:kb-maintain '/path/to/site'" \
  --permission-mode acceptEdits --model opus

Add --dry-run inside the quoted command for a report-only pass. Point one job per site; the sweep is self-scoping, so running it more often than weekly is safe — non-due rows are skipped, and a no-delta sweep still writes its changelog row.

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. today First seen · 30 lines · 41 tokens per session scan A 630af5e6a3e7

Subscribe to this mod's changes

kb-maintain is a command published in the GitHub repository andisab/swe-marketplace (21 stars, last pushed today), licensed MIT. It adds 41 tokens to every session and 416 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-17.

Related

Other commands, from other repositories

ccc-update-docs

Regenerate the generated parts of project docs (scripts reference, environment variables, contributing guide, runbook) from source-of-truth files and flag stale docs, leaving hand-written prose intact. Use when docs drift from the code or after changing scripts, env vars or deploy steps.

KevinZai/commander · 56 tokens

report

Generate a publication-grade HTML report from a markdown source using the TRAID Design System catalog (5 templates). Agy matches content to template, you confirm, agy produces final branded HTML.

MarcosNahuel/antigravity-plugin-cc · 38 tokens

review-skills

Review changed skills: automated bash checks + 9 structural dimensions (D1-D9) + 5 intent checks (M1-M5). PASS/FAIL verdict. Fix in-place.

KevinZai/commander · 38 tokens

ccc-peers

Discover other running Claude Code instances and message them through the Claude Peers MCP server: list, send, broadcast, status, summary and inbox check. Use when several Claude Code sessions on one machine need to coordinate.

KevinZai/commander · 47 tokens

ccc-xray

Score the current project 0-100 across security, testing, DevOps, quality, docs and architecture, assign a maturity level, and rank skill recommendations by impact. Use when you want a quick project health scan or a list of what to fix first.

KevinZai/commander · 56 tokens

ccc-compound

Capture the patterns, corrections and decisions from the work just done into tasks/lessons.md, or review and prune existing lessons. Use after finishing a task or when the user says compound, lessons or retro.

KevinZai/commander · 46 tokens