ludo-technologies/python-best-practices/coding-standards
Claude Code and agent skill by ludo-technologies/python-best-practices
- community
Checking that the SKILL.md file is still in the repository.
Python coding standards and best practices covering error handling, performance optimization, async patterns, SOLID design principles, documentation, data validation, and object-oriented programming. Use when writing, reviewing, or refactoring Python code, or when the user asks about Python style, design, or best practices.
Install
npx vskill@latest install ludo-technologies/python-best-practices/coding-standardsSKILL.md
Python Coding Standards
A comprehensive collection of Python coding standards and best practices. Designed for AI agents and LLMs to generate high-quality, performant, and maintainable Python code.
Categories
Error Handling [CRITICAL]
Prevent failures from being hidden or reported as successful outcomes.
| Rule | Description | |
|---|---|---|
| error-no-silent-exceptions | Never swallow exceptions |
Performance Optimization [CRITICAL]
Apply Python optimization patterns to improve processing speed and memory efficiency.
| Rule | Description | |
|---|---|---|
| perf-list-comprehension | Prefer list comprehensions over loops (1.5-2x faster) | |
| perf-generator-expression | Use generators for large datasets (O(1) memory) | |
| perf-dict-get | Use dict.get() for efficient default values | |
| perf-set-lookup | Use set for fast lookups (O(1) vs O(n)) | |
| perf-str-join | Use join for string concatenation (O(n) vs O(n²)) |
Async Processing [HIGH]
Efficient asynchronous programming patterns using asyncio.
| Rule | Description | |
|---|---|---|
| async-gather | Use asyncio.gather for independent tasks | |
| async-create-task | Proper background task creation | |
| async-context-manager | Resource management with async with | |
| async-semaphore | Limit concurrency with semaphores |
Design Principles [HIGH]
Software design principles for maintainability and extensibility.
| Rule | Description | |
|---|---|---|
| design-philosophy | DRY, YAGNI, KISS principles | |
| design-single-responsibility | Single Responsibility Principle | |
| design-dependency-injection | Loose coupling with dependency injection | |
| design-no-global-singleton | Avoid global singletons and module-level shared instances | |
| solid-ocp | Open/Closed Principle | |
| solid-lsp | Liskov Substitution Principle | |
| solid-isp | Interface Segregation Principle | |
| design-pure-functions | Prefer pure functions without side effects | |
| design-early-return | Reduce nesting with early returns |
Documentation [HIGH]
Documentation standards for public API clarity and machine-checkable contracts.
| Rule | Description | |
|---|---|---|
| doc-docstring | Document public APIs with Google style docstrings | |
| doc-type-hints | Require type hints for public APIs |
Data Validation [HIGH]
Validation patterns for data crossing trust boundaries.
| Rule | Description | |
|---|---|---|
| validation-pydantic | Use Pydantic for boundary data validation |
Object-Oriented Programming [MEDIUM]
Best practices for Pythonic object-oriented programming.
| Rule | Description | |
|---|---|---|
| oop-composition-over-inheritance | Prefer composition over inheritance | |
| oop-dataclass | Use dataclass for data containers | |
| oop-protocol | Prefer Protocol over abstract base classes | |
| oop-property | Use property instead of getters |
Quick Reference
Error Handling
Performance Patterns
Async Patterns
Design Patterns
Documentation Patterns
Validation Patterns
OOP Patterns
See Also
- Recommended Tooling - Tools to enforce these standards automatically (ruff, mypy, pytest, pyscn, uv)
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/coding-standards/SKILL.md
Popularity
- Repository stars
- 2
- 7-day trend score
- 5
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 16 Apr 2026, 6 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ludo-technologies/python-best-practices/coding-standards)