python-rules

Enforce PEP 8, type annotations, and 80% test coverage on Python codebases.

24|5|Updated Feb 8, 2026
One-click install
npx skills add https://github.com/Luohaothu/everything-codex --skill python-rules-luohaothu
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: python-rules
Source: https://github.com/Luohaothu/everything-codex/tree/main/skills/python-rules
Command: npx skills add https://github.com/Luohaothu/everything-codex --skill python-rules-luohaothu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The Python coding rules establish a clear, consistent standard for writing Python software, reducing bugs, technical debt, and security risks by codifying style, architecture, and testing practices.

Core Features & Use Cases

  • Immutability guidelines and patterns to prevent in-place mutations.
  • Style, formatting, and readability rules (PEP8, type hints, and tooling with Black, isort, and Ruff).
  • Testing and security requirements including 80% minimum test coverage and security checks.

Quick Start

Run the Python coding rules on your repository to start enforcing the standards across files.

Frequently Asked Questions about python-rules

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

FAQPage Schema
How do I enforce PEP 8 and secure Python coding standards across my project?▼

You can enforce secure Python coding by applying a comprehensive ruleset covering PEP 8 style, type annotations, and automated formatting with tools like Black, isort, and Ruff to ensure consistency across your codebase.

What is the minimum test coverage required for a secure Python codebase?▼

A secure Python codebase requires a minimum of 80% test coverage alongside mandatory security checks to reduce bugs, technical debt, and security risks across varying project sizes.

How do I prevent in-place mutations when writing Python code?▼

To prevent in-place mutations in Python, you should apply established immutability guidelines and patterns, which are enforced as part of a comprehensive set of coding rules to ensure secure and consistent software.

Can I use Black, isort, and Ruff together for Python code formatting?▼

Yes, you can use Black, isort, and Ruff together as automated formatting tools to enforce style, formatting, and readability rules, ensuring your Python code adheres to PEP 8 standards and type hint requirements.

What's the best way to integrate security checks into a Python development workflow?▼

The best way to integrate security checks is to apply mandatory security requirements alongside style rules and an 80% test coverage minimum, codifying these practices directly into your Python coding standards.

Do I need type annotations to maintain consistent Python codebases of varying sizes?▼

Yes, type annotations are required as part of the style and readability rules to maintain consistent, secure Python codebases, working in tandem with PEP 8 and automated formatting tools.