code-cleanup

Automate linting fixes, variable renames, and import updates across a codebase.

3|Updated Nov 1, 2025
One-click install
npx skills add https://github.com/krmcbride/claude-plugins --skill code-cleanup-krmcbride
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-cleanup
Source: https://github.com/krmcbride/claude-plugins/tree/main/essentials/skills/code-cleanup
Command: npx skills add https://github.com/krmcbride/claude-plugins --skill code-cleanup-krmcbride

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Delegates repetitive, mechanical code maintenance tasks to a dedicated agent to preserve developer context and reduce cognitive load.

Core Features & Use Cases

  • Delegated linting and formatting fixes across multiple files
  • Global variable/function renaming consistency across a codebase
  • Bulk import statement updates and style normalization

Quick Start

Describe the mechanical task and scope to the code-janitor agent to execute bulk cleanup across the codebase.

Frequently Asked Questions about code-cleanup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate linting fixes and formatting changes across multiple files?

Automating bulk linting fixes and formatting changes involves delegating the mechanical task and scope to a specialized agent, which coordinates cross-file updates and integrates with linters to verify the applied changes.

What is the best way to rename variables and functions consistently across a codebase?

Global variable and function renaming consistency is handled by delegating the task to a dedicated agent, which coordinates cross-file changes to maintain codebase integrity without manual intervention.

How do I update import statements in bulk across my project?

Bulk import statement updates are performed by describing the mechanical task to a specialized agent, which executes the import updates and normalizes styles across the specified codebase scope.

Does this code cleanup approach work with my existing linters to verify changes?

Yes, the code cleanup approach integrates with your existing linters to verify changes, applying bulk formatting and refactoring tasks across files while ensuring the modifications pass linting checks.

Why delegate repetitive code maintenance tasks instead of doing them manually?

Delegating repetitive code maintenance tasks to a dedicated agent preserves developer context and reduces cognitive load, handling mechanical refactoring and formatting without interrupting your active workflow.