From kube-ai-devkit
Investigate staging environment issues using ArgoCD data, pod logs, and K8s events
How this skill is triggered — by the user, by Claude, or both
Slash command
/kube-ai-devkit:diagnose-stagingThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Investigate problems in the staging environment using ArgoCD application data, workload logs, and Kubernetes events.
Investigate problems in the staging environment using ArgoCD application data, workload logs, and Kubernetes events.
{application} — ArgoCD application name to investigate (required)Call get_application to capture:
Call get_application_managed_resources to find unhealthy resources:
health.status != HealthyCall get_application_events for application-level events.
For each unhealthy resource found in Phase 2, call get_resource_events to get K8s-level events (ImagePullBackOff, CrashLoopBackOff, FailedScheduling, etc.)
For unhealthy Deployments/StatefulSets, call get_application_workload_logs:
# Check recent commits that might have caused the issue
git log --oneline -20
# Check the deployed revision vs HEAD
git log --oneline HEAD...{deployed-revision} 2>/dev/null || true
Apply 5-Whys:
## Staging Diagnosis: {application}
**Health:** {status} | **Sync:** {status}
**Revision:** {deployed} (target: {target})
### Root Cause
{One sentence}
### Evidence
| Source | Finding | Relevance |
|--------|---------|-----------|
| App status | {finding} | High |
| Pod events | {finding} | High |
| Workload logs | {finding} | Medium |
| Git history | {finding} | Low |
### Failing Resources
- {kind}/{name}: {status} — {reason}
### Fix
{Specific action: rollback to revision X, fix config Y, increase resource Z}
### Timeline
1. {time} — {what happened}
2. {time} — {what happened}
/staging-status — Quick health overview/drift-check — Check if drift caused the issue/compare-environments — Compare with local environmentGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub makigjuro/kube-ai-devkit --plugin kube-ai-devkit