python-development

Enforces Python coding standards including typing, uv packaging, Pydantic DTOs, Typer CLIs, pytest patterns, PEP 8, and Black formatting across writing, review, debugging workflows.

8|2|Updated Jul 13, 2015
One-click install
npx skills add https://github.com/tstapler/dotfiles --skill python-development-tstapler
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-development
Source: https://github.com/tstapler/dotfiles/tree/main/.claude/skills/python-development
Command: npx skills add https://github.com/tstapler/dotfiles --skill python-development-tstapler

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Inconsistent Python coding practices across projects slow development and cause bugs; this skill codifies standards for writing, reviewing, and debugging Python code to foster uniformity and quality.

Core Features & Use Cases

  • Enforces consistent typing with type annotations and use of dataclasses or Pydantic DTOs
  • Promotes robust package management and packaging conventions with uv
  • Standardizes CLI and application structure using Typer and PyTest patterns
  • Guides adherence to PEP 8 and formatting with Black, plus actionable code-style tips
  • Use Case: a team migrating multiple microservices can apply these standards to align APIs, DTOs, and test suites

Quick Start

Apply these standards by reviewing a Python module for typing, DTO usage, and test patterns, then run pytest to verify compliance.

Frequently Asked Questions about python-development

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

FAQPage Schema
How do I enforce consistent Python coding standards across multiple projects?

You enforce consistent Python coding standards by applying rules for type annotations, Pydantic DTOs, and pytest patterns during code writing and review. This skill codifies these standards to foster uniformity and reduce bugs across multiple microservices.

What is the best way to standardize Python type annotations and data transfer objects?

The best way to standardize Python type annotations and DTOs is to enforce consistent typing using dataclasses or Pydantic. This skill provides actionable guidance to align APIs and DTOs across codebases during development and review.

How do I structure Python CLIs and test suites with Typer and pytest?

You structure Python CLIs and test suites using standardized Typer and pytest patterns. This skill defines specific conventions for building Typer applications and writing PyTest suites to ensure code quality and uniformity.

Does this Python coding standards skill work with uv for package management?

Yes, this Python coding standards skill works with uv. It promotes robust package management and packaging conventions using uv to maintain consistent environments across team projects.

How do I apply PEP 8 and Black formatting guidelines to an existing Python codebase?

You apply PEP 8 and Black formatting guidelines by reviewing Python modules for code-style compliance and making actionable improvements. This skill guides adherence to PEP 8 styling and formatting with Black during code review and debugging.

Can I use these Python coding standards when migrating microservices?

Yes, you can use these Python coding standards when migrating microservices. Teams can apply these standards to align APIs, DTOs, and test suites across multiple services, ensuring uniformity and quality during the migration process.