terraform-hcloud-kube-hetzner: Skill for Claude Code

.claude/skills/debug-node/SKILL.md

debug-node is a skill for Claude Code 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 Code

Written for Claude Code: installed under .claude/.

This is mysticaltech/terraform-hcloud-kube-hetzner's own configuration. It tells Claude Code how to work on terraform-hcloud-kube-hetzner itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything terraform-hcloud-kube-hetzner configures →

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,941 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to mysticaltech/terraform-hcloud-kube-hetzner. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/mysticaltech/terraform-hcloud-kube-hetzner/master/.claude/skills/debug-node/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/mysticaltech/terraform-hcloud-kube-hetzner

Made for: Claude Code.

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/github.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/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 debug-node

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
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.00059 $0.03015
Opus 5.5 $0.00024 $0.01206
Sonnet 5.5 $0.00012 $0.00603
Haiku 4.5 $0.00006 $0.00301

Measured 2mo ago against content hash 1d9022e03655, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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. 2mo ago Changed 1d9022e03655
  2. 2mo 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,941 stars, last pushed 7d ago), licensed MIT. It adds 59 tokens to every session and 3,015 once invoked, about $0.0002 per session on Opus 5.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

debug-node compared with skills from other repositories

debug-node next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
debug-nodemysticaltech/terraform-hcloud-kube-hetznerSkill3.9k7d agoMITD59Claude Code
k8s-service-pathautomateyournetwork/netclawSkill715yesterdayApache-2.0A55Claude Code
k8s-workload-inventoryautomateyournetwork/netclawSkill715yesterdayApache-2.0A51Claude Code
kubernetesbobmatnyc/claude-mpm-skillsSkill783mo agoMITA29Claude Code
k8s-aiopsAIops-tools/K8s-AIopsSkill07d agoMITD308Claude Code
troubleshoot-sandboxopensandbox-group/OpenSandboxSkill16ktodayApache-2.0A48Claude Code
network-rcakubeshark/kubesharkSkill12k5d agoApache-2.0A163Claude Code