Macos-setup cleanup-code

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

install
source · Clone the upstream repo
git clone https://github.com/agnesk92/macos-setup
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/agnesk92/macos-setup "$T" && mkdir -p ~/.claude/skills && cp -r "$T/dotfiles/claude/.claude/skills/cleanup-code" ~/.claude/skills/agnesk92-macos-setup-cleanup-code && rm -rf "$T"
manifest: dotfiles/claude/.claude/skills/cleanup-code/SKILL.md
source content

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.