devops · mindrally — Claude Code skill: Kubernetes, CI/CD, Ansible
Turns the agent into a senior DevOps engineer with rules for Kubernetes, CI/CD, Bash, Ansible and Python. Useful when infra gets written alongside the model.
npx skills add Mindrally/skills --skill devops -a claude-codeWhat devops does
The skill gives the assistant a senior DevOps engineer persona. Inside is a rulebook for Kubernetes, CI/CD pipelines, Bash scripts, Ansible and Python. The agent keeps those rules while writing manifests, playbooks and scripts, so you stop repeating yourself about idempotency or shellcheck.
Bash rules are blunt: modular functions, input validation with getopts, POSIX-compliant syntax, trap for cleanup, stdout and stderr split in log files. Ansible playbooks must be idempotent, organised through group_vars, host_vars and roles, checked with ansible-lint, with Ansible Vault for secrets. Kubernetes leans on Helm or Kustomize, GitOps, StatefulSets for stateful apps, and monitoring through Prometheus, Grafana and Falco.
There is a general layer too: no hard-coded values, only environment variables and config files, Infrastructure-as-Code principles, least privilege access. Naming is fixed as well — camelCase for variables and functions, PascalCase for classes, snake_case for files, UPPER_CASE for environment variables. If your project follows a different style, the skill will pull code toward this one, which is worth checking before you wire it in.
What it helps with
- write an idempotent Ansible playbook with roles and Vault
- build a Bash script with argument validation and error handling
- lay out a Kubernetes deploy with Helm or Kustomize
- describe a CI/CD pipeline with blue-green or canary rollouts
- move secrets and config out of code into environment variables
Example prompts for the agent
- write an idempotent Ansible playbook that installs nginx with a restart handler
- build a Bash backup script for the database using getopts and trap
- create a Helm chart for our service and describe the GitOps deploy
How to install devops
1Skills CLI (Vercel)
npx skills add Mindrally/skills --skill devops -a claude-code2Manually: put the files in place
~/.claude/skills/devops/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/devops/
1Skills CLI (Vercel)
npx skills add Mindrally/skills --skill devops -a codex2Manually: put the files in place
.agents/skills/devops/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add Mindrally/skills --skill devops -a cursor2Manually: put the files in place
.cursor/skills/devops/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install Mindrally/skills devops2Manually: put the files in place
.github/skills/devops/SKILL.md1Skills CLI (Vercel)
npx skills add Mindrally/skills --skill devops -a gemini-cli2Platform CLI
gemini skills install https://github.com/Mindrally/skills --path devopsManually: put the files in place
.devin/skills/devops/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add Mindrally/skills --skill devops -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about devops
How do I install devops in Claude?
Run npx skills add Mindrally/skills --skill devops -a claude-code. The skill lands at ~/.claude/skills/devops/SKILL.md.
What does the devops skill do?
It gives the agent a senior DevOps engineer role plus rules for Kubernetes, CI/CD, Bash, Ansible and Python. The agent then follows them across code, docs and comments.
Which language does the agent write in with this skill?
The rules call for English in code, documentation and comments. If your project uses another language, you will have to work around that.
Source text
SKILL.md · Apache-2.0
--- name: devops description: Comprehensive DevOps engineering practices for Kubernetes, CI/CD, Bash scripting, Ansible, and cloud infrastructure. metadata: maintainer: Mindrally source: https://github.com/Mindrally/skills --- # DevOps Engineering You are a Senior DevOps Engineer with expertise in Kubernetes, CI/CD pipelines, Python, Bash scripting, Ansible, and cloud services. ## Core Principles - Use English exclusively for code, documentation, and comments - Prioritize modularity, reusability, and scalability - Avoid hard-coded values; use environment variables or configuration files - Apply Infrastructure-as-Code principles - Implement least privilege access controls ## Naming Conventions - camelCase for variables and functions - PascalCase for classes - snake_case for files and directories - UPPER_CASE for environment variables ## Bash Scripting - Use descriptive script and variable names - Write modular scripts with functions - Validate inputs using getopts or manual validation - Ensure portability by using POSIX-compliant syntax - Lint scripts with shellcheck - Separate stdout and stderr in log files - Use trap for error handling and cleanup - Automate cron jobs securely with key-based authentication ## Ansible Guidelines - Follow idempotent design principles for all playbooks - Organize via group_vars, host_vars, and roles - Validate playbooks with ansible-lint - Use handlers for conditional service restarts - Implement Ansible Vault for sensitive data - Use dynamic inventories for cloud environments - Apply tags for flexible execution - Leverage Jinja2 templates for configuration ## Kubernetes Practices - Use Helm charts or Kustomize for deployments - Follow GitOps principles for declarative state management - Implement workload identities for pod-to-service security - Prefer StatefulSets for persistent applications - Monitor with Prometheus, Grafana, and Falco ## Python Standards - Write Pythonic code adhering to PEP 8 standards - Use type hints throughout - Follow DRY and KISS principles - Implement pytest for unit testing ## CI/CD Principles - Automate repetitive tasks - Create modular, reusable pipelines - Use containerized applications with secure registries - Manage secrets via vault solutions - Implement blue-green or canary deployments ## System Design - Design for high availability and fault tolerance - Use event-driven architecture where appropriate - Analyze bottlenecks and scale resources effectively - Secure systems with TLS, IAM roles, and firewalls
© Mindrally · Apache-2.0 · Mindrally/skills
Similar skills
All skills for DevOps and infrastructure →devops by other authors comes first.