py-refactor
Audited MIT-licensed refactoring skill coordinating phased Python analysis, complexity reduction, modern syntax upgrades, and regression-safe test verification.
CLI Install Command
Builderthread summarizes metadata only and does not republish full third-party skill files. Review the upstream GitHub repository before installing into your workspace.
Want py-refactor wired into a working starter repo?
Builderthread pairs verified skills with a private GitHub starter repo, living PRD, and MCP task board for Claude Code, Cursor, and Codex.
When to use this skill
- •Refactoring legacy Python services into typed, modern Python 3.12+ modules
- •Breaking down deeply nested functions without altering behavior
- •Running structured cleanup passes guarded by Ruff and pytest
What this skill covers
Focus Areas
- Phased refactoring workflow
- Cyclomatic complexity reduction
- Python 3.12+ modernization
- Test-gated remediation
Read the full SKILL.md instructions and license terms on l-mb/python-refactoring-skills on GitHub.
Upstream Package Files
Related python Skills
Official MIT-licensed skill maintained inside fastapi/fastapi covering async vs sync route design, Depends lifecycles, Pydantic v2 validation, OpenAPI schemas, and streaming responses.
MIT-licensed Python testing skill from LambdaTest (TestMu AI) teaching coding agents clean pytest fixtures, parametrized edge cases, monkeypatch mocking, and async FastAPI tests.
Official Apache-2.0 skill from Astral teaching coding agents to manage Python dependencies, lockfiles, tool runs, and isolated scripts with uv instead of brittle global pip commands.
Python AI starter + MCP tasks
Ship your Python AI backend from a working baseline
Get a private FastAPI repo with hashed API keys, streaming endpoints, Alembic migrations, and pytest configured, plus a living PRD and verified build tasks for your coding agent.