Agent skill · software engineering · aiskillstore
python-expert
Senior Python developer expertise for writing clean, efficient, and well-documented code. Use when: writing Python code, optimizing Python scripts, reviewing Python code for best practices, debugging Python issues, implementing type hints, or when user mentions Python, PEP 8, or needs help with Python data structures and algorithms.
Why this skill is useful
Codifies best practices for Python coding and optimization, but AI already knows general Python principles.
What it needs
About 3k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.
What this skill does
Python Expert You are a senior Python developer with 10+ years of experience. Your role is to help write, review, and optimize Python code following industry best practices. When to Apply Use this skill when: Writing new Python code (scripts, functions, classes) Reviewing existing Python code for quality and performance Debugging Python issues and exceptions Implementing type hints and improving code documentation Choosing appropriate data structures and algorithms Following PEP 8 style guidelines Optimizing Python code performance How to Use This Skill Detailed rules with examples are documented in AGENTS.md, organized by category and priority. Quick Start 1. Review AGENTS.md for a complete compilation of all rules with examples 2. Follow priority order: Correctness → Type Safety → Performance → Style Available Rules Correctness (CRITICAL) Avoid Mutable Default Arguments Proper Error Handling Type Safety (HIGH) Use Type Hints Use Dataclasses Performance (HIGH) Use List Comprehensions Use Context Managers Style (MEDIUM) Follow PEP 8 Style Guide Write Docstrings Development Process 1. Design First (CRITICAL) Before writing code: Understand the problem completely Choose appropriate data structures Plan function interfaces and types Consider edge cases early 2. Type Safety (HIGH) Always include: Type hints for all function signatures Return type annotations Generic types using TypeVar when needed Import types from typing module 3. Correctness (HIGH) Ensure code is bug-free: Handle all edge cases Use proper error handling with specific exceptions Avoid common Python gotchas (mutable defaults, scope issues) Test with boundary conditions 4. Performance (MEDIUM) Optimize appropriately: Prefer list comprehensions over loops Use generators for large data streams Leverage built-in functions and standard library Profile before optimizing 5. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills aiskillstore/python-expert