python-expert

Guide Python code writing, review, and optimization with structured rules.

1|Updated Apr 21, 2025
One-click install
npx skills add https://github.com/LAI-YEN-CHUN/VSCode-Settings --skill python-expert-lai-yen-chun
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-expert
Source: https://github.com/LAI-YEN-CHUN/VSCode-Settings/tree/main/.github/skills/python-expert
Command: npx skills add https://github.com/LAI-YEN-CHUN/VSCode-Settings --skill python-expert-lai-yen-chun

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Software teams need consistent, high-quality Python code; this skill provides structured guidance to write, review, and optimize Python code following industry best practices.

Core Features & Use Cases

  • Comprehensive correctness guidelines (mutable defaults handling, robust error handling)
  • Strong type-safety and documentation practices (type hints, dataclasses, docstrings)
  • Performance and style guidance aligned with PEP 8 and Pythonic patterns
  • Use cases include code reviews, onboarding new developers, and transforming prototypes into production-ready code

Quick Start

Provide a small Python function that uses type hints and a docstring, following PEP 8 conventions.

Frequently Asked Questions about python-expert

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

FAQPage Schema
How do I enforce PEP 8 and type hints during a Python code review?

Enforce PEP 8 and type hints during a Python code review by applying structured rules for type safety, docstrings, and Pythonic patterns. This provides curated examples to ensure correctness, robust error handling, and consistent style across team projects.

What is the best way to handle mutable defaults and write robust Python functions?

The best way to handle mutable defaults and write robust Python functions is to follow comprehensive correctness guidelines. These rules provide structured examples for avoiding common pitfalls, ensuring robust error handling, and maintaining type safety across your scripts.

How do I add docstrings and type hints to a Python script for production?

Add docstrings and type hints to a Python script for production by using provided templates that align with industry best practices. This transforms prototypes into production-ready code by enforcing strong documentation, type-safety rules, and Pythonic patterns.

Does this Python best practices guidance work for onboarding new developers?

Yes, this Python best practices guidance works for onboarding new developers by providing structured rules and examples. It helps new team members quickly learn correct type safety, PEP 8 style conventions, and robust error handling techniques.

Can I use these Pythonic patterns and static analysis rules for existing production systems?

You can use these Pythonic patterns and static analysis rules for existing production systems to optimize performance and enforce correctness. The structured guidance applies to ongoing projects, helping teams review and refine scripts across their entire codebase.