nav-troubleshoot

nav-troubleshoot is a skill for Claude Code, Codex from navikt/copilot. It costs 38 tokens per session (2,726 once invoked), scanned A, original, MIT.

A step-by-step troubleshooting guide for common problems on NAV’s Nais platform. It covers application containers, authentication, Kafka messaging, databases, performance, and deployments.

In plain words
What is it for?
Investigating crashed or restarting pods, 401/403 access errors, Kafka consumer lag, database connection failures, slow responses, and failed deployments.
Why use it?
It replaces unstructured help requests with diagnostic steps, commands, explanations of results, and possible fixes. Kafka is a system for passing messages between applications, and a pod is a running application unit in Kubernetes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Investigating crashed or restarting pods, 401/403 access errors, Kafka consumer lag, database connection failures, slow responses, and failed deployments.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/navikt/copilot/nav-troubleshoot
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add navikt/copilot --skill nav-troubleshoot
Clone the repo
git clone --depth 1 https://github.com/navikt/copilot

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for nav-troubleshoot

README.md
[![agentmods](https://agentmods.dev/badge/skills/navikt/copilot/nav-troubleshoot/github.svg)](https://agentmods.dev/skills/navikt/copilot/nav-troubleshoot)
Your own site
<a href="https://agentmods.dev/skills/navikt/copilot/nav-troubleshoot"><img src="https://agentmods.dev/badge/skills/navikt/copilot/nav-troubleshoot/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for nav-troubleshoot

Your own site · 80×15
<a href="https://agentmods.dev/skills/navikt/copilot/nav-troubleshoot"><img src="https://agentmods.dev/badge/skills/navikt/copilot/nav-troubleshoot.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,726 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00038 $0.02726
Opus 5 $0.00019 $0.01363
Sonnet 5 $0.00008 $0.00545
Haiku 4.5 $0.00004 $0.00273

Measured 12d ago against content hash eb50649eeb5b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

nav-troubleshoot scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

kubectl exec -n {namespace} {pod} -- wget -qO- $AZURE_OPENID_CONFIG_JWKS_URI | head -1
skills/nav-troubleshoot/SKILL.md · 292 lines

How it starts

The opening of the file, as written. The whole thing — 292 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Strukturerte diagnostiske trær for vanlige problemer på Nais-plattformen. Erstatter «spør i Slack-kanalen» med guidet feilsøking.

Workflow

  1. Identifiser symptomet — hva feiler?
  2. Følg diagnostisk tre — steg-for-steg med kommandoer
  3. Finn rotårsak — hva outputen betyr
  4. Fiks — konkret løsning

Symptom-oversikt

Symptom Start her
Pod starter ikke / krasjer Pod-problemer
401 Unauthorized / 403 Forbidden Auth-feil
Kafka consumer lag / meldinger prosesseres ikke Kafka-problemer
Database-tilkoblingsfeil Database-problemer
Treg responstid Ytelse
Deploy feiler Deploy-problemer

Se diagnostic-trees.md for detaljerte diagnostiske trær med kommandoer.

Pod-problemer

CrashLoopBackOff

# 1. Sjekk pod-status
kubectl get pods -n {namespace} -l app={app-name}

# 2. Sjekk logs fra forrige krasj
kubectl logs -n {namespace} -l app={app-name} --previous --tail=50

# 3. Sjekk events
kubectl describe pod -n {namespace} {pod-name} | grep -A 20 Events

Vanlige årsaker:

Log-output Årsak Løsning
OOMKilled For lite minne Øk resources.limits.memory
java.lang.OutOfMemoryError Java heap for liten Legg til -Xmx eller øk memory limit
Connection refused: localhost:5432 Database ikke klar Sjekk Cloud SQL-instans, Flyway-migrasjon
AZURE_APP_CLIENT_ID not set Manglende env-var Sjekk at azure.application.enabled: true i Nais
No such file or directory Feil Dockerfile COPY Verifiser at build-artefakt kopieres riktig
Port-mismatch App lytter på feil port Sjekk at spec.port matcher appens port

ImagePullBackOff

# Sjekk image-navn
kubectl describe pod -n {namespace} {pod-name} | grep Image

# Vanlige årsaker:
# - Feil image-tag (bygget mislyktes)
# - GAR-autentisering feilet
# - Image finnes ikke

Read the full file on GitHub · 292 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 292 lines · 38 tokens per session scan A eb50649eeb5b

Subscribe to this mod's changes

nav-troubleshoot is a skill published in the GitHub repository navikt/copilot (54 stars, last pushed yesterday), licensed MIT. It adds 38 tokens to every session and 2,726 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

agents-sdk-typescript-debugging

Use when troubleshooting an agent built with the Microsoft Agents SDK (@microsoft/agents-hosting and related packages). Trigger on any of these symptoms: build or TypeScript errors, crashes on startup, 401 or auth errors on incoming requests, the bot not responding to messages, .env configuration problems, Azure AD…

microsoft/Agents · 125 tokens

agents-sdk-dotnet-debugging

Use when troubleshooting an agent built with the Microsoft Agents SDK (Microsoft.Agents.Hosting.AspNetCore and related packages) in C# / .NET. Trigger on any of these symptoms: build or C# compile errors, crashes on startup, 401 or auth errors on incoming requests, the bot not responding to messages, appsettings.json…

microsoft/Agents · 136 tokens

winui-session-report

Analyze the current or a recent agent session (GitHub Copilot CLI or Claude Code) and generate a diagnostic report. Use only when the user explicitly asks for session feedback, agent debugging, or a review of what happened during a build session. Do not inspect session data automatically.

microsoft/win-dev-skills · 61 tokens

testing-dags

Complex DAG testing workflows with debugging and fixing cycles. Use for multi-step testing requests like "test this dag and fix it if it fails", "test and debug", "run the pipeline and troubleshoot issues". For simple test requests ("test dag", "run dag"), the airflow entrypoint skill handles it directly. This skill…

astronomer/agents · 77 tokens

debugging-dags

Comprehensive DAG failure diagnosis and root-cause analysis with structured investigation and prevention recommendations. Use when deep failure investigation is needed, a DAG fails to import/parse or 'airflow dags list' errors on a file; a task or run is failing and must be diagnosed and fixed; requests like 'why did…

astronomer/agents · 111 tokens

chrome-devtools-mcp

Use Chrome DevTools MCP from .NET agents and .NET-focused repos to inspect, debug, and automate Chrome through an MCP client. USE FOR: the repo needs browser-level debugging for ASP.NET Core, Blazor, WebAssembly, or any .NET app with a web UI; the user wants an MCP server that can inspect console. DO NOT USE FOR: pure…

managedcode/dotnet-skills · 130 tokens