py-style

Enforce six Python coding style rules during reviews and refactors.

3|Updated Mar 22, 2026
One-click install
npx skills add https://github.com/eamars/KazusaAIChatbot --skill py-style
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: py-style
Source: https://github.com/eamars/KazusaAIChatbot/tree/main/.agents/skills/py-style
Command: npx skills add https://github.com/eamars/KazusaAIChatbot --skill py-style

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams enforce consistent Python coding standards across projects, reducing bugs and improving readability by surfacing style issues during reviews and refactors.

Core Features & Use Cases

  • Enforces a defined set of Python coding rules (imports at top, tightly scoped try-except blocks, specific exception types, mandatory docstrings for non-trivial functions, centralized defaults, and avoidance of silent internal error suppression).
  • Provides actionable guidance during code reviews and when refactoring or writing new Python code.
  • Useful in onboarding and maintaining code quality across Python modules.

Quick Start

Run py-style on a Python file to automatically apply and enforce the six coding standards.

Frequently Asked Questions about py-style

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

FAQPage Schema
How do I enforce consistent Python coding style across my codebase?

You can enforce Python coding style by applying six specific rules: imports at the top, tightly scoped try blocks, specific exception types, mandatory docstrings, centralized defaults, and avoiding silencing internal errors.

What are the best practices for refactoring Python try-except blocks?

Best practices for refactoring Python try-except blocks include tightly scoping the try block to the specific code that may fail and catching specific exception types rather than using a broad except clause.

How do I write a Python code review for coding style and quality?

Conduct a Python code review by checking for imports at the top, ensuring non-trivial functions have mandatory docstrings, verifying centralized defaults, and confirming that internal errors are not silently suppressed.

Does this Python static analysis skill require any external dependencies?

No, this Python static analysis skill requires no external dependencies or environment components to run, allowing you to directly apply its coding standards to your project files.

When do I need mandatory docstrings for Python functions?

Mandatory docstrings are needed for non-trivial Python functions to enforce consistent coding standards, improve readability, and provide actionable guidance during code reviews and refactoring.