python-conventions

Codify Python 3.10+ conventions for typing, dataclasses, and pathlib.

9|1|Updated Jun 16, 2026
One-click install
npx skills add https://github.com/AratKruglik/antigravity-sdlc --skill python-conventions-aratkruglik
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-conventions
Source: https://github.com/AratKruglik/antigravity-sdlc/tree/main/plugins/python-foundation/skills/python-conventions
Command: npx skills add https://github.com/AratKruglik/antigravity-sdlc --skill python-conventions-aratkruglik

SYSTEM DOCUMENTATION & REQUIREMENTS

Modern Python idioms for any Python 3.10+ project: PEP 8 style, type hints, dataclasses, pathlib, enums, f-strings, match/case, and robust exception handling. Stack-agnostic — referenced by every Python plugin in the marketplace.

What problem does it solve?

Python code often drifts from standard idioms, making it harder to read, maintain, and integrate across stacks. This skill codifies widely-accepted conventions to ensure consistency, readability, and correctness across projects.

Core Features & Use Cases

  • Enforce strict typing on parameters, return types, and attributes across modules.
  • Promote modern constructs like dataclasses, NamedTuple, and Pathlib for file operations.
  • Replace legacy patterns with structural matching, enums, and context managers for safer code.
  • Use across Python 3.10+ projects to align with the shared Python plugin conventions.

Quick Start

Write a small Python module that uses type hints, a dataclass, and pathlib to demonstrate the conventions.

Frequently Asked Questions about python-conventions

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

FAQPage Schema
How do I enforce Python type hints and modern idioms across my codebase?

Enforce Python type hints and modern idioms by codifying conventions for strict typing on parameters and return types, ensuring maintainability and readability across Python 3.10+ modules.

What is the best way to standardize Python code for dataclasses and pathlib?

Standardize Python code by codifying conventions that promote modern constructs like dataclasses and pathlib for file operations, replacing legacy patterns to ensure consistent style across teams.

Does this Python conventions skill work with Python 3.10 structural pattern matching?

Yes, this Python conventions skill works with Python 3.10+ structural pattern matching, enforcing the use of match/case statements and enums to replace legacy patterns for safer code.

How do I apply PEP 8 style guidelines during automated code reviews?

Apply PEP 8 style guidelines during automated code reviews by enforcing codified conventions that ensure strict type hints, modern idioms, and clear style are checked consistently across modules.

When should I use structural pattern matching instead of legacy Python patterns?

Use structural pattern matching instead of legacy Python patterns when codifying conventions for Python 3.10+ projects, replacing older conditional logic with match/case for safer and more readable code.