infrastructure-patterns

Generate Dockerfiles and Kubernetes manifests for Python LLM applications.

3|Updated Feb 15, 2026
One-click install
npx skills add https://github.com/pvliesdonk/agents.md --skill infrastructure-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: infrastructure-patterns
Source: https://github.com/pvliesdonk/agents.md/tree/main/skills/infrastructure-patterns
Command: npx skills add https://github.com/pvliesdonk/agents.md --skill infrastructure-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides battle-tested patterns and configurations for deploying and managing Python and LLM applications, addressing the complexities of containerization, secrets management, and CI/CD.

Core Features & Use Cases

  • Containerization: Dockerfiles for efficient Python application builds using uv, and Docker Compose for local development and testing environments.
  • Secrets Management: Strategies for handling sensitive information using Pydantic BaseSettings, SOPS for encrypted secrets in Git, and GitHub Actions secrets.
  • CI/CD Pipelines: Comprehensive GitHub Actions workflows for linting, testing, building, and deploying applications, including caching strategies.
  • Kubernetes Deployment: Example Kubernetes manifests for deploying LLM services, including Horizontal Pod Autoscalers and external secrets integration.
  • Health Checks: FastAPI patterns for implementing robust liveness and readiness probes.
  • Environment Management: Guidance on configuration hierarchy and feature flag implementation.

Quick Start

Use the infrastructure-patterns skill to generate a Dockerfile for a Python application using uv.

Frequently Asked Questions about infrastructure-patterns

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

FAQPage Schema
How do I deploy Python and LLM applications with Docker and Kubernetes?

To deploy Python and LLM applications, you can use Docker multi-stage builds with uv for efficient containerization, and Kubernetes deployments with Horizontal Pod Autoscalers to manage scalable LLM service delivery. This Skill provides the manifests and patterns for both platforms.

What is the best way to manage secrets for Python apps in Kubernetes and CI/CD?

The best way to manage secrets for Python apps is by using Pydantic BaseSettings for application configuration, SOPS for encrypting secrets directly in Git, and integrating external secrets with Kubernetes to secure your CI/CD pipelines.

Can I use uv for Docker multi-stage builds in Python applications?

Yes, you can use uv for Docker multi-stage builds in Python applications to create efficient container images. This Skill provides specific Dockerfile patterns that leverage uv to optimize the build process and reduce image size.

How do I set up GitHub Actions CI/CD pipelines for FastAPI and LLM services?

You can set up GitHub Actions CI/CD pipelines for FastAPI and LLM services using comprehensive workflows that cover linting, testing, building, and deploying. This Skill includes caching strategies and deployment configurations for automated delivery.

How do I implement liveness and readiness probes for FastAPI?

You implement liveness and readiness probes for FastAPI by creating dedicated health check endpoints. This Skill provides FastAPI patterns to build robust health checks that Kubernetes uses to monitor application availability and route traffic correctly.

Does Docker Compose work for local development and testing of LLM applications?

Yes, Docker Compose works effectively for local development and testing of LLM applications. This Skill provides Docker Compose configurations that allow you to replicate your production environment locally for consistent testing.