clean-code

Diagnose over-abstraction and consolidate files by domain in Python codebases.

16|2|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/sbluemin/fleet-harness --skill clean-code-sbluemin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clean-code
Source: https://github.com/sbluemin/fleet-harness/tree/main/.agents/skills/clean-code
Command: npx skills add https://github.com/sbluemin/fleet-harness --skill clean-code-sbluemin

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python, specific-tools, and includes scripts (resource) and references (resource) components.

What problem does it solve?

The clean-code Skill addresses the challenge of maintaining a clean and maintainable codebase by identifying and correcting common code smells and anti-patterns.

Core Features & Use Cases

  • Automated Code Cleanup: Diagnose over-abstraction and consolidate files by domain to reduce complexity.
  • Deduplication: Eliminate redundant functional logic to enhance readability and efficiency.
  • Use Case: Imagine you have a large codebase with multiple files that are unnecessarily complex. Use this Skill to automate the process of consolidating files and removing duplicate logic, resulting in a more maintainable codebase.

Quick Start

Run the clean-code Skill on your project with clean-code <target_path> to analyze and optimize your code.

Frequently Asked Questions about clean-code

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

FAQPage Schema
How do I identify and fix code smells in a large codebase?

Automated code cleanup identifies code smells like over-abstraction and redundant logic, then consolidates files by domain and deduplicates functional logic to reduce complexity and improve maintainability.

What is the best way to automate refactoring for over-abstraction?

Automating refactoring for over-abstraction involves running a script to analyze your target path and consolidate files by domain. This eliminates redundant functional logic and enhances overall codebase efficiency and readability.

Do I need Python to deduplicate functional logic in my project?

Yes, you need Python and specific tools installed to run the analysis and refactoring scripts. These dependencies are required to automatically identify anti-patterns and deduplicate functional logic in your codebase.

Can I consolidate files by domain automatically for codebase maintenance?

Yes, you can automatically consolidate files by domain by running the cleanup script with your target path. This process directly addresses unnecessary complexity and reduces redundant functional logic across the project.

What are the limitations of automated code cleanup for anti-patterns?

Automated code cleanup for anti-patterns requires specific tools and Python, meaning it is limited to compatible environments. It focuses specifically on over-abstraction and redundant logic rather than addressing all types of codebase issues.