cleanup

Remove dead code, enforce formatting standards, and rename identifiers.

Updated Feb 3, 2026
One-click install
npx skills add https://github.com/dhruvinrsoni/agentskills-garden --skill cleanup-dhruvinrsoni
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cleanup
Source: https://github.com/dhruvinrsoni/agentskills-garden/tree/main/skills/30-implementation/cleanup
Command: npx skills add https://github.com/dhruvinrsoni/agentskills-garden --skill cleanup-dhruvinrsoni

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines code quality by automatically removing unnecessary clutter, enforcing consistent formatting, and improving identifier clarity, making codebases easier to read and maintain.

Core Features & Use Cases

  • Automated Code Formatting: Applies project-specific linters and formatters.
  • Dead Code Removal: Eliminates commented-out code blocks and unused imports.
  • Safe Renaming: Renames unclear identifiers with user-approved changes.
  • Use Case: After a feature is implemented, run this Skill to clean up any temporary comments, ensure consistent indentation, and rename variables like temp_val to something more descriptive like user_input_count.

Quick Start

Use the cleanup skill to format and rename identifiers in the file '/path/to/your/code.py'.

Frequently Asked Questions about cleanup

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

FAQPage Schema
What is the best way to automate code cleanup and remove dead code after feature implementation?

Automated code cleanup removes dead code, eliminates commented-out blocks and unused imports, and enforces formatting standards to improve readability and maintainability after feature implementation.

How do I enforce project-specific linter rules and code formatting consistently?

To enforce project-specific linter rules, the system detects project linters and applies automated code formatting, ensuring consistent indentation and adherence to the coding styles defined in your codebase.

How does safe identifier renaming handle variable scope and risk in code refactoring?

Safe identifier renaming analyzes variable and function scope to carefully rename unclear identifiers, requiring user-approved changes to minimize risk and ensure clarity without breaking codebase dependencies.

Can I use code refactoring tools to fix formatting and rename variables in Python files?

Yes, you can use code refactoring tools to fix formatting, remove noise, and safely rename unclear variables in Python files by analyzing file content and applying project-specific linter standards.

When do I need code refactoring to remove noise and improve code maintainability?

You need code refactoring to remove noise when temporary comments accumulate, formatting becomes inconsistent, or unclear identifiers compromise code readability, maintainability, and adherence to project-specific coding styles.