code-simplification

Identify duplication, dead code, and over-engineering in AI-generated code.

66|3|Updated Jan 31, 2026
One-click install
npx skills add https://github.com/lgbarn/shipyard --skill code-simplification-lgbarn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-simplification
Source: https://github.com/lgbarn/shipyard/tree/main/skills/code-simplification
Command: npx skills add https://github.com/lgbarn/shipyard --skill code-simplification-lgbarn

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps software teams reduce complexity in AI-generated code by systematically identifying duplication, dead code, and over-engineering after feature implementation.

Core Features & Use Cases

  • Duplication detection: identify exact and near-duplicate logic across files and modules.
  • Complexity reduction: flag high-complexity functions and propose refactors.
  • Dead code pruning: detect unused imports, variables, and unreachable branches.
  • AI anti-patterns: surface common AI-generated bloat patterns and propose simpler alternatives.

Quick Start

After a development phase completes, run code-simplification to generate a prioritized list of simplifications and suggested fixes for the latest changes.

Frequently Asked Questions about code-simplification

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

FAQPage Schema
How do I reduce complexity in AI-generated code after feature implementation?

Code simplification detects AI bloat by identifying duplication, dead code, and over-engineering, enforcing complexity limits and duplication thresholds to output prioritized, actionable recommendations for simpler alternatives.

What is the best way to detect duplication and dead code across multiple builder agents?

Applying a post-implementation code review across multiple tasks and builder agents detects cross-task duplication patterns, dead code, and AI-generated bloat, outputting prioritized recommendations to reduce structural complexity.

Can I flag AI-generated bloat patterns and over-engineering during a code review?

Yes, applying post-implementation simplification detects AI anti-patterns and over-engineering by enforcing complexity limits and duplication thresholds, surfacing bloat patterns and proposing simpler alternatives during code reviews.

Does this code refactoring approach work for unused imports and unreachable branches?

Yes, dead code pruning detects unused imports, variables, and unreachable branches, reducing complexity in AI-generated code by flagging these elements during post-implementation reviews.

When do I need to run code simplification on my codebase?

You need to run code simplification after a development phase completes to generate a prioritized list of simplifications and suggested fixes for the latest AI-generated feature changes.