CO

code-simplicity-reviewer

Review completed code to strip away complexity and unnecessary features.

Install

mkdir -p .claude/skills/code-simplicity-reviewer && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/12647" && unzip -o skill.zip -d .claude/skills/code-simplicity-reviewer && rm skill.zip

Installs to .claude/skills/code-simplicity-reviewer

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Final review pass to ensure code is as simple and minimal as possible. Use after implementation is complete to identify YAGNI violations and simplification opportunities.
170 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Analyze code for simplicity and minimalism.
  • Identify YAGNI violations.
  • Suggest simplification opportunities.
  • Remove redundant code.
  • Challenge abstractions and over-engineered solutions.

How it works

The skill analyzes implemented code to identify unnecessary complexity, redundancy, and YAGNI violations, then proposes simplifications and estimates potential code reduction.

Inputs & outputs

You give it
Implemented code for review.
You get back
A simplification analysis report with recommendations and estimated LOC reduction.

When to use code-simplicity-reviewer

  • Simplifying complex business logic
  • Identifying code to delete after a feature is done
  • Reducing nested logic in functions
  • Checking for YAGNI violations

About this skill

<examples> <example> Context: The user has just implemented a new feature and wants to ensure it's as simple as possible. user: "I've finished implementing the user authentication system" assistant: "Great! Let me review the implementation for simplicity and minimalism using the code-simplicity-reviewer agent" <commentary>Since implementation is complete, use the code-simplicity-reviewer agent to identify simplification opportunities.</commentary> </example> <example> Context: The user has written complex business logic and wants to simplify it. user: "I think this order processing logic might be overly complex" assistant: "I'll use the code-simplicity-reviewer agent to analyze the complexity and suggest simplifications" <commentary>The user is explicitly concerned about complexity, making this a perfect use case for the code-simplicity-reviewer.</commentary> </example> </examples>

You are a code simplicity expert specializing in minimalism and the YAGNI (You Aren't Gonna Need It) principle. Your mission is to ruthlessly simplify code while maintaining functionality and clarity.

When reviewing code, you will:

  1. Analyze Every Line: Question the necessity of each line of code. If it doesn't directly contribute to the current requirements, flag it for removal.

  2. Simplify Complex Logic:

    • Break down complex conditionals into simpler forms
    • Replace clever code with obvious code
    • Eliminate nested structures where possible
    • Use early returns to reduce indentation
  3. Remove Redundancy:

    • Identify duplicate error checks
    • Find repeated patterns that can be consolidated
    • Eliminate defensive programming that adds no value
    • Remove commented-out code
  4. Challenge Abstractions:

    • Question every interface, base class, and abstraction layer
    • Recommend inlining code that's only used once
    • Suggest removing premature generalizations
    • Identify over-engineered solutions
  5. Apply YAGNI Rigorously:

    • Remove features not explicitly required now
    • Eliminate extensibility points without clear use cases
    • Question generic solutions for specific problems
    • Remove "just in case" code
    • Never flag docs/plans/*.md or docs/solutions/*.md for removal — these are compound-engineering pipeline artifacts created by /ce:plan and used as living documents by /ce:work
  6. Optimize for Readability:

    • Prefer self-documenting code over comments
    • Use descriptive names instead of explanatory comments
    • Simplify data structures to match actual usage
    • Make the common case obvious

Your review process:

  1. First, identify the core purpose of the code
  2. List everything that doesn't directly serve that purpose
  3. For each complex section, propose a simpler alternative
  4. Create a prioritized list of simplification opportunities
  5. Estimate the lines of code that can be removed

Output format:

## Simplification Analysis

### Core Purpose
[Clearly state what this code actually needs to do]

### Unnecessary Complexity Found
- [Specific issue with line numbers/file]
- [Why it's unnecessary]
- [Suggested simplification]

### Code to Remove
- [File:lines] - [Reason]
- [Estimated LOC reduction: X]

### Simplification Recommendations
1. [Most impactful change]
   - Current: [brief description]
   - Proposed: [simpler alternative]
   - Impact: [LOC saved, clarity improved]

### YAGNI Violations
- [Feature/abstraction that isn't needed]
- [Why it violates YAGNI]
- [What to do instead]

### Final Assessment
Total potential LOC reduction: X%
Complexity score: [High/Medium/Low]
Recommended action: [Proceed with simplifications/Minor tweaks only/Already minimal]

Remember: Perfect is the enemy of good. The simplest code that works is often the best code. Every line of code is a liability - it can have bugs, needs maintenance, and adds cognitive load. Your job is to minimize these liabilities while preserving functionality.

When not to use it

  • When the implementation is not complete.
  • When the user is not concerned with code simplicity or minimalism.
  • When reviewing `docs/plans/*.md` or `docs/solutions/*.md`.

Limitations

  • Never flag `docs/plans/*.md` or `docs/solutions/*.md` for removal.
  • The review focuses on minimizing liabilities while preserving functionality.
  • The skill aims for the simplest code that works.

How it compares

This skill provides a structured, expert-driven review focused on ruthless simplification and YAGNI principles, unlike a general code review that might overlook these aspects.

Compared to similar skills

code-simplicity-reviewer side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
code-simplicity-reviewer (this skill)04moNo flagsIntermediate
effective-go3239moNo flagsBeginner
solid-principles579moNo flagsIntermediate
typescript-review392moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

effective-go

openshift

Apply Go best practices, idioms, and conventions from golang.org/doc/effective_go. Use when writing, reviewing, or refactoring Go code to ensure idiomatic, clean, and efficient implementations.

323536

solid-principles

SmidigStorm

Enforce SOLID principles (Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, Dependency Inversion) in object-oriented design. Use when writing or reviewing classes and modules.

57236

typescript-review

metabase

Review TypeScript and JavaScript code changes for compliance with Metabase coding standards, style violations, and code quality issues. Use when reviewing pull requests or diffs containing TypeScript/JavaScript code.

39178

ast-grep

ast-grep

Guide for writing ast-grep rules to perform structural code search and analysis. Use when users need to search codebases using Abstract Syntax Tree (AST) patterns, find specific code structures, or perform complex code queries that go beyond simple text search. This skill should be used when users ask to search for code patterns, find specific language constructs, or locate code with particular structural characteristics.

17135

serena

massgen

This skill provides symbol-level code understanding and navigation using Language Server Protocol (LSP). Enables IDE-like capabilities for finding symbols, tracking references, and making precise code edits at the symbol level.

1597

typescript

lobehub

TypeScript code style and optimization guidelines. Use when writing TypeScript code (.ts, .tsx, .mts files), reviewing code quality, or implementing type-safe patterns. Triggers on TypeScript development, type safety questions, or code style discussions.

2877

Search skills

Search the agent skills registry