enum-best-practices
CommunityMaster Python Enum usage and patterns.
Authorcruldra
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Defines and enforces robust, consistent Enum usage in Python projects, eliminating confusion from scattered patterns and ad-hoc implementations.
Core Features & Use Cases
- Clear guidelines for Enum definitions (inheritance, StrEnum/IntEnum) and proper value handling.
- Best practices for naming, organization (inline vs independent enums), and database integration with ORM.
- Guidance on serialization, pattern matching, and edge-case handling across web apps, data processing, and APIs.
Quick Start
Provide a ready-to-use enum pattern for a Python project that needs a robust Status type.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: enum-best-practices Download link: https://github.com/cruldra/skills/archive/main.zip#enum-best-practices Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.