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

Installs 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

Recommended

More Python
1alinaqi avatarsupabase-pythonalinaqi/claude-bootstrapsupabase python193skills.sh installs
2alinaqi avatarpythonalinaqi/claude-bootstrappython175skills.sh installs
3vudovn avatarpython-patternsvudovn/antigravity-kitpython patterns119skills.sh installs
4firebase avatardeveloping-genkit-pythonfirebase/agent-skillsDevelop AI-powered applications using Genkit in Python. Use when the user asks about Genkit, AI agents, flows, or tools in Python, or when encountering Genkit e33.6Kskills.sh installs
5wshobson avatarfastapi-templateswshobson/agentsCreate production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications26.5Kskills.sh installs
6wshobson avatarpython-error-handlingwshobson/agentsPython error handling patterns including input validation, exception hierarchies, and partial failure handling. Use when implementing validation logic, designin14.7Kskills.sh installs