code-cleaning

Community

Pre-commit clean code refactoring (Python).

AuthorAbkr1
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill enables safe, automatic refactoring of Python code during pre-commit checks, improving readability and maintainability without altering behavior.

Core Features & Use Cases

  • Incremental refactoring: applies small, well-scoped changes to the staged code (rename variables, extract helpers, improve naming, adjust formatting) during pre-commit runs.
  • Safety constraints: preserves existing functionality by limiting transformations to non-breaking edits and requiring tests to pass before commit.
  • Use Case: when preparing a PR with a cleaner codebase, run pre-commit cleanup to ensure consistency across the repository.

Quick Start

Use the pre-commit workflow to automatically clean code on commit.

  • git add -A
  • git commit -m "style: apply code-cleaning with pre-commit"

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: code-cleaning
Download link: https://github.com/Abkr1/liza/archive/main.zip#code-cleaning

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.