Python conventions

From tae0y/python-project-template · View interactive version

Python conventions is an AI agent skill from the GitHub repository tae0y/python-project-template. Python coding conventions and guidelines including PEP 8, type hints, docstrings, and testing standards. Automatically applied when working with Python files.

How to use this skill

Skill file

Python Coding Conventions

Python Instructions

General Instructions

Code Style and Formatting

Edge Cases and Testing

Example of Proper Documentation

def calculate_area(radius: float) -> float:
    """
    Calculate the area of a circle given the radius.

    Parameters:
    radius (float): The radius of the circle.

    Returns:
    float: The area of the circle, calculated as pi * radius^2.
    """
    import math
    return math.pi * radius ** 2
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.