devops

Manages Docker Compose environments, nginx configs, deployment scripts, and disk cleanup for infrastructure tasks.

Updated Jun 2, 2026
One-click install
npx skills add https://github.com/lfuuu/claude-rules --skill devops-lfuuu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: devops
Source: https://github.com/lfuuu/claude-rules/tree/main/shared-skills/roles/devops
Command: npx skills add https://github.com/lfuuu/claude-rules --skill devops-lfuuu

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? It handles infrastructure and operations work—Docker Compose environments, nginx configuration, Dockerfiles, deployment scripts, hooks, backups, and disk cleanup—without touching application business code, keeping infra changes isolated and consistent with proven production patterns. ## Core Features & Use Cases - Environment lifecycle management: Runs all operations through a single entry-point script (build, start, stop, status, backup, restore, migrate, fixtures) across dev, test, stage, and loadtest environments. - Reference-driven implementation: Before writing any new config or script, it searches a mature sibling production project (cmdb) for an equivalent pattern and copies it with adaptations, preserving inline lessons-learned comments. - Autonomous escalation routing: When verification fails, it diagnoses root cause via container logs and delegates business-code fixes to backend/frontend/testing agents, then re-verifies. - Cleanup mode: Frees disk space by pruning Docker resources, clearing pip/npm caches, removing pycache directories, rotating logs, and vacuuming journals. - Use Case: Ask it to add a frontend container to docker-compose.dev.yml or configure nginx to proxy / to frontend:3000, and it will plan, implement, build, start, and verify the environment end-to-end. ## Quick Start Invoke the devops skill with a task like "Add a health check to the backend Dockerfile and verify the dev environment starts healthy."

Frequently Asked Questions about devops

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

FAQPage Schema
How do I manage Docker Compose environments with a single script?

Use a unified entry-point shell script that wraps all compose operations per environment: setup, start, stop, restart, build, status, logs, backup, restore, migrate, and destroy. This skill routes every operation through respoolman-env.sh and blocks direct docker compose calls via a pre-tool guard hook.

How to free up disk space used by Docker and caches?

Run the cleanup mode, which prunes unused Docker containers, images, and volumes, purges pip and npm caches, removes __pycache__ and pytest cache directories, vacuums systemd journals to 100MB, and reports freed space with df -h.

Why do database migrations not apply after git pull in Docker?

Because migration files are copied inside the image at build time, the running container only sees migrations baked into its image. After any git pull you must rebuild the images and restart containers; running migrate alone uses the stale image.

Can this skill modify application backend or frontend code?

No. It is explicitly forbidden from changing business code in backend src, frontend src, or tests. When verification reveals a business-code root cause, it delegates the fix to the appropriate backend, frontend, or testing agent and re-verifies afterward.

What base images does it use for Docker builds?

All images come from the ALT Linux p10 registry: python:3.9.20, postgresql:16.9, and nginx:1.26.3, plus dpage/pgadmin4 for pgAdmin. Non-ALT base images are prohibited because production runs on ALT Linux p10 with apt-rpm.