py-implement

Write Python code with type hints, docstrings, and PEP 8 compliance.

1|1|Updated Nov 1, 2015
One-click install
npx skills add https://github.com/s4kr4/dotfiles --skill py-implement
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: py-implement
Source: https://github.com/s4kr4/dotfiles/tree/main/.claude/skills/py-implement
Command: npx skills add https://github.com/s4kr4/dotfiles --skill py-implement

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides comprehensive guidance to write clean, maintainable Python code by following industry-standard practices.

Core Features & Use Cases

  • Type hints and docstrings to improve readability and maintainability.
  • PEP 8 compliance and automated formatting guidance with examples.
  • Code quality patterns referencing the PATTERNS.md for practical examples across common Python tasks.
  • Use cases include building robust libraries, APIs, and data processing scripts with consistent style.

Quick Start

Ask the AI to reference PATTERNS.md and generate a small, well-documented Python function that follows the guidelines.

Frequently Asked Questions about py-implement

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

FAQPage Schema
How do I write Python code that follows PEP 8 standards?

PEP 8 compliance ensures consistent, readable Python code through standardized formatting conventions. Use automated tools for formatting and follow guidelines on naming, indentation, line length, and whitespace. This Skill provides PEP 8 examples and best practices for immediate application.

What's the best way to add type hints and docstrings to Python functions?

Type hints document expected input and output types, while docstrings explain function purpose and behavior. Adding both improves code readability and enables better IDE support and error detection. This Skill guides proper syntax and placement for modern Python functions.

How do I structure small, maintainable Python functions with proper error handling?

Break logic into small, single-purpose functions with clear error handling strategies. This Skill teaches function design patterns, exception handling approaches, and code organization techniques that improve reliability and testability across libraries, APIs, and scripts.

What Python code quality patterns should I follow for robust libraries and APIs?

Code quality patterns provide proven solutions for common Python tasks. This Skill references PATTERNS.md for practical examples covering design, error handling, and style conventions that ensure consistency and reliability in production code.

Can I use type hints and docstrings in existing Python projects?

Type hints and docstrings integrate into any Python project regardless of size or maturity. This Skill applies to retrofitting legacy code or building new projects, improving maintainability without requiring framework changes or dependencies.