policy-lang-python

Enforce Python coding standards with Black, Ruff, pytest, and pyproject.toml.

1|Updated Oct 5, 2025
One-click install
npx skills add https://github.com/simon-downes/agent-workspace --skill policy-lang-python
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: policy-lang-python
Source: https://github.com/simon-downes/agent-workspace/tree/main/skills/policy-lang-python
Command: npx skills add https://github.com/simon-downes/agent-workspace --skill policy-lang-python

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Standardizes Python coding practices to reduce defects, improve readability, and speed up onboarding by codifying toolchain preferences, conventions, and documentation standards.

Core Features & Use Cases

  • Formatting: Use Black to format code; ensure 4-space indentation and 88-character lines.
  • Linting & Testing: Use Ruff for linting, pytest for tests, and ensure tests reside in a tests/ directory.
  • Code Quality & Documentation: Enforce Google-style docstrings, type hints, and consistent naming; configure pyproject.toml with compatible tool settings.

Quick Start

Tell me to apply the Python coding standards to the current project.

Frequently Asked Questions about policy-lang-python

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

FAQPage Schema
How do I enforce Python coding standards across my projects?

To enforce Python coding standards, apply this Skill to specify toolchain preferences and conventions. It codifies formatting, linting, testing, and documentation practices to improve readability and reduce defects across development teams.

What's the best way to configure Python formatting and linting together?

The best way to configure Python formatting and linting is by using Black for formatting and Ruff for linting. This Skill defines these toolchain preferences and requires a pyproject.toml configuration to ensure compatible tool settings.

Does this Python coding standard require type hints and specific docstrings?

Yes, this Python coding standard requires type hints and Google-style docstrings. Enforcing these conventions alongside PEP 8 naming ensures consistent code quality and standardized documentation across the entire codebase.

How do I set up pytest for Python development teams?

To set up pytest for Python development teams, configure your tests to reside in a tests/ directory. This Skill specifies pytest as the preferred testing tool, ensuring standardized testing practices across all projects.

Can I use this Skill to standardize Python code without a pyproject.toml?

No, you cannot use this Skill to standardize Python code without a pyproject.toml. The Skill explicitly requires a pyproject.toml configuration to manage and apply compatible tool settings for Black, Ruff, and pytest.