simplify

Analyze Python code complexity and apply safe refactoring techniques.

190|33|Updated Dec 3, 2025
One-click install
npx skills add https://github.com/DeL-TaiseiOzaki/claude-code-orchestra --skill simplify-del-taiseiozaki
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: simplify
Source: https://github.com/DeL-TaiseiOzaki/claude-code-orchestra/tree/main/.claude/skills/simplify
Command: npx skills add https://github.com/DeL-TaiseiOzaki/claude-code-orchestra --skill simplify-del-taiseiozaki

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enables safe, automated refactoring of Python code to reduce complexity while preserving functionality and library constraints.

Core Features & Use Cases

  • Analysis & Planning: Inspect target code to identify hotspots, dependencies, and refactoring opportunities.
  • Refactoring Techniques: Apply patterns such as Early Return and Extract Function to improve readability without changing behavior.
  • Verification: Run the project’s tests to ensure no regressions after changes.
  • Use Case: When a module has long functions and deep nesting, run this skill to produce a simpler, maintainable version that passes tests.

Quick Start

Use the simplify skill to refactor a target Python module in your repository and verify with tests.

Frequently Asked Questions about simplify

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

FAQPage Schema
How do I refactor Python code to reduce nesting and improve readability?

To reduce nesting and refactor Python code safely, this skill identifies complexity hotspots and applies patterns like Early Return and Extract Function. It produces a simpler, maintainable version while preserving behavior and library constraints.

Can I use automated refactoring without breaking existing Python library constraints?

Yes, you can refactor Python code without breaking library constraints. This skill preserves behavior and library constraints by relying on standard tooling like linters and type hints to validate changes without altering external interfaces.

What's the best way to verify Python code behavior after a refactor?

The best way to verify Python code behavior after a refactor is to run the project's unit tests. This skill relies on standard tooling and test confirmation to ensure no regressions are introduced before finalizing any modifications.

When do I need static analysis for Python code readability?

You need static analysis for Python code readability when a module has long functions and deep nesting. This skill inspects target code to identify dependencies and hotspots, applying refactoring opportunities to improve readability safely.

Does Python refactoring work on single files or larger modules?

Python refactoring with this skill works on both single files and larger modules within a project. It analyzes the target code to identify hotspots and applies safe refactoring techniques to reduce nesting and improve readability.