ai-smell-fix

Remove AI-generated code smells like over-abstraction and comment spam.

Updated Feb 5, 2026
One-click install
npx skills add https://github.com/Objective-Arts/lens --skill ai-smell-fix
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ai-smell-fix
Source: https://github.com/Objective-Arts/lens/tree/main/workflow-skills/workflow/ai-smell-fix
Command: npx skills add https://github.com/Objective-Arts/lens --skill ai-smell-fix

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the common issue of AI-generated code exhibiting patterns that are overly verbose, abstract, or defensive, making it less readable and maintainable than human-written code.

Core Features & Use Cases

  • AI Smell Detection: Identifies specific code patterns often introduced by AI, such as over-abstraction, comment spam, and excessive structure.
  • Code Refinement: Automatically removes or simplifies these identified "smells" to improve code quality and readability.
  • Use Case: After an AI assistant generates a significant portion of your codebase, run this Skill to clean up the output, ensuring it adheres to human coding standards and best practices.

Quick Start

Use the ai-smell-fix skill to remove AI-generated code smells from the 'src/utils' directory.

Frequently Asked Questions about ai-smell-fix

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

FAQPage Schema
How do I remove AI code smells from generated code?

Code smells in AI-generated code include over-abstraction, defensive paranoia, comment spam, speculative features, enterprise patterns in simple code, generic wrapper abuse, verbose naming, excessive structure, and architectural bloat. These patterns reduce code readability and maintainability.

How do I fix verbose naming and excessive structure in AI-generated code?

Fix verbose naming and excessive structure by running a refinement process that identifies architectural bloat and simplifies it, stripping away unnecessary enterprise patterns to improve overall code quality and human readability.

Does this approach work for cleaning up speculative features in my codebase?

Yes, this approach works for speculative features by identifying and removing unnecessary abstractions and generic wrapper abuse across targeted directories, ensuring the remaining codebase adheres to human coding standards and best practices.

What is the best way to humanize AI-generated code?

The best way to humanize AI-generated code is to target specific directories and automatically remove AI patterns like enterprise patterns in simple code, generic wrapper abuse, and architectural bloat to achieve a human-written appearance.

When should I not use an AI smell fix refactoring approach?

You should avoid using an AI smell fix refactoring approach on codebases that genuinely require deep enterprise patterns, defensive paranoia, or extensive architectural structure, as simplifying these necessary abstractions would degrade code quality.