Skip to main content
Back to registry

python-best-practices

0xbigboss/claude-code

Types define the contract before implementation. Follow this workflow:

Installs711
Install command
npx skills add https://github.com/0xbigboss/claude-code --skill python-best-practices
Security audits
Gen Agent Trust HubWARN
SocketPASS
SnykPASS
About this skill
Types define the contract before implementation. Follow this workflow: Use Python's type system to prevent invalid states at type-check time. Dataclasses for structured data: Discriminated unions with Literal: NewType for domain primitives: Enums for constrained values: Protocol for structural typing: TypedDict for external data shapes: 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. Explicit failure for unimplemented logic: Propagate with context to preserve the original traceback: Exhaustive match with explicit default: Debug-level tracing with namespaced logger: Typed config with dataclass: For fast type checking, consider ty from Astral (creators of ruff and uv). Written in Rust, it's significantly faster than mypy or pyright.

Source description provided by the upstream skill listing. Community reviews and install context appear in the sections below.

Community Reviews

Latest reviews

Sign in to review

No community reviews yet. Be the first to review.

Browse this skill in context
FAQ
What does python-best-practices do?

Types define the contract before implementation. Follow this workflow:

Is python-best-practices good?

python-best-practices does not have approved reviews yet, so SkillJury cannot publish a community verdict.

What agent does python-best-practices work with?

python-best-practices currently lists compatibility with codex, gemini-cli, opencode, cursor, github-copilot, claude-code.

What are alternatives to python-best-practices?

Skills in the same category include telegram-bot-builder, flutter-app-size, sharp-edges, iterative-retrieval.

How do I install python-best-practices?

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

Related skills

More from 0xbigboss/claude-code

Related skills

Alternatives in Software Engineering