Agent skill

AI Code Cleanup

by aiskillstore in aiskillstore/marketplace

Remove AI-generated code slop from branches. An agent skill from aiskillstore/marketplace.

No licenceAuto-check passedDevelopment

Install AI Code Cleanup

skills CLI
$ npx skills add aiskillstore/marketplace --skill ai-code-cleanup -a claude-code

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

GitHub CLI
$ gh skill install aiskillstore/marketplace ai-code-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/aiskillstore/marketplace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/89jobrien/ai-code-cleanup .claude/skills/ai-code-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
ai-code-cleanup
GitHub stars
430
Used in
1 other repo
Token cost
~1.8k tokens
SKILL.md length
367 words
Files
3 (incl. references)
Skills in repo
1,108
Repo updated
First seen
Licence
None found

At a glance

Remove AI-generated code slop from branches. An agent skill from aiskillstore/marketplace.

  • Works in 8 steps: Unnecessary Comments → Defensive Bloat → Type Workarounds → …
  • Tasks that involve Code quality
  • SKILL.md covers When to Use This Skill, What This Skill Does, How to Use and Slop Patterns to Remove, plus 2 more sections
  • Calls git

What it does

AI Code Cleanup is an agent skill from aiskillstore/marketplace. Remove AI-generated code slop from branches. Use after AI-assisted coding sessions to clean up defensive bloat, unnecessary comments, type casts, and style inconsistencies. Focuses on identifying and removing AI artifacts that degrade code quality.

Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `references/refactoring-plan.template.md` and `skill-report.json`).

It sits in Development, covering Code quality. The repository describes itself as: Security-audited skills for Claude, Codex & Claude Code. One-click install, quality verified.

When your agent uses it

  • Tasks that involve Code quality

Example prompts

  • “/ai-code-cleanup”

Workflow steps

8 steps, taken from the step headings in SKILL.md.

  1. Unnecessary Comments
  2. Defensive Bloat
  3. Type Workarounds
  4. Style Inconsistencies
  5. AI Tells
  6. Get the Diff
  7. Analyze Each File
  8. Verification

What it can do on your machine

Read from SKILL.md and the folder at commit ad8daf7. 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

    Shell commands in SKILL.md call:

    • git

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

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    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

AI Code Cleanup loads about 1.8k tokens when it runs, and up to ~2.4k if it reads all its reference files. Until then it costs about 66 tokens; SKILL.md has 367 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~66
When it runs · the whole SKILL.md, loaded when a task matches
~1.8k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.4k

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 passed

The automated check found no risky patterns in SKILL.md.

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

Without a licence we can't republish the file, so here is its outline and opening line. It has 367 words (~1,775 tokens).

“This skill identifies and removes AI-generated artifacts that degrade code quality, including defensive bloat, unnecessary comments, type casts, and style inconsistencies.”

— opening of SKILL.md by aiskillstore
name
ai-code-cleanup
author
Joseph OBrien
status
unpublished
updated
2025-12-23
version
1.0.1
tag
skill
type
skill

Read the full SKILL.md on GitHub

Files

SKILL.md and 2 other files (references) in skills/89jobrien/ai-code-cleanup of aiskillstore/marketplace.

  • SKILL.md
  • references/refactoring-plan.template.md
  • skill-report.json

Open the folder on GitHubat commit ad8daf7

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in aiskillstore/marketplace, which our catalogue first saw on October 7, 2026.

Compare with similar skills

AI Code 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.

AI Code Cleanup compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
AI Code Cleanup this skillaiskillstore/marketplace4301 repos~1.8kAutomated safety check: PassNone
Install Anti-Slop Oxlint Rulesdmmulroy/anti-slop5.3k1 repos~2.2kAutomated safety check: PassMIT
WooCommerce Code Reviewwoocommerce/woocommerce11k3 repos~1.1kAutomated safety check: PassCustom licence
Systematic Code Refactoringluongnv89/claude-howto42k—~3kAutomated safety check: PassMIT
Constraint-Driven Developmentaddyosmani/agent-skills103k2 repos~5.2kAutomated safety check: PassMIT
Skill Doli Code ReviewDolibarr/dolibarr7.7k1 repos~1.1kAutomated safety check: PassMIT

Similar skills

  • Installs, updates or migrates the vendored anti-slop Oxlint plugin in a repository, keeping local rule changes and the plugin's license and provenance files.

    5.3k GitHub starsUsed in 1 repo~2.2k tokens
    DevelopmentAuto-check passed
  • WooCommerce Code Review

    woocommerce/woocommerce

    Reviews WooCommerce code changes against the project's standards, flagging backend PHP architecture, naming, documentation, data integrity and testing violations.

    11k GitHub starsUsed in 3 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Systematic Code Refactoring

    luongnv89/claude-howto

    Guides refactoring in phases based on Martin Fowler's method: research, test coverage check, planning and small tested steps, with your approval at each phase.

    42k GitHub stars~3k tokensUpdated 7 days ago
    DevelopmentAuto-check passed
  • Constraint-Driven Development

    addyosmani/agent-skills

    Records a project's quality bar in CONSTRAINTS.md and watches diffs for signs an agent quietly weakened it, such as suppressions, skipped tests or lowered thresholds.

    103k GitHub starsUsed in 2 repos~5.2k tokens
    DevelopmentAuto-check passed
  • Skill Doli Code Review

    Dolibarr/dolibarr

    Reviews Dolibarr PHP code for compliance with coding standards and security best practices, and fixes identified issues.

    7.7k GitHub starsUsed in 1 repo~1.1k tokens
    DevelopmentAuto-check passed
  • Ponytail Lazy Developer Mode

    DietrichGebert/ponytail

    Makes the agent pick the laziest solution that works: skip unneeded work, reuse what exists, prefer the standard library and platform features, and keep diffs small.

    158k GitHub stars~871 tokensUpdated today
    DevelopmentAuto-check passed

More from aiskillstore/marketplace

All 1,108 skills in this repo
  • Code Stats

    aiskillstore/marketplace

    Analyze codebase with tokei (fast line counts by language) and difft (semantic AST-aware diffs).

    430 GitHub starsUsed in 2 repos~697 tokens
    Auto-check: notes
  • File Search

    aiskillstore/marketplace

    Modern file and content search using fd, ripgrep (rg), and fzf.

    430 GitHub starsUsed in 2 repos~598 tokens
    Auto-check: notes
  • Data Processing

    aiskillstore/marketplace

    Process JSON with jq and YAML/TOML with yq. An agent skill from aiskillstore/marketplace.

    430 GitHub starsUsed in 1 repo~720 tokens
    Auto-check: notes
  • Doc Scanner

    aiskillstore/marketplace

    Scans for project documentation files (AGENTS.md, CLAUDE.md, GEMINI.md, COPILOT.md, CURSOR.md, WARP.md, and 15+ other formats) and synthesizes guidance.

    430 GitHub starsUsed in 1 repo~644 tokens
    Auto-check: notes
  • Find Replace

    aiskillstore/marketplace

    Modern find-and-replace using sd (simpler than sed) and batch replacement patterns.

    430 GitHub starsUsed in 1 repo~527 tokens
    Auto-check: notes
  • Investigating Codebases

    aiskillstore/marketplace

    Automatically activated when user asks how something works, wants to understand unfamiliar code, needs to explore a new codebase, or asks questions like "where is X implemented?", "how does Y…

    430 GitHub starsUsed in 1 repo~2.7k tokens
    Auto-check: notes

Categories

Questions about AI Code Cleanup

What does AI Code Cleanup do?

Remove AI-generated code slop from branches. An agent skill from aiskillstore/marketplace. AI Code Cleanup is an agent skill from aiskillstore/marketplace. Remove AI-generated code slop from branches.

When should I use AI Code Cleanup?

AI Code Cleanup fits situations like: tasks that involve Code quality.

How do I install AI Code Cleanup in Claude Code?

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

How do I install AI Code Cleanup in Codex?

Run `npx skills add aiskillstore/marketplace --skill ai-code-cleanup -a codex`. Or copy the skill folder (skills/89jobrien/ai-code-cleanup in aiskillstore/marketplace) into .agents/skills/ai-code-cleanup in your project. Codex loads it when a task matches its description.

Can I use AI Code 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 aiskillstore/marketplace --skill ai-code-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/ai-code-cleanup, .gemini/skills/ai-code-cleanup, .github/skills/ai-code-cleanup and .opencode/skills/ai-code-cleanup in your project.

What does AI Code Cleanup need to run?

Going by SKILL.md and its folder, AI Code Cleanup needs the command-line tools its instructions call (git).

Does AI Code Cleanup access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is AI Code Cleanup safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does AI Code Cleanup use?

No licence was found for AI Code Cleanup or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does AI Code Cleanup use?

About 1.8k tokens (SKILL.md is roughly 7.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 651 tokens, read only when the agent opens those files.

What are the alternatives to AI Code Cleanup?

Skills that share tags, products or a category with AI Code Cleanup: Install Anti-Slop Oxlint Rules (dmmulroy/anti-slop, 5.3k stars), WooCommerce Code Review (woocommerce/woocommerce, 11k stars), Systematic Code Refactoring (luongnv89/claude-howto, 42k stars) and Constraint-Driven Development (addyosmani/agent-skills, 103k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains AI Code Cleanup?

aiskillstore (a GitHub organization) maintains it in aiskillstore/marketplace, which has 430 GitHub stars. The repository holds 1,108 skills in this directory. The repository was last updated on October 7, 2026.

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