{"id":"c489d6d5-79fc-4a66-8b19-d35a83a89016","slug":"claude-skills-devops","kind":"skill","name":"claude-skills-devops","summary":"AI-powered DevOps skills repository for Claude","owner":"anikievev","repoUrl":"https://github.com/anikievev/claude-skills-devops","license":"MIT","licenseTier":"permissive","trust":"community","stars":5,"match":null,"fewStars":false,"format":"skill","createdAt":"2026-03-30T17:45:30.000Z","addedAt":"2026-10-21T22:51:55.925Z","logoUrl":"https://avatars.githubusercontent.com/u/288048?u=e7213678808b9ef278a52743978405ff15b831cc&v=4","linkOnly":false,"collection":null,"skillPath":null,"categories":["cloud-infra","developer-tools"],"tags":["ansible","aws-cdk","claude-code","devops","github","github-actions","gitlab-ci","kubernetes"],"runtime":"binary","local":true,"cloudCapable":false,"cloudCapability":"unknown","cloudReadyOnPlatform":false,"needsApiKey":false,"reviewed":false,"syncedAt":"2026-10-22T06:41:00.096Z","sample":false,"url":"https://conduits.dev/tools/claude-skills-devops","language":"","transports":["stdio"],"install":{},"requirements":{"env":[],"upstreamMayCharge":false},"tools":null,"readme":"# DevOps Claude Skills — AI-Powered Templates for Docker, Terraform, AWS CDK, Ansible, GitHub Actions & GitLab CI\n\n> **Supercharge your DevOps workflow with Claude Code skills** — slash commands that generate production-grade infrastructure code, hardened Dockerfiles, and battle-tested CI/CD pipelines in seconds.\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)\n\n---\n\n## What Are DevOps Claude Skills?\n\n[Claude Code](https://claude.ai/code) supports **skills** — reusable prompt files you install once and invoke as slash commands (e.g. `/docker`, `/terraform`). Each skill in this repository teaches Claude exactly how to write expert-level DevOps code for a specific tool, with every best practice baked in from the start.\n\nInstead of manually looking up whether your Dockerfile uses a non-root user, whether your Terraform variables are validated, or whether your GitHub Actions workflow pins SHA hashes — just invoke the skill and get production-ready output immediately.\n\n**These devops Claude skills cover:**\n- Security hardening out of the box\n- Minimal image sizes and optimized build caching\n- Least-privilege IAM, encrypted storage, and secret management\n- Idempotent, lint-compliant, role-structured code\n- CI/CD pipelines with proper job separation, caching, and deployment gates\n\n---\n\n## Available Skills\n\n| Slash Command | Tool | What Claude Writes |\n|---|---|---|\n| `/docker` | Docker | Multi-stage Dockerfile + `.dockerignore` — minimal image, non-root user, pinned versions, healthcheck |\n| `/terraform` | Terraform | Module structure (`main`, `variables`, `outputs`, `versions`, `backend`) — remote state, least-privilege IAM, validated variables |\n| `/aws-cdk` | AWS CDK | Construct-separated stacks — encryption at rest, `grant*` IAM, CDK Aspects, env-agnostic design |\n| `/ansible` | Ansible | Role-based playbooks — idempotent tasks, handlers, Vault for secrets, `block/rescue`, ansible-lint compliant |\n| `/github-actions` | GitHub Actions | SHA-pinned workflows — least-privilege permissions, concurrency groups, matrix builds, dependency caching |\n| `/gitlab` | GitLab CI | Staged pipelines — YAML anchors, `rules` (not `only/except`), DAG via `needs`, artifact expiry, SAST included |\n\n---\n\n## Installation\n\nSkills can be installed globally (available in every project) or per-project.\n\n### Global install (recommended)\n\n```bash\n# Clone this repository\ngit clone https://github.com/your-username/claude-skills-devops.git\n\n# Install all skills globally\ncp claude-skills-devops/skills/*.md ~/.claude/skills/\n```\n\n### Per-project install\n\n```bash\n# Install a single skill into your project\nmkdir -p .claude/skills\ncp path/to/claude-skills-devops/skills/docker.md .claude/skills/\n```\n\n### Verify installation\n\nOpen Claude Code in any project and run:\n\n```\n/help\n```\n\nYou should see the installed skills listed under your available commands.\n\n---\n\n## Usage\n\nNavigate to any project and invoke the relevant skill. Claude will inspect your project context and generate code tailored to your stack.\n\n### Docker\n\n```\n/docker\n```\n\nClaude analyzes your project (language, entrypoint, ports) and generates:\n- A multi-stage `Dockerfile` with distroless or alpine runtime, non-root user, pinned base image, layer-cache-optimized dependency installation, and a `HEALTHCHECK`\n- A `.dockerignore` excluding dev dependencies, secrets, test files, and IDE config\n\n### Terraform\n\n```\n/terraform\n```\n\nClaude generates a complete module with `main.tf`, `variables.tf`, `outputs.tf`, `versions.tf`, and `backend.tf` — including remote state (S3 + DynamoDB), validated variables, sensitive output markers, and a mandatory tagging strategy.\n\n### AWS CDK\n\n```\n/aws-cdk\n```\n\nClaude writes environment-agnostic CDK stacks with construct separation, explicit `RemovalPolicy`, encryption at rest for all resources, `grant*`-based IAM, CDK Aspects for cross-cutting tagging, and `CfnOutput` for cross-stack references.\n\n### Ansible\n\n```\n/ansible\n```\n\nClaude scaffolds a full role structure with idempotent tasks, handlers for service restarts, Ansible Vault integration for secrets, `block/rescue/always` error handling, `no_log` on sensitive tasks, and ansible-lint–compliant FQCN module names.\n\n### GitHub Actions\n\n```\n/github-actions\n```\n\nClaude generates a CI/CD workflow with SHA-pinned action versions, `permissions: {}` at workflow level with per-job grants, `concurrency` groups to cancel stale runs, dependency caching keyed by lock file hash, matrix testing, and a protected deploy job gated on `github.ref == 'refs/heads/main'`.\n\n### GitLab CI\n\n```\n/gitlab\n```\n\nClaude writes a `.gitlab-ci.yml` with explicit stages, `rules`-based triggers (no deprecated `only/except`), YAML anchors for DRY job templates, `needs`-based DAG for parallel execution, lock-file–keyed caching, artifact expiry, environment-scoped deployment tracking, and included SAST/Secret Detection templates.\n\n---\n\n## Why Use These Claude Skills for DevOps?\n\n**Without skills:** You write a Dockerfile, realize it runs as root, add a user, then later notice the base image is `:latest`, then later find the build output isn't cached properly.\n\n**With `/docker`:** Claude generates a hardened, optimized, production-ready Dockerfile in one shot — every best practice applied from the start.\n\nThese Claude Code skills for DevOps act as an expert reviewer, code generator, and best-practices enforcer rolled into a single slash command. Whether you're writing your first Terraform module or setting up a GitLab CI pipeline for a microservices platform, each skill ensures you don't miss the details that matter in production.\n\n---\n\n## Contributing\n\nContributions are welcome. To add a new skill or improve an existing one:\n\n1. Fork the repository\n2. Create your skill file in `skills/<tool-name>.md` using the frontmatter format:\n   ```markdown\n   ---\n   name: skill-name\n   description: One-line description shown in /help\n   ---\n\n   [Prompt content...]\n   ```\n3. Focus the skill on **writing code**, not running commands\n4. Embed concrete best practices — be specific about what Claude should and should not do\n5. Open a pull request with a brief description of what the skill generates and why the best practices were chosen\n\n---\n\n## License\n\nMIT — see [LICENSE](LICENSE).\n"}