Agent skill

K8s Incident Triage

by initializ in initializ/forge

Read-only Kubernetes incident triage using kubectl. An agent skill from initializ/forge.

Apache-2.0Auto-check passedDevOps & Cloud

Install K8s Incident Triage

skills CLI
$ npx skills add initializ/forge --skill k8s-incident-triage -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install initializ/forge k8s-incident-triage --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/initializ/forge.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/k8s-incident-triage .claude/skills/k8s-incident-triage && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
k8s-incident-triage
GitHub stars
222
Token cost
~1.5k tokens
SKILL.md length
581 words
Files
1
Skills in repo
15
Repo updated
First seen
Licence
Apache-2.0

At a glance

Read-only Kubernetes incident triage using kubectl. An agent skill from initializ/forge.

  • Works in 12 steps: Human Mode (Natural Language) → Automation Mode (Structured JSON) → Preconditions → …
  • Tasks that involve Container orchestration
  • SKILL.md covers Tool Usage, Tool: k8s_triage, Input Modes and Triage Process, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

K8s Incident Triage is an agent skill from initializ/forge. Read-only Kubernetes incident triage using kubectl. Accepts natural language or structured input. Produces root-cause hypotheses, evidence, and next-step commands.

Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in DevOps & Cloud, covering Container orchestration. It works with Kubernetes. The repository describes itself as: Forge is the open-source runtime for Anthropic's Agent Skills standard — built for the agent that runs next to a service, in your environment, on infrastructure you already… The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Container orchestration

Example prompts

  • “/k8s-incident-triage”

Workflow steps

12 steps, taken from the step headings in SKILL.md.

  1. Human Mode (Natural Language)
  2. Automation Mode (Structured JSON)
  3. Preconditions
  4. Fast Health Snapshot
  5. Events Timeline
  6. Describe Pods & Workloads
  7. Node Diagnostics (Optional)
  8. Logs (Optional)
  9. Optional Metrics
  10. Incident Summary
  11. Top Findings
  12. Likely Root Causes (Top 3)

What it can do on your machine

Read from SKILL.md and the folder at commit 3c608d8. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

K8s Incident Triage loads about 1.5k tokens when it runs. Until then it costs about 46 tokens; SKILL.md has 581 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~46
When it runs · the whole SKILL.md, loaded when a task matches
~1.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from initializ/forge at commit 3c608d8, republished under its Apache-2.0 licence (© initializ). 581 words, ~1,454 tokens.

Download SKILL.mdSave it as .claude/skills/k8s-incident-triage/SKILL.md (or your agent's skills folder).
name
k8s-incident-triage
description
Read-only Kubernetes incident triage using kubectl. Accepts natural language or structured input. Produces root-cause hypotheses, evidence, and next-step commands.
category
sre
tags
kubernetes, incident-response, triage, reliability, observability, kubectl, oncall, runbooks

Kubernetes Incident Triage

Performs read-only triage of Kubernetes workloads and namespaces using kubectl.

Supports:

  • Natural language input (human mode)
  • Structured JSON input (automation mode)

This skill NEVER mutates cluster state.


Tool Usage

This skill uses cli_execute with kubectl commands exclusively. NEVER use http_request or web_search to interact with Kubernetes. All cluster operations MUST go through kubectl via the cli_execute tool.


Tool: k8s_triage

Diagnose unhealthy Kubernetes workloads, pods, or namespaces.


Input Modes

1) Human Mode (Natural Language)

Input is a plain string.

Examples:

  • triage payments-prod
  • triage deployment payments-api in payments-prod
  • why are pods pending in checkout-prod?
  • investigate crashloop in payments-prod
  • triage pod api-7c9f6d7f86-abcde in payments-prod
  • check rollout of deployment payments-api in prod

Behavior:

  • Parse namespace, workload, pod, or selector intent.
  • If namespace omitted, use $DEFAULT_NAMESPACE if set.
  • If ambiguity exists, default to namespace-level triage.
  • Never require the user to remember JSON fields.

2) Automation Mode (Structured JSON)

Input JSON schema:

{ "namespace": "payments-prod", "workload_kind": "deployment", "workload_name": "payments-api", "pod_name": null, "label_selector": null, "include_logs": true, "logs_tail_lines": 200, "include_previous_logs": true, "events_limit": 50, "include_node_diagnostics": true, "include_metrics": false, "output_format": "markdown" }

Rules:

  • namespace is required.
  • If pod_name provided → pod-level triage.
  • If workload fields provided → workload-level triage.
  • Else → namespace scan.

Triage Process

Step 0 — Preconditions

Verify cluster access:

kubectl version --client kubectl cluster-info

If RBAC denies access:

  • Continue with allowed operations.
  • Explicitly report denied commands in output.

Step 1 — Fast Health Snapshot

Namespace scope:

kubectl get pods -n <ns> -o wide kubectl get deploy,sts,ds,job,cronjob -n <ns>

Workload scope:

kubectl get <kind> <name> -n <ns> kubectl rollout status <kind>/<name> -n <ns> --timeout=10s

Select pods in states:

  • CrashLoopBackOff
  • ImagePullBackOff
  • ErrImagePull
  • Pending / Unschedulable
  • Error
  • NotReady
  • OOMKilled
  • High restart count

Limit deep triage to $TRIAGE_MAX_PODS (default 5).


Step 2 — Events Timeline

kubectl get events -n <ns> --sort-by=.lastTimestamp | tail -n <events_limit>

Look for:

  • FailedScheduling
  • FailedMount
  • Unhealthy (probe failures)
  • Back-off pulling image
  • Evicted
  • Node pressure signals

Step 3 — Describe Pods & Workloads

For each selected pod:

kubectl describe pod <pod> -n <ns>

Capture:

  • Container state and reason
  • Restart count
  • Last termination reason
  • Probe failures
  • Volume mount issues
  • Node assignment
  • Taints / tolerations
  • Affinity constraints

If workload-level triage:

kubectl describe <kind> <name> -n <ns>


Show full SKILL.md (235 more words)Show less
Step 4 — Node Diagnostics (Optional)

kubectl get nodes -o wide kubectl describe node <node>

Check for:

  • NotReady
  • MemoryPressure
  • DiskPressure
  • PIDPressure
  • Evictions

Step 5 — Logs (Optional)

kubectl logs <pod> -n <ns> --all-containers --tail=<N>

If restart loops and include_previous_logs=true:

kubectl logs <pod> -n <ns> --previous --all-containers --tail=<N>

Rules:

  • Prefer previous logs for CrashLoopBackOff.
  • Redact obvious sensitive patterns.
  • Never print Secret values.

Step 6 — Optional Metrics

If enabled:

kubectl top pods -n <ns> kubectl top node

Gracefully skip if metrics-server is unavailable.


Detection Heuristics

Classify detected issues into:

  • CrashLoop / Application Crash
  • OOMKilled / Resource Limits
  • Image Pull Failure
  • Scheduling Constraint
  • Probe Failure
  • PVC / Volume Failure
  • Node Pressure / Eviction
  • Rollout Stuck
  • Unknown / Escalation Needed

For each issue provide:

  • Hypothesis
  • Supporting evidence
  • Confidence score (0.0–1.0)
  • Recommended next commands

Output Structure

1) Incident Summary
  • Namespace
  • Scope (pod/workload/namespace)
  • Affected resources count
  • Timestamp
2) Top Findings

Concise bullet summary.

3) Likely Root Causes (Top 3)

For each:

  • Description
  • Evidence excerpt
  • Confidence
  • Recommended actions
4) Next Commands

Copy-paste kubectl commands.

5) Evidence Appendix
  • Events (recent)
  • Describe excerpts
  • Log excerpts

Safety Constraints

This skill MUST:

  • Perform read-only kubectl operations only.
  • Never execute:
    • apply
    • patch
    • delete
    • exec
    • port-forward
    • scale
    • rollout restart
  • Never print Secret values.
  • Avoid dumping full environment variables.

Autonomous Compatibility

This skill is designed to be invoked by:

  • k8s_alert_handler (alert-triggered triage)
  • k8s_patrol (scheduled patrol scans)
  • Humans via natural language CLI

It must:

  • Be idempotent
  • Produce deterministic fingerprints
  • Avoid excessive cluster load
  • Limit deep triage scope

© initializ, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/k8s-incident-triage of initializ/forge.

Open the folder on GitHubat commit 3c608d8

Compare with similar skills

K8s Incident Triage next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

K8s Incident Triage compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
K8s Incident Triage this skillinitializ/forge222—~1.5kAutomated safety check: PassApache-2.0
Kubeshark Installerkubeshark/kubeshark12k—~3.6kAutomated safety check: NotesApache-2.0
KubeSphere Multi-Tenant Managementkubesphere/kubesphere17k—~3.1kAutomated safety check: PassCustom licence
Sim Helmsimstudioai/sim30k—~2.2kAutomated safety check: PassApache-2.0
Helm Chart ScaffoldingCybereason-Public/owLSM28013 repos~381Automated safety check: PassGPL-2.0
Kubeshark KFL2 Filter Referencekubeshark/kubeshark12k—~3.6kAutomated safety check: PassApache-2.0

Similar skills

  • Kubeshark Installer

    kubeshark/kubeshark

    Installs and configures Kubeshark on a Kubernetes cluster, choosing between the quick CLI path and a Helm install with custom values.

    12k GitHub stars~3.6k tokensUpdated yesterday
    DevOps & CloudAuto-check: notes
  • Creates and queries KubeSphere users, workspaces and projects and assigns built-in roles, defaulting to least privilege and never deleting anything.

    17k GitHub stars~3.1k tokensUpdated 2 mo ago
    DevOps & CloudAuto-check passed
  • Sim Helm

    simstudioai/sim

    Install, upgrade, and operate the Sim Helm chart on Kubernetes.

    30k GitHub stars~2.2k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Helm Chart Scaffolding

    Cybereason-Public/owLSM

    Comprehensive guidance for creating, organizing, and managing Helm charts for packaging and deploying Kubernetes applications.

    280 GitHub starsUsed in 13 repos~381 tokens
    DevOps & CloudAuto-check passed
  • Syntax reference for KFL2, the CEL-based display filter language used to search Kubernetes network traffic captured by Kubeshark, loaded before any filter is written.

    12k GitHub stars~3.6k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • KubeSphere ServiceMesh Manager

    kubesphere/kubesphere

    Installs, checks and troubleshoots the KubeSphere ServiceMesh extension (Istio, Kiali, Jaeger), including grayscale release, sidecar injection, topology and tracing issues.

    17k GitHub stars~2.4k tokensUpdated 2 mo ago
    DevOps & CloudAuto-check passed

More from initializ/forge

All 15 skills in this repo
  • Code Plan

    initializ/forge

    Turn a task description and repository into a structured implementation plan (files to create, files to modify, tests to add, risks).

    222 GitHub stars~1.9k tokensUpdated 2 days ago
    Auto-check passed
  • Code Review

    initializ/forge

    AI-powered code review for diffs and individual files using LLM analysis

    222 GitHub stars~3k tokensUpdated 2 days ago
    Auto-check passed
  • Codegen HTML

    initializ/forge

    Scaffold and iterate on standalone Preact + HTM applications with zero build dependencies

    222 GitHub stars~1.5k tokensUpdated 2 days ago
    Auto-check passed
  • Code Agent

    initializ/forge

    General-purpose coding agent that reads, writes, and edits code, and searches codebases.

    222 GitHub stars~2.5k tokensUpdated 2 days ago
    Auto-check: warnings
  • Codegen React

    initializ/forge

    Scaffold and iterate on Vite + React applications. An agent skill from initializ/forge.

    222 GitHub stars~1.8k tokensUpdated 2 days ago
    Auto-check passed
  • K8s Cost Visibility

    initializ/forge

    Estimate Kubernetes infrastructure costs by querying cluster node, pod, PVC/PV, and LoadBalancer data, applying cloud pricing models, and producing cost attribution reports with storage and…

    222 GitHub stars~2.7k tokensUpdated 2 days ago
    Auto-check passed

Works with

Categories

Questions about K8s Incident Triage

What does K8s Incident Triage do?

Read-only Kubernetes incident triage using kubectl. An agent skill from initializ/forge. K8s Incident Triage is an agent skill from initializ/forge. Read-only Kubernetes incident triage using kubectl.

When should I use K8s Incident Triage?

K8s Incident Triage fits situations like: tasks that involve Container orchestration.

How do I install K8s Incident Triage in Claude Code?

Run `npx skills add initializ/forge --skill k8s-incident-triage -a claude-code`. Or copy the skill folder (skills/k8s-incident-triage in initializ/forge) into .claude/skills/k8s-incident-triage in your project. Claude Code loads it when a task matches its description.

How do I install K8s Incident Triage in Codex?

Run `npx skills add initializ/forge --skill k8s-incident-triage -a codex`. Or copy the skill folder (skills/k8s-incident-triage in initializ/forge) into .agents/skills/k8s-incident-triage in your project. Codex loads it when a task matches its description.

Can I use K8s Incident Triage in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add initializ/forge --skill k8s-incident-triage -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/k8s-incident-triage, .gemini/skills/k8s-incident-triage, .github/skills/k8s-incident-triage and .opencode/skills/k8s-incident-triage in your project.

What does K8s Incident Triage need to run?

SKILL.md names no scripts, command-line tools or credentials: K8s Incident Triage is instructions for the agent only.

Does K8s Incident Triage access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is K8s Incident Triage safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does K8s Incident Triage use?

K8s Incident Triage is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does K8s Incident Triage use?

About 1.5k tokens (SKILL.md is roughly 5.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to K8s Incident Triage?

Skills that share tags, products or a category with K8s Incident Triage: Kubeshark Installer (kubeshark/kubeshark, 12k stars), KubeSphere Multi-Tenant Management (kubesphere/kubesphere, 17k stars), Sim Helm (simstudioai/sim, 30k stars) and Helm Chart Scaffolding (Cybereason-Public/owLSM, 280 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains K8s Incident Triage?

initializ (a GitHub organization) maintains it in initializ/forge, which has 222 GitHub stars. The repository holds 15 skills in this directory. The repository was last updated on October 8, 2026.

Source: initializ/forge on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.