AI AGENT ADDONS

Python Best Practices

0xbigboss/claude-code

This guide helps you write Python code that is safer and easier to understand. It focuses on using types to prevent mistakes before they happen. You will learn about frozen dataclasses, discriminated unions, and structural typing with Protocol.

Error handling is important too. The skill shows how to chain exceptions with from err to keep the full error history. It also covers structured logging using %s formatting for better performance.

You will also find tips on fast type checking with tools like ty. These practices make your Python code cleaner and more reliable.

Add Python Best Practices skill to your workflow

Global

mkdir -p ~/.claude/skills/python-best-practices

Project

mkdir -p .claude/skills/python-best-practices

Source Repository

Stars
51
Forks
7
Watchers
51
License
Apache-2.0
Last Push
27 days ago
Created
1 year ago