cleanup

cleanup is a skill for Claude Code from Open-Agent-Tools/General-OAT-Skills. It costs 53 tokens per session (423 once invoked), scanned A, original, Apache-2.0.

A code-quality routine that runs Ruff for Python linting and formatting, mypy for checking type annotations, and pytest for running tests. It first checks that the tools are available and identifies the source directory.

In plain words
What is it for?
Use it for end-of-session checks, pre-release validation, or requests to lint, format, type-check, and test a Python project.
Why use it?
It gathers common checks in one repeatable process and can fix formatting and linting issues before verifying the result. This helps catch style, type, and test problems before release.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the general-oat-skills plugin — 9 skills shipped together

Good fit Use it for end-of-session checks, pre-release validation, or requests to lint, format, type-check, and test a Python project.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/open-agent-tools/general-oat-skills/cleanup
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 Open-Agent-Tools/General-OAT-Skills --skill cleanup
Clone the repo
git clone --depth 1 https://github.com/Open-Agent-Tools/General-OAT-Skills

Made for: Claude Code.

Or install general-oat-skills, the plugin that ships this one along with the rest of its 9 skills.

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/open-agent-tools/general-oat-skills/cleanup/github.svg)](https://agentmods.dev/skills/open-agent-tools/general-oat-skills/cleanup)
Your own site
<a href="https://agentmods.dev/skills/open-agent-tools/general-oat-skills/cleanup"><img src="https://agentmods.dev/badge/skills/open-agent-tools/general-oat-skills/cleanup/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 cleanup

Your own site · 80×15
<a href="https://agentmods.dev/skills/open-agent-tools/general-oat-skills/cleanup"><img src="https://agentmods.dev/badge/skills/open-agent-tools/general-oat-skills/cleanup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 423 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.00053 $0.00423
Opus 5 $0.00026 $0.00211
Sonnet 5 $0.00011 $0.00085
Haiku 4.5 $0.00005 $0.00042

Measured 9d ago against content hash 3ccca089e34e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 9d 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.

skills/cleanup/SKILL.md · 37 lines

What it actually says

Perform a complete code cleanup by following these steps:

Output Format: Use clear section headers, timestamps for each step, and progress indicators for long-running operations.

Tool Validation: First verify that required tools are installed (uv, ruff, mypy, pytest) and identify the project source layout (src/ or app/).

Checklist

  • Ruff linting and formatting
  • Mypy type checking
  • Pytest suite
  • Summary
  1. Run ruff linting and formatting (parallel): Execute uv run ruff check src --fix and uv run ruff format src (or use app if that's the project structure) in parallel to automatically fix linting issues and format code. Re-run to verify all issues resolved.
  2. Run mypy type checking: Execute uv run mypy src (or app) according to the project structure and fix any errors found. Re-run to verify fixes.
  3. Run pytest via UV: Execute uv run pytest with appropriate timeout handling. If tests timeout, run them in logical sections (e.g., by directory or test file groups) to ensure all tests are executed and results are captured.

Error Handling: For each step, run the tool, fix issues found, then re-run to confirm the fix. If unable to fix after two attempts, report the specific error details and suggest manual fixes.

Update the checklist above as each step completes. Provide a final summary of all changes made.

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. 9d ago First seen · 37 lines · 53 tokens per session scan A 3ccca089e34e

Subscribe to this mod's changes

cleanup is a skill published in the GitHub repository Open-Agent-Tools/General-OAT-Skills (3 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 53 tokens to every session and 423 once invoked, about $0.0003 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.