code-cleanup

Delegate linting fixes, formatting, and bulk refactors across multiple files to an agent.

2|Updated Mar 23, 2026
One-click install
npx skills add https://github.com/dot-prompt/dotprompt --skill code-cleanup-dot-prompt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-cleanup
Source: https://github.com/dot-prompt/dotprompt/tree/main/.agent/skills/code-cleanup
Command: npx skills add https://github.com/dot-prompt/dotprompt --skill code-cleanup-dot-prompt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Delegates repetitive, mechanical code tasks to a dedicated agent to preserve context and reduce manual drift across the codebase.

Core Features & Use Cases

  • Delegate lint fixes, formatting, and bulk refactors across multiple files.
  • Rename variables and functions consistently across the codebase.
  • Update imports and resolve IDE/diagnostic issues in batch while maintaining context.

Quick Start

Use the code-janitor agent to perform a scoped, bulk code cleanup across the repository.

Frequently Asked Questions about code-cleanup

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

FAQPage Schema
How do I automate lint fixes and formatting across multiple files without losing context?

Automating bulk refactoring across a codebase requires delegating mechanical tasks to a dedicated agent, ensuring structured execution and linter verification while preserving your primary working context.

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

Renaming variables consistently across a codebase is best handled by delegating cross-file renames to an agent-driven workflow, ensuring scoped task execution and consistent updates without manual drift.

How do I update imports and resolve diagnostic issues in bulk?

Updating imports and resolving diagnostic issues in bulk is achieved by delegating these mechanical tasks to a dedicated agent, applying batch changes across multiple files while maintaining context and verifying with linters.

Can I use an agent to perform scoped code cleanup across my repository?

Yes, you can use a dedicated agent to perform scoped, bulk code cleanup across a repository, executing mechanical tasks like formatting and import updates with linter verification and scoped boundaries.

When should I delegate mechanical code tasks instead of doing them manually?

You should delegate mechanical code tasks to a dedicated agent when performing repetitive bulk changes like lint fixes or cross-file renames, preventing manual drift and preserving context for complex logic.