gbrain-maintain

gbrain-maintain is a skill for Claude Code, Codex from imphillip/gbrain-openclaw. It costs 30 tokens per session (491 once invoked), scanned A, original, MIT.

A maintenance procedure for a linked knowledge base. It checks for contradictions, outdated facts, unlinked pages, missing cross-references, broken links, and old open tasks.

In plain words
What is it for?
Use it periodically to audit person and company pages, update stale summaries from timelines, repair links, and flag unresolved items older than 30 days.
Why use it?
It helps keep information accurate and connected as pages and their underlying evidence change over time.

Skill for Claude CodeCodex

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/imphillip/gbrain-openclaw/maintain
Any agent
npx skills add imphillip/gbrain-openclaw --skill maintain
Clone the repo
git clone --depth 1 https://github.com/imphillip/gbrain-openclaw

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/imphillip/gbrain-openclaw/maintain.svg)](https://agentmods.dev/skills/imphillip/gbrain-openclaw/maintain)
Your own site
<a href="https://agentmods.dev/skills/imphillip/gbrain-openclaw/maintain"><img src="https://agentmods.dev/badge/skills/imphillip/gbrain-openclaw/maintain.svg" alt="Measured on agentmods" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 491 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00030 $0.00491
Opus 5 $0.00015 $0.00246
Sonnet 5 $0.00006 $0.00098
Haiku 4.5 $0.00003 $0.00049

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

Security

Grade A, and why

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

skills/maintain/SKILL.md · 69 lines

What it actually says

Maintain Skill

Run these checks periodically (every few days).

Lint checks

1. Contradictions

  • Compare State sections across linked pages
  • Flag: Page A says "CEO of X" but Page B says "left X in 2025"
  • Resolution: check timeline entries for latest evidence, update the stale page

2. Stale info

gbrain list --type person  # check for pages with old compiled_truth
gbrain timeline <slug>     # are there timeline entries newer than the State section?
  • Flag pages where State hasn't been updated but timeline has new entries
  • Rewrite compiled_truth from latest timeline evidence

3. Orphan pages

gbrain list  # for each slug:
gbrain backlinks <slug>  # zero inbound links = orphan
  • Either add links from related pages, or flag for deletion

4. Missing cross-references

  • Scan compiled_truth for mentions of known page titles that aren't linked
  • "Jane mentioned Acme Corp" but no link to companies/acme-corp → add it

5. Dead links

  • For each link, verify both pages still exist
  • Remove links to deleted pages

6. Open thread audit

  • Pages with Open Threads items older than 30 days → flag for review
  • Resolved items still in Open Threads → move to timeline

7. Tag consistency

gbrain call brain_stats '{}'  # check tag counts
  • Flag near-duplicates: "yc-alum" vs "yc_alum" vs "yc alum"
  • Normalize: lowercase, hyphens

8. Embedding freshness

gbrain embed --stale  # re-embed pages updated since last embedding run

Output

Write a maintenance report:

cat report.md | gbrain put sources/maintenance-$(date +%Y-%m-%d)

Include: findings, actions taken, pages updated, issues flagged.

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. 5d ago First seen · 69 lines · 30 tokens per session scan A 57c3aa6b0364

Subscribe to this mod's changes

gbrain-maintain is a skill published in the GitHub repository imphillip/gbrain-openclaw (11 stars, last pushed 5mo ago), licensed MIT. It adds 30 tokens to every session and 491 once invoked, about $0.0002 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-30.

Related

Other skills, from other repositories

my-wiki

Manage local OKF-compatible Markdown My Wiki vaults with an AI agent. Use for capturing webpages, PDFs, Office documents, notes, images, folders, and ZIP bundles as References; maintaining Reference-to-Concept evidence links; searching or answering from a vault; checking or repairing vault health; switching among…

NimaChu/my-wiki · 78 tokens

kb

Set up, evolve, or operate a hraness/kb local-first Markdown knowledge base for coding-agent memory. Use when a user asks to design KB conventions or a recurring KB ritual; search or query a KB or Obsidian vault; load or recover repository context, plans, decisions, concepts, backlinks, semantic search, or Git…

hraness/kb · 155 tokens

vault-summarize

Use when the user asks to summarize, digest, or get an overview of a folder, project, or set of notes in their markdown vault — runs the vault's batched map-reduce recipe so note bodies stay out of the retained conversation context.

pvliesdonk/markdown-vault-mcp · 55 tokens

vault-workflow

Use when the user asks you to search, read, or reason about notes in their markdown vault — guides when to use which vault tool and how to chain them for good results.

pvliesdonk/markdown-vault-mcp · 40 tokens

cold-start

Day-one data bootstrapping for a new brain. Sequences the highest-leverage data sources to go from empty brain to useful brain in one session. Uses the agent host's managed connectors for safe credential handling — the agent never holds raw API keys. Covers Gmail import, calendar sync, contacts seeding, X/Twitter…

timurgaleev/memex · 97 tokens

setup

Set up memex with provisioned Postgres (RDS + pgvector), AGENTS.md injection, first import.

timurgaleev/memex · 25 tokens