agentleFS
dbrennanddbrennand/skills/hugo-tailscale-preview/SKILL.md

hugo-tailscale-preview

Skill0 starsChanged 3 months agoMITView on GitHub

Serve Hugo drafts through a Tailscale-only preview server.

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
  1. Distinctive:

    Use when a user wants to access a local Hugo site or draft from another device over Tailscale.

    line 12
  2. Distinctive:

    Run Hugo as a background process, binding directly to the host's Tailscale IPv4 address and including drafts:

    line 24
  3. Very specific:

    Get the Tailscale address: Run tailscale ip -4 and use the returned IPv4 address for <tailscale-ip>.

    line 40
  4. Very specific:

    Start Hugo: Run the command above as a background process, replacing <site>, <tailscale-ip>, and the port with the relevant values.

    line 41
  5. Distinctive:

    Keep the server running: Leave the background process running while the user reviews the site.

    line 43
  6. Very specific:

    Do not bind to 0.0.0.0 when the goal is Tailscale-only access.

    line 48

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 \
  --buildDrafts

The --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

  1. Get the Tailscale address. Run tailscale ip -4 and use the returned IPv4 address for <tailscale-ip>.
  2. Start Hugo. Run the command above as a background process, replacing <site>, <tailscale-ip>, and the port with the relevant values. Keep --buildDrafts enabled so draft posts are included.
  3. Share the access URL. Report the exact URL, including the port, and explain that the reviewing device must be connected to the same tailnet.
  4. 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.0 when the goal is Tailscale-only access. Do not substitute 127.0.0.1, because another device cannot reach a loopback address on the host.
  • Pair a port-bearing --baseURL with --appendPort=false to avoid duplicate port rewriting.
  • A post with draft: true will not appear unless Hugo runs with --buildDrafts.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.