keeping-docs-fresh

keeping-docs-fresh is a skill for Claude Code from gg-mo/repo-hygiene. It costs 57 tokens per session (948 once invoked), scanned A, original, MIT.

A documentation-checking skill for changes to a public API—the functions, commands, settings, routes, or data schemas that other users or systems rely on.

In plain words
What is it for?
Use it before committing renamed exports, changed signatures, new or removed flags, routes, environment variables, schema changes, or deprecations.
Why use it?
Code changes can leave the README, guides, changelog, or inline references describing an old interface.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the repo-hygiene plugin — 9 skills, 1 hook shipped together

Good fit Use it before committing renamed exports, changed signatures, new or removed flags, routes, environment variables, schema changes, or deprecations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gg-mo/repo-hygiene/keeping-docs-fresh
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 gg-mo/repo-hygiene --skill keeping-docs-fresh
Clone the repo
git clone --depth 1 https://github.com/gg-mo/repo-hygiene

Made for: Claude Code.

Or install repo-hygiene, the plugin that ships this one along with the rest of its 9 skills, 1 hook.

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 keeping-docs-fresh

README.md
[![agentmods](https://agentmods.dev/badge/skills/gg-mo/repo-hygiene/keeping-docs-fresh/github.svg)](https://agentmods.dev/skills/gg-mo/repo-hygiene/keeping-docs-fresh)
Your own site
<a href="https://agentmods.dev/skills/gg-mo/repo-hygiene/keeping-docs-fresh"><img src="https://agentmods.dev/badge/skills/gg-mo/repo-hygiene/keeping-docs-fresh/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 keeping-docs-fresh

Your own site · 80×15
<a href="https://agentmods.dev/skills/gg-mo/repo-hygiene/keeping-docs-fresh"><img src="https://agentmods.dev/badge/skills/gg-mo/repo-hygiene/keeping-docs-fresh.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 948 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.00057 $0.00948
Opus 5 $0.00028 $0.00474
Sonnet 5 $0.00011 $0.00190
Haiku 4.5 $0.00006 $0.00095

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

Security

Grade A, and why

keeping-docs-fresh 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 11d 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/keeping-docs-fresh/SKILL.md · 89 lines

How it starts

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

Keeping Docs Fresh

Overview

Any change to the public API surface should propagate to the docs that describe it — in the same commit. Otherwise the README quietly starts lying to readers. The honest baseline from agents is "ship it = commit whatever's staged," which silently leaves stale docs in the repo.

Core principle: Code change without doc change = doc lies. Scan before you commit.

What Counts as a Public API Change

Trigger this skill when any of these happen:

  • Renamed an exported function, class, type, or constant
  • Changed the signature, return type, or behavior contract of an exported item
  • Added or removed a CLI flag, env var, or config key
  • Added or removed an HTTP route, GraphQL field, or RPC method
  • Changed a database schema (added/removed/renamed column)
  • Marked a public symbol deprecated or removed it
  • Changed default behavior in a way users would notice

NOT triggered by: Internal refactor with no exported surface change, comment tweaks, formatting, test-only changes.

The Scan

Run BEFORE committing. One ripgrep catches most references:

# Old symbol name across docs + non-source files
rg -n 'getUserById' README.md docs/ CHANGELOG.md 2>/dev/null
# Broader sweep including inline comments in code
rg -n 'getUserById' .

For each hit, decide:

  • Update — the doc should reflect the new name / signature / behavior
  • Remove — the doc described a thing that no longer exists
  • Keep — historical context (release notes, ADRs); leave alone

If the scan returns zero hits, say so explicitly ("No doc references to <old> found, safe to commit") rather than skipping the step silently.

What to Update

File When
README.md Usage examples or feature list mention the change
docs/**/*.md Always scan; update matching references
CHANGELOG.md (if present) Add an entry; mark breaking changes as such
openapi.yaml / GraphQL schema HTTP / GraphQL surface changed
--help text / man pages CLI flags changed
.env.example Env vars added or removed
Inline // or # comments Comments name the old symbol

Read the full file on GitHub · 89 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. 11d ago First seen · 89 lines · 57 tokens per session scan A bfde0d04594f

Subscribe to this mod's changes

keeping-docs-fresh is a skill published in the GitHub repository gg-mo/repo-hygiene (3 stars, last pushed 4mo ago), licensed MIT. It adds 57 tokens to every session and 948 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

new-skill

Scaffold a new brooks-lint analysis skill so it passes npm run validate and npm run evals on the first try — generates skills/{name}/SKILL.md (with the mandatory "Do NOT trigger for:" clause and a Process section citing guide step ranges) plus skills/{name}/{name}-guide.md (sequentially numbered steps), then appends…

hyhmrright/brooks-lint · 145 tokens

brooks-sweep

Full-sweep mode: runs a unified analysis across all quality dimensions — code decay, architecture, tech debt, and test quality — then applies fixes directly to the codebase. Safe changes are auto-applied; risky changes are confirmed before execution. Drawing on twelve classic engineering books. Triggers when: user…

hyhmrright/brooks-lint · 178 tokens

chief-strategy-officer

Owns where the business plays and how it wins over a multi-year horizon — portfolio choices, corporate development, strategic partnerships, and planning under uncertainty. Use this for a decision about which markets or businesses to be in, whether to build, buy, or partner, how to allocate capital across business…

cbrock84/headcount · 93 tokens

chief-revenue-officer

Owns the revenue engine end to end: sales, monetization, pricing, customer success, retention, and partnerships. Use this for pricing and packaging decisions, sales strategy and coverage, forecast and pipeline health, churn and expansion, partner and channel strategy, or when marketing-sourced demand is not…

cbrock84/headcount · 80 tokens

scenario-planning

Plans under genuine uncertainty — building scenarios, identifying which assumptions are load-bearing, setting early-warning indicators, and stress-testing a plan against futures rather than forecasting one. Use this when a decision depends on something unknowable, when a plan assumes conditions that may not hold…

cbrock84/headcount · 78 tokens

ai-ml-governance

Governs models and AI systems in production — intended use, evaluation, monitoring, human oversight, documentation, and the decision to deploy or retire. Use this before deploying a model or AI feature, when defining evaluation criteria, when a model's behavior has drifted, when assessing AI risk or regulatory…

cbrock84/headcount · 83 tokens