docs-refresh

docs-refresh is a skill for Claude Code from laurigates/claude-plugins. It costs 39 tokens per session (1,396 once invoked), scanned C, original, MIT.

A maintenance tool for this catalogue repository that refreshes its README, plugin map, and diagram so their counts and plugin lists match the files on disk.

In plain words
What is it for?
Use it after adding or removing plugins or skills, or when the repository's documentation check reports outdated counts, missing entries, or a stale diagram.
Why use it?
It fixes documentation drift, where the catalogue says one number of plugins or skills but the repository contains another.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions .claude-plugin; names the TodoWrite tool.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is Bash(bash scripts/check-docs-index.sh *), Bash(d2 *), Bash(git log *), Bash(git rev-parse *), Read, Edit, Grep, Glob, TodoWrite.

Good fit Use it after adding or removing plugins or skills, or when the repository's documentation check reports outdated counts, missing entries, or a stale diagram.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/laurigates/claude-plugins
agentmods
npx agentmods add skills/laurigates/claude-plugins/docs-refresh

Made for: Claude Code.

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 docs-refresh

README.md
[![agentmods](https://agentmods.dev/badge/skills/laurigates/claude-plugins/docs-refresh/github.svg)](https://agentmods.dev/skills/laurigates/claude-plugins/docs-refresh)
Your own site
<a href="https://agentmods.dev/skills/laurigates/claude-plugins/docs-refresh"><img src="https://agentmods.dev/badge/skills/laurigates/claude-plugins/docs-refresh/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 docs-refresh

Your own site · 80×15
<a href="https://agentmods.dev/skills/laurigates/claude-plugins/docs-refresh"><img src="https://agentmods.dev/badge/skills/laurigates/claude-plugins/docs-refresh.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,396 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 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.00039 $0.01396
Opus 5.5 $0.00016 $0.00558
Sonnet 5.5 $0.00008 $0.00279
Haiku 4.5 $0.00004 $0.00140

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

Security

Grade C, and why

docs-refresh scanned grade C with 2 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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

Download-review-run, not `curl … | sh` — the piped form is blocked by this

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -fsSL https://d2lang.com/install.sh -o /tmp/d2-install.sh
.claude/skills/docs-refresh/SKILL.md · 107 lines

How it starts

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

/docs-refresh

Refresh this repo's top-level catalog docs so the stated plugin/skill/agent counts and the plugin set match what is actually on disk. The detector is scripts/check-docs-index.sh; this skill is the fixer that consumes its report.

When to Use This Skill

Use this skill when... Use something else when...
Per-plugin counts in the README headline / PLUGIN-MAP / the d2 diagram drifted A plugin needs adding/removing — follow /plugin-authoring § Plugin Lifecycle first, then run this
check-docs-index.sh reports doc_count_drift / diagram_count_drift / diagram_svg_stale / readme_row_dangling You need a generic project's docs synced — that's documentation-plugin:docs-sync (wrong layout for this repo)
The PR gate Check docs-index drift failed in CI Editing rule-index or marketplace set — the audit reports those, but fix them at their source

Context

  • Audit: !bash scripts/check-docs-index.sh
  • README last touched: !git log --max-count=1 --format='%h %ci' -- README.md

Execution

Execute this refresh:

Step 1: Read the drift

Run bash scripts/check-docs-index.sh (shown in Context). Each ISSUES: line names the exact file, line, and the disk-vs-stated count. STATUS=OK with ISSUE_COUNT=0 means nothing to do — stop and report clean.

Step 2: Apply count fixes

For every doc_count_drift / diagram_count_drift issue, Edit the stated count to the disk count:

  • docs/CATALOG.md — never hand-edited; just catalog regenerates it from marketplace.json and the plugin dirs (CI: Check catalog is current).
  • docs/PLUGIN-MAP.md — the | <plugin> | N | ... | tier-table rows.
  • docs/diagrams/plugin-relationships.d2 — the label: "<name>\nN skills" node labels. The .svg is generated and never hand-edited; re-render it in Step 4.

Step 2b: Apply name-level fixes

Two ERROR-severity issue types are name drift, not count drift — no /docs-refresh arithmetic repairs them:

Read the full file on GitHub · 107 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 Changed 9dc4556259ff
  2. 9d ago Changed 9f3e4fd893ec
  3. 1mo ago First seen · 107 lines · 39 tokens per session scan C d20883a02c2e

Subscribe to this mod's changes

docs-refresh is a skill published in the GitHub repository laurigates/claude-plugins (60 stars, last pushed yesterday), licensed MIT. It adds 39 tokens to every session and 1,396 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). 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

extract-ssot

Deduplicate repeated markdown (rule files, skill bodies, ADRs, docs) into one named source of truth and migrate every call site to cite it by exact heading. Use when the same prose, literal, or concept recurs across files: 'DRY this prose', 'extract a shared rule', 'single source of truth for X', a value-bump diff…

melodic-software/claude-code-plugins · 99 tokens

feature-branch-pr-writing

Use this skill when the user asks to write, draft, create, or improve a PR description for a Shopware core repository PR — AND that PR targets a non-trunk feature branch (not trunk itself). Trigger phrases like "write a PR description", "draft the PR", "what should I put in the PR body". The skill detects the target…

shopwareLabs/ai-coding-tools · 152 tokens

repo-activity

Scan all git repositories under /repos and report recent activity — last commit age, branch, uncommitted changes — in age-bucketed tables. Use when the user asks for a repo activity overview, "what have I been working on", portfolio status, or which repos are active/dormant.

laurigates/dotfiles · 65 tokens

use-class-for-state

For complex state: encapsulate multiple interacting variables, stateful algorithms, backtracking search state.

jimmc414/claude-code-plugin-marketplace · 24 tokens

display-grid-state

For 2D debugging: visualize grid/board state, show puzzle progress, make algorithm behavior visible.

jimmc414/claude-code-plugin-marketplace · 25 tokens

renovate-triage

Use when triaging open Renovate PRs across your own repos into merge / close / defer. Activates on "renovate triage", "review dep PRs", "monthly deps", or on the 1st of a month if deps are grouped monthly.

Sagargupta16/claude-skills · 62 tokens