Agent skill

Cleanup

by bradtraversy in bradtraversy/devstash

Clean up project housekeeping tasks (add "run" to execute fixes)

MITAuto-check: notes

Install Cleanup

skills CLI
$ npx skills add bradtraversy/devstash --skill cleanup -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install bradtraversy/devstash cleanup --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/bradtraversy/devstash.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/cleanup .claude/skills/cleanup && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
cleanup
GitHub stars
120
Token cost
~269 tokens
SKILL.md length
154 words
Files
1
Skills in repo
4
Repo updated
First seen
Licence
MIT

At a glance

Clean up project housekeeping tasks (add "run" to execute fixes)

  • Works in 8 steps: Make sure that the history in… → Find unnecessary console.log statements… → Find unused imports → …
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Cleanup is an agent skill from bradtraversy/devstash. Clean up project housekeeping tasks (add "run" to execute fixes)

Its SKILL.md is about 270 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: Knowledge hub for developers for snippets, prompts, commands and more. The licence is MIT.

Example prompts

  • “/cleanup”

Workflow steps

8 steps, taken from the first numbered list in SKILL.md.

  1. Make sure that the history in @context/current-feature.md is in order from oldest to newest
  2. Find unnecessary console.log statements in src/
  3. Find unused imports
  4. Check for stale TODO comments
  5. Find orphaned/unused files
  6. Check that context files match actual project state
  7. Check if the .env._production has the same variables (not always the same value) as the .env. If something is missing, tell me.
  8. Find @ts-ignore comments that might be stale

What it can do on your machine

Read from SKILL.md and the folder at commit 4fd5830. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Cleanup loads about 269 tokens when it runs. Until then it costs about 18 tokens; SKILL.md has 154 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~18
When it runs · the whole SKILL.md, loaded when a task matches
~269

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:15
    7. Check if the .env._production has the same variables (not always the same value) as the .env. If something is missing

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from bradtraversy/devstash at commit 4fd5830, republished under its MIT licence (© bradtraversy). 154 words, ~269 tokens.

Download SKILL.mdSave it as .claude/skills/cleanup/SKILL.md (or your agent's skills folder).
name
cleanup
description
Clean up project housekeeping tasks (add "run" to execute fixes)
argument-hint
run|check

Review the codebase for cleanup tasks:

  1. Make sure that the history in @context/current-feature.md is in order from oldest to newest
  2. Find unnecessary console.log statements in src/
  3. Find unused imports
  4. Check for stale TODO comments
  5. Find orphaned/unused files
  6. Check that context files match actual project state
  7. Check if the .env._production has the same variables (not always the same value) as the .env. If something is missing, tell me.
  8. Find @ts-ignore comments that might be stale

Mode: $ARGUMENTS

If no argument or argument is "check":

  • Only report findings, don't modify anything
  • List what WOULD be cleaned up

If the argument is "run" or "fix":

  • First, report all findings with numbered items
  • Then ask: "Which items would you like me to fix? (enter numbers like 1,3,5 or 'all' or 'none')"
  • Wait for user response before making any changes
  • Only fix the items the user specifies
  • Report what you changed

© bradtraversy, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/cleanup of bradtraversy/devstash.

Open the folder on GitHubat commit 4fd5830

Compare with similar skills

Cleanup next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Cleanup compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Cleanup this skillbradtraversy/devstash120—~269Automated safety check: NotesMIT
Executealirezarezvani/claude-skills28k—~831Automated safety check: PassMIT
Debugging Executionsn8n-io/n8n207k—~2.6kAutomated safety check: PassCustom licence
Cleanupsimstudioai/sim30k—~1.4kAutomated safety check: PassApache-2.0
Housekeepinglangfuse/langfuse36k—~2.1kAutomated safety check: PassCustom licence
Cleancatlog22/Claude-Code-Workflow2.1k—~3.2kAutomated safety check: PassMIT

Similar skills

  • Execute

    alirezarezvani/claude-skills

    /cs:execute <decision — Generate a 90-day execution plan with weekly milestones, DRIs, and check-in cadence from an approved decision.

    28k GitHub stars~831 tokensUpdated 1 mo ago
    Product & Project ManagementAuto-check passed
  • Official

    Debug failed or wrong-output workflow executions using executions tools.

    207k GitHub stars~2.6k tokensUpdated today
    DevelopmentAuto-check passed
  • Cleanup

    simstudioai/sim

    Run all code quality skills — effects, memo, callbacks, state, React Query, emcn design review, url-state, comments, and test-audit — analyzing in parallel, then applying fixes sequentially

    30k GitHub stars~1.4k tokensUpdated today
    DevelopmentAuto-check passed
  • Housekeeping

    langfuse/langfuse

    Triage an engineer's work queue across Linear, Pylon, and GitHub.

    36k GitHub stars~2.1k tokensUpdated today
    DevelopmentAuto-check passed
  • Clean

    catlog22/Claude-Code-Workflow

    Intelligent code cleanup with mainline detection, stale artifact discovery, and safe execution.

    2.1k GitHub stars~3.2k tokensUpdated 3 mo ago
    Auto-check passed
  • Applies Clean Architecture to Android and Kotlin Multiplatform projects: module layout, dependency rules, UseCases, Repositories and data layer patterns.

    276k GitHub starsUsed in 4 repos~2.2k tokens
    DevelopmentAuto-check passed

More from bradtraversy/devstash

  • Feature

    bradtraversy/devstash

    Manage current feature workflow - start, review, explain or complete

    120 GitHub stars~350 tokensUpdated today
    Auto-check passed
  • Research

    bradtraversy/devstash

    Run a research task to generate documentation. An agent skill from bradtraversy/devstash.

    120 GitHub stars~287 tokensUpdated today
    Auto-check passed
  • List Components

    bradtraversy/devstash

    List project components

    120 GitHub stars~118 tokensUpdated today
    Auto-check passed

Questions about Cleanup

What does Cleanup do?

Clean up project housekeeping tasks (add "run" to execute fixes). Cleanup is an agent skill from bradtraversy/devstash.

How do I install Cleanup in Claude Code?

Run `npx skills add bradtraversy/devstash --skill cleanup -a claude-code`. Or copy the skill folder (.claude/skills/cleanup in bradtraversy/devstash) into .claude/skills/cleanup in your project. Claude Code loads it when a task matches its description.

How do I install Cleanup in Codex?

Run `npx skills add bradtraversy/devstash --skill cleanup -a codex`. Or copy the skill folder (.claude/skills/cleanup in bradtraversy/devstash) into .agents/skills/cleanup in your project. Codex loads it when a task matches its description.

Can I use Cleanup in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add bradtraversy/devstash --skill cleanup -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cleanup, .gemini/skills/cleanup, .github/skills/cleanup and .opencode/skills/cleanup in your project.

What does Cleanup need to run?

SKILL.md names no scripts, command-line tools or credentials: Cleanup is instructions for the agent only.

Does Cleanup access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Cleanup safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Cleanup use?

Cleanup is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Cleanup use?

About 269 tokens (SKILL.md is roughly 1.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Cleanup?

Skills that share tags, products or a category with Cleanup: Execute (alirezarezvani/claude-skills, 28k stars), Debugging Executions (n8n-io/n8n, 207k stars), Cleanup (simstudioai/sim, 30k stars) and Housekeeping (langfuse/langfuse, 36k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Cleanup?

bradtraversy (a GitHub user) maintains it in bradtraversy/devstash, which has 120 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on October 8, 2026.

Source: bradtraversy/devstash on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.