Skip to content
Skill

Simplify python

Simplifies recently edited Python for readability while keeping behavior the same

Simplify python is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
10
Last commit
License
MIT
Listing updated

Similar skills

About Simplify python

This skill guides an agent through cleaning up Python code it has recently written or changed, focusing on readability rather than line count. It asks the agent to preserve return values, exception types, side effects and their order, and laziness, and to skip any change where equivalence is uncertain. Cleanup covers guard clauses, flatter control flow, removing dead code and redundant intermediates, and more idiomatic forms such as enumerate, zip, comprehensions, and standard-library helpers.

The workflow has the agent inspect the changed region and its callers, batch related tidyings, run existing tests and lint or type checks, and then report what changed and how it was verified. A zero-change pass is treated as a valid outcome. A separate reference file lists Python gotchas to consult when a candidate touches iteration, comparisons, cleanup, or mappings.

The skill also trims docstrings that repeat the signature while keeping contracts, units, exceptions, and doctests. It does not add missing docstrings unless asked. It expects a Python codebase with an existing test suite and does not run bundled scripts, since none are included.

When your agent uses it

Simplify recently written or edited Python for readability without changing behavior. Use for cleanup, idiomatic rewrites, flatter control flow, and trimming redundant code or docstrings. Not for performance tuning or behavior-changing redesign.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 2 files (6 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

Copy the skill folder to ~/.claude/skills/simplify-python to use it in all your projects:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ccomkhj/skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/simplify-python &&
cp -R "$tmp/simplify-python" ~/.claude/skills/simplify-python &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/simplify-python inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/simplify-python to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ccomkhj/skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/simplify-python &&
cp -R "$tmp/simplify-python" ~/.agents/skills/simplify-python &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/simplify-python inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/simplify-python to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ccomkhj/skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/simplify-python &&
cp -R "$tmp/simplify-python" ~/.cursor/skills/simplify-python &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/simplify-python inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/ccomkhj/skills.git --path simplify-python

Or copy the folder to ~/.gemini/skills/simplify-python yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/simplify-python:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ccomkhj/skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/simplify-python &&
cp -R "$tmp/simplify-python" ~/.copilot/skills/simplify-python &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/simplify-python inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/ccomkhj/skills.git

Then copy skills/simplify-python into your agent's skills folder as simplify-python. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Readability-focused cleanup
Targets recently modified code and favors reader effort over fewer lines.
Behavior preservation contract
Keeps return values, exceptions, side effects, timing and short-circuiting unchanged.
Control flow flattening
Applies guard clauses and continue statements to reduce nesting in loops and branches.
Python idiom rewrites
Suggests enumerate, zip, unpacking, comprehensions and standard-library helpers where clearer.
Docstring trimming
Removes prose that repeats signatures while keeping contracts, units and exceptions.
Verification workflow
Runs existing tests and lint or type checks and reports changes and limitations.

Good for

  • Clean up a function I just wrote without changing what it returns
  • Rewrite a loop with nested ifs into guard clauses and continue
  • Replace manual index handling with enumerate or zip
  • Trim redundant docstrings in a module I edited
  • Remove dead code and unused intermediate variables from my recent changes

Simplify python FAQ

What does Simplify python change in my code?

It makes readability-focused edits to recently written or edited Python, such as flattening control flow, removing dead code, using idiomatic builtins, and trimming redundant docstrings, while keeping behavior the same.

Does Simplify python handle performance tuning or redesign?

No. The skill description says it is not for performance tuning or behavior-changing redesign.

Does Simplify python add missing docstrings?

No, not during cleanup unless explicitly asked. It also preserves doctests and runtime use of __doc__.

Does Simplify python require any scripts or special tools?

No scripts are included. It asks the agent to run the repository's existing tests and applicable lint or type checks.

How do I install Simplify python in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/simplify-python to use it in all your projects, or to .claude/skills/simplify-python in one project.

Does Simplify python run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Simplify python?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Simplify python?

The closest alternatives to Simplify python are Code simplifier, Code simplification edho ferdian, Readable code, Comment code generate a tutorial and Axiom swift simplifier.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from ccomkhj/skills

  1. Audits AGENTS.md project memory files and proposes targeted, approved updates

    • Open source
    • 10 GitHub stars
    • Developer tools
  2. Builds interactive HTML lessons that teach AI, ML or science concepts through worked cases

    • Open source
    • 10 GitHub stars
    • Education and exam prep
  3. Runs a project and builds an interactive walkthrough from what actually executed

    • Open source
    • 10 GitHub stars
    • Developer tools
  4. Turns a clear improvement target into a measurable Claude Code /goal condition

    • Open source
    • 10 GitHub stars
    • Developer tools
  5. Races Claude against Codex in separate git worktrees until a measurable goal is met

    • Open source
    • 10 GitHub stars
    • Developer tools
  6. Runs a per-turn race between two coding agents and keeps the better diff

    • Open source
    • 10 GitHub stars
    • Developer tools