python

Generate Python project specifications with PEP 8, typing, security, and pytest coverage requirements.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/Pyl-Tech/stream-coding --skill python-pyl-tech
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python
Source: https://github.com/Pyl-Tech/stream-coding/tree/main/.agents/skills/python
Command: npx skills add https://github.com/Pyl-Tech/stream-coding --skill python-pyl-tech

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you write Python project specifications that prevent common bugs and security issues by forcing documentation to include conventions, immutable design choices, testing, and a concrete review checklist.

Core Features & Use Cases

  • Python conventions enforcement: mandates PEP 8, black formatting, isort import sorting, and ruff linting coverage requirements.
  • Type-safe API and design intent: requires type annotations on function signatures and uses Protocol-based interfaces plus dataclasses/DTOs and context managers.
  • Security and quality gates for Python code: requires bandit scanning, safe secret handling, and explicit review checks for injections, deserialization, crypto, and error-handling pitfalls.
  • Testing discipline: requires pytest usage, coverage targets, pytest categorization markers, and prevents import-time environment failures via lazy initialization patterns.
  • Framework-specific checks: includes Django N+1 mitigation and transaction/migration expectations, FastAPI validation and async safety, and Flask protection and error handling.

Quick Start

Use the python skill to generate a review-ready spec for a Python service so an AI can implement and validate it against formatting, typing, security scanning, and pytest coverage requirements.

Frequently Asked Questions about python

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

FAQPage Schema
How do I enforce Python type hints and PEP 8 conventions in a new project?

To enforce Python type hints and PEP 8, generate a specification mandating type annotations on function signatures, black formatting, isort import sorting, and ruff linting to standardize and validate your codebase.

What's the best way to set up pytest coverage targets and prevent import-time environment failures?

Establish pytest coverage targets by defining a specification requiring pytest usage, coverage thresholds, categorization markers, and lazy initialization patterns to prevent import-time environment failures during test execution.

How does bandit security scanning integrate with Python code review checklists?

Bandit security scanning integrates by applying a concrete review checklist that validates safe secret handling and explicitly checks for injections, unsafe deserialization, crypto, and error-handling pitfalls to gate Python code quality.

Does this Python specification approach work with Django and FastAPI refactoring?

Yes, this specification applies to Django and FastAPI refactoring by enforcing framework-specific checks including Django N+1 mitigation and transaction expectations, alongside FastAPI validation and async safety requirements.

Can I use Protocol-based interfaces and dataclasses for immutable design in Python?

Yes, you can enforce immutable design by applying a specification requiring type-safe API design intent through Protocol-based interfaces, dataclasses, DTOs, and context managers to reduce Python defects and security vulnerabilities.

Why should I standardize Python project conventions before writing code?

Standardize Python project conventions before writing code to prevent common bugs and security issues by forcing documentation to include immutable design choices, testing discipline, and a concrete review checklist from the project start.