From python-engineering
Improves Python code quality via structured cleanup: static analysis with ruff/prek, smell investigation, type boundary hardening, modernization within project constraints, pytest verification.
How this skill is triggered — by the user, by Claude, or both
Slash command
/python-engineering:cleanupThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Structured cleanup and modernization workflow.
Structured cleanup and modernization workflow.
Scope: $ARGUMENTS
uv run prek run --files $ARGUMENTS
# Fallback when no .pre-commit-config.yaml:
# uv run ruff format $ARGUMENTS
# uv run ruff check --fix $ARGUMENTS
# uv run ruff check --fix --unsafe-fixes $ARGUMENTS
For each smell found:
Any usagerequires-python constraintuv run prek run --files $ARGUMENTS
# Fallback when no .pre-commit-config.yaml:
# uv run ruff check $ARGUMENTS
# uv run ruff format --check $ARGUMENTS
uv run pytest $ARGUMENTS -v
python3-typing for boundary refactoringpython3-testing if test gaps are foundpython3-tools for toolchain changesnpx claudepluginhub jamie-bitflight/claude_skills --plugin python-engineeringImproves Python code quality with static analysis (ruff/mypy), Any type elimination, modernization plans (Protocols/Generics/Pydantic), plan review, and test-driven refactoring.
Improves Python code quality via static analysis, type refinement, modernization planning/review, and test-driven implementation. Use for technical debt, eliminating Any types, modern patterns, refactoring.
Reviews and improves Python library code quality using ruff linting, mypy type checking, Pythonic refactoring idioms, and type hint patterns.