Agent skill
stinkysnake
Progressive Python quality improvement through static analysis, type refinement, and modernization. Use when addressing technical debt, eliminating Any types, or applying modern Python patterns across a codebase.
Stars
33
Forks
4
Install this agent skill to your Project
npx add-skill https://github.com/Jamie-BitFlight/claude_skills/tree/main/plugins/python-engineering/skills/stinkysnake
SKILL.md
Stinkysnake — Progressive Quality Improvement
Workflow
- Static Analysis: Run ruff format, ruff check --fix, and type checker
- Type Analysis: Inventory Any types, map dependencies, identify gaps
- Plan: Create modernization plan for type replacements
- Review: Delegate plan to review agent
- Refine: Update plan based on feedback
- Implement: Run tests iteratively until passing
- Verify: Final lint, type check, and test run
Steps
Phase 1: Static Analysis
bash
uv run ruff format $ARGUMENTS
uv run ruff check --fix $ARGUMENTS
uv run ty check $ARGUMENTS
# If project runs mypy: uv run mypy $ARGUMENTS
Phase 2: Type Inventory
bash
grep -r 'from typing import.*Any\|: Any\|-> Any' $ARGUMENTS
Phase 3: Plan
Create {plan_dir}/stinkysnake-plan.md with type replacement strategy.
Phase 4-5: Review and Refine
Delegate to code-reviewer agent.
Phase 6: Implement
Use /python-engineering:cleanup for implementation, or load python3-tdd for test-first approach.
Phase 7: Verify
bash
uv run ruff check $ARGUMENTS
uv run ty check $ARGUMENTS
uv run pytest -v --cov --cov-report=term-missing
Didn't find tool you were looking for?