Skip to content
Back to skills

Cleanup Code

ASecurity

Run linters, automatically fix code issues, and validate fixes through iterative cycles until all checks pass or maximum iterations are reached.

  • 5 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added May 26, 2026
tools

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add agnesk92/macos-setup --skill cleanup-code --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cleanup Code?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cleanup Code
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/agnesk92-cleanup-code/badge)](https://www.skillsdirectory.com/skills/agnesk92-cleanup-code)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cleanup-code
description: Run linters, automatically fix code issues, and validate fixes through iterative cycles until all checks pass or maximum iterations are reached.
---

Workflow:

1. **Find Linting Commands**: Figure out what commands you should run to lint. It is probably described in the project's CLAUDE.md or README.md.
2. **Initial Assessment**: Run the linters. Note the ones that fail or have warnings.
3. **Iterative Lint-Fix Cycle**: 
    - **Choose linter**: Choose a linter from the list of failed or warning linters.
    - **Fix**: Automatically fix issues.
    - **Validate**: Ensure fixes are valid.
4. **Repeat**: Repeat the process until all checks pass or maximum iterations are reached.
5. **Report Results**: Report which linters are failing, and which one were you fixing. Note if the current linter is fixed or needs further attention.

Maximum iterations: 5.
Never use ignores to fix linting errors. If you cannot fix an issue, report in step 5 instead. 
Assume the current linter configurations are correct.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.