Python rules

From softspark/ai-toolkit · View interactive version

Python rules is an AI agent skill from the GitHub repository softspark/ai-toolkit. Python coding rules: style, patterns, security, testing. Triggers: .py, .pyi, pyproject.toml, requirements.txt, Pipfile, FastAPI, Django, Flask, pytest, SQLAlchemy, ruff, mypy.

How to use this skill

Skill file

Python Rules

These rules come from app/rules/python/ in ai-toolkit. They cover

the project's standards for coding style, frameworks, patterns,

security, and testing in Python. Apply them when writing or

reviewing Python code.

Python Coding Style

Type Hints

Naming

Functions

Imports

Data Structures

Modern Python

Tooling

Python Frameworks

FastAPI

Django

SQLAlchemy 2.0

Pydantic v2

CLI (click / typer)

Task Queues

Package Management

Python Patterns

Error Handling

Context Managers

Async

Dataclass Patterns

Functional Patterns

Dependency Injection

Anti-Patterns

Python Security

Input Validation

SQL Injection

SSTI (Server-Side Template Injection)

Command Injection

Path Traversal

Secrets

Dependencies

Deserialization

Django-Specific

Python Testing

Framework

File Naming

Fixtures

Parametrize

Mocking

Markers

Async Testing

Configuration

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.