python-expert

Provides expert Python guidance for readability, maintainability, and correctness.

100|9|Updated Feb 6, 2025
One-click install
npx skills add https://github.com/captainflasmr/ollama-buddy --skill python-expert-captainflasmr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-expert
Source: https://github.com/captainflasmr/ollama-buddy/tree/main/.agents/skills/python-expert
Command: npx skills add https://github.com/captainflasmr/ollama-buddy --skill python-expert-captainflasmr

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Python programming experts provide guidance for writing readable, maintainable Python code across modern and legacy versions.

Core Features & Use Cases

  • Readability-first coding: prioritize clarity and maintainability according to PEP 8.
  • Debugging guidance: identify root causes before proposing fixes with example-driven advice.
  • Documentation and examples: include docstrings, comments, and concrete examples, with incremental approaches from simple to advanced.
  • Use Case: When you need to refactor a legacy module or review new Python code, you can request best-practice guidance and a clean implementation.

Quick Start

Review a Python function for clarity and correctness and produce a clean, well-documented version.

Frequently Asked Questions about python-expert

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

FAQPage Schema
How do I refactor legacy Python code to improve readability?

Refactoring legacy Python code involves analyzing existing modules to align with PEP 8 standards, prioritizing clarity and maintainability. This process includes step-by-step guidance, adding docstrings and comments, and incrementally updating implementations from simple to advanced.

What is the best way to debug Python code and identify root causes?

The best way to debug Python code is to identify root causes before proposing fixes. This approach provides example-driven advice and incremental solutions, ensuring robust corrections while maintaining code readability and correctness across modern and legacy Python versions.

How do I perform a Python code review for maintainability and correctness?

Performing a Python code review evaluates code for clarity, maintainability, and correctness according to PEP 8 best practices. It produces a clean, well-documented version with docstrings, comments, and concrete examples, ensuring robust implementation.

Does Python expert guidance work with both modern and legacy Python codebases?

Yes, Python expert guidance applies to both modern and legacy Python codebases. It ensures alignment with PEP 8, thorough documentation, and layered solutions from simple to advanced, regardless of the Python version used.

How do I write Python docstrings and documentation that follow best practices?

Writing Python documentation involves including docstrings, comments, and concrete examples that follow PEP 8 readability standards. This guidance provides an incremental approach, moving from simple to advanced implementations, ensuring thorough documentation.

Why should I align my Python code with PEP 8 standards?

Aligning Python code with PEP 8 standards ensures readability, maintainability, and correctness. It provides a consistent style guide for writing clean code, which is essential for effective debugging, refactoring, and conducting thorough code reviews.