ub-python
CommunityEnforce modern Python with type-safe patterns
Authorrobert-hoffmann
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Design, review, refactor, and test repository Python code using typed Python (latest stable) patterns, boundary validation, and structured error handling. Use when tasks involve Python files, pytest/ruff/mypy workflows, packaging/tooling decisions, dataclass or Pydantic modeling, or Python service/repository logic.
Core Features & Use Cases
- Enforce typing discipline: promote typing annotations, modern syntax, and strict contracts across Python code.
- Boundary validation and structured error handling: provide robust data validation and error pathways.
- Migration guidance: help move code toward newer Python versions with minimal disruption.
- Use Case: refactor a service to adopt dataclasses and Pydantic v2 models, while maintaining tests.
Quick Start
Identify the project's Python version from pyproject.toml, then propose a minimal, typed refactor plan that improves typing coverage and boundary validation.
Dependency Matrix
Required Modules
None requiredComponents
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: ub-python Download link: https://github.com/robert-hoffmann/uncle-bob/archive/main.zip#ub-python Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.