Hugo static site generator with Tailwind v4, headless CMS (Sveltia/Tina), Cloudflare deployment. Use for blogs, docs sites, or encountering theme installation, frontmatter, baseURL errors.
npx skills add https://github.com/secondsky/claude-skills --skill hugo
Status: Production Ready | Last Updated: 2025-11-21
Latest Version: [email protected]+extended | Build Speed: <100ms
CRITICAL: Always install Hugo Extended edition (not Standard) unless you're certain you don't need SCSS/Sass support. Most themes require Extended.
# macOS
brew install hugo
# Linux (Ubuntu/Debian)
wget https://github.com/gohugoio/hugo/releases/download/v0.152.2/hugo_extended_0.152.2_linux-amd64.deb
sudo dpkg -i hugo_extended_0.152.2_linux-amd64.deb
# Verify Extended edition
hugo version # Should show "+extended"
Why this matters:
# Use YAML format (not TOML) for better CMS compatibility
hugo new site my-blog --format yaml
# Initialize Git
cd my-blog
git init
# Add PaperMod theme (recommended for blogs)
git submodule add --depth=1 https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod
CRITICAL:
--format yaml to create hugo.yaml (not hugo.toml)--recursive flag when cloning later# hugo.yaml - Minimal working configuration
baseURL: "https://example.com/"
title: "My Hugo Blog"
theme: "PaperMod"
languageCode: "en-us"
enableRobotsTXT: true
params:
ShowReadingTime: true
ShowShareButtons: true
defaultTheme: auto # Supports dark/light/auto
# Create first post
hugo new content posts/first-post.md
# Run development server (with live reload)
hugo server
# Build for production
hugo --minify
# Output is in public/ directory
✅ Install Hugo Extended (not Standard) - required for SCSS/Sass support in themes
✅ Use YAML configuration (--format yaml) - better CMS compatibility than TOML
✅ Add themes as Git submodules - easier updates and version control
✅ Set correct baseURL - prevents broken asset links on deployment
✅ Pin Hugo version in CI/CD - prevents version mismatch errors between local and deployment
✅ Add public/ to .gitignore - build output should not be committed
✅ Use draft: false - drafts don't appear in production builds
✅ Clone with --recursive flag - ensures theme submodules are fetched
✅ Use relative paths for images - /images/photo.jpg not ../images/photo.jpg
✅ Test build before deploying - catch errors locally with hugo --minify
❌ Don't install Hugo Standard - most themes require Extended edition
❌ Don't use TOML config with Sveltia CMS - has known bugs, use YAML instead
❌ Don't commit public/ directory - it's generated output, not source code
❌ Don't use different Hugo versions - local vs CI/CD version mismatch causes errors
❌ Don't forget submodules: recursive - themes won't load in CI/CD
❌ Don't hardcode production URLs - use -b $CF_PAGES_URL or environment configs
❌ Don't push resources/_gen/ - generated assets, should be in .gitignore
❌ Don't use future dates carelessly - posts won't publish until date passes
❌ Don't skip .hugo_build.lock - add to .gitignore
❌ Don't mix YAML and TOML - stick to one format throughout project
This skill prevents 15 documented errors. Here are the top 5:
Error: Error: SCSS support not enabled
Prevention: Always install Hugo Extended edition. Verify with hugo version | grep extended
See: references/error-catalog.md for full error list
Error: Broken CSS/JS/image links, 404s on all assets
Prevention: Use environment-specific configs or build flag: hugo -b $CF_PAGES_URL
See: references/error-catalog.md #2
Error: Error: module "PaperMod" not found, blank site
Prevention: Set theme: "PaperMod" in hugo.yaml and run git submodule update --init --recursive
See: references/error-catalog.md #6
Error: Features work locally but fail in CI/CD, or vice versa
Prevention: Pin Hugo version everywhere (CI/CD, local docs, package.json if using npm)
See: references/error-catalog.md #4
Error: Theme works locally but not in CI/CD, blank site on deployment
Prevention: Add submodules: recursive to checkout action in GitHub Actions
See: references/error-catalog.md #11
For complete error catalog (all 15 errors): See references/error-catalog.md
References (references/):
setup-guide.md - Complete Hugo setup walkthrough (installation, themes, deployment)error-catalog.md - All 15 common Hugo errors with solutions and preventioncommon-patterns.md - Best practices and patterns (taxonomies, content organization, multilingual)cms-integration.md - Sveltia CMS integration guide with configurationtailwind-integration.md - Tailwind CSS integration with Hugo Pipesadvanced-topics.md - Advanced Hugo features (modules, data files, internationalization)Complete, production-ready Hugo projects ready to copy:
templates/hugo-blog/ - Blog with PaperMod themetemplates/hugo-docs/ - Documentation site with Hugo Book themetemplates/hugo-landing/ - Landing page with custom layoutstemplates/minimal-starter/ - Bare-bones starterQuick start with template:
cp -r templates/hugo-blog/ my-new-blog/
cd my-new-blog
git submodule update --init --recursive
hugo server
Detailed guides loaded when needed:
references/setup-guide.md - Complete 7-step setup processreferences/cms-integration.md - Headless CMS integrationreferences/tailwind-integration.md - Tailwind CSS v4 integrationreferences/common-patterns.md - 7 common project patternsreferences/advanced-topics.md - Advanced Hugo featuresreferences/error-catalog.md - All 15 documented errorsTemplate: templates/hugo-blog/
Theme: PaperMod
Time to deploy: 10 minutes
Features: Search, tags, dark mode, RSS, Sveltia CMS
cp -r templates/hugo-blog/ my-blog/
cd my-blog
git submodule update --init --recursive
hugo new content posts/first-post.md
hugo server
See references/common-patterns.md → Pattern 1
Template: templates/hugo-docs/
Theme: Hugo Book
Time to deploy: 10 minutes
Features: Nested navigation, search, breadcrumbs, multi-language
cp -r templates/hugo-docs/ docs-site/
cd docs-site
git submodule update --init --recursive
hugo new content docs/getting-started/installation.md
hugo server
See references/common-patterns.md → Pattern 2
Template: templates/hugo-landing/
Theme: None (custom layouts)
Time to deploy: 15 minutes
Features: Hero, features, testimonials, CTA, contact form
cp -r templates/hugo-landing/ landing/
cd landing
hugo server
See references/common-patterns.md → Pattern 3
Template: Start with templates/minimal-starter/
Integration: Follow references/tailwind-integration.md
Time to setup: 30 minutes
Features: Custom design, utility-first CSS, dark mode
cp -r templates/minimal-starter/ tailwind-blog/
cd tailwind-blog
# Follow references/tailwind-integration.md for setup
See references/tailwind-integration.md → Quick Start
Template: templates/hugo-docs/
Pattern: Multilingual
Time to setup: 20 minutes
Features: Language switcher, translated content, per-language menus
See references/common-patterns.md → Pattern 4
1. Create wrangler.jsonc:
{
"name": "my-hugo-site",
"compatibility_date": "2025-01-29",
"assets": {
"directory": "./public",
"html_handling": "auto-trailing-slash",
"not_found_handling": "404-page"
}
}
2. Deploy:
hugo --minify
bunx wrangler deploy
For complete deployment guide: See references/setup-guide.md → Step 7
Load references/setup-guide.md when:
Load references/cms-integration.md when:
Load references/tailwind-integration.md when:
Load references/common-patterns.md when:
Load references/advanced-topics.md when:
Load references/error-catalog.md when:
Required:
Optional (for deployment):
Optional (for CMS):
Hugo: v0.152.2+extended (October 24, 2025)
PaperMod: Latest (via Git submodule)
Sveltia CMS: Latest (via CDN)
Wrangler: v4.37.1+ (v4.45.3 available)
This skill is based on live testing:
Use this checklist to verify your setup:
hugo version shows "+extended")--format yaml (hugo.yaml exists)baseURL configured correctly in hugo.yaml.gitignore includes public/ and resources/_gen/hugo server)hugo --minify)Questions? Issues?
references/error-catalog.md for all 15 documented errors and solutionstemplates/ directoryThis skill provides production-ready Hugo setup with zero errors. All 15 common issues are documented and prevented.
Analyze Stockbee-style Day 1 Episodic Pivot candidates from earnings, guidance raises, M&A, FDA/regulatory approvals, analyst actions, major contracts, product launches, short-squeeze catalysts, or theme/story events. Scores catalyst quality together with gap/range expansion, volume shock, neglect/revaluation context, liquidity, and risk to the EP-day low. Use when the user asks for EP candidates, episodic pivots, Day 1 catalyst trades, game-changing news reactions, delayed EP watchlists, or handoffs into PEAD monitoring.
Maps architectural components in a codebase and measures their size to identify what should be extracted first. Use when asking "how big is each module?", "what components do I have?", "which service is too large?", "analyze codebase structure", "size my monolith", or planning where to start decomposing. Do NOT use for runtime performance sizing or infrastructure capacity planning.
Understand and adhere to the project's technology stack including Laravel, PHP, React, PostgreSQL, Pest, Tailwind CSS, and all configured tools and services. Use this skill when making architectural decisions, when choosing libraries or packages, when configuring development tools, when setting up testing frameworks, when implementing authentication, when integrating third-party services, when configuring CI/CD pipelines, when setting up local development environments, or when ensuring consistency with the established tech stack across all parts of the application.
Use when the user requests diagrams, flowcharts, architecture diagrams, ER diagrams, UML / sequence / class diagrams, SysML / MBSE diagrams (block definition, internal block, requirement, parametric), BPMN business process diagrams, swimlane / cross-functional flowcharts, network topology, cloud architecture from Terraform or Kubernetes manifests, ML/DL model figures (Transformer/CNN/LSTM), mind maps, or any visualization. Also use proactively when explaining systems with 3+ components, complex data flows, or relationships that benefit from visual representation. Best suited when the diagram needs custom styling, rich shape vocabulary, swimlanes, or exportable images (PNG/SVG/PDF/JPG). Generates .drawio XML and exports locally via the native draw.io desktop CLI.
When the user wants to plan product distribution via marketplaces, app stores, or third-party platforms. Also use when the user mentions "distribution channels," "marketplace listing," "app store listing," "Figma plugin," "Chrome extension marketplace," "AWS Marketplace," "Shopify app," "GPTs store," "app distribution," or "third-party marketplace." For channel mix, use integrated-marketing.
网页设计与部署。生成精美的单页 HTML 网页(报告、落地页、数据可视化等),支持一键部署到 Cloudflare Pages。使用 Tailwind CSS + Chart.js + Font Awesome 技术栈。当用户要求制作网页、生成报告页面、创建落地页、数据可视化展示、部署网页到线上时使用。
Use when the user asks for a Databricks lakehouse architecture diagram — medallion architecture (Bronze/Silver/Gold), Delta Lake, Unity Catalog, workspace deployment, data-plane/control-plane, or any diagram built with Databricks icons. Builds with the declarative layout engine using ground-truth stencils, validates (stencils/colors/nesting/geometry), runs a render-based vision self-check. Default output is .drawio; PNG/SVG only on request.
Generate ActivityKit Live Activity infrastructure with Dynamic Island layouts, Lock Screen presentation, and push-to-update support. Use when adding Live Activities to an iOS app.
Take secondsky/hugo from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.
The instructions reference brew.
Without those the skill loads but fails at the first command.