clean

clean is a skill for Claude Code from sequant-io/sequant. It costs 5 tokens per session (1,448 once invoked), scanned A, original, MIT.

A repository cleanup workflow that safely handles stale files and leftover build or work artifacts. It checks the project state and archives or removes files that match defined cleanup categories.

In plain words
What is it for?
Use it to identify and archive historical files, old review documents, dated scripts, and other listed repository artifacts. It can also commit the cleanup after the safety checks.
Why use it?
It helps reduce clutter while checking that the project is on the main branch, has no uncommitted changes, and still builds before cleanup.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md.

Good fit Use it to identify and archive historical files, old review documents, dated scripts, and other listed repository artifacts. It can also commit the cleanup after the safety checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sequant-io/sequant/clean
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 sequant-io/sequant --skill clean
Clone the repo
git clone --depth 1 https://github.com/sequant-io/sequant

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 clean

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/sequant-io/sequant/clean"><img src="https://agentmods.dev/badge/skills/sequant-io/sequant/clean.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,448 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.00005 $0.01448
Opus 5.5 $0.00002 $0.00579
Sonnet 5.5 $0.00001 $0.00290
Haiku 4.5 $0.00001 $0.00145

Measured 1mo ago against content hash bfca13463457, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

clean 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 1mo 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/skills/clean/SKILL.md · 214 lines

How it starts

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

Local overrides (read this first). Before following any instruction below, check whether .claude/.local/skills/clean/overrides.md exists. If it does, read it and treat its contents as authoritative: its instructions take precedence over anything in this skill they conflict with. This is the supported way to tailor /clean without forking it — overrides.md lives under .claude/.local/, which sequant update and sync never overwrite.

Repository Cleanup Command

Comprehensive, safe repository cleanup that archives stale files, removes artifacts, and commits changes.

Safety First

Before making ANY changes:

  1. Verify we're on main branch with clean working tree
  2. Run npm run build to ensure current state builds
  3. Create a safety checkpoint (stash any uncommitted work)

Cleanup Categories

Category 1: Safe to Auto-Archive (No Review Needed)

These files are always safe to archive - they're historical artifacts:

Root directory patterns:

  • *.backup files (e.g., CLAUDE.md.backup)
  • CODE_REVIEW_PR_*.md - Old PR reviews
  • *_AUDIT.md files older than 30 days
  • One-off shell scripts with dates in names

docs/ patterns:

  • ISSUE_*_PHASE_*.md - Issue implementation specs (work is done)
  • *_IMPLEMENTATION.md older than 30 days
  • content-audit-*.md - Point-in-time audits
  • City-specific audit files (e.g., NYC_*_AUDIT.md, LA_*_REPORT.md)

Category 2: Review Before Archiving

These need a quick check - might still be referenced:

  • Files in migrations/ (check if applied to database)
  • context/ directory contents
  • Any APPLY_*.md or apply-*.sh files

Category 3: Always Keep

Never archive these:

  • CLAUDE.md - Active project instructions
  • README.md - Project readme
  • docs/WORKFLOW_COMMANDS.md - Active workflow docs
  • docs/patterns/* - Active pattern catalog
  • docs/CONTENT_STANDARDS.md - Active standards
  • Any file modified in the last 7 days

Archive Structure

scripts/archive/
├── one-off-migrations/    # Shell scripts for one-time tasks
├── adhoc-migrations/      # SQL files applied manually (not via migrations tool)
└── deprecated/            # Old/replaced scripts

docs/archive/
├── audits/                # Completed audits and reviews
├── issue-specs/           # GitHub issue implementation specs
├── implementation-reports/ # Feature implementation summaries
└── context/               # Old project context files

Read the full file on GitHub · 214 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. 1mo ago Changed · -1 lines bfca13463457
  2. 3mo ago First seen · 215 lines · 5 tokens per session scan A 6c7fa7db8ed3

Subscribe to this mod's changes

clean is a skill published in the GitHub repository sequant-io/sequant (1 stars, last pushed today), licensed MIT. It adds 5 tokens to every session and 1,448 once invoked, about $0.0000 per session on Opus 5.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

clean compared with skills from other repositories

clean next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cleansequant-io/sequantSkill1todayMITA5Claude Code
github-pr-reviewfvadicamo/dev-agent-skillsSkill722mo agoMITA95Claude Code
github-pr-creationfvadicamo/dev-agent-skillsSkill722mo agoMITA75Claude Code
orchestrating-developmentbrunob54/superpowers-orchestratorSkill329d agoMITA120Claude Code
multi-code-reviewbrunob54/superpowers-orchestratorSkill329d agoMITB162Claude Code
requesting-code-reviewbrunob54/superpowers-orchestratorSkill329d agoMITA83Claude Code
receiving-code-reviewbrunob54/superpowers-orchestratorSkill329d agoMITA49Claude Code