Updated 7mo ago
by l-mb
python-refactoring-skills
Python refactoring "skills" for Claude Code and others
53 GitHub stars (53)
+1 in 16 days
| Period | New stars |
|---|---|
| Oct 1 | 0 |
| Oct 2 | 0 |
| Oct 3 | 0 |
| Oct 4 | 0 |
| Oct 5 | 0 |
| Oct 6 | 0 |
| Oct 7 | 0 |
| Oct 8 | 0 |
| Oct 9 | +1 |
| Oct 10 | 0 |
| Oct 11 | 0 |
| Oct 12 | 0 |
| Oct 13 | 0 |
| Oct 14 | 0 |
| Oct 15 | 0 |
| Oct 16 | 0 |
- 8 skills (8 skills found in its SKILL.md files)
- 1 forks (1 forks)
- 7mo ago last update (Last updated 7mo ago)
Install
Skills CLI
npx skills add l-mb/python-refactoring-skills
Asks which skills and agents to install. Just one: npx skills add l-mb/python-refactoring-skills --skill py-code-health — add -g for every project.
Claude Code
git clone https://github.com/l-mb/python-refactoring-skillscp -r "python-refactoring-skills/skills/py-code-health" ~/.claude/skills/
Copies the py-code-health skill into ~/.claude/skills/ for every project (use .claude/skills/ for one project). Repeat for the other skills listed below.
Plugin
/plugin marketplace add l-mb/python-refactoring-skills
Run inside Claude Code if the repository ships a plugin marketplace, then pick plugins from /plugin.
Skills can run code on your machine — read the SKILL.md first.
What it does
In the author's own words, from each skill's SKILL.md.
-
py-code-health
Detect and remove dead code, duplicate code, and unused imports. Consolidate similar code patterns into parametrized functions.
skills/py-code-health/SKILL.md on GitHub (opens in a new tab) -
py-complexity
Reduce cyclomatic and cognitive complexity in Python code. Break down complex functions, simplify control flow, and track complexity trends over time.
skills/py-complexity/SKILL.md on GitHub (opens in a new tab) -
py-git-hooks
Set up git pre-commit hooks to run ruff, mypy, and basedpyright before commits. Use when configuring automated quality checks in git workflow.
skills/py-git-hooks/SKILL.md on GitHub (opens in a new tab) -
py-modernize
Modernize Python codebases - migrate pip to uv, upgrade syntax to Python 3.13+, replace deprecated patterns, and update tooling to current best practices.
skills/py-modernize/SKILL.md on GitHub (opens in a new tab) -
py-quality-setup
Configure ruff, mypy, and basedpyright for Python 3.13 projects. Use when setting up linters and type checkers in pyproject.toml and pyrightconfig.json.
skills/py-quality-setup/SKILL.md on GitHub (opens in a new tab) -
py-refactor
Orchestrate comprehensive Python refactoring - coordinates security, complexity, testing, code health, and modernization skills to systematically improve code quality.
skills/py-refactor/SKILL.md on GitHub (opens in a new tab) -
py-security
Security vulnerability detection and remediation for Python codebases. Identifies SQL injection, hardcoded secrets, weak cryptography, and other OWASP vulnerabilities.
skills/py-security/SKILL.md on GitHub (opens in a new tab) -
py-test-quality
Measure and improve test coverage and test suite quality using code coverage and mutation testing. Ensures tests actually catch bugs.
skills/py-test-quality/SKILL.md on GitHub (opens in a new tab)
No skill matches that filter.
Review before you install
A skill is a set of instructions and scripts your agent will follow, and it can run code on your machine. Read the SKILL.md and any scripts first — this listing is not a security review.