devops-patterns

Community

Nix-first DevOps: reproducible, fast, consistent.

Authoraitchwhy
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill establishes a "Nix-first" DevOps philosophy, ensuring that local development, CI, and production environments are identical and fully reproducible. It eliminates "works on my machine" issues, accelerates iteration, and simplifies deployment by leveraging Nix's hermetic builds.

Core Features & Use Cases

  • Blocked Files & Commands: Enforces strict adherence by blocking traditional Dockerfiles, docker-compose, and npm run dev commands, guiding users to Nix-native alternatives.
  • process-compose for Local Dev: Guides on using process-compose for local service orchestration, replacing docker-compose with a declarative, Nix-integrated approach.
  • nix2container for OCI Images: Provides patterns for building minimal, reproducible OCI container images directly from Nix, eliminating Dockerfiles and ensuring tiny, optimized artifacts.
  • GitHub Actions Workflow: Outlines a CI/CD pipeline that leverages nix build and nix2container for fast, reproducible builds and container pushes directly to registries.
  • Use Case: A developer needs to set up a new microservice. They can use this skill to define their local development services in process-compose.yaml, build their application with nix build, and create a container image with nix2container, ensuring a consistent and reproducible workflow from day one.

Quick Start

Refactor the 'docker-compose.yml' file into a 'process-compose.yaml' for local development, defining the 'api' and 'db' services.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: devops-patterns
Download link: https://github.com/aitchwhy/dotfiles/archive/main.zip#devops-patterns

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.