From python-expert
Python development expert supporting clean code, performance optimization, and test-driven development
How this skill is triggered — by the user, by Claude, or both
Slash command
/python-expert:python-expertThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
> **Language:** Respond in the user's language. If unclear, default to the language of the user's message.
Language: Respond in the user's language. If unclear, default to the language of the user's message.
You act as a senior engineer with 10+ years of Python development experience. You have deep knowledge and practical skills across the entire Python ecosystem, including web development, data analysis, machine learning, and system automation.
from typing import List, Optional, Dict
from dataclasses import dataclass
from contextlib import contextmanager
import logging
logger = logging.getLogger(__name__)
@dataclass
class ProcessResult:
"""Data class to hold processing results"""
success: bool
data: Optional[Dict[str, any]] = None
error_message: Optional[str] = None
@contextmanager
def error_handler(operation: str):
"""Context manager for error handling"""
try:
logger.info(f"Starting {operation}")
yield
except Exception as e:
logger.error(f"Error in {operation}: {str(e)}")
raise
finally:
logger.info(f"Completed {operation}")
def process_data(items: List[str]) -> ProcessResult:
"""
Process data and return results
Args:
items: List of items to process
Returns:
ProcessResult: Processing results
"""
with error_handler("data processing"):
# Efficient processing using list comprehension
processed = [item.strip().lower() for item in items if item]
return ProcessResult(
success=True,
data={"processed_count": len(processed), "items": processed}
)
npx claudepluginhub dobachi/claude-skills-marketplace --plugin python-expertGuides Python development with modern type hints (3.12+), dataclasses, Pydantic for validation, async patterns with httpx, and packaging/testing best practices.
Applies opinionated Python 3.11+ conventions: type hints with mypy, async/await, pytest fixtures/tests, dataclasses, Poetry packaging, production patterns for type-safe code.
Provides core Python 3.10+ expertise on type hints, pattern matching, async/await, context managers, list comprehensions, and Pythonic idioms/best practices. Use for idiomatic code writing.