production-debugging_skill

This skill helps you debug production issues in Kubernetes by guiding systematic log analysis, tracing, and bug-pattern fixes.
  • Python

19

GitHub Stars

1

Bundled Files

2 months ago

Catalog Refreshed

4 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill mjunaidca/mjs-agent-skills --skill production-debugging

  • skill.md7.5 KB

Overview

This skill helps debug production issues in Kubernetes microservice environments. It guides systematic log analysis, end-to-end request tracing, and identification of common bug patterns like schema mismatches, wrong endpoints, timezone errors, and async database issues. Use it to quickly narrow root causes and verify fixes before redeploying.

How this skill works

The skill inspects pod and sidecar logs, pod status, events, and traces requests across services using kubectl and in-cluster HTTP checks. It provides targeted commands to shell into pods, query Dapr subscriptions, publish test events, and compare observed errors to known patterns. It also offers a reproducible checklist and remediation suggestions to validate fixes and prevent regressions.

When to use it

  • Investigating HTTP 500 errors in production
  • Feature works locally but fails in production
  • Tracing requests across microservices and sidecars
  • Finding silent failures with no obvious errors
  • Diagnosing service-to-service integration or Dapr pub/sub issues

Best practices

  • Reproduce and document the exact symptom before changing production state
  • Start from the failing service and expand outward tracing the full request path
  • Check both main app and sidecar logs (e.g., daprd) and pod events for lifecycle issues
  • Use correlation IDs and structured logs to follow requests across services
  • Verify fixes locally or in a staging cluster before deploying to production

Example use cases

  • User-facing page returns 500; trace frontend → API → downstream service to locate the failing component
  • Scheduled jobs firing at wrong time; inspect logs and compare stored timestamps to UTC to find timezone handling bugs
  • Missing notifications: follow API → pub/sub → notification service and inspect raw message format for CloudEvent wrapping issues
  • Intermittent AttributeError after a deploy: check model/schema differences and confirm deployed code matches migrations
  • Dapr integration failing: check daprd logs, subscriptions, and publish a test event from inside the cluster

FAQ

Start with kubectl get pods -n <ns> to check health, then kubectl logs for the primary container and any sidecars (e.g., daprd). Use kubectl describe pod and kubectl get events to spot restarts or scheduling problems.

How do I trace a request across microservices reliably?

Add or use existing correlation IDs in logs, then tail logs for each service in order (frontend, API, sidecar, downstream). Grep for the correlation ID or endpoint name to reconstruct the path.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational