secondsky/claude-skills/hugo
- community
- ext:[{"type":"template","description":"Custom templates for code generation"}]
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install secondsky/claude-skills/hugoSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
Hugo Static Site Generator
Status: Production Ready | Last Updated: 2026-08-03 Latest Version: hugo@0.164.0+extended | Build Speed: <100ms
Quick Start (5 Minutes)
1. Install Hugo Extended
CRITICAL: Always install Hugo Extended edition (not Standard) unless you're certain you don't need SCSS/Sass support. Most themes require Extended.
Why this matters:
- Hugo Extended includes SCSS/Sass processing
- Most popular themes (PaperMod, Academic, Docsy) require Extended
- Standard edition will fail with "SCSS support not enabled" errors
- Extended has no downsides (same speed, same features + more)
2. Create New Hugo Site
CRITICAL:
- Use
--format yamlto create hugo.yaml (not hugo.toml) - YAML is required for Sveltia CMS and recommended for TinaCMS
- TOML has known bugs in Sveltia CMS beta
- Git submodules require
--recursiveflag when cloning later
3. Configure and Build
Critical Rules
Always Do
✅ 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
Never Do
❌ 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
Top 5 Errors Prevention
This skill prevents 15 documented errors. Here are the top 5:
Error #1: Version Mismatch (Hugo vs Hugo Extended)
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 #2: baseURL Configuration Errors
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 #3: Theme Not Found Errors
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 #4: Hugo Version Mismatch (Local vs Deployment)
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 #5: Git Submodule Not Found in CI/CD
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
Using Bundled Resources
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)
Templates (templates/)
Complete, production-ready Hugo projects ready to copy:
- `templates/hugo-blog/` - Blog with PaperMod theme
- Dark/light mode, search, tags, archives
- Sveltia CMS pre-configured
- wrangler.jsonc for Workers deployment
- GitHub Actions workflow included
- Use when: Building a personal blog, company blog, or news site
- `templates/hugo-docs/` - Documentation site with Hugo Book theme
- Nested navigation, search, breadcrumbs
- Sveltia CMS for docs editing
- Use when: Creating technical documentation, knowledge bases, API docs
- `templates/hugo-landing/` - Landing page with custom layouts
- Hero, features, testimonials, CTA sections
- No theme dependency (custom layouts)
- Optimized for conversions
- Use when: Building marketing sites, product pages, portfolios
- `templates/minimal-starter/` - Bare-bones starter
- No theme, clean slate
- Setup guide for adding themes
- Minimal configuration
- Use when: Starting from scratch with full control
Quick start with template:
References (references/)
Detailed guides loaded when needed:
- `references/setup-guide.md` - Complete 7-step setup process
- Installation and verification
- Project scaffolding
- Theme installation
- Configuration options
- Content creation
- Build and development
- Cloudflare Workers deployment
- Load when: Setting up new Hugo project from scratch
- `references/cms-integration.md` - Headless CMS integration
- Sveltia CMS setup (recommended) - 5 minutes
- OAuth configuration for production
- TinaCMS setup (not recommended)
- Comparison and troubleshooting
- Load when: Adding content management to Hugo site
- `references/tailwind-integration.md` - Tailwind CSS v4 integration
- Hugo Pipes + PostCSS setup
- Dark mode implementation (CSS-only and Alpine.js)
- Typography and Forms plugins
- Production optimization
- Common issues and solutions
- Load when: Integrating Tailwind CSS with Hugo
- `references/common-patterns.md` - 7 common project patterns
- Blog with PaperMod
- Documentation with Hugo Book
- Landing pages
- Multilingual sites
- Portfolio sites
- E-commerce (static)
- Newsletter/blog
- Load when: Choosing architecture for specific use case
- `references/advanced-topics.md` - Advanced Hugo features
- Custom shortcodes
- Image processing
- Custom taxonomies
- Data files (JSON/YAML/CSV)
- Page bundles
- Template overrides
- Hugo Modules
- Load when: User needs advanced customization
- `references/error-catalog.md` - All 15 documented errors
- Complete error messages and solutions
- Prevention strategies
- Official sources cited
- Troubleshooting guide
- Load when: Debugging issues or preventing known errors
Common Use Cases
Use Case 1: Personal Blog
Template: templates/hugo-blog/ Theme: PaperMod Time to deploy: 10 minutes Features: Search, tags, dark mode, RSS, Sveltia CMS
See references/common-patterns.md → Pattern 1
Use Case 2: Technical Documentation
Template: templates/hugo-docs/ Theme: Hugo Book Time to deploy: 10 minutes Features: Nested navigation, search, breadcrumbs, multi-language
See references/common-patterns.md → Pattern 2
Use Case 3: Landing Page
Template: templates/hugo-landing/ Theme: None (custom layouts) Time to deploy: 15 minutes Features: Hero, features, testimonials, CTA, contact form
See references/common-patterns.md → Pattern 3
Use Case 4: Blog with Tailwind CSS v4
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
See references/tailwind-integration.md → Quick Start
Use Case 5: Multilingual Documentation
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
Cloudflare Workers Deployment
Quick Deployment
1. Create wrangler.jsonc:
2. Deploy:
For complete deployment guide: See references/setup-guide.md → Step 7
When to Load Detailed References
Load `references/setup-guide.md` when:
- User needs complete 7-step setup process
- User asks about configuration options
- User needs detailed installation instructions
- User asks about directory structure
- User needs GitHub Actions workflow
Load `references/cms-integration.md` when:
- User wants to add CMS to Hugo site
- User asks about Sveltia CMS setup
- User asks about TinaCMS (warn it's not recommended)
- User needs OAuth configuration
- User asks about content management
Load `references/tailwind-integration.md` when:
- User wants to integrate Tailwind CSS v4
- User asks about PostCSS setup
- User needs dark mode implementation
- User asks about Tailwind plugins
- User has CSS processing errors
Load `references/common-patterns.md` when:
- User asks "how do I build a [blog/docs/landing page]?"
- User needs architecture guidance
- User asks about multilingual sites
- User asks about portfolio sites
- User needs project structure examples
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/hugo/skills/hugo/SKILL.md
Popularity
- Repository stars
- 216
- Repository forks
- 31
- 7-day trend score
- 27
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 25 Mar 2026, 7 months ago.
Extension points
templateCustom templates for code generation
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/secondsky/claude-skills/hugo)