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.
npx skills add magnus919/agent-skills --skill headscale-backupgit clone --depth 1 https://github.com/magnus919/agent-skillsWrote 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.
[](https://agentmods.dev/skills/magnus919/agent-skills/headscale-backup)<a href="https://agentmods.dev/skills/magnus919/agent-skills/headscale-backup"><img src="https://agentmods.dev/badge/skills/magnus919/agent-skills/headscale-backup/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.
<a href="https://agentmods.dev/skills/magnus919/agent-skills/headscale-backup"><img src="https://agentmods.dev/badge/skills/magnus919/agent-skills/headscale-backup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00049 | $0.01257 |
| Opus 5.5 | $0.00020 | $0.00503 |
| Sonnet 5.5 | $0.00010 | $0.00251 |
| Haiku 4.5 | $0.00005 | $0.00126 |
Grade A, and why
headscale-backup 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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 114 lines — stays where its author put it; the contents beside it link to each section on GitHub.
headscale-backup
Overview
Headscale state is stored in SQLite (its database), config.yaml, policy.json, and TLS certificates. Regular backups are critical before upgrades, as database corruption or misconfiguration can result in complete loss of node registration and routing state. This skill provides three scripts covering the full lifecycle: backup, restore, and migration.
Before creating an archive or restoring files, confirm the target, scope, and rollback path.
Read-only discovery and --dry-run previews may proceed without confirmation.
Backup Contents
A complete backup tarball includes:
- SQLite DB — Full node state, users, routes, pre-auth keys, API keys
config.yaml— Headscale server configurationpolicy.json— ACL policy file (if present)- Certs and keys — TLS certificate and key, Headscale node private key, and configured DERP server private key
- DERP map — DERP configuration file (if customized)
Backup Methods
sqlite3 .backup(recommended) — Safe for live databases; uses SQLite online backup API. This is whaths-backup.shuses.- File copy (
cp) — Requires stopping headscale first to avoid WAL corruption.
hs-backup.sh reads the database path and optional policy, TLS, node-key, DERP key, and DERP map paths
from config.yaml. It supports database.sqlite.path, database.path, and the legacy
database_path setting. PostgreSQL configurations are rejected. TLS certificates and keys
are included only when configured explicitly (or found in the configured standard
/etc/headscale locations); the helper does not scan unrelated Let's Encrypt certificates.
The resulting archive contains a manifest with SHA-256 checksums, file modes, and restore
destinations. Restore verifies every declared asset before it asks to overwrite files. It
preserves the recorded destinations by default. Root overrides that would move any asset
are rejected because the config or service may still point at archived paths. A migration
to different paths requires a separate planned config update and validation before restore.
What ships with it
7 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.
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.
- 1mo ago Changed · +32 lines · -1 tokens per session 55dbb046cb1a
- 2mo ago First seen · 82 lines · 50 tokens per session scan A 5df6d26f24f6
headscale-backup is a skill published in the GitHub repository magnus919/agent-skills (166 stars, last pushed 2d ago), licensed MIT. It adds 49 tokens to every session and 1,257 once invoked, about $0.0002 per session on Opus 5.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-09-03.
headscale-backup compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| headscale-backupmagnus919/agent-skills | Skill | 166 | 2d ago | MIT | A | 49 | Claude Code |
| routineSnowflake-Labs/cocoplus | Skill | 727 | today | MIT | A | 44 | Claude Code, Codex |
| tensorrt-llmNousResearch/hermes-agent | Skill | 261k | today | MIT | A | 18 | Claude Code, Codex |
| stripe-projectsNousResearch/hermes-agent | Skill | 261k | today | MIT | A | 15 | Claude Code, Codex |
| langbot-deploylangbot-app/LangBot | Skill | 19k | today | Apache-2.0 | B | 104 | Claude Code, Codex |
| lambda-labsNousResearch/hermes-agent | Skill | 261k | today | MIT | C | 13 | Claude Code, Codex |
| remote-compute-modalUnicomAI/wanwu | Skill | 2.4k | yesterday | Apache-2.0 | A | 65 | Claude Code, Codex |