java/src/main/resources/targets/claude/skills/conditional/review/x-review-devops/SKILL.md
DevOps specialist review: validates Dockerfile, container security, CI/CD pipeline, resource limits, health probes, graceful shutdown, and deployment configuration.
npx skillsauth add edercnj/claude-environment x-review-devopsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Review code changes for DevOps best practices: Dockerfile multi-stage builds, container security hardening, CI/CD pipeline configuration, resource limits, health probe configuration, graceful shutdown implementation, and deployment manifests.
Include this skill when container != "none" in the project configuration.
/x-review-devops 42 -- review PR #42 for DevOps patterns/x-review-devops Dockerfile -- review Dockerfile specifically/x-review-devops -- review all current infrastructure changes| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| target | String | No | (current changes) | PR number or file paths to review |
| Pack | Files | Purpose |
|------|-------|---------|
| infrastructure | skills/infrastructure/SKILL.md | Docker, Kubernetes, 12-Factor, graceful shutdown, resource management |
Each item scores 0 (missing), 1 (partial), or 2 (fully compliant).
| # | Item | Score | |---|------|-------| | DEVOPS-01 | Multi-stage build (separate build and runtime stages) | /2 | | DEVOPS-02 | Non-root user in final stage (no running as root) | /2 | | DEVOPS-03 | Minimal base image (distroless, alpine, or slim) | /2 | | DEVOPS-04 | .dockerignore configured (excludes build artifacts, tests, docs) | /2 |
| # | Item | Score | |---|------|-------| | DEVOPS-05 | No secrets in image layers (use runtime env vars or secrets manager) | /2 | | DEVOPS-06 | Image pinned to specific digest or version (no :latest tag) | /2 |
| # | Item | Score | |---|------|-------| | DEVOPS-07 | Resource limits defined (CPU, memory) for container/pod | /2 | | DEVOPS-08 | Health probes configured (liveness, readiness, startup) in deployment manifest | /2 | | DEVOPS-09 | Graceful shutdown implemented (SIGTERM handling, connection draining) | /2 | | DEVOPS-10 | Environment-specific configuration externalized (no hardcoded values) | /2 |
Read the infrastructure knowledge pack:
skills/infrastructure/SKILL.mdDetermine scope: Dockerfile, docker-compose, Kubernetes manifests, CI/CD config.
Check multi-stage build, non-root user, minimal base image, .dockerignore.
Verify no secrets in layers, image version pinning.
Check resource limits, health probes, graceful shutdown, config externalization.
Produce the scored report.
ENGINEER: DevOps
STORY: [story-id or change description]
SCORE: XX/20
STATUS: PASS | FAIL | PARTIAL
### PASSED
- [DEVOPS-XX] [Item description]
### FAILED
- [DEVOPS-XX] [Item description]
- Finding: [file:line] [issue description]
- Fix: [remediation guidance]
### PARTIAL
- [DEVOPS-XX] [Item description]
- Finding: [partial compliance details]
| Scenario | Action | |----------|--------| | No Dockerfile found | Report INFO: no container configuration discovered | | No deployment manifests found | Skip DEVOPS-07, DEVOPS-08 and note N/A | | No CI/CD config found | Warn and proceed with available files |
tools
Documentation automation v2: stack-aware generation from documentation.targets.
development
Generates or updates CI/CD pipelines per project stack with actionlint validation.
tools
Generates ADRs from architecture-plan mini-ADRs with sequential numbering and index update.
development
Formats source code; first step of the pre-commit chain (format -> lint -> compile).