maintain

maintain is a skill for Claude Code, Codex from solentlabs/ai-journal-mcp. It costs 70 tokens per session (431 once invoked), scanned A, original, MIT.

Maintenance instructions for an AI journal whose Markdown files are the source of truth. An index and generated views are rebuilt from those files.

In plain words
What is it for?
Rebuilding the search index, regenerating JOURNAL.md and theme views, rescuing directly added entries, and checking journal health.
Why use it?
It fixes stale search results and finds missing, duplicate, orphaned, or unclassified journal entries.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Rebuilding the search index, regenerating JOURNAL.md and theme views, rescuing directly added entries, and checking journal health.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/solentlabs/ai-journal-mcp/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 solentlabs/ai-journal-mcp --skill maintain
Clone the repo
git clone --depth 1 https://github.com/solentlabs/ai-journal-mcp

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/solentlabs/ai-journal-mcp/maintain/github.svg)](https://agentmods.dev/skills/solentlabs/ai-journal-mcp/maintain)
Your own site
<a href="https://agentmods.dev/skills/solentlabs/ai-journal-mcp/maintain"><img src="https://agentmods.dev/badge/skills/solentlabs/ai-journal-mcp/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 maintain

Your own site · 80×15
<a href="https://agentmods.dev/skills/solentlabs/ai-journal-mcp/maintain"><img src="https://agentmods.dev/badge/skills/solentlabs/ai-journal-mcp/maintain.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 431 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.00070 $0.00431
Opus 5 $0.00035 $0.00216
Sonnet 5 $0.00014 $0.00086
Haiku 4.5 $0.00007 $0.00043

Measured 9d ago against content hash cccd67c3059c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 9d 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 · 37 lines

What it actually says

ai-journal-mcp — Maintain

Markdown is the source of truth; the search index and the generated views are disposable and rebuilt from it. This skill keeps them in sync and surfaces drift.

When to use

  • You hand-edited or bulk-moved entry files (outside add_entry).
  • Search results look stale or incomplete.
  • A periodic health check on a journal.

What to do

  • Rebuild the index. The reindex MCP tool rebuilds search from the markdown sources. (CLI: ai-journal-mcp reindex <paths...> --db <path>.) The index is disposable — rebuild anytime, it changes no source data.
  • Regenerate views. For a managed journal, ai-journal-mcp refresh <root> regenerates JOURNAL.md and themes/. It also rescues any dated entry a stale session appended directly to JOURNAL.md — saving it as a real entry before regenerating, so no text is lost.
  • Check health. list_themes and entries_over_time (MCP) show the shape and spot gaps such as (unthemed) entries. ai-journal-mcp scan <root> (CLI) reports orphan files with no dated entries and duplicate groups.

Principles

  • Index and views are derived; markdown wins. Rebuild freely.
  • Generated views (JOURNAL.md, themes/*.md) are never hand-edited — edits go in the entry files, then regenerate.
  • indexed-mode journals are read-only; maintenance never rewrites them.
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. 9d ago First seen · 37 lines · 70 tokens per session scan A cccd67c3059c

Subscribe to this mod's changes

maintain is a skill published in the GitHub repository solentlabs/ai-journal-mcp (1 stars, last pushed 1mo ago), licensed MIT. It adds 70 tokens to every session and 431 once invoked, about $0.0003 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

migrate-v0-to-v1

Migrate a Scraps wiki from v0 to v1. Use this whenever the user asks to upgrade Scraps, migrate v0 wiki syntax/config, convert implicit tags to explicit #[[tag]], move from scraps-writer to scraps, or audit a wiki for v1 readiness. This skill is designed for one-pass LLM-led migrations that discover the latest v0 and…

boykush/scraps · 105 tokens

ingest

Create a new scrap from a source (prompt, URL, or arbitrary markdown), update cross-links in related scraps, and run a sanity check. Use this when the user wants to add a scrap, summarize an article, save synthesized content to the wiki, or file back a Q&A result.

boykush/scraps · 62 tokens

query

Answer questions about the wiki by searching, reading, and synthesizing relevant scraps with [[Title]] citations. Use this when the user wants to query the wiki, ask what they have written about a topic, compare scraps, find related notes, or pull a synthesized overview from existing scraps.

boykush/scraps · 61 tokens

planning-with-scratchpad

Use when user explicitly requests planning with a scratchpad, or asks for persistent tracking of a complex task that the human can browse visually. Backs planning files with the scratch CLI so a pad's files are registered and viewable.

NikiforovAll/scratchpad · 54 tokens

mikke

A command-line search tool for finding information in a folder of Markdown notes. It can search exact words, titles, tags, and broader meanings in past notes.

kimushun1101/mikke · 87 tokens

scratch

Organize knowledge from an agent session into a scratchpad — a folder of files plus a scratchpad.json manifest. Use when a task generates notes, snippets, command output, diagrams, or artifacts worth keeping together for a session/activity.

NikiforovAll/scratchpad · 49 tokens