Agent skill
devops
Handles CI/CD configurations, containerization, deployment scripts, and infrastructure as code. Use when asked to "set up CI/CD", "create a pipeline", "write a Dockerfile", "configure deployment", "add GitHub Actions", "write Terraform", or "set up infrastructure".
Install this agent skill to your Project
npx add-skill https://github.com/jiyeol-lee/dotfiles/tree/main/.opencode/skills/devops
SKILL.md
Quick Start
- Writes CI/CD configurations (GitHub Actions, GitLab CI, Jenkins)
- Creates and updates Dockerfiles and container configurations
- Configures deployment scripts and automation
- Manages environment configurations
- Writes Infrastructure as Code (Terraform, CloudFormation, CDK, Pulumi)
Workflow
- Understand the infrastructure requirement and target environment
- Check existing config — read current CI/CD, Docker, IaC files to follow established patterns
- Implement the configuration changes
- Validate using the appropriate linter/checker (see table below)
- Assess deployment impact (see assessment below)
- Report changes and any breaking/security concerns
Example: Creating a GitHub Actions CI Workflow
Requirement: Add CI pipeline for a Node.js project with lint, test, and build
Step 1 — Check existing config:
Read package.json for scripts: lint, test, build
No existing .github/workflows/ directory
Step 2 — Create .github/workflows/ci.yml:
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
cache: 'npm'
- run: npm ci
- run: npm run lint
- run: npm run test
- run: npm run build
Step 3 — Validate:
$ actionlint .github/workflows/ci.yml
✓ No errors
Step 4 — Impact assessment:
- Requires redeploy: No (CI config only)
- Affected services: None (new pipeline)
- Breaking changes: None
- Downtime risk: None
Validation Commands
MUST validate config files before reporting completion:
| File Type | Validation Command |
|---|---|
| YAML | yamllint <file> or syntax check |
| Dockerfile | docker build --check or hadolint <file> |
| Terraform | terraform validate or terraform fmt -check |
| CloudFormation | aws cloudformation validate-template |
| GitHub Actions | actionlint <file> |
| Shell scripts | shellcheck <file> |
If the validation tool is not installed, note it in the report and proceed.
Deployment Impact Assessment
Evaluate and report ALL of the following for every change:
- Requires Redeploy: Will this change require service restart/redeploy?
- Affected Services: Which services/components are impacted?
- Breaking Changes: Are there backwards-incompatible changes?
- Downtime Risk: Could this cause service interruption?
Constraints (Never Allowed)
- Hardcoding credentials, API keys, or secrets (use environment variables or secret managers)
- Disabling security features without explicit user approval
- Direct production deployments (always stage first or require approval)
- Using sed/perl/awk/tr for multi-file replacements (use grep + edit)
- Removing existing CI checks without explicit approval
Always Report
- Breaking changes to deployment or infrastructure
- Security configuration changes (IAM, network, secrets)
- Changes that require manual steps (migrations, DNS updates, etc.)
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
pull-request
Analyzes branch diffs, drafts PR titles and bodies following Conventional Commits, and creates or updates pull requests via GitHub CLI. Use when user asks to "create a PR", "open a pull request", "update PR description", "draft a PR", or "submit changes for review".
commit
Analyzes repository state, proposes commit messages following Conventional Commits, and applies commits after user approval. Use when asked to "commit", "commit changes", "save my work", "create a commit", or "stage and commit".
review
Performs code review analysis across Quality, Regression, Documentation, and Performance focus areas with severity-classified findings. Use when user asks to "review code", "review this PR", "check code quality", "review changes", or "do a code review".
check
Verifies code quality through linting, type-checking, formatting, and testing. Use when asked to "run checks", "validate code", "lint this", "check for errors", "run tests", or "verify code quality" before or after changes.
task-breakdown
Decomposes complex goals into atomic, dependency-aware work items with execution plans. Use when asked to "break down this task", "create a task plan", "decompose this goal", "split this work", "plan the implementation", "what are the steps", or "create an execution plan".
code
Implements features, fixes bugs, refactors code, and writes unit and integration tests. Use when asked to "implement", "fix a bug", "refactor", "add a feature", "write tests", "add test coverage", or "update code".
Didn't find tool you were looking for?