debug-prod
Skill2 starsChanged 19 days agoApache-2.0View on GitHub
Systematic production investigation - pods, logs, metrics, alerts, deployments, Kibana, Slack context. Suggests likely causes from patterns. Use when user says "debug prod", "investigate production issue", or escalated from investigate_alert.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- younesbag/aqltheir own version, first seen Nov 8, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- younesbag/aql★ 8same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository124 other files it gives its agents.
- add-projectSkill
- ansible-configure-vmSkill
- api-smoke-testSkill
- appinterface-checkSkill
- attach-session-to-jiraSkill
- aws-rds-debugSkill
- beerSkill
- bootstrap-all-knowledgeSkill
- bootstrap-knowledgeSkill
- build-persona-styleSkill
- cancel-pipelineSkill
- cert-checkSkill
- check-ci-healthSkill
- check-integration-testsSkill
- check-mr-feedbackSkill
- check-my-prsSkill
- check-secretsSkill
- ci-retrySkill
- cleanup-branchesSkill
- cleanup-stale-executionsSkill
- clone-jira-issueSkill
- close-issueSkill
- close-mrSkill
- cloud-inventorySkill
- coffeeSkill
- compare-optionsSkill
- create-jira-issueSkill
- create-mrSkill
- create-slide-deckSkill
- data-migration-verifySkill
- debug-local-dbSkill
- deploy-to-ephemeralSkill
- dev-workflow-orchestratorSkill
- discovered-work-summarySkill
- edit-slide-deckSkill
- email-digestSkill
- environment-overviewSkill
- explain-codeSkill
- export-presentationSkill
- extend-ephemeralSkill
- find-similar-codeSkill
- gather-contextSkill
- gdrive-researchSkill
- gke-cluster-opsSkill
- hello-worldSkill
- hotfixSkill
- inscope-researchSkill
- investigate-alertSkill
- investigate-service-issuesSkill
- investigate-slack-alertSkill
- jira-hygiene-allSkill
- jira-hygieneSkill
- knowledge-refreshSkill
- konflux-statusSkill
- learn-architectureSkill
- learn-patternSkill
- list-presentationsSkill
- local-build-testSkill
- local-dev-environmentSkill
- manage-local-servicesSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
Use --kubeconfig=~/.kube/config.p for prod.
- Distinctive: line 42
If no namespace: ask user (main vs billing)
- Distinctive: line 67
If alert_name: search app-interface alert YAML for definition
- Distinctive: line 90
Check app-interface CICD config for deployed SHA
- Distinctive: line 91
Check namespace config from app-interface
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Debug Production
Deep investigation of production issues in Automation Analytics. Gathers pod status, logs, metrics, alerts, recent deployments, and suggests likely causes.
Kubeconfig Rules
NEVER copy kubeconfig files.
| File | Environment |
~/.kube/config.s | Stage |
~/.kube/config.p | Production |
Use --kubeconfig=~/.kube/config.p for prod.
Inputs
| Input | Type | Default | Purpose |
namespace | string | - | main or billing (ask if missing) |
alert_name | string | - | Prometheus alert if triggered by alert |
pod_filter | string | - | Filter pods (e.g., fastapi, processor) |
time_range | string | 1h | Log search window (15m, 1h, 6h, 24h) |
issue_key | string | - | Jira key to attach session context |
Persona
Load incident persona (prometheus, alertmanager, kibana, k8s, grafana).
Workflow
1. Bootstrap
persona_load("incident")check_known_issues("kubectl_get_pods")check_known_issues("kibana_search_logs")- If no namespace: ask user (main vs billing)
2. Load Patterns
memory_read("learned/patterns")→ error_patterns
3. Pod Status
kubectl_get_pods(namespace, environment="production")kubectl_top_pods(namespace, environment="production")- Parse: CrashLoopBackOff, OOMKilled, Error, Pending, ImagePullBackOff, high restarts
4. Events
kubectl_get_events(namespace, environment="production")- Filter: warning, error, failed, killed, backoff, unhealthy
5. Pod Logs
- For unhealthy pods (up to 3):
kubectl_describe_pod,kubectl_logs(pod, namespace, tail=500, since=time_range) - Extract error/exception/traceback lines
6. Alerts
alertmanager_alerts(environment="production")- If alert_name: search app-interface alert YAML for definition
7. Kibana Logs
kibana_search_logs(query="error OR exception OR traceback", namespace, environment="production", limit=20)kibana_get_errors(namespace, environment="production")kibana_trace_request— if request_id in summary
8. Slack Context
persona_load("slack")→slack_find_channel,slack_list_messages(team-automation-analytics)persona_load("incident")— restore
9. Metrics
prometheus_query— 5xx error rateprometheus_query_range— error rate trend, memory trendprometheus_pod_health,prometheus_rulesgrafana_dashboard_list,grafana_dashboard_get,prometheus_grafana_link
10. Deployments
kubectl_get_deployments,kubectl_get(resource="replicasets")- Check app-interface CICD config for deployed SHA
- Check namespace config from app-interface
11. Knowledge & Code Search
code_search(query=error_from_logs, project="automation-analytics-backend")knowledge_query(project="automation-analytics-backend", persona="devops", section="patterns.deployment")knowledge_query(..., section="gotchas")
12. Match Patterns
Match pod issues against known_patterns. Add generic suggestions: OOMKilled, CrashLoopBackOff, ImagePullBackOff.
13. Attach to Jira
- If
issue_key:jira_attach_session(issue_key, include_transcript=true)
14. Log & Update
memory_session_log("Debugged production", ...)- Update
state/environments
15. Failure Recovery
- k8s "unauthorized" →
kube_login(cluster="prod") - "no route to host" →
vpn_connect() - Prometheus "connection refused" → VPN/auth
- Kibana 401 → check credentials
learn_tool_fix(...)for patterns
Output
Report: pod status, resource usage, events, error logs, Kibana errors, metrics, deployments, pattern matches, Grafana/Kibana links, suggested Prometheus queries.
Chains To
hotfix,rollout_restart,scale_deploymentsilence_alert,create_jira_issue,learn_pattern
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

