From coding-standards
This skill should be used when the user asks to "write Python code", "review Python", "refactor Python", "fix Python types", "improve error handling", "use pathlib", "create ABC interface", "fix mypy errors", "add type hints", "make this pythonic", "LBYL vs EAFP", or mentions "Python", ".py files", "type annotations", "pathlib", "subprocess", or Python CLI patterns. Provides opinionated production Python standards with automatic version detection (3.10-3.13), modern type syntax, explicit condition checks where practical, pathlib operations, interface guidance, and pragmatic production patterns.
How this skill is triggered — by the user, by Claude, or both
Slash command
/coding-standards:dignified-pythonThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Opinionated Python guidance for writing clean, maintainable, modern Python code (versions
cli-patterns.mddignified-python-core.mdreferences/README.mdreferences/advanced/api-design.mdreferences/advanced/exception-handling.mdreferences/advanced/interfaces.mdreferences/advanced/typing-advanced.mdreferences/checklists.mdreferences/module-design.mdsubprocess.mdversions/python-3.10.mdversions/python-3.11.mdversions/python-3.12.mdversions/python-3.13.mdOpinionated Python guidance for writing clean, maintainable, modern Python code (versions 3.10-3.13).
Auto-invoke when users ask about:
Note: This skill is general-purpose Python style guidance, not Dagster-specific. It captures one explicit, LBYL-leaning set of conventions; project conventions can override it when needed.
| User Need | Use This Skill | Alternative Skill |
|---|---|---|
| "make this pythonic" | ✅ Yes - Python standards | |
| "is this good python" | ✅ Yes - code quality | |
| "type hints" | ✅ Yes - typing guidance | |
| "LBYL vs EAFP" | ✅ Yes - exception patterns | |
| "pathlib vs os.path" | ✅ Yes - path handling | |
| "best practices for dagster" | ❌ No | /dagster-best-practices |
| "implement X pipeline" | ❌ No | /dg for implementation |
| "which integration to use" | ❌ No | /dagster-expert |
| "CLI argument parsing" | ✅ Yes - CLI patterns |
@dignified-python-core.md
Identify the project's minimum Python version by checking (in order):
pyproject.toml - Look for requires-python field (e.g., requires-python = ">=3.12")setup.py or setup.cfg - Look for python_requires.python-version file - Contains version like 3.12 or 3.12.0Once identified, load the appropriate version-specific file:
versions/python-3.10.mdversions/python-3.11.mdversions/python-3.12.mdversions/python-3.13.mdCore files above cover 80%+ of Python code patterns. Only load these additional files when you detect specific patterns:
Pattern detection examples:
cli-patterns.mdsubprocess.mdThis skill's reference material is organized by topic:
dignified-python-core.md - Essential standards (always loaded)cli-patterns.md - Command-line interface patterns (click, argparse)versions/)python-3.10.md - Features available in Python 3.10+python-3.11.md - Features available in Python 3.11+python-3.12.md - Features available in Python 3.12+python-3.13.md - Features available in Python 3.13+references/advanced/)exception-handling.md - LBYL patterns, error boundariesinterfaces.md - ABC and Protocol patternstyping-advanced.md - Advanced typing patternsapi-design.md - API design principlesreferences/advanced/exception-handling.mdRead when:
from e or from Nonereferences/advanced/interfaces.mdRead when:
references/advanced/typing-advanced.mdRead when:
references/module-design.mdRead when:
references/advanced/api-design.mdRead when:
references/checklists.mdRead when:
npx claudepluginhub j2h4u/oh-my-claude-plugins --plugin coding-standardsGuides completion of development work by verifying tests, detecting environment, and presenting structured options for merge, PR, or cleanup.
Enforces test-driven development: write failing test first, then minimal code to pass. Use when implementing features or bugfixes.
Guides creation and editing of skills using test-driven development with pressure scenarios and subagents to verify agent compliance.