HU

Helper utility for running the Hugo static site generator and testing local changes.

Install

mkdir -p .claude/skills/hugo-runner && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/4958" && unzip -o skill.zip -d .claude/skills/hugo-runner && rm skill.zip

Installs to .claude/skills/hugo-runner

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Guide for running Hugo static site generator. This skill should be used when users want to test changes.
104 chars✓ has a “when” trigger
Beginner

Key capabilities

  • Manages Hugo versioning per directory
  • Launches local dev server with custom port mapping
  • Monitors build warnings and error logs
  • Previews site content in real-time during development

How it works

Wraps Hugo CLI commands with environment-specific context and version switching logic.

Inputs & outputs

You give it
Project directory and server port preference
You get back
Running local dev server instance URL

When to use hugo-runner

  • Start local Hugo dev server
  • Preview site content changes
  • Verify build configurations
  • Switch Hugo versions

About this skill

Hugo

Overview

Hugo converts source files from content formats to output formats. In production it only creates files. For development it has an integrated webserver.

The conversion from content to output is controlled by configuration and template files.

The docs are at https://gohugo.io/documentation/

Preparation Before Run

  • If a specific Hugo version is required use hvm to install it in the working directory; this also applies to version keywords like latest, oldest, minimal

    latest is supported by hvm. If the user requiers oldest or minimal, look into theme.toml under module.hugoVersion.min:

    • hvm use latest - Use the latest Hugo version
    • hvm use 0.141.0 - Use a specific version if minimal version is 0.141.0

Usage

Run the webserver for testing changes.

Run the Webserver

Run the webserver on Hugo's on a non-default port of 3131.

cd <directory-of-content-directory> && hugo server -p 3131

To run Hugo on the default port 1313 (which is often blocked)

cd <directory-of-content-directory> && hugo server

Parameters Help

If you need a full understanding of all available parameters

hugo help

Usage Notes

  • Always run Hugo from inside the working directory
  • Access the site at http://localhost:3131
  • The files that Hugo generates and afterwards serves are stored in public of the working directory
  • Source Markdown files of content/* can be accessed as their output representation by http://localhost:3131/* or public/*
  • Press Ctrl+C to stop the server
  • Watch stdout/stderr for build warnings and errors

When not to use it

  • Managing non-Hugo static site generators
  • When local server hosting is blocked by network policy

Prerequisites

Hugo installed via hvm

Limitations

  • Requires explicit directory navigation for local execution
  • Build errors can occasionally crash the dev server process

How it compares

Simplifies version management and port conflicts that typically require manual configuration management.

Compared to similar skills

hugo-runner side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
hugo-runner (this skill)16moNo flagsBeginner
build-macos-apps708moReviewIntermediate
cloudflare-manager259moReviewIntermediate
railway-cli-management98moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry