python-expert

Review Python code for correctness, type safety, performance, and style.

132k|19.4k|Updated Apr 29, 2024
One-click install
npx skills add https://github.com/Shubhamsaboo/awesome-llm-apps --skill python-expert-shubhamsaboo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-expert
Source: https://github.com/Shubhamsaboo/awesome-llm-apps/tree/main/awesome_agent_skills/python-expert
Command: npx skills add https://github.com/Shubhamsaboo/awesome-llm-apps --skill python-expert-shubhamsaboo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a comprehensive, standardized set of Python coding guidelines to improve correctness, readability, and maintainability across projects.

Core Features & Use Cases

  • Structured rules for Correctness, Type Safety, Performance, and Style, organized in an AGENTS.md and a rules directory.
  • Guided reviews and templates to help write, review, and optimize Python code with consistent conventions.
  • Use Case: A software team adopts these guidelines to audit an existing codebase, enforce PEP 8, and implement type hints and dataclasses across modules.

Quick Start

Load the AGENTS.md and rules directory, then apply the Python Expert guidelines to your Python files to produce compliant, well-documented code.

Frequently Asked Questions about python-expert

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

FAQPage Schema
What are the best Python coding guidelines for enforcing PEP 8 and type safety?

Python coding guidelines for enforcing PEP 8 and type safety provide structured rules for correctness, style, and performance. They include templates and examples to help write compliant, well-documented code with type hints and dataclasses across modules.

How do I perform a Python code review for type hints and dataclasses?

To perform a Python code review, load the structured rules and apply the provided review templates to your files. This process enforces consistent conventions for type hints, dataclasses, and docstrings to improve correctness and maintainability.

Can I use these Python rules to audit an existing codebase?

Yes, you can use these Python rules to audit an existing codebase. Software teams can apply the structured rule set to enforce PEP 8, implement type hints, and refactor modules to achieve better readability and maintainability.

What is the best way to enforce docstrings and type hints across Python projects?

The best way to enforce docstrings and type hints across Python projects is by applying a standardized rule set stored in a rules directory. This provides guided templates and examples to ensure consistent API design and code documentation.

Do I need a specific environment to apply these Python performance and style rules?

You do not need a specific environment to apply these Python performance and style rules. Simply load the AGENTS.md and rules directory into your Python development environment to produce compliant, optimized code.