maintain

maintain is a skill for Claude Code, Codex from cynthiajones34/GBrain. It costs 44 tokens per session (4,148 once invoked), scanned A, a copy of maintain, MIT.

A health-check and cleanup workflow for a GBrain knowledge base. It reviews links, citations, filing, stale information, orphan pages, tags, and other quality checks.

In plain words
What is it for?
Use it for routine audits, finding broken or missing backlinks, detecting stale pages, measuring health, and carrying out ordered maintenance work.
Why use it?
It shows where the brain is incomplete, outdated, or poorly connected and suggests a specific fix for each issue. It can also plan or run repairs within a stated spending limit.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for gbrain. Also seen: mentions subagents; built for gbrain.

Good fit Use it for routine audits, finding broken or missing backlinks, detecting stale pages, measuring health, and carrying out ordered maintenance work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cynthiajones34/gbrain/maintain
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.

Any agent
npx skills add cynthiajones34/GBrain --skill maintain
Clone the repo
git clone --depth 1 https://github.com/cynthiajones34/GBrain

Made for: Claude Code, Codex.

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 maintain

README.md
[![agentmods](https://agentmods.dev/badge/skills/cynthiajones34/gbrain/maintain.svg)](https://agentmods.dev/skills/cynthiajones34/gbrain/maintain)
Your own site
<a href="https://agentmods.dev/skills/cynthiajones34/gbrain/maintain"><img src="https://agentmods.dev/badge/skills/cynthiajones34/gbrain/maintain.svg" alt="Measured on agentmods" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,148 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 83% copy Near-identical to another mod 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.00044 $0.04148
Opus 5 $0.00022 $0.02074
Sonnet 5 $0.00009 $0.00830
Haiku 4.5 $0.00004 $0.00415

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

Security

Grade A, and why

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 7d 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.

Origin

This is a copy

83% identical to maintain — 107 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/maintain/SKILL.md · 431 lines

How it starts

The opening of the file, as written. The whole thing — 431 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Maintain Skill

Periodic brain health checks and cleanup.

Contract

This skill guarantees:

  • All health dimensions are checked (stale, orphan, dead links, cross-refs, backlinks, citations, filing, tags)
  • Each issue found has a specific fix action
  • Back-link iron law is enforced
  • Citation format is validated against the standard
  • Results are reported with counts per dimension

Phases

Autonomous path (v0.36.4.0) — when you want to reach a target score

If the user asks "get my brain to 90/100" or "fix what's broken", prefer the one-command loop over walking each dimension by hand:

gbrain doctor --remediation-plan --json              # preview what would run
gbrain doctor --remediate --yes --target-score 90 --max-usd 5

--remediation-plan prints a dependency-ordered list (sync before extract, embed after consolidate, etc.) with per-step est_seconds and est_usd_cost. --remediate walks the plan, submitting each step as a Minion job, re-checking score between every step. --max-usd N is a hard cost cap — submission refuses when the plan would exceed the cap (prevents synthesize loops from burning Anthropic credits unattended).

When the target score is unreachable for the brain (empty brain with no entity pages → graph_coverage caps at 70; unconfigured embedding key → caps at 60), the command bails with a list of what's missing rather than looping.

Use the per-dimension walk below (Phase 2 onward) when:

  • The user explicitly asks for a dimension-by-dimension audit
  • You're investigating why score is stuck below --remediate's ceiling
  • A specific dimension needs manual judgment that the auto path skips

Manual path

  1. Run health check. Check gbrain health to get the dashboard.
  2. Check each dimension:

Stale pages

Pages where compiled_truth is older than the latest timeline entry. The assessment hasn't been updated to reflect recent evidence.

  • Check the health output for stale page count
  • For each stale page: read the page from gbrain, review timeline, determine if compiled_truth needs rewriting

Read the full file on GitHub · 431 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. 7d ago First seen · 431 lines · 44 tokens per session scan A e80cf5bb170c

Subscribe to this mod's changes

maintain is a skill published in the GitHub repository cynthiajones34/GBrain (0 stars, last pushed 1mo ago), licensed MIT. It adds 44 tokens to every session and 4,148 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 83% identical to maintain, differing in 107 lines, and is treated as a copy.