wiki-gc

wiki-gc is a command for Claude Code from valsecchi75/project-scaffolder. It costs 23 tokens per session (341 once invoked), scanned A, original, MIT.

A command for cleaning up a project wiki, its documentation area. It finds stale or superseded pages, moves approved content into an archive, enforces page-length limits, and rebuilds the index.

In plain words
What is it for?
Use it to review wiki pages, archive outdated sections, apply line limits, update verification dates, and regenerate the wiki index.
Why use it?
It keeps project documentation current and easier to navigate while preserving old material in an archive.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md.

Part of the project-scaffolder plugin — 7 skills, 19 commands, 2 hooks shipped together

Good fit Use it to review wiki pages, archive outdated sections, apply line limits, update verification dates, and regenerate the wiki index.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/valsecchi75/project-scaffolder/wiki-gc
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.

Clone the repo
git clone --depth 1 https://github.com/valsecchi75/project-scaffolder

Made for: Claude Code.

Or install project-scaffolder, the plugin that ships this one along with the rest of its 7 skills, 19 commands, 2 hooks.

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 wiki-gc

README.md
[![agentmods](https://agentmods.dev/badge/commands/valsecchi75/project-scaffolder/wiki-gc.svg)](https://agentmods.dev/commands/valsecchi75/project-scaffolder/wiki-gc)
Your own site
<a href="https://agentmods.dev/commands/valsecchi75/project-scaffolder/wiki-gc"><img src="https://agentmods.dev/badge/commands/valsecchi75/project-scaffolder/wiki-gc.svg" alt="Measured on agentmods" height="20"></a>
Per session 23 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 341 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.00023 $0.00341
Opus 5 $0.00012 $0.00170
Sonnet 5 $0.00005 $0.00068
Haiku 4.5 $0.00002 $0.00034

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

Security

Grade A, and why

wiki-gc 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.

commands/wiki-gc.md · 25 lines

What it actually says

/wiki-gc — Wiki Garbage Collection

Deep pass over the project wiki. Nothing is ever deleted: content moves to wiki/_archive/YYYY-MM/ with a stub link left behind.

Steps

  1. Scan every wiki/**/*.md and collect candidates:
    • pages with last-verified older than 30 days
    • sections marked ~~superseded~~ or [DEPRECATED]
    • detail sections of phases already completed (roadmap says done)
  2. Present the plan: file → what moves to archive → what stays. Wait for confirmation.
  3. For each approved item:
    • append the content to wiki/_archive/YYYY-MM/{original-name}.md (create dirs as needed)
    • leave a one-line stub in the original: > Archived {date}: see wiki/_archive/YYYY-MM/{file}#{section}
  4. Enforce line caps: handoff.md ≤ 80, priorities.md ≤ 100, CLAUDE.md ≤ 120. Excess content → archive with stub.
  5. wiki/log.md and wiki/product/decisions.md are append-only: never archived, never trimmed (only ~~superseded~~ markers allowed).
  6. Regenerate wiki/index.md (including an "Archive" section).
  7. Update last-verified on every touched page.
  8. Report: N pages scanned, M archived, caps enforced, index updated.
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 · 25 lines · 23 tokens per session scan A 33f059215648

Subscribe to this mod's changes

wiki-gc is a command published in the GitHub repository valsecchi75/project-scaffolder (9 stars, last pushed 1mo ago), licensed MIT. It adds 23 tokens to every session and 341 once invoked, about $0.0001 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.