python-dev

Enforce Python code quality, testing, and environment management standards.

1.8k|404|Updated Dec 17, 2025
One-click install
npx skills add https://github.com/databricks-solutions/ai-dev-kit --skill python-dev-databricks-solutions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-dev
Source: https://github.com/databricks-solutions/ai-dev-kit/tree/main/.claude/skills/python-dev
Command: npx skills add https://github.com/databricks-solutions/ai-dev-kit --skill python-dev-databricks-solutions

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Python developers often struggle with maintaining code quality, robust error handling, and consistent environment management across projects. This skill provides guidance and conventions to write clean, reliable Python code and notebooks, improving readability and maintainability.

Core Features & Use Cases

  • Code Quality & Style: Enforces type hints, snake_case, Google-style docstrings, small functions, and DRY principles to improve readability and reduce defects.
  • Error Handling & Reliability: Promotes early input validation and specific exceptions to prevent silent failures.
  • Testing & Environment Management: Emphasizes pytest-driven testing, TDD approach, and setup using virtual environments (venv or uv) to manage dependencies.
  • Use Case: When starting a Python project or reviewing existing code, apply these rules to ensure consistent quality and testability across files and notebooks.

Quick Start

Open a Python project and apply these rules to a new script, then run the test suite with pytest to verify behavior.

Frequently Asked Questions about python-dev

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

FAQPage Schema
How do I enforce Python code quality standards like type hints and snake_case naming?

Python code quality is enforced by applying rules for type hints, snake_case naming, Google-style docstrings, small functions, and DRY principles to improve readability and reduce defects across .py files and .ipynb notebooks.

What's the best way to set up a Python testing environment using pytest?

The best way to set up a Python testing environment is using pytest within a virtual environment (venv or uv) to manage dependencies, enabling a test-driven development approach to verify behavior across your project.

How does robust error handling in Python prevent silent failures?

Robust error handling prevents silent failures by promoting early input validation and raising specific exceptions, ensuring that errors are caught and addressed immediately rather than being ignored during execution.

Can I apply Python coding best practices to Jupyter notebooks?

Yes, you can apply Python coding best practices to Jupyter notebooks (.ipynb), enforcing type hints, docstrings, and DRY principles across both script files and notebooks for consistent quality and testability.

Why do I need type hints and Google-style docstrings in my Python project?

Type hints and Google-style docstrings are needed in your Python project to codify requirements for code quality, improving readability, maintainability, and reducing defects across teams and learning contexts.