hugo-tailscale-preview
Skill0 starsChanged 3 months agoMITView on GitHub
Serve Hugo drafts through a Tailscale-only preview server.
In this repository4 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- conventional-commitSkill
- obsidian-headless-syncSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Use when a user wants to access a local Hugo site or draft from another device over Tailscale.
- Distinctive: line 24
Run Hugo as a background process, binding directly to the host's Tailscale IPv4 address and including drafts:
- Very specific: line 40
Get the Tailscale address: Run tailscale ip -4 and use the returned IPv4 address for <tailscale-ip>.
- Very specific: line 41
Start Hugo: Run the command above as a background process, replacing <site>, <tailscale-ip>, and the port with the relevant values.
- Distinctive: line 43
Keep the server running: Leave the background process running while the user reviews the site.
- Very specific: line 48
Do not bind to 0.0.0.0 when the goal is Tailscale-only access.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Hugo Tailscale preview
Serve an existing Hugo site from one Tailscale address so another device on the same tailnet can review it privately. This skill covers draft previews.
When to use
Use when a user wants to access a local Hugo site or draft from another device over Tailscale.
Prerequisites
- Hugo is installed and available on
PATH. - The Hugo site path is known.
- The host is connected to the user's Tailscale network.
- The host's Tailscale IPv4 address is known or can be retrieved with
tailscale ip -4. - The reviewing device is connected to the same tailnet.
How to run
Run Hugo as a background process, binding directly to the host's Tailscale IPv4 address and including drafts:
hugo server \
--source <site> \
--bind <tailscale-ip> \
--port 1313 \
--baseURL http://<tailscale-ip>:1313 \
--appendPort=false \
--buildDraftsThe --buildDrafts flag includes posts with draft: true. If port 1313 is occupied, choose another port and use the same port in both --port and --baseURL.
Procedure
- Get the Tailscale address. Run
tailscale ip -4and use the returned IPv4 address for<tailscale-ip>. - Start Hugo. Run the command above as a background process, replacing
<site>,<tailscale-ip>, and the port with the relevant values. Keep--buildDraftsenabled so draft posts are included. - Share the access URL. Report the exact URL, including the port, and explain that the reviewing device must be connected to the same tailnet.
- Keep the server running. Leave the background process running while the user reviews the site. Stop it only when the user asks or when the preview is no longer needed.
Pitfalls
- Tailscale is a VPN. Binding to a Tailscale address provides private tailnet access.
- Do not bind to
0.0.0.0when the goal is Tailscale-only access. Do not substitute127.0.0.1, because another device cannot reach a loopback address on the host. - Pair a port-bearing
--baseURLwith--appendPort=falseto avoid duplicate port rewriting. - A post with
draft: truewill not appear unless Hugo runs with--buildDrafts.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

