debug-node

debug-node is a skill for Claude Code, Codex from mysticaltech/terraform-hcloud-kube-hetzner. It costs 59 tokens per session (3,015 once invoked), scanned D, original, MIT.

A procedure for diagnosing an unreachable Hetzner Cloud server by starting its rescue environment and inspecting its disk from outside the server. Hetzner Cloud is a service for running virtual servers; rescue mode helps when normal SSH access does not work.

In plain words
What is it for?
Use it to inspect a Hetzner node's filesystem, SSH settings, cloud-init state, and logs when the server cannot be reached or setup has stopped.
Why use it?
It lets you investigate SSH failures, stuck provisioning, cloud-init errors, keys, logs, and server configuration without needing a working connection to the installed system.

Skill for Claude CodeCodex

About the project

Kube-Hetzner is an infrastructure project that uses Terraform or OpenTofu to deploy and maintain Kubernetes clusters on Hetzner Cloud. It is for operators who need highly available clusters based on k3s or RKE2, with networking, storage, ingress, certificates, and upgrades configured as part of the deployment.

mysticaltech/terraform-hcloud-kube-hetzner · 3,924 stars · on GitHub

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.

agentmods
npx agentmods add skills/mysticaltech/terraform-hcloud-kube-hetzner/debug-node
Any agent
npx skills add mysticaltech/terraform-hcloud-kube-hetzner --skill debug-node
Clone the repo
git clone --depth 1 https://github.com/mysticaltech/terraform-hcloud-kube-hetzner

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 debug-node

README.md
[![agentmods](https://agentmods.dev/badge/skills/mysticaltech/terraform-hcloud-kube-hetzner/debug-node.svg)](https://agentmods.dev/skills/mysticaltech/terraform-hcloud-kube-hetzner/debug-node)
Your own site
<a href="https://agentmods.dev/skills/mysticaltech/terraform-hcloud-kube-hetzner/debug-node"><img src="https://agentmods.dev/badge/skills/mysticaltech/terraform-hcloud-kube-hetzner/debug-node.svg" alt="Measured on agentmods" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,015 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 2 findings. Scan, not verified.
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 $0.00059 $0.03015
Opus 5 $0.00030 $0.01507
Sonnet 5 $0.00012 $0.00603
Haiku 4.5 $0.00006 $0.00301

Measured 3d ago against content hash 1d9022e03655, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade D, and why

debug-node scanned grade D with 2 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 3d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

chmod 700 /mnt/@/root/.ssh && chmod 600 /mnt/@/root/.ssh/authorized_keys

Reaches for credential fileshighPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

/mnt/@/root/ /root home (/root/.ssh/authorized_keys)
.claude/skills/debug-node/SKILL.md · 286 lines

How it starts

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

Debug Hetzner Node via Rescue Console

Overview

When a Hetzner Cloud server is unreachable (SSH hangs, provisioning stuck, cloud-init failure), this skill uses Hetzner's rescue mode to mount the node's filesystem and inspect everything from the outside — no working SSH required.

Usage

/debug-node

When invoked, ask for:

  1. The server name or IP (can be found from hcloud server list)
  2. What symptom they're seeing (SSH timeout, provisioning hang, etc.)

Prerequisites

  • hcloud CLI installed and configured with a valid token
  • The server must exist in Hetzner Cloud
hcloud server list

Leap Micro Filesystem Model

Leap Micro uses a transactional-update system on btrfs. This is the mental model for everything below.

Layer Writable? Persists reboot? Persists Hetzner snapshot?
/usr (snapshot) No (read-only) Yes Yes
/etc via transactional-update shell Yes (new snapshot) Yes (after reboot) Yes
/etc via direct edit on running system Yes (current snapshot overlay) Yes, unless a pending snapshot changed the same path Current-snapshot content only
/var (separate subvolume) Yes Yes Yes

Rule: Ordinary /etc edits persist across a normal reboot. However, after transactional-update creates a pending snapshot, concurrent edits to the current snapshot's /etc are not merged when the pending snapshot changed the same path. Put image-building and package-coupled /etc changes inside transactional-update --continue shell, or reboot into the pending snapshot before editing.

Packer build phases:

  1. Rescue mode: Write qcow2 to disk, reboot
  2. install_packages: Inside transactional-update — changes persist
  3. clean_up: Volatile overlay — /etc changes are lost in the Hetzner snapshot

Step 1: Identify the Server

hcloud server list -o columns=id,name,status,ipv4 | grep <pattern>

Read the full file on GitHub · 286 lines

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. 3d ago Changed 1d9022e03655
  2. 5d ago First seen · 286 lines · 59 tokens per session scan D de0e7351fc7d

Subscribe to this mod's changes

debug-node is a skill published in the GitHub repository mysticaltech/terraform-hcloud-kube-hetzner (3,924 stars, last pushed 5d ago), licensed MIT. It adds 59 tokens to every session and 3,015 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it D with 2 findings (asks for root, reaches for credential files). 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

k8s-aiops

Use this skill whenever the user needs to operate a Kubernetes cluster — list/inspect pods, deployments, statefulsets, daemonsets, replicasets, jobs, cronjobs, services, ingresses, endpoints, configmaps, secrets (names/keys only), PVCs/PVs/storageclasses, nodes, namespaces, and events; read pod logs; describe…

AIops-tools/K8s-AIops · 308 tokens

k8s-network-policy

Review Kubernetes NetworkPolicies — what is actually permitted to reach a workload, and whether the answer can be trusted. Use when asked what can talk to a pod, whether a namespace is restricted, why traffic is being blocked, or for any security review of cluster network segmentation.

automateyournetwork/netclaw · 60 tokens

k8s-service-path

Trace the Kubernetes service path — Service to selector to pods to EndpointSlices to readiness, plus Ingress routing. Use when a service is getting no traffic, an ingress is not routing, or someone asks why a workload is unreachable inside a cluster.

automateyournetwork/netclaw · 55 tokens

k8s-workload-inventory

List Kubernetes workloads and namespaces — pods with their node, phase and readiness, plus events. Use when asked what is running, where it is running, what is failing, or for a general inventory of a cluster.

automateyournetwork/netclaw · 51 tokens

Cloud Security & Container Hardening

AWS/Azure/GCP security auditing, container and Kubernetes hardening, Infrastructure as Code scanning, and cloud compliance assessment.

Masriyan/Claude-Code-CyberSecurity-Skill · 30 tokens

kubernetes-skill

Production-grade Kubernetes guidance (KubeShark). Activates for any task involving Kubernetes manifests, Helm charts, Kustomize overlays, RBAC, NetworkPolicies, or cluster operations. Enforces a failure-mode workflow with Conditional Reference Retrieval.

ArthurVardevanyan/HomeLab · 53 tokens