From unicorn-team
Guides containerization, CI/CD pipelines, Kubernetes deployments, observability, and infrastructure management. Includes Dockerfile best practices, pipeline stage design, and kubectl commands.
How this skill is triggered — by the user, by Claude, or both
Slash command
/unicorn-team:domain-devopsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
```bash
docker build -t myapp:v1.0.0 . # Build image
docker build --target production -t myapp:prod . # Multi-stage build
docker run --cpus=0.5 --memory=512m myapp:v1.0.0 # Run with limits
docker history myapp:v1.0.0 # Inspect layers
docker image prune -f # Remove dangling
docker logs -f --tail=100 container_id # Tail logs
:latest).dockerignore to exclude unnecessary files&&)See: references/docker-complete.md for optimization techniques and Compose configurations.
See: references/github-actions.md for complete workflows, matrix builds, caching, and deployment automation.
| Resource | Purpose |
|---|---|
| Deployment | Manages replica sets and rolling updates |
| Service | Stable networking endpoint for pods |
| Ingress | HTTP(S) routing to services |
| ConfigMap | Non-sensitive configuration |
| Secret | Sensitive data (credentials, tokens) |
| HPA | Horizontal Pod Autoscaler |
kubectl apply -f deployment.yaml # Apply manifests
kubectl get pods,svc,ing -n production # Resource status
kubectl logs -f deployment/myapp -n production # View logs
kubectl exec -it pod/myapp-xxx -- /bin/sh # Shell into pod
kubectl port-forward svc/myapp 8080:80 # Port forward
kubectl rollout status deployment/myapp # Rollout status
kubectl rollout undo deployment/myapp # Rollback
kubectl scale deployment/myapp --replicas=5 # Manual scale
kubectl top pods -n production # Resource usage
See: references/kubernetes-manifests.md for manifest examples, Helm charts, and security configurations.
See: references/observability-stack.md for Prometheus, Grafana, Loki, Jaeger, and OpenTelemetry configurations.
| Strategy | How It Works | When to Use | Trade-off |
|---|---|---|---|
| Rolling | Gradually replace old pods | Standard deploys, backward-compatible changes | Slower rollout |
| Blue-Green | Two environments, instant switch | DB migrations, major version updates | 2x infrastructure cost |
| Canary | Route small % to new version, increase if healthy | High-risk changes, need real-traffic validation | Complexity, needs metrics |
All strategies: use readiness probes, have rollback plan, monitor error rate and latency during rollout.
See: references/deployment-strategies.md for rollback procedures and automated canary configurations.
See: references/security-hardening.md for network policies, image scanning automation, and compliance configurations.
kubectl dry-run, helm lint)| Symptom | Commands | Common Causes |
|---|---|---|
| Pod not starting | kubectl describe pod <name>, kubectl logs <name>, kubectl get events --sort-by=.metadata.creationTimestamp | Image pull errors, resource limits, health check failures |
| Service unreachable | kubectl get svc,endpoints <name>, kubectl describe svc <name> | Label mismatch, port misconfiguration, network policies |
| High resource usage | kubectl top pods, kubectl describe node <name> | No resource limits, memory leaks, inefficient code |
| Deployment stuck | kubectl rollout status deployment/<name>, kubectl get events | grep <name> | Failing health checks, insufficient resources, image issues |
references/docker-complete.md - Comprehensive Docker guidereferences/kubernetes-manifests.md - K8s manifests and Helm chartsreferences/github-actions.md - Complete CI/CD workflowsreferences/observability-stack.md - Monitoring and logging setupreferences/deployment-strategies.md - Deployment patterns and rollbacksreferences/security-hardening.md - Security best practicesnpx claudepluginhub aj-geddes/unicorn-team --plugin unicorn-teamGuides Docker multi-stage builds, CI/CD pipelines, deployment strategies, infrastructure as code, and observability setup. Loads when working with Dockerfiles, GitHub Actions, Terraform, or production infrastructure.
Sets up CI/CD pipelines with GitHub Actions, containerizes apps using Docker and docker-compose, deploys to Kubernetes with Helm, and manages IaC with Terraform.
Guides DevOps practices: CI/CD (GitHub Actions/GitLab CI), Docker containerization, Kubernetes orchestration, monitoring (Prometheus/Grafana), IaC (Terraform), logging, SRE, DORA metrics.