python-code-style

Enforce Python style, type checks, and Google-style docstrings using ruff and mypy.

6|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/archibate/archibate-skills --skill python-code-style-archibate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-code-style
Source: https://github.com/archibate/archibate-skills/tree/main/old-skills/minor-skills/python-code-style
Command: npx skills add https://github.com/archibate/archibate-skills --skill python-code-style-archibate

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Consistent style, reliable type checking, and clear documentation reduce review friction, runtime errors, and onboarding time by making Python codebases predictable and maintainable.

Core Features & Use Cases

  • Automated formatting and linting: Recommendations to configure ruff as a unified linter/formatter to auto-fix style issues.
  • Type checking guidance: Examples and settings for strict mypy or pyright checks to catch type errors before runtime.
  • Documentation and naming standards: Google-style docstrings, PEP 8 naming, import organization, and line-length guidance for public APIs.
  • Use case: Configure a new library repository to run ruff and mypy in CI, enforce 120-character lines, and require docstrings on public functions.

Quick Start

Ask the agent to configure ruff and mypy for this repository and apply automatic style fixes and type-check suggestions.

Frequently Asked Questions about python-code-style

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

FAQPage Schema
How do I configure ruff and mypy for Python code style and type checking?

To configure Python code style and type checking, set up ruff as a unified linter and formatter alongside mypy for strict type analysis. This integration auto-fixes style issues and catches type errors before runtime, ensuring codebase consistency.

What is the best way to enforce Python docstrings and naming conventions in a library?

The best way to enforce Python docstrings and naming conventions is applying PEP 8 naming rules, import organization, and Google-style docstrings for public APIs. This standardization reduces review friction and makes libraries predictable.

Can I use ruff to auto-fix Python formatting and linting issues in CI?

Yes, you can use ruff to auto-fix Python formatting and linting issues in CI automation. Configuring ruff as a unified linter/formatter enables automatic style fixes across project repositories during continuous integration runs.

Does this approach support configuring line length and import organization for Python services?

Yes, this approach supports configuring line length limits, such as 120-character lines, and import organization for Python services. These rules integrate directly into linter configurations to maintain consistent formatting across the codebase.

Why should I use strict type checking for Python codebases?

You should use strict type checking for Python codebases to catch type errors before runtime. Tools like mypy or pyright analyze code statically, reducing runtime errors and lowering onboarding time for new contributors.

When do I need to enforce code style and documentation consistency in Python?

You need to enforce code style and documentation consistency in Python during project setup, pull request reviews, and CI automation. Consistent style, reliable type checking, and clear documentation reduce review friction and ensure maintainability.