cleanup

cleanup is a skill for Claude Code from blake-simpson/belmont. It costs 35 tokens per session (3,728 once invoked), scanned A, original, Apache-2.0.

A cleanup workflow for reducing outdated project-planning files and notes used by Belmont. Belmont is a system that tracks features, milestones, progress, and agent guidance in the .belmont directory.

In plain words
What is it for?
Use it to review completed feature directories, old milestone files, notes, and outdated CLAUDE.md or AGENTS.md guidance for possible archiving or removal.
Why use it?
Completed features, old milestones, and stale notes can make future agent requests longer and harder to interpret. This workflow helps reduce that clutter while asking before each change.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions CLAUDE.md; names the AskUserQuestion tool.

Part of the belmont plugin — 17 skills, 6 agents shipped together

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/blake-simpson/belmont/cleanup
Any agent
npx skills add blake-simpson/belmont --skill cleanup
Clone the repo
git clone --depth 1 https://github.com/blake-simpson/belmont

Made for: Claude Code.

Or install belmont, the plugin that ships this one along with the rest of its 17 skills, 6 agents.

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 cleanup

README.md
[![agentmods](https://agentmods.dev/badge/skills/blake-simpson/belmont/cleanup.svg)](https://agentmods.dev/skills/blake-simpson/belmont/cleanup)
Your own site
<a href="https://agentmods.dev/skills/blake-simpson/belmont/cleanup"><img src="https://agentmods.dev/badge/skills/blake-simpson/belmont/cleanup.svg" alt="Measured on agentmods" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,728 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.1 $0.00035 $0.03728
Opus 5 $0.00017 $0.01864
Sonnet 5 $0.00007 $0.00746
Haiku 4.5 $0.00003 $0.00373

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

Security

Grade A, and why

cleanup 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.

plugin/skills/cleanup/SKILL.md · 408 lines

How it starts

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

Belmont: Cleanup

You are cleaning up accumulated Belmont state to reduce input token bloat. This is a middle ground between review-plans (audit alignment) and reset (nuclear wipe). It targets completed features, archived milestones, stale notes, and outdated convention files.

This cleanup requires ultrathink-level reasoning — carefully assess what is safe to archive vs. what the user still needs for active context.

Purpose

Over time, Belmont projects accumulate completed feature directories (PRD, PROGRESS, TECH_PLAN, MILESTONE-*.done.md), growing NOTES.md files, and stale conventions in CLAUDE.md/AGENTS.md. Every one of these files inflates the context window for AI agents, costing tokens and potentially introducing outdated guidance. This skill interactively trims that bloat while preserving what matters.

Critical Rules

  1. Interactive — every item requires explicit user choice. Never bulk-act without consent. Present each feature, each file, each finding individually.
  2. Non-destructive by default — the preference order is: keep > archive > delete. Default suggestion is always "keep" unless the user chooses otherwise.
  3. Scoped to state files — modifies .belmont/, audits CLAUDE.md and AGENTS.md, suggests tool-dir cleanup. Does NOT modify source code.
  4. Skip gracefully — if a category has nothing to clean, skip it silently.

Forbidden Actions

  • DO NOT modify source code files
  • DO NOT run builds, tests, or compilation commands
  • DO NOT delete files without explicit user confirmation per item
  • DO NOT auto-modify tool directories (.claude/, .codex/, .cursor/, etc.) — only suggest
  • DO NOT pressure the user toward archiving — completed features may still be useful context

Allowed Actions

  • DO read all .belmont/ state files, CLAUDE.md, AGENTS.md, tool directory structures
  • DO present cleanup options interactively via AskUserQuestion
  • DO archive completed feature directories (compress verbose files into slim summaries)
  • DO remove MILESTONE-*.done.md files based on user choice
  • DO edit NOTES.md, CLAUDE.md, AGENTS.md based on user decisions
  • DO commit .belmont/ changes after cleanup

Read the full file on GitHub · 408 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. 5d ago First seen · 408 lines · 35 tokens per session scan A e017ae1fb926

Subscribe to this mod's changes

cleanup is a skill published in the GitHub repository blake-simpson/belmont (4 stars, last pushed 17d ago), licensed Apache-2.0. It adds 35 tokens to every session and 3,728 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-31.