·python-best-practices
</>

python-best-practices

0xbigboss/claude-code

Provides Python patterns for type-first development with dataclasses, discriminated unions, NewType, and Protocol. Must use when reading or writing Python files.

386Installs·12Trend·@0xbigboss

Installation

$npx skills add https://github.com/0xbigboss/claude-code --skill python-best-practices

SKILL.md

Types define the contract before implementation. Follow this workflow:

Use Python's type system to prevent invalid states at type-check time.

Prefer smaller, focused files: one class or closely related set of functions per module. Split when a file handles multiple concerns or exceeds 300 lines. Use init.py to expose public API; keep implementation details in private modules (internal.py). Colocate tests in tests/ mirroring the source structure.

Provides Python patterns for type-first development with dataclasses, discriminated unions, NewType, and Protocol. Must use when reading or writing Python files. Source: 0xbigboss/claude-code.

View raw

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/0xbigboss/claude-code --skill python-best-practices
Category
</>Dev Tools
Verified
First Seen
2026-02-01
Updated
2026-02-18

Quick answers

What is python-best-practices?

Provides Python patterns for type-first development with dataclasses, discriminated unions, NewType, and Protocol. Must use when reading or writing Python files. Source: 0xbigboss/claude-code.

How do I install python-best-practices?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/0xbigboss/claude-code --skill python-best-practices Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor

Where is the source repository?

https://github.com/0xbigboss/claude-code