python-code-style

Installation
Summary

Modern Python tooling, naming conventions, type checking, and documentation standards for maintainable codebases.

  • Configure ruff for unified linting and formatting, replacing flake8, isort, and black with a single fast tool
  • Set up strict type checking with mypy or pyright to catch errors before runtime
  • Follow PEP 8 naming conventions: snake_case for functions/variables, PascalCase for classes, SCREAMING_SNAKE_CASE for constants
  • Write Google-style docstrings for all public APIs with Args, Returns, Raises, and Examples sections
  • Organize imports in three groups (standard library, third-party, local) and use absolute imports exclusively
SKILL.md

Python Code Style & Documentation

Consistent code style and clear documentation make codebases maintainable and collaborative. This skill covers modern Python tooling, naming conventions, and documentation standards.

When to Use This Skill

  • Setting up linting and formatting for a new project
  • Writing or reviewing docstrings
  • Establishing team coding standards
  • Configuring ruff, mypy, or pyright
  • Reviewing code for style consistency
  • Creating project documentation

Core Concepts

1. Automated Formatting

Let tools handle formatting debates. Configure once, enforce automatically.

Related skills

More from wshobson/agents

Installs
7.9K
Repository
wshobson/agents
GitHub Stars
35.3K
First Seen
Jan 30, 2026