一键导入
logs
View and troubleshoot service logs and pod status
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
View and troubleshoot service logs and pod status
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Deploy services to the dev EKS namespace via ArgoCD (or kubectl for bootstrap)
Deploy services to the prod EKS namespace via ArgoCD (manual sync) with safety checks
Review Terraform code for security, best practices, and conventions
Roll back a failed deployment to the previous revision
Run Checkov security scan on Terraform modules
Run health checks against deployed services
| name | logs |
| description | View and troubleshoot service logs and pod status |
| disable-model-invocation | true |
| argument-hint | [service] [env] |
View logs and debug information for a service in the specified environment.
service — Service name (e.g., config-server, api-gateway, customers-service)env — Target environment: dev or prod (default: dev)Set the namespace based on environment:
dev → petclinic-devprod → petclinic-prodShow pod status for the service:
kubectl get pods -l app.kubernetes.io/name={service} -n petclinic-{env} -o wide
Show recent events for the pod:
kubectl describe pod -l app.kubernetes.io/name={service} -n petclinic-{env} | tail -30
Show logs (last 100 lines):
kubectl logs -l app.kubernetes.io/name={service} -n petclinic-{env} --tail=100
If the pod is in CrashLoopBackOff, show previous container logs:
kubectl logs -l app.kubernetes.io/name={service} -n petclinic-{env} --previous --tail=50
Show resource usage if metrics-server is available:
kubectl top pod -l app.kubernetes.io/name={service} -n petclinic-{env} 2>/dev/null || echo "Metrics server not available"
Present a summary:
## Logs: {service} ({env})
Pod Status: {Running/CrashLoopBackOff/Pending/etc.}
Restarts: {count}
Uptime: {age}
### Recent Events
{key events}
### Log Highlights
{errors/warnings from logs}
### Suggested Actions
{troubleshooting suggestions based on findings}