skills/domain-devops/SKILL.md
Guides the user through containerization, CI/CD pipelines, Kubernetes deployments, observability, and infrastructure management. ALWAYS trigger on "dockerize", "CI/CD", "kubernetes", "deploy", "monitoring", "logging", "metrics", "helm", "infrastructure", "observability", "rollback", "scaling", "pipeline", "container", "k8s", "GitOps", "Dockerfile", "health check", "troubleshoot deployment". Use when containerizing applications, building pipelines, deploying services, setting up monitoring, or debugging infrastructure issues. Different from the DevOps agent (agents/devops.md) which handles orchestration and runbook execution rather than pattern guidance.
npx skillsauth add aj-geddes/unicorn-team domain-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.
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 practicestools
Coordinates the 10X Unicorn agent team with cost-aware model tiering, MCP-aware routing, and workflow fan-out. ALWAYS trigger on "implement", "build", "create", "design system", "deploy", "learn new language", "refactor", "fix bug", "set up CI", "code review", "how long will this take", "estimate", "architecture", "add feature", "write code", "debug", "review PR", "set up pipeline", "migrate", "optimize". Use for any multi-step task, implementation request, architecture decision, or quality enforcement. Different from individual agent skills which handle execution -- this skill handles coordination, routing, model selection, and quality gates.
development
Guides the user through test-first development and test strategy decisions. ALWAYS trigger on "write tests", "TDD", "test coverage", "mock", "test fails", "flaky test", "how to test", "unit test", "integration test", "e2e test", "test structure", "what to test", "test organization", "coverage report", "testing strategy", "arrange act assert". Use when writing new tests, choosing test types, setting up mocking, debugging flaky tests, improving coverage, or designing testable code. Different from qa-security agent which focuses on code review and security audits rather than test authoring.
development
Guides deliberate management of technical debt: recognition, tracking, prioritization, and paydown. ALWAYS trigger on "technical debt", "code shortcut", "pay down debt", "debt tracking", "just for now", "temporary hack", "hardcoded value", "copy-paste code", "missing tests", "TODO cleanup", "refactor plan", "debt priority", "interest cost", "boy scout rule", "code quality backlog". Use when taking a shortcut, discovering suboptimal code, planning debt paydown, or quantifying ongoing cost of compromises.
development
Guides the user through systematic pre-commit quality verification. ALWAYS trigger on "review my code", "check my work", "before commit", "self-review", "quality check", "am I ready to commit", "pre-commit review", "code quality", "verify my changes", "sanity check", "review before merge", "is this ready". Use before any commit, merge, or code review submission.