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.
Global
mkdir -p ~/.claude/skills/python-best-practicesProject
mkdir -p .claude/skills/python-best-practicesSource Repository
Typescript Advanced Typeswshobson/agents
Master advanced TypeScript types for safer and more flexible code
Python Executorqu-skills/skills
Execute Python code safely with 100+ libraries for data, scraping, and media
Golang Error Handlingsamber/cc-skills-golang
Learn to create, wrap, inspect, and log Go errors like a professional engineer
Golang Performancesamber/cc-skills-golang
Speed up your Go code using proven patterns for allocation reduction and CPU efficiency
Golang Design Patternssamber/cc-skills-golang
Idiomatic Go patterns for clean constructors error handling and graceful shutdown
Golang Concurrencysamber/cc-skills-golang
Write safe Go concurrency with goroutines, channels, and sync primitives
Golang Data Structuressamber/cc-skills-golang
Optimize Go data structures for speed and memory efficiency with internals knowledge
Golang Contextsamber/cc-skills-golang
Master Go context for cancellations, timeouts, and request values