yindia/rootcause/k8s-deploy
Claude Code and agent skill by yindia/rootcause
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install yindia/rootcause/k8s-deploySemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as yindia/rootcause/k8s-deploy.
Skill: k8s-deploy
Safe Kubernetes deployment workflows using RootCause MCP tools only.
This skill enforces one deployment principle: preflight first, then deploy, then verify evidence.
Never run write operations without safety checks.
Scope
Use this skill for:
- rollout-based deployment changes on Deployments
- image updates and rollout restarts
- Helm release installation and upgrades
- replica scaling as part of release cutover
- post-deploy health verification and rollback signals
Do not use this skill for:
- deep incident forensics (use
k8s-incident) - cluster capacity planning (use
k8s-diagnostics) - generalized CRUD exploration (use
k8s-core)
Canonical Pattern
Safe deployment pattern:
- Preflight
- Deploy
- Verify
- Decide continue or roll back
The default path is RollingUpdate for Deployments. For trade-off guidance, read references/STRATEGIES.md.
Required Tool Order
Before every write path:
k8s.safe_mutation_preflight- Deploy tool (
k8s.applyorhelm.installorhelm.upgradeork8s.rolloutork8s.scale) k8s.rolloutwithaction: "status"k8s.events_timelinefor warningsk8s.resource_usagefor saturation signals
Triggers
Activate when user asks for:
- deploy
- release
- rollout
- restart deployment
- helm install
- helm upgrade
- scale replicas
- canary preparation
- blue-green handoff planning
Safety Contract
- Every write call must set
confirm: true - Preflight must be run before every write call
- Restarts must run
k8s.restart_safety_checkfirst - If preflight fails, stop and report blockers
- If rollout status is not healthy, do not chain more writes
Tool Map
| Stage | RootCause Tool | Why | |
|---|---|---|---|
| Preflight | k8s.safe_mutation_preflight | catch policy, quota, disruption, and ownership blockers | |
| Restart risk gate | k8s.restart_safety_check | avoid unsafe rolling restarts | |
| Quality gate | k8s.best_practice | identify resilience gaps before release | |
| Raw manifest deploy | k8s.apply | server-side apply with ownership tracking | |
| Rollout monitor | k8s.rollout | verify progression to healthy state | |
| Scale control | k8s.scale | controlled replica changes | |
| Release diff | helm.diff_release | preview changes before Helm mutation | |
| Helm install | helm.install | first release creation | |
| Helm upgrade | helm.upgrade | release update path | |
| Helm status | helm.status | release health and notes | |
| Timeline verification | k8s.events_timeline | warning sequence after deploy | |
| Runtime pressure | k8s.resource_usage | CPU/memory stress after rollout |
Parameter Examples (RootCause Format)
k8s.safe_mutation_preflight for apply:
k8s.safe_mutation_preflight for scale:
k8s.safe_mutation_preflight for rollout restart:
k8s.restart_safety_check:
k8s.best_practice:
k8s.apply:
k8s.rollout status:
k8s.rollout restart:
k8s.scale:
k8s.events_timeline:
k8s.resource_usage:
helm.diff_release:
helm.install:
helm.upgrade:
helm.status:
Workflow A: Rolling Update Deployments
- Run
k8s.safe_mutation_preflightwithoperation: "apply". - Run
k8s.best_practicefor the target Deployment. - Apply Deployment manifest with
k8s.apply. - Track status with
k8s.rolloutactionstatus. - Validate warnings using
k8s.events_timeline. - Validate resource stability using
k8s.resource_usage. - If unstable, stop further writes and escalate to incident flow.
Workflow B: Helm Upgrade Release
- Run
k8s.safe_mutation_preflightwithoperation: "apply"and rendered manifest if available. - Run
helm.diff_releaseand review expected changes. - Run
helm.upgradewithatomic: trueandwait: true. - Run
helm.status. - Run
k8s.rolloutactionstatusfor key Deployments. - Run
k8s.events_timelinefor release namespace.
Workflow C: Controlled Rollout Restart
- Run
k8s.safe_mutation_preflightwithoperation: "rollout". - Run
k8s.restart_safety_check. - Run
k8s.rolloutactionrestartwithconfirm: true. - Run
k8s.rolloutactionstatus. - Inspect
k8s.events_timelinefor readiness and probe errors.
Workflow D: Release Scaling
- Run
k8s.safe_mutation_preflightwithoperation: "scale". - Run
k8s.scaleto desired replicas. - Run
k8s.rolloutactionstatus. - Run
k8s.resource_usageto verify headroom remains.
Deployment Strategy Tie-In
Use references/STRATEGIES.md before selecting strategy.
Quick defaults:
- RollingUpdate for most stateless APIs
- Recreate only for singleton or incompatible schema transitions
- Blue-Green for strict zero-downtime cutover requirements
- Canary for high-risk releases needing progressive exposure
Deployment Spec Example (RollingUpdate)
Deployment Spec Example (Recreate)
Helm Values Snippet for Safer Rollouts
Verification Checklist
- Preflight pass confirmed
- Mutation confirmation explicitly true
- Rollout status healthy
- No new warning events
- No CPU/memory saturation regression
- Service endpoints remain available
Common Failure Modes
| Symptom | Likely Cause | Primary Check | |
|---|---|---|---|
| rollout never completes | readiness probe mismatch | k8s.events_timeline | |
| pods crash immediately | bad image or missing config | k8s.events_timeline + k8s.resource_usage | |
| helm upgrade times out | hook/job failure | helm.status | |
| scale up blocked | quota exhaustion | k8s.safe_mutation_preflight | |
| restart increases errors | insufficient replica budget | k8s.restart_safety_check |
Escalation Rules
Escalate to k8s-incident when:
- rollout status remains non-ready past progress deadline
- warning events indicate systemic failures across services
- node pressure appears during release and affects unrelated workloads
Escalate to k8s-diagnostics when:
- post-deploy saturation appears without explicit failures
- autoscaling is unstable after deployment
Output Contract
Return these sections in every deployment response:
- preflight findings
- change executed and exact tool call path
- rollout verification evidence
- risk call (continue, hold, or rollback recommendation)
Cross References
- Strategy details:
skills/claude/k8s-deploy/references/STRATEGIES.md - Operational write safety:
skills/claude/k8s-operations/SKILL.md - Incident escalation workflow:
skills/claude/k8s-incident/SKILL.md
End of skill.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/claude/k8s-deploy/SKILL.md
Popularity
- Repository stars
- 43
- Repository forks
- 3
- 7-day trend score
- 19
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/yindia/rootcause/k8s-deploy)