dignified-python

Applies opinionated Python design standards for implementation, refactoring, and code review.

1|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/cjthompson/claude-code-config --skill dignified-python-cjthompson
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dignified-python
Source: https://github.com/cjthompson/claude-code-config/tree/main/plugins/python-development/skills/dignified-python
Command: npx skills add https://github.com/cjthompson/claude-code-config --skill dignified-python-cjthompson

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Python codebases drift into inconsistent patterns—mixed typing styles, unclear exception handling, scattered imports, and accidental complexity. This Skill enforces a coherent, production-grade set of Python design standards so substantial implementation and review work follows explicit, defensible conventions. ## Core Features & Use Cases - Core Standards Enforcement: Applies LBYL exception handling, pathlib-only file operations, absolute imports, modern type syntax, and anti-pattern avoidance (no re-exports, no unnecessary backwards compatibility, max 4-level indentation). - Version-Aware Guidance: Detects the project's minimum Python version and loads matching guidance for 3.10 through 3.13+, including PEP 604 unions, Self types, and PEP 695 generics. - Conditional Reference Loading: Pulls in specialized references only when needed—CLI patterns with Click, subprocess safety, API design, exception boundaries, ABC vs Protocol interfaces, and module design. - Use Case: When refactoring a service module or reviewing a pull request, invoke this Skill to check type annotations, exception boundaries, import organization, and module-level side effects against the consolidated decision checklists before committing. ## Quick Start Review my Python module for design quality and apply dignified Python standards to fix any violations you find.

Frequently Asked Questions about dignified-python

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce consistent Python coding standards in a project?

Invoke this Skill for substantial Python implementation or review work. It reads your repository configuration, detects the minimum Python version, and applies core standards covering type annotations, exception handling, imports, and module design.

Should I use LBYL or EAFP for Python exception handling?

This Skill defaults to LBYL (look before you leap) when a cheap, precise precondition check keeps intent clearer than try/except. Exceptions are reserved for error boundaries, operations that are the authoritative test, and adding context before re-raising.

When should I use ABC versus Protocol in Python?

Prefer ABC when you own all implementations, need runtime isinstance checks, or want shared method implementations. Use Protocol for wrapping third-party libraries or minimal structural interfaces of one or two methods.

Does this Skill support modern Python type syntax like PEP 695?

Yes. It detects your target Python version and loads matching guidance: PEP 604 unions and built-in generics for 3.10, Self types for 3.11, and PEP 695 type parameter syntax plus the type statement for 3.12.

When should I not use dignified-python?

Skip it for quick standalone scripts where design rigor adds overhead. It targets sustained engineering work—implementation, refactoring, API design, and deep code-quality review—rather than one-off automation.