Curated Category 10 hand-picked workflows Audited

Top 10 Python Foundation Workflows for AI Coding Agents

Python changes become easier to direct when the agent has a clear workflow for the decision in front of it. These ten source-vetted skills cover idiomatic implementation, repository shape, type safety, design, dependencies, quality, testing, performance, async I/O, and errors and validation.

Each card links to its source SKILL.md and uses the skills.sh install count audited on September 26, 2026. Install with the command shown on the card, then select the workflow that matches the Python change.

Flat editorial illustration of a coiled Python-like ribbon built from nested hot pink, orange, and deep indigo indentation blocks.

How this catalog was picked

  • Focused Python scope. Every entry maps to one of the ten foundation workflow decisions represented on this page.
  • Read at the source. Descriptions and highlights follow each linked SKILL.md, with a source link on every card for direct inspection.
  • Distinct decisions. The groups separate implementation style, structure, correctness, design, dependencies, quality, testing, performance, async I/O, and failure behavior.
  • Dated registry context. Install counts are the September 26, 2026 snapshot from the skills.sh registry.

Top 10 Python foundation workflows at a glance

A comparative index of the top picks. Click any card to navigate directly to its detailed review.

Install counts from the skills.sh registry, audited September 26, 2026.

Idiomatic implementation

Start with the language's everyday choices. This workflow keeps a small Python change direct, readable, and consistent with the surrounding code.

GitHub repository card for affaan-m/ecc

python-patterns

11.9K installs affaan-m

Best for: Day-to-day idiomatic Python

python-patterns gives an agent a compact set of everyday Python choices. Its core idiom is EAFP, or asking forgiveness after an operation raises an exception, rather than checking every condition before attempting the operation. The skill also points agents toward modern built-in generic syntax, so annotations can use the current forms provided by Python's built-in collection types.

The source puts generator expressions and comprehensions alongside readable PEP 8 structure. That combination helps an agent choose a concise expression for a collection or lazy sequence while keeping the surrounding code easy to scan.

  • EAFP as the default error-handling idiom
  • Modern generic syntax for built-in collection types
  • Generator expressions and comprehensions
  • Readable structure aligned with PEP 8
Install this skill
$npx skills add affaan-m/ecc@python-patterns
affaan-m/ecc source skills.sh listing
Works with + more

Project structure

Give a repository a clear shape before imports and responsibilities spread. This workflow helps an agent place modules and preserve useful boundaries.

GitHub repository card for wshobson/agents

python-project-structure

13.7K installs wshobson

Best for: Python layout and module boundaries

python-project-structure helps an agent decide between a src layout and a flat layout, then organize modules around that decision. Its guidance includes module organization, the use of __all__, cohesion, circular dependency avoidance, and test directories. Those details give a repository change a place to live before an agent creates a new import path.

Use this skill when an agent is adding a package, moving modules, or investigating an import problem that may come from the project layout. Clear module boundaries give later implementation decisions a stable surface.

  • src layout and flat layout guidance
  • Module organization and __all__
  • Cohesion and circular dependency avoidance
  • Dedicated test directory structure
Install this skill
$npx skills add wshobson/agents@python-project-structure
wshobson/agents source skills.sh listing
Works with + more

Type safety

Make interfaces explicit and checkable. This workflow covers annotations, structural interfaces, and strict checking when a Python change needs stronger guarantees.

GitHub repository card for wshobson/agents

python-type-safety

11.7K installs wshobson

Best for: Type annotations, structural interfaces, and mypy or pyright configuration

python-type-safety is a focused typing workflow for Python changes that need an explicit, checkable interface. It covers annotations, generic classes, protocols for structural interfaces, and narrowing and type guards for values whose runtime shape needs verification.

Use it when adding annotations to an existing project, defining a reusable generic API, or configuring mypy or pyright. Its strict-checking guidance recommends incremental adoption for existing projects rather than treating every repository as immediately ready for strict mode.

  • Annotations for public signatures
  • Generics and structural interfaces with Protocol
  • Type narrowing and guards
  • Incremental strict mypy or pyright adoption
Install this skill
$npx skills add wshobson/agents@python-type-safety
wshobson/agents source skills.sh listing
Works with + more

Async I/O

Keep asynchronous work coordinated and nonblocking. This workflow gives an agent the vocabulary for coroutine lifecycles and bounded I/O concurrency.

GitHub repository card for wshobson/agents

async-python-patterns

16.7K installs wshobson

Best for: I/O concurrency and sync versus async choices

async-python-patterns covers the pieces an agent must keep aligned in asynchronous Python: event loops, coroutines, tasks, and futures. Its coordination patterns include gather, TaskGroup, semaphores, locks, and queues. These constructs give concurrent work an explicit lifecycle and let the agent choose a bounded pattern when several operations share a resource.

The source also emphasizes nonblocking I/O and the decision between synchronous and asynchronous code. A coroutine that is created without being awaited can produce the warning `coroutine was never awaited`; blocking work inside an async path can stall the event loop.

  • Event loops, coroutines, tasks, and futures
  • gather and TaskGroup coordination
  • Semaphores, locks, and queues
  • Nonblocking I/O and sync versus async choice
Install this skill
$npx skills add wshobson/agents@async-python-patterns
wshobson/agents source skills.sh listing
Works with + more

Errors and validation

Make invalid input and runtime failures legible at the right boundary. This workflow helps an agent preserve context and define recovery behavior.

GitHub repository card for wshobson/agents

python-error-handling

13.0K installs wshobson

Best for: Runtime errors and input validation

python-error-handling gives an agent a failure policy for ordinary Python runtime work. It starts with fail-fast input validation, then uses a custom exception hierarchy to express the kinds of failure a caller can handle. The source covers raise from so an error can preserve its originating cause while adding the context of the current operation.

The skill also handles partial failures in batches and context managers. Those cases need an explicit choice about the work that completed, the work that failed, and the resources that must be released.

  • Fail-fast input validation
  • Custom exception hierarchies
  • raise from for chained causes and context
  • Partial batch failures and context managers
Install this skill
$npx skills add wshobson/agents@python-error-handling
wshobson/agents source skills.sh listing
Works with + more

Design and modularity

Keep a growing codebase understandable before it becomes a tangle. This workflow is for choosing a simple boundary, separating responsibilities, and resisting needless abstraction.

GitHub repository card for wshobson/agents

python-design-patterns

21.3K installs wshobson

Best for: Modular designs and tangled Python code

python-design-patterns is a design pass for a Python service or component that is gaining responsibilities. Its starting point is KISS and the single-responsibility principle, then it uses composition over inheritance and the rule of three to keep an abstraction tied to demonstrated need.

Use it when a class is becoming a God object, a module boundary is unclear, or a refactor must make I/O and business logic independently testable. It is about changing the shape of code, not choosing a framework.

  • KISS and single-responsibility boundaries
  • Composition before inheritance
  • Rule of three for earned abstractions
  • Layering that keeps I/O independently testable
Install this skill
$npx skills add wshobson/agents@python-design-patterns
wshobson/agents source skills.sh listing
Works with + more

Dependencies and environments

Keep interpreter, dependencies, and lock state aligned. This workflow is for repeatable Python environments and scripts with declared requirements.

GitHub repository card for mindrally/skills

python-uv

920 installs mindrally

Best for: Repeatable dependencies and one-off Python scripts

python-uv gives an agent one dependency-management workflow: add and remove project requirements with uv, synchronize the locked environment, and run a script through uv rather than relying on an activated environment by accident.

Its guidance also covers PEP 723-style inline script metadata. Use it when a standalone script needs declared dependencies or when a project change must leave a reproducible dependency state behind.

  • uv add, remove, and sync for project dependencies
  • Locked environments kept in sync
  • uv run for dependency-aware scripts
  • Inline metadata for standalone scripts
Install this skill
$npx skills add mindrally/skills@python-uv
mindrally/skills source skills.sh listing
Works with + more

Code quality

Make the local feedback loop consistent before a codebase accumulates avoidable style and type drift. This workflow connects formatting, linting, and type checks without blurring their roles.

GitHub repository card for laurigates/claude-plugins

python-code-quality

1.0K installs laurigates

Best for: Project-wide lint, format, and type-check setup

python-code-quality is an orchestration guide for a Python quality stack. It keeps Ruff linting, Ruff formatting, and ty type checking as distinct tools while showing how to run them together in pre-commit and CI.

Use it when a project needs a coherent feedback gate rather than a one-off formatter or linter setting. Its routing table points focused questions back to the right underlying tool instead of treating every quality concern as the same task.

  • Separate ownership for linting, formatting, and types
  • Ruff plus ty in one quality gate
  • Pre-commit and CI wiring
  • Routing to focused tool-specific guidance
Install this skill
$npx skills add laurigates/claude-plugins@python-code-quality
laurigates/claude-plugins source skills.sh listing
Works with + more

Testing

Turn an expected behavior into a repeatable check. This workflow covers the Python testing decisions that make a change safe to revise.

GitHub repository card for mindrally/skills

python-testing

976 installs mindrally

Best for: Pytest suites, fixtures, mocks, and TDD

python-testing centers Python verification on pytest and test-driven development. It calls for descriptive, independent tests using Arrange-Act-Assert, fixtures for setup and teardown, and parameterization when several cases express the same behavior.

The source also distinguishes unit, integration, and property-based checks, then covers mocks and coverage reporting. Use it when an agent needs to define what a Python change must keep true before or after implementation.

  • Arrange-Act-Assert and descriptive test names
  • Fixtures and parameterization
  • Unit, integration, and property-based checks
  • Mocks, assertions, and coverage reporting
Install this skill
$npx skills add mindrally/skills@python-testing
mindrally/skills source skills.sh listing
Works with + more

Performance

Measure the bottleneck before changing an implementation. This workflow separates profiling evidence from the optimization choices that follow it.

GitHub repository card for wshobson/agents

python-performance-optimization

33.7K installs wshobson

Best for: Slow Python paths and memory pressure

python-performance-optimization starts with evidence: CPU, memory, line-level, and production profiling identify where a Python program actually spends its budget. Its guidance keeps execution time, memory use, CPU utilization, and I/O wait as separate signals.

Once the bottleneck is known, it covers data-structure choices, caching, batching I/O, generators, and appropriate parallelism. The source explicitly warns against optimizing code that has not been profiled.

  • CPU, memory, line-level, and production profiling
  • Measure execution time, memory, CPU, and I/O wait
  • Caching, batching, generators, and parallelism
  • Profile before optimizing a hot path
Install this skill
$npx skills add wshobson/agents@python-performance-optimization
wshobson/agents source skills.sh listing
Works with + more

Select the Python workflow by decision

Start with the kind of correctness the change needs. Each workflow has one job, so an agent can use the source that matches the current decision without pulling unrelated guidance into the change.

  1. 1.Idiomatic implementation. Choose python-patterns for EAFP, current built-in generic syntax, comprehensions, generator expressions, and readable Python structure.
  2. 2.Project structure. Choose python-project-structure for layout, module cohesion, __all__, import boundaries, and circular dependency avoidance.
  3. 3.Type safety. Choose python-type-safety when a change needs annotations, generic classes, structural interfaces, narrowing, or strict checker configuration.
  4. 4.Async I/O. Choose async-python-patterns for event loops, coroutine lifecycles, task coordination, and nonblocking I/O.
  5. 5.Errors and validation. Choose python-error-handling for validation, exception boundaries, chained causes, partial failures, and cleanup.
  6. 6.Design and modularity. Choose python-design-patterns for simpler boundaries, single responsibilities, composition, and refactors that make code easier to test.
  7. 7.Dependencies and environments. Choose python-uv for uv-managed dependencies, lock synchronization, and scripts with declared requirements.
  8. 8.Code quality. Choose python-code-quality to connect Ruff linting, Ruff formatting, and ty type checking in a project-level quality gate.
  9. 9.Testing. Choose python-testing for pytest, fixtures, parameterization, mocks, coverage, and test-driven development.
  10. 10.Performance. Choose python-performance-optimization to profile CPU, memory, line-level, and production behavior before optimizing a measured hot path.

Keep Python workflows under control with LazySkills

LazySkills is a terminal UI that scans your machine, shows installed skills with per-agent visibility, diagnoses broken configurations, and searches the same skills.sh registry used for this audit. Install the catalog manager, then choose the Python workflow that matches the task.

curl -fsSL https://lazyskills.sh/install | sh
More about LazySkills

Frequently asked questions

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.

Related guides

More curated skill catalogs to keep browsing.

by Alvin