Which skill helps an agent write idiomatic Python?
Use python-patterns for everyday implementation choices. It covers EAFP, modern built-in generic syntax, comprehensions, generator expressions, and readable PEP 8 structure so an agent can keep ordinary control flow direct.
Which Python skill should guide a project layout change?
Use python-project-structure when an agent is choosing a src or flat layout, organizing modules, defining __all__, avoiding circular dependencies, or establishing test directories. It gives a new import path a deliberate place in the repository.
How can an agent make a Python interface type-safe?
Use python-type-safety when a change needs annotations, generic classes, structural interfaces, type narrowing, or mypy or pyright configuration. It makes a Python interface explicit and checkable without replacing the repository's established conventions.
What should an agent use for async Python I/O?
Use async-python-patterns for event loops, coroutines, tasks, futures, and nonblocking I/O. It covers gather, TaskGroup, semaphores, locks, and queues, along with the choice between synchronous and asynchronous code.
Which Python skill covers errors and validation?
Use python-error-handling for fail-fast input validation, custom exception hierarchies, chained causes with raise from, partial batch failures, and context-manager cleanup. It helps an agent make failure ownership and recovery behavior explicit.
Which Python skill should guide a design or refactor?
Use python-design-patterns when a class or module is accumulating responsibilities, an abstraction needs to be earned, or a boundary must make I/O and business logic easier to test. It emphasizes KISS, single responsibility, composition, and the rule of three.
How should an agent manage Python dependencies with uv?
Use python-uv for dependency changes, lock synchronization, and scripts that need declared requirements. It covers uv add, remove, sync, and run, along with inline metadata for standalone Python scripts.
Which Python skill sets up a quality gate?
Use python-code-quality to coordinate Ruff linting, Ruff formatting, and ty type checking in pre-commit and CI. It is the stack-level guide; its linked source routes tool-specific work to a focused workflow.
Which Python skill covers pytest and TDD?
Use python-testing for pytest checks, fixtures, parameterization, mocking, coverage, and test-driven development. It helps an agent turn expected behavior into independent unit, integration, or property-based tests.
How should an agent investigate slow Python code?
Use python-performance-optimization to profile CPU, memory, lines, and production paths before changing a hot path. It then covers measured choices such as caching, batching, generators, data structures, and parallelism.