Python bindings for Rust libraries using PyO3 and maturin. Use when working on Python bindings to Rust code, including creating or modifying pyfunction/pyclass definitions,…
Buscador inteligente de bibliotecas Python para o ecossistema OpenCode. Busca, cataloga e instala bibliotecas do PyPI com curadoria de 24+ bibliotecas em 5 categorias e metricas…
Design comprehensive test cases using PICT (Pairwise Independent Combinatorial Testing) for any piece of requirements or code.
Migrate a file to use stricter Pyrefly type checking with annotations required for all functions, classes, and attributes.
Guide for Grafana Pyroscope continuous profiling. Use for Kubernetes Helm deployment, Go/Java/Python/.NET/Ruby/Node.js profiling, storage backends, trace-to-profile linking, and…
Pyroscope is an open-source continuous profiling platform by Grafana Labs that helps identify CPU, memory, and I/O bottlenecks at the line-of-code level.
Profile the execution time of a Python script using py-spy and visualize the result with speedscope. Use when the user wants to benchmark performance, find slow code paths, or…
Python testing framework with powerful fixtures, parametrization, extensive plugin ecosystem, and support for async, Django, Flask testing
MUST BE USED for async testing: pytest-asyncio auto mode, testcontainers with real PostgreSQL, mocking external APIs (YooKassa, Mistral, Telegram), FastAPI TestClient.
Apply pytest best practices when writing test files. Use when creating test_*.py files, writing test classes and methods, or ensuring test quality and coverage.
Reviews pytest test code for async patterns, fixtures, parametrize, and mocking. Use when reviewing test_*.py files, checking async test functions, fixture usage, or mock patterns.
Run pytest tests with coverage, discover lines missing coverage, and increase coverage to 100%.
World-class pytest engineer for Python: write/refactor tests, fix flakiness, design fixtures/markers, add coverage, speed up suites (collection/runtime), and optimize CI (GitHub…
Generate comprehensive pytest tests - use when generating tests, creating test suites, or testing Python code
Python testing with pytest using uv package manager. Use when: (1) Running Python tests, (2) Writing test files or test functions, (3) Setting up fixtures, (4) Parametrizing…
Guide for using pytest-mock plugin to write tests with mocking. Use when writing pytest tests that need mocking, patching, spying, or stubbing.
Python testing skill using pytest, covering fixtures, parametrize, markers, conftest, plugins, mocking, and advanced testing patterns.
Work with pytest-recording (VCR.py) for recording and replaying HTTP interactions in tests. Use when writing VCR tests, managing cassettes, configuring VCR options, filtering…
Execute Python tests with pytest, supporting fixtures, markers, coverage, and parallel execution. Use for Python test automation.
Set up pytest in the dev container and run a test suite. Use when the user asks to add tests, run pytest, set up TDD, or verify code with unit tests.
Generates production-grade pytest tests in Python with fixtures, parametrize, markers, mocking, and conftest patterns.
REST API design: resource naming, versioning, pagination, error responses, rate limiting headers, idempotency, OpenAPI documentation
Django project layout, ORM models, migrations, DRF serializers, viewsets, Celery tasks, admin customization
MaaNTE Python 自定义动作(CustomAction)编写指南。覆盖 agent/custom/action/ 下的 Python 代码的架构、注册、命名、maafocus 用户消息、日志、Controller API、Pipeline 集成、错误处理等编码规范和模式参考。在编写、修改或审查 Python 自定义动作,或需要了解 agent…
Common Python anti-patterns to avoid. Use as a checklist when reviewing code, before finalizing implementations, or when debugging issues that might stem from known bad practices.
Activate when creating new modules, refactoring class hierarchies, introducing design patterns, or making changes spanning 3+ files in the APM CLI codebase.
Use when planning, implementing, or reviewing code for any Python project — designing architecture, writing classes or functions, organizing business logic, or reviewing pull…
Async Python patterns and concurrency: async APIs, I/O-bound apps, rate limiting, context managers
Python asyncio patterns for concurrent programming. Triggers on: asyncio, async, await, coroutine, gather, semaphore, TaskGroup, event loop, aiohttp, concurrent.
Python asyncio patterns for concurrent programming. Triggers on: asyncio, async, await, coroutine, gather, semaphore, TaskGroup, event loop, aiohttp, concurrent.
Use when debugging asyncio event-loop hangs, blocking calls inside coroutines, asyncio.gather vs TaskGroup choice, cancellation handling, structured concurrency, mixing sync and…
Auditoría de calidad, arquitectura y performance para proyectos Python (Based on FastAPI).
Build and operate Python Azure IoT Edge modules with robust messaging, deployment manifests, observability, and production readiness checks.
Shared reference for the python-backend cluster: the thin-adapter model (web/API layer over a typed, tested core), the Django-vs-FastAPI decision, boundary validation, the…
Route a Python backend task to the right specialist — idiomatic Python, pytest/TDD, the Django stack (patterns, TDD, security, Celery, verification), FastAPI services, and the ML…
Curated bundle of essential Python backend development skills. Includes FastAPI patterns, packaging, database migrations, CLI design, and Redis caching.
Python backend (FastAPI / Django / DRF / Celery / Channels) review — async hijyeni, type, ORM, güvenlik, test.
Python background job patterns including task queues, workers, and event-driven architecture. Use when implementing async task processing, job queues, long-running operations, or…
Provides Python patterns for type-first development with dataclasses, discriminated unions, NewType, and Protocol. Must use when reading or writing Python files.
Investigate and propose fixes for Python canary cron failures in the openinference repo. Use when the user mentions Python canary failures, Python cron failures, or when the…
Design and maintain Python CI workflows around uv, pytest, Ruff, mypy, package build checks, dependency caching, Python version matrices, and local-command parity.
Complete Python Cloudflare deployment system. PROACTIVELY activate for: (1) Python Workers with Pyodide, (2) FastAPI on Workers, (3) Cloudflare Containers for heavy compu — from…
Complete Python Cloudflare deployment system. PROACTIVELY activate for: (1) Python Workers with Pyodide, (2) FastAPI on Workers, (3) Cloudflare Containers for heavy compu — from…
Reviews Python code for type safety, async patterns, error handling, and common mistakes. Use when reviewing .py files, checking type hints, async/await usage, or exception…
Python code style, linting, formatting, naming conventions, and documentation standards. Use when writing new code, reviewing style, configuring linters, writing docstrings, or…
Modern Python 3.12+ development with uv, ruff, and production-ready practices. Routes to specialized skills for frameworks and testing.
Use when designing or reviewing concurrent Python code — selecting between asyncio, threads, or multiprocessing; structuring cancellation and deadline propagation; bounding…
Python configuration management via environment variables and typed settings. Use when externalizing config, setting up pydantic-settings, managing secrets, or implementing…
Apply Python project conventions — uv for deps and builds, Ruff strict (E, F, I, UP, B, SIM, PTH, PIE, RUF, T201, PLC0415), mypy strict, pytest with pytest-cov and pytest-asyncio,…
Python excellence specialist for type safety, async patterns, packaging, and idiomatic production codeUse when "python development, type hints, async python, pydantic models,…
Data Architecture, Engineering, Science, Analytics, Visualization, และ Governance
Use when designing data ownership, validation boundaries, consistency models, or configuration strategy in Python.
SQLAlchemy and database patterns for Python. Triggers on: sqlalchemy, database, orm, migration, alembic, async database, connection pool, repository pattern, unit of work — from…
SQLAlchemy and database patterns for Python. Triggers on: sqlalchemy, database, orm, migration, alembic, async database, connection pool, repository pattern, unit of work — from…
Python アプリケーションのドメインモデル / DTO / API スキーマを Pydantic v2 で設計するとき。BaseModel、field_validator / model_validator、computed_field、model_config (frozen,…
Detect and remove unused Python code using vulture and ruff. Covers unused imports, variables, functions, classes, and unreachable code.
Debug Python scripts with proper error surfacing and working directory verification
Debug Python script execution failures by capturing full tracebacks and verifying working directory
Debug Python script execution failures by capturing full output with exit codes and verifying working directory before file operations
Systematically debug Python code using structured error analysis, logging inspection, and test-driven fixes