/infra:tailscalefrom infra
Inspect and change Davide's tailnet with the tailscale CLI and the Tailscale API: devices, Tailscale Services, serve config, the ACL policy, DNS. Use when a task touches Tailscale, such as a service that isn't reachable, adding a service, reviewing or editing the policy, or finding a device.
Ships in infra. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
There is no official MCP server for administering a tailnet, so this skill
uses the tailscale CLI and the REST API directly.
Read the handbook's areas/homelab.md (section Tailscale) first: the tailnet
name, how services are published, and the 1Password reference of the API
token. How the apps VM publishes its services is homelab-apps/serve.sh and
that repo's README.
On this Mac:
tailscale status # peers, online state, exit nodes
tailscale status --json | jq '.Peer[] | {HostName, Online, TailscaleIPs}'
tailscale ping <host> # direct or relayed, latency
tailscale serve status # what this Mac shares (x serve)
tailscale whois <ip> # which node and user an IP is
tailscale netcheck # NAT, DERP latency
The same commands run on a host over SSH (ssh pve tailscale status).
Through the API (https://api.tailscale.com/api/v2, tailnet - means the
token's own). Read the token into a variable and pass the header on stdin, so
it appears in no argv or environment, and never print it:
tok=$(op read "<reference from areas/homelab.md>")
ts_api() { printf 'Authorization: Bearer %s\n' "$tok" | curl -fsS -H @- "https://api.tailscale.com/api/v2/$1" "${@:2}"; }
ts_api tailnet/-/devices | jq '.devices[] | {hostname, lastSeen, tags}'
ts_api tailnet/-/acl -H 'Accept: application/hujson' # the policy file
ts_api tailnet/-/dns/nameservers
Anything that changes the tailnet (policy, device authorization, tags, keys,
DNS, a host's tailscale serve) needs Davide's go-ahead, and so does any
change on a host (conventions). For the policy:
ETag header (-D -).ts_api tailnet/-/acl/validate -X POST -H 'Content-Type: application/hujson' --data-binary @policy.hujson.-X POST -H 'If-Match: "<etag>"', so a concurrent edit isn't
overwritten.A new Tailscale Service also needs the steps in areas/homelab.md
(autoApprovers, serve.sh).
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub fiocchidavide/dotfiles --plugin infra