
Python
A comprehensive set of Python development standards that Claude will follow when writing or reviewing your code. It covers the practical stuff like preferring composition over inheritance, using Protocol classes for interfaces, and keeping one service per module. The guidelines push for modern Python patterns (union types over Optional, built-in generics over typing module), Pydantic v2 for data models, and pytest for testing with the AAA pattern. It also includes opinionated but sensible rules like requiring dependency injection, organizing environment variables in a single file, and mirroring your src structure in tests. Useful if you want consistency across a codebase without explaining your conventions every time.
- skills.sh installs
- 353
- GitHub stars
- 22
- last updated
- Aug 21, 2026
Install
$ npx -y skills add siviter-xyz/dot-agent --skill python --agent claude-codeInstalls into .claude/skills of the current project.
Files
Python Guidelines
Standards and best practices for Python development. Follow these guidelines when writing or modifying Python code.
Design Principles
Apply DRY, KISS, and SOLID consistently. Prefer functional methods where relevant; use classes for stateful behavior. Use composition with Protocol classes for interfaces rather than inheritance. Each module should have a single responsibility. Use dependency injection for class dependencies.
Code Style
- Naming: Descriptive yet concise names for variables, methods, and classes
- Documentation: Docstrings for all classes, functions, enums, enum values
- Type hints: Use consistently; avoid
Anyunless necessary - Imports: Avoid barrel exports in
__init__.py; prefer blank files
Type Annotations
- Use
dict,listinstead oftyping.Dict,typing.List - Use
str | Noneinstead ofOptional[str] - Include
from __future__ import annotationsat top of files with type hints - Prefer built-in types over typing module equivalents
Architecture
Dependency Injection
Sponsors
Details
- Repository
- github.com/siviter-xyz/dot-agent
- Categories
- AI & Agent Building, Python
- First seen
- Jun 3, 2026