hugo-theme

hugo-theme is a skill for Claude Code, Codex from magnus919/agent-skills. It costs 78 tokens per session (1,605 once invoked), scanned A, original, MIT.

A guide to building and maintaining Hugo themes for Hugo, a tool that generates websites from content and templates. It covers templates, styles and scripts, images, shortcodes, page organization, search visibility, and deployment workflows.

In plain words
What is it for?
Use it to create theme templates, process CSS, JavaScript, and images, add shortcodes and render hooks, organize page bundles, support multiple languages, and configure SEO or CI/CD.
Why use it?
It helps developers understand and fix the parts of a Hugo theme that control page structure, assets, content rendering, and publishing.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create theme templates, process CSS, JavaScript, and images, add shortcodes and render hooks, organize page bundles, support multiple languages, and configure SEO or CI/CD.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/magnus919/agent-skills/hugo-theme
Install

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.

Any agent
npx skills add magnus919/agent-skills --skill hugo-theme
Clone the repo
git clone --depth 1 https://github.com/magnus919/agent-skills

Made for: Claude Code, Codex.

Its marketplace also offers this one on its own, as the plugin hugo-theme/plugin install hugo-theme after adding the marketplace above.

Wrote 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.

agentmods badge for hugo-theme

README.md
[![agentmods](https://agentmods.dev/badge/skills/magnus919/agent-skills/hugo-theme/github.svg)](https://agentmods.dev/skills/magnus919/agent-skills/hugo-theme)
Your own site
<a href="https://agentmods.dev/skills/magnus919/agent-skills/hugo-theme"><img src="https://agentmods.dev/badge/skills/magnus919/agent-skills/hugo-theme/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.

agentmods 80×15 button for hugo-theme

Your own site · 80×15
<a href="https://agentmods.dev/skills/magnus919/agent-skills/hugo-theme"><img src="https://agentmods.dev/badge/skills/magnus919/agent-skills/hugo-theme.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,605 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00078 $0.01605
Opus 5 $0.00039 $0.00803
Sonnet 5 $0.00016 $0.00321
Haiku 4.5 $0.00008 $0.00161

Measured 7d ago against content hash 0d88d8c10e2a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

hugo-theme 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 7d 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.

hugo-theme/SKILL.md · 94 lines

How it starts

The opening of the file, as written. The whole thing — 94 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Hugo Theme Development

Intermediate-to-advanced patterns for Hugo CMS theme development. Load the relevant reference file for your task.

Reference Files

Topic Hugo Min Load when... File
Template Architecture v0.120+ You need to set up base templates with blocks, understand template lookup order (kind/layout/type/section), create partials, use partial decorators (v0.154+), or work with shortcode fundamentals references/template-architecture.md
Asset Pipeline v0.161+ You're integrating Tailwind CSS v4 (css.TailwindCSS) or v3 (PostCSS), using Hugo Pipes for SCSS/JS bundling, setting up fingerprinting and SRI, building responsive images with srcset, or processing page/global/remote resources references/asset-pipeline.md
Shortcodes & Render Hooks v0.112+ You need complex nested shortcodes, raw HTML shortcodes, markdown rendering inside shortcodes, custom render hooks for links/images/headings/code blocks, or language-specific code block rendering (Mermaid, etc.) references/shortcodes-and-hooks.md
Content Organization & i18n v0.126+ You're working with leaf vs branch bundles, headless bundles, cover images, custom taxonomies, content adapters (v0.126+, dynamic pages), section-specific layouts, archetypes, or internationalization (translation tables, multilingual) references/content-and-i18n.md
Cover Images v0.120+ You need to add cover/hero images to articles, support both page bundle resources and frontmatter paths, generate responsive srcsets, or handle the no-cover case gracefully references/cover-images.md
Modules & Performance v0.109+ You're using Hugo Modules (init, import, vendor, workspace), building theme components with mount configuration, optimizing build speed with partialCached, configuring cache TTLs, or using configuration-driven theming (params, cascade) references/modules-and-performance.md
Design, UX & Accessibility v0.120+ You need typography systems, accessible color palettes, design tokens, semantic HTML landmarks, ARIA patterns, keyboard navigation, accessible forms, content-first layouts, responsive navigation, engagement patterns (reading progress, dark mode toggle, sharing), Core Web Vitals optimization, container queries, :has() selectors, or testing/QA automation (axe-core, Lighthouse CI, visual regression) references/design-accessibility.md
SEO, Output Formats & CI/CD v0.120+ You need JSON-LD structured data, Open Graph / Twitter Cards, custom output formats (JSON, AMP), sitemap customization, or CI/CD pipelines for themes (GitHub Actions, testing, deployment) references/seo-outputs-testing.md

Read the full file on GitHub · 94 lines

Changes

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.

  1. 7d ago First seen · 94 lines · 78 tokens per session scan A 0d88d8c10e2a

Subscribe to this mod's changes

hugo-theme is a skill published in the GitHub repository magnus919/agent-skills (76 stars, last pushed today), licensed MIT. It adds 78 tokens to every session and 1,605 once invoked, about $0.0004 per session on Opus 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.