dignified-python-310

Enforce dignified Python 3.10 coding standards during editing, reviewing, or refactoring.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/dagster-io/erk --skill dignified-python-310
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dignified-python-310
Source: https://github.com/dagster-io/erk/tree/main/packages/dot-agent-kit/src/dot_agent_kit/data/kits/dignified-python-310/skills/dignified-python
Command: npx skills add https://github.com/dagster-io/erk --skill dignified-python-310

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? This skill ensures your Python 3.10-3.12 code adheres to best practices, preventing common errors and maintaining high standards without tedious manual review. It automates the enforcement of robust coding patterns, saving you time and reducing complexity in your codebase.

Core Features & Use Cases:

  • LBYL Exception Handling: Guides on proactive error checking (Look Before You Leap) to avoid runtime surprises and improve code predictability.
  • Pathlib Operations: Standardizes file system interactions for robustness and clarity, moving away from os.path.
  • ABC-based Interfaces: Promotes clear, testable code contracts using Abstract Base Classes for better architecture.
  • Use Case: When refactoring a legacy Python 3.10 codebase, use this skill to automatically identify and suggest fixes for non-compliant exception handling or import patterns, ensuring your code meets modern, dignified Python standards.

Quick Start: Review the attached Python 3.10 code file 'my_script.py' and suggest improvements to align with dignified Python standards, focusing on LBYL exception handling and absolute imports.

Frequently Asked Questions about dignified-python-310

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

FAQPage Schema
How do I enforce Python 3.10 coding standards during code review and refactoring?

Dignified Python enforces modern coding standards for Python 3.10-3.12 code automatically. It applies LBYL exception handling, modern type annotations (list[str], str | None), pathlib operations, ABC-based interfaces, and absolute imports during editing, reviewing, or refactoring to catch violations without manual inspection.

What is LBYL exception handling and why should I use it?

LBYL (Look Before You Leap) is proactive error checking that validates conditions before executing risky operations, avoiding runtime surprises. This Skill guides you toward LBYL patterns to improve code predictability and reduce unhandled exceptions in production Python code.

Can I migrate legacy Python code from os.path to pathlib operations?

Yes. This Skill identifies and suggests fixes for file system interactions by standardizing on pathlib operations instead of os.path, improving robustness and clarity when refactoring legacy Python 3.10 codebases.

How do I design better Python APIs using Abstract Base Classes?

This Skill promotes ABC-based interfaces to establish clear, testable code contracts and better architecture. It enforces interface design patterns that follow dignified Python standards from Dagster Labs production-tested guidance.

What import patterns should I follow in modern Python 3.10 code?

This Skill enforces absolute imports and explicit CLI-level error boundaries aligned with dignified Python standards. It ensures stable imports and prevents implicit relative imports that can cause maintenance issues in Python 3.10+ codebases.

Does this Skill detect API design problems and parameter complexity issues?

Yes. Beyond syntax, this Skill identifies code smells in API design and parameter complexity patterns based on production-tested guidance from Dagster Labs, helping you maintain high standards across interface contracts and function signatures.