cleanup

cleanup is a command for Claude Code from solanabr/solana-ai-kit. It costs 16 tokens per session (753 once invoked), scanned A, original, MIT.

A setup command for turning a forked Solana AI Kit configuration repository into a usable project. It creates project guidance files and removes files used only to maintain the original configuration repository.

In plain words
What is it for?
Use it to create CLAUDE.md and private CLAUDE.local.md notes, copy .env.example to .env when needed, update .gitignore, and remove template maintenance files.
Why use it?
It clears away repository-maintenance clutter and preserves local environment setup when starting from a template fork.

Command for Claude Code

Written for Claude Code: Claude Code plugin machinery. Also seen: mentions CLAUDE.md; mentions Claude Code.

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 commands/solanabr/solana-ai-kit/cleanup
Clone the repo
git clone --depth 1 https://github.com/solanabr/solana-ai-kit

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 cleanup

README.md
[![agentmods](https://agentmods.dev/badge/commands/solanabr/solana-ai-kit/cleanup.svg)](https://agentmods.dev/commands/solanabr/solana-ai-kit/cleanup)
Your own site
<a href="https://agentmods.dev/commands/solanabr/solana-ai-kit/cleanup"><img src="https://agentmods.dev/badge/commands/solanabr/solana-ai-kit/cleanup.svg" alt="Measured on agentmods" height="20"></a>
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 753 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.00016 $0.00753
Opus 5 $0.00008 $0.00377
Sonnet 5 $0.00003 $0.00151
Haiku 4.5 $0.00002 $0.00075

Measured 6d ago against content hash 66ae75873543, 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 6d 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.

.claude/commands/cleanup.md · 63 lines

How it starts

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

Initialize a forked solana-ai-kit template for use as a project. Sets up CLAUDE.md and removes config repo scaffolding files.

Step 1: Setup CLAUDE.md

If CLAUDE.md doesn't exist (or contains "Meta Configuration" indicating it's the repo maintainer version):

  1. Copy CLAUDE-solana.mdCLAUDE.md
  2. Create starter CLAUDE.local.md (gitignored, private notes) if it doesn't exist
  3. Add CLAUDE.local.md to .gitignore if not present

If CLAUDE.md already exists and looks like a project config (not meta), skip this step.

Step 2: Create .env if missing

If .env doesn't exist but .env.example does, copy .env.example.env before removing .env.example.

Step 3: Remove scaffolding

Files/dirs that exist only for maintaining or distributing the config repo itself. These ship in a full clone/fork of solana-ai-kit but have no purpose in a downstream project. Remove each only if present — never error on a missing path.

Remove (if they exist):

Maintenance scaffolding:

  • install.sh — installer (not needed after fork)
  • update.sh — deprecation wrapper
  • validate.sh — config repo validation
  • tests/ — config repo test suite
  • CLAUDE-solana.md — source template (now copied as CLAUDE.md)
  • QUICK-START.md — config repo docs
  • README.md — config repo readme (user should write their own)
  • .claude/CHANGELOG.md — the kit's changelog (not the user's project changelog)
  • .github/workflows/ci.yml — config repo CI (keep claude-code.yml if present)
  • .env.example — should already be copied to .env

Distribution infra (Claude Code plugin marketplace + Vercel install endpoint — only relevant when publishing the kit):

  • .claude-plugin/ — in-repo plugin marketplace manifest
  • plugin/ — symlinked core-plugin subtree
  • vercel.json — install-endpoint redirect config

Preserve (never touch):

  • .claude/ — entire directory (agents, commands, skills, rules, settings, mcp, bin/ self-update tooling) — except .claude/CHANGELOG.md noted above
  • CLAUDE.md — just created/preserved above
  • CLAUDE.local.md — private notes
  • .mcp.json — MCP server config (user wants this)
  • .env, .env.example (after .env exists) — config
  • .gitmodules — submodule definitions
  • .gitignore — ignore rules
  • LICENSE — keep unless user wants to change
  • Any user-created files

Read the full file on GitHub · 63 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. 6d ago First seen · 63 lines · 16 tokens per session scan A 66ae75873543

Subscribe to this mod's changes

cleanup is a command published in the GitHub repository solanabr/solana-ai-kit (101 stars, last pushed 16d ago), licensed MIT. It adds 16 tokens to every session and 753 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-30.