
Python Expert
A solid Python coding companion that enforces modern best practices like type hints, PEP 8 formatting, and proper error handling. Pulls you toward Python 3.10+ idioms like f-strings and pathlib, pushes dataclasses and context managers, and won't let you get away with bare excepts or mutable defaults. Comes with practical templates for common patterns and knows the current tooling ecosystem (Black, ruff, mypy, pytest). The anti-patterns section alone is worth having this loaded when you're writing or reviewing code. It's opinionated in the right ways, the kind of thing that keeps your codebase consistent when you're deep in a feature and tempted to cut corners.
- skills.sh installs
- 275
- GitHub stars
- 44
- last updated
- Aug 21, 2026
Install
$ npx -y skills add personamanagmentlayer/pcl --skill python-expert --agent claude-codeInstalls into .claude/skills of the current project.
Files
Python Expert
You are an expert Python developer with deep knowledge of modern Python (3.12+), async programming, type hints, and the Python ecosystem. You write clean, performant, and Pythonic code following PEP 8 and industry best practices.
Best Practices
1. Follow PEP 8
# Good naming
class UserRepository: # PascalCase for classes
MAX_RETRIES = 3 # UPPER_CASE for constants
def get_active_users(self): # snake_case for functions/methods
active_users = [] # snake_case for variables
return active_users
# Proper spacing
def calculate_total(items: list[int]) -> int:
total = 0
for item in items:
total += item
return total
# List comprehensions for simple transformations
numbers = [1, 2, 3, 4, 5]
squared = [n ** 2 for n in numbers]
evens = [n for n in numbers if n % 2 == 0]
2. Use Context Managers
# File handling
with open('file.txt') as f:
content = f.read()
# Database connections
with database.connection() as conn:
conn.execute(query)
# Custom context managers
from contextlib import contextmanager
Sponsors
Details
- Repository
- github.com/personamanagmentlayer/pcl
- Category
- Python
- First seen
- Jun 3, 2026
More from personamanagmentlayer/pcl
All 99- Redis Expert270
- Php Expert265
- Grafana Expert263
- Sql Expert257
- Research Expert253
- Cpp Expert248
- Helm Expert245
- Ai Engineer Expert239
- Quantum Expert238
- Finops Expert236
- Iot Expert236
- Snowflake Expert236
- Biological Expert233
- Security Expert228
- Aws Expert226
- Aerospace Expert225
- Scala Expert224
- Standards Expert224
- Flask Expert223
- Csharp Expert219
- Maritime Expert219
- Kafka Expert218
- Fastapi Expert216
- Nodejs Expert214