nais

nais is a skill for Claude Code, Codex from navikt/copilot. It costs 26 tokens per session (1,513 once invoked), scanned A, original, MIT.

A guide for deploying and troubleshooting applications on Nais, Nav's Kubernetes-based platform running on Google Cloud. It covers deployment settings, cloud resources, application access, and the lifecycle of running containers.

In plain words
What is it for?
Use it to create or change Nais manifests, add PostgreSQL, Kafka, or storage resources, configure access and incoming traffic, inspect logs and events, restart deployments, or connect to a running service locally.
Why use it?
It helps diagnose applications that fail to start, crash, cannot connect to resources, or shut down incorrectly. It also reduces the guesswork involved in configuring deployment files.

Skill for Claude CodeCodex

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

Good fit Use it to create or change Nais manifests, add PostgreSQL, Kafka, or storage resources, configure access and incoming traffic, inspect logs and events, restart deployments, or connect to a running service locally.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/navikt/copilot/nais
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 nais
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 nais

README.md
[![agentmods](https://agentmods.dev/badge/skills/navikt/copilot/nais/github.svg)](https://agentmods.dev/skills/navikt/copilot/nais)
Your own site
<a href="https://agentmods.dev/skills/navikt/copilot/nais"><img src="https://agentmods.dev/badge/skills/navikt/copilot/nais/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 nais

Your own site · 80×15
<a href="https://agentmods.dev/skills/navikt/copilot/nais"><img src="https://agentmods.dev/badge/skills/navikt/copilot/nais.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,513 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00026 $0.01513
Opus 5 $0.00013 $0.00757
Sonnet 5 $0.00005 $0.00303
Haiku 4.5 $0.00003 $0.00151

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

Security

Grade A, and why

nais scanned grade A with 0 findings 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 4d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/nais/SKILL.md · 243 lines

How it starts

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

Nais Platform Skill

Patterns and procedures for deploying, configuring, and troubleshooting applications on Nais (Kubernetes on GCP).

When to Use

  • Creating or modifying Nais manifests
  • Adding GCP resources (PostgreSQL, Kafka, buckets)
  • Configuring access policies and ingress
  • Troubleshooting pod startup failures or crashes
  • Understanding pod lifecycle and graceful shutdown

Commands

# Check pod status
kubectl get pods -n <namespace> -l app=<app-name>

# View pod logs (add -f to follow)
kubectl logs -n <namespace> -l app=<app-name> --tail=100 -f

# Describe pod (events, errors)
kubectl describe pod -n <namespace> <pod-name>

# View Nais app status
kubectl get app -n <namespace> <app-name> -o yaml

# Restart deployment (rolling)
kubectl rollout restart deployment/<app-name> -n <namespace>

# Port-forward for local debugging
kubectl port-forward -n <namespace> svc/<app-name> 8080:80

Nais Manifest Structure

Every Nais application requires:

apiVersion: nais.io/v1alpha1
kind: Application
metadata:
  name: app-name
  namespace: team-namespace
  labels:
    team: team-namespace
spec:
  image: {{ image }} # Replaced by CI/CD
  port: 8080

  # Observability (required)
  prometheus:
    enabled: true
    path: /metrics

  # Health checks (required)
  liveness:
    path: /isalive
    initialDelay: 5
  readiness:
    path: /isready
    initialDelay: 5

  # Resources (required)
  resources:
    requests:
      cpu: 50m
      memory: 256Mi
    limits:
      memory: 512Mi

Pod Lifecycle and Graceful Shutdown

When Kubernetes terminates a pod on NAIS:

  1. K8s notifies load balancer and pod simultaneously — LB starts draining connections
  2. NAIS preStop hook runs sleep 5 — gives LB time to stop routing new traffic
  3. App receives SIGTERM — no new requests arrive from LB
  4. App drains in-flight requests and exits
  5. After terminationGracePeriodSeconds (default 30s): SIGKILL

Key insight: Readiness probes are NOT involved in shutdown. Your app just needs to handle SIGTERM, finish in-flight requests, and exit cleanly.

Read the full file on GitHub · 243 lines

Files

What ships with it

1 file 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. 4d ago Changed 4c18e5e288ec
  2. 9d ago First seen · 243 lines · 26 tokens per session scan A 67a61515e9bd

Subscribe to this mod's changes

nais is a skill published in the GitHub repository navikt/copilot (54 stars, last pushed today), licensed MIT. It adds 26 tokens to every session and 1,513 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.