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-code

Installs 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 Any unless necessary
  • Imports: Avoid barrel exports in __init__.py; prefer blank files

Type Annotations

  • Use dict, list instead of typing.Dict, typing.List
  • Use str | None instead of Optional[str]
  • Include from __future__ import annotations at 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

More from siviter-xyz/dot-agent

All 11
1anthropics avatarexecutive-briefinganthropics/claude-agent-sdk-demosTransforms research findings into executive-ready briefings. Automatically activated when user mentions 'executive', 'briefing', 'C-suite', 'board', 'leadership352skills.sh installs
2schalkneethling avatarsemantic-htmlschalkneethling/webdev-agent-skillssemantic html351skills.sh installs
3gohypergiant avataraccelint-ts-testinggohypergiant/agent-skillsComprehensive vitest testing guidance for TypeScript projects. Use when (1) Writing new tests with AAA pattern, parameterized tests, or async/await, (2) Reviewi350skills.sh installs
4thedivergentai avatargodot-save-load-systemsthedivergentai/gd-agentic-skillsExpert blueprint for save/load systems using JSON/binary serialization, PERSIST group pattern, versioning, and migration. Covers player progress, settings, game350skills.sh installs
5datadrivenconstruction avatarcad-to-datadatadrivenconstruction/ddc_skills_for_ai_agents_in_constructionConvert CAD/BIM files to structured data. Extract element data from Revit, IFC, DWG, DGN files.349skills.sh installs
6jwynia avatarconfig-scanjwynia/agent-skillsDetect security misconfigurations in config files, Docker, and IaC. Use when reviewing configuration security for containers, Kubernetes, Terraform, or applicat349skills.sh installs