simplify

Analyze code line-by-line to remove unnecessary complexity and enforce YAGNI.

2|Updated Jan 26, 2026
One-click install
npx skills add https://github.com/302ai/302-coding-plugins --skill simplify-302ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: simplify
Source: https://github.com/302ai/302-coding-plugins/tree/main/plugins/oh-my-claudecode/skills/simplify
Command: npx skills add https://github.com/302ai/302-coding-plugins --skill simplify-302ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps developers reduce code complexity and enforce the YAGNI principle by guiding targeted simplifications during refactors and PR reviews.

Core Features & Use Cases

  • Line-by-Line Reduction: analyzes each line to prune nonessential code and clarify intent.
  • Simplified Control Flow: reduces nested conditionals and indirection to improve readability.
  • PR Readiness & Onboarding: accelerates reviews and lowers cognitive load for new contributors by presenting lean, maintainable code.
  • Example Use Case: Transform a feature-rich module with multiple guards into a lean, single-path implementation.

Quick Start

Provide a complex function and ask me to simplify it to its essential logic.

Frequently Asked Questions about simplify

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

FAQPage Schema
How do I simplify complex code and remove unnecessary abstractions?

To simplify complex code, this tool performs a line-by-line analysis to prune nonessential logic, reduce nested conditionals, and challenge abstractions, ultimately outputting a clear plan for safe code reductions.

How do I enforce YAGNI when refactoring a feature-rich module?

Enforce YAGNI during refactoring by analyzing every line to identify and remove speculative generality, reducing control flow to a lean, single-path implementation, and stripping redundant guards to lower cognitive load.

What is the best way to reduce code complexity before a PR review?

The best way to reduce code complexity before a PR review is to run a structured simplification workflow that identifies unnecessary abstractions, simplifies control flow, and ensures the codebase adheres to the YAGNI principle.

Can I use this to simplify code across diverse codebases and languages?

Yes, this code simplification process is applicable across diverse codebases and languages without requiring specific dependencies, making it suitable for onboarding and major refactors in various environments.

Does code simplification work for onboarding new contributors?

Yes, code simplification works for onboarding by presenting lean, maintainable code that lowers cognitive load, accelerating PR readiness, and making it easier for new contributors to understand the essential logic.

Why should I challenge abstractions during a code refactor?

You should challenge abstractions during a code refactor to enforce YAGNI, remove unnecessary indirection, and ensure the implementation remains a lean, single-path flow that is easier to maintain and review.