[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AMZDAW5WT18BMV59QKV45Z":3,"skill-same:01M7AMZDAW5WT18BMV59QKV45Z":72},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":33,"commitSha":34,"skillDirectory":5,"forksCount":35,"repositoryHtmlUrl":36,"repositoryHomepageUrl":6,"ownerHtmlUrl":37,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":38,"install":39,"resources":51},"01M7AMZDAW5WT18BMV59QKV45Z","hugo",null,"This skill provides comprehensive knowledge for building static websites with Hugo static site generator. It should be used when setting up Hugo projects (blogs, documentation sites, landing pages, portfolios), integrating Tailwind CSS v4 for custom styling, integrating headless CMS systems (Sveltia CMS or TinaCMS), deploying to Cloudflare Workers with Static Assets, configuring themes and templates, and preventing common Hugo setup errors.\n\nUse this skill when encountering these scenarios: scaffolding new Hugo sites, choosing between Hugo Extended and Standard editions, integrating Tailwind CSS v4 with Hugo Pipes, configuring hugo.yaml or hugo.toml files, integrating PaperMod or other themes via Git submodules, setting up Sveltia CMS or TinaCMS for content management, deploying to Cloudflare Workers or Pages, troubleshooting baseURL configuration, resolving theme installation errors, fixing frontmatter format issues (YAML vs TOML), preventing date-related build failures, setting up PostCSS with Hugo, or setting up CI\u002FCD with GitHub Actions.\n\nKeywords: hugo, hugo-extended, static-site-generator, ssg, go-templates, papermod, goldmark, markdown, blog, documentation, docs-site, landing-page, sveltia-cms, tina-cms, headless-cms, cloudflare-workers, workers-static-assets, wrangler, hugo-server, hugo-build, frontmatter, yaml-frontmatter, toml-config, hugo-themes, hugo-modules, multilingual, i18n, github-actions, version-mismatch, baseurl-error, theme-not-found, tailwind, tailwind-v4, tailwind-css, hugo-pipes, postcss, css-framework, utility-css, hugo-tailwind, tailwind-integration, hugo-assets","davidanthonyn\u002Fagent-skills","davidanthonyn","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F55152980?v=4","01M7AJ4MY8S5C2RJCGX6626J0G","01M7AJ4MZB7EC7CAP27ANCSE7N",1,"MIT","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fhugo\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: hugo\ndescription: |\n  This skill provides comprehensive knowledge for building static websites with Hugo static site generator. It should be used when setting up Hugo projects (blogs, documentation sites, landing pages, portfolios), integrating Tailwind CSS v4 for custom styling, integrating headless CMS systems (Sveltia CMS or TinaCMS), deploying to Cloudflare Workers with Static Assets, configuring themes and templates, and preventing common Hugo setup errors.\n\n  Use this skill when encountering these scenarios: scaffolding new Hugo sites, choosing between Hugo Extended and Standard editions, integrating Tailwind CSS v4 with Hugo Pipes, configuring hugo.yaml or hugo.toml files, integrating PaperMod or other themes via Git submodules, setting up Sveltia CMS or TinaCMS for content management, deploying to Cloudflare Workers or Pages, troubleshooting baseURL configuration, resolving theme installation errors, fixing frontmatter format issues (YAML vs TOML), preventing date-related build failures, setting up PostCSS with Hugo, or setting up CI\u002FCD with GitHub Actions.\n\n  Keywords: hugo, hugo-extended, static-site-generator, ssg, go-templates, papermod, goldmark, markdown, blog, documentation, docs-site, landing-page, sveltia-cms, tina-cms, headless-cms, cloudflare-workers, workers-static-assets, wrangler, hugo-server, hugo-build, frontmatter, yaml-frontmatter, toml-config, hugo-themes, hugo-modules, multilingual, i18n, github-actions, version-mismatch, baseurl-error, theme-not-found, tailwind, tailwind-v4, tailwind-css, hugo-pipes, postcss, css-framework, utility-css, hugo-tailwind, tailwind-integration, hugo-assets\nlicense: MIT\nmetadata:\n  version: \"2.0.0\"\n  hugo_version: \"0.152.2\"\n  tailwind_version: \"4.1.16\"\n  last_verified: \"2025-11-04\"\n  production_tested: true\n  token_savings: \"60-65%\"\n  errors_prevented: 15\n  templates_included: 6\n---\n\n# Hugo Static Site Generator\n\n**Status**: Production Ready\n**Last Updated**: 2025-11-04\n**Dependencies**: None (Hugo is a standalone binary)\n**Latest Versions**: hugo@0.152.2+extended, PaperMod@latest, Sveltia CMS@latest\n\n---\n\n## Quick Start (5 Minutes)\n\n### 1. Install Hugo Extended\n\n**CRITICAL**: Always install Hugo **Extended** edition (not Standard) unless you're certain you don't need SCSS\u002FSass support. Most themes require Extended.\n\n```bash\n# macOS\nbrew install hugo\n\n# Linux (Ubuntu\u002FDebian)\nwget https:\u002F\u002Fgithub.com\u002Fgohugoio\u002Fhugo\u002Freleases\u002Fdownload\u002Fv0.152.2\u002Fhugo_extended_0.152.2_linux-amd64.deb\nsudo dpkg -i hugo_extended_0.152.2_linux-amd64.deb\n\n# Verify Extended edition\nhugo version  # Should show \"+extended\"\n```\n\n**Why this matters:**\n- Hugo Extended includes SCSS\u002FSass processing\n- Most popular themes (PaperMod, Academic, Docsy) require Extended\n- Standard edition will fail with \"SCSS support not enabled\" errors\n- Extended has no downsides (same speed, same features + more)\n\n### 2. Create New Hugo Site\n\n```bash\n# Use YAML format (not TOML) for better CMS compatibility\nhugo new site my-blog --format yaml\n\n# Initialize Git\ncd my-blog\ngit init\n\n# Add PaperMod theme (recommended for blogs)\ngit submodule add --depth=1 https:\u002F\u002Fgithub.com\u002Fadityatelange\u002Fhugo-PaperMod.git themes\u002FPaperMod\n```\n\n**CRITICAL:**\n- Use `--format yaml` to create hugo.yaml (not hugo.toml)\n- YAML is required for Sveltia CMS and recommended for TinaCMS\n- TOML has known bugs in Sveltia CMS beta\n- Git submodules require `--recursive` flag when cloning later\n\n### 3. Configure and Build\n\n```yaml\n# hugo.yaml - Minimal working configuration\nbaseURL: \"https:\u002F\u002Fexample.com\u002F\"\ntitle: \"My Hugo Blog\"\ntheme: \"PaperMod\"\nlanguageCode: \"en-us\"\nenableRobotsTXT: true\n\nparams:\n  ShowReadingTime: true\n  ShowShareButtons: true\n  defaultTheme: auto  # Supports dark\u002Flight\u002Fauto\n```\n\n```bash\n# Create first post\nhugo new content posts\u002Ffirst-post.md\n\n# Run development server (with live reload)\nhugo server\n\n# Build for production\nhugo --minify\n\n# Output is in public\u002F directory\n```\n\n---\n\n## The 7-Step Setup Process\n\n### Step 1: Installation and Verification\n\n**Install Hugo Extended** using one of these methods:\n\n**Method 1: Homebrew (macOS\u002FLinux)** ✅ Recommended\n```bash\nbrew install hugo\n```\n\n**Method 2: Binary Download (Linux)**\n```bash\n# Check latest version: https:\u002F\u002Fgithub.com\u002Fgohugoio\u002Fhugo\u002Freleases\nVERSION=\"0.152.2\"\nwget https:\u002F\u002Fgithub.com\u002Fgohugoio\u002Fhugo\u002Freleases\u002Fdownload\u002Fv${VERSION}\u002Fhugo_extended_${VERSION}_linux-amd64.deb\nsudo dpkg -i hugo_extended_${VERSION}_linux-amd64.deb\n```\n\n**Method 3: Docker**\n```bash\ndocker run --rm -it -v $(pwd):\u002Fsrc klakegg\u002Fhugo:ext-alpine\n```\n\n**Method 4: NPM Wrapper** (not recommended, may lag behind)\n```bash\nnpm install -g hugo-bin\n```\n\n**Verification:**\n```bash\nhugo version\n# Should output: hugo v0.152.2+extended\n#                                ^^^^^^^^ Must show \"+extended\"\n```\n\n**Key Points:**\n- Extended edition required for SCSS\u002FSass\n- Version should be v0.149.0+ for best compatibility\n- NPM wrapper may be behind official releases\n- Pin version in CI\u002FCD (see Step 7)\n\n### Step 2: Project Scaffolding\n\n**Create new site with YAML configuration:**\n\n```bash\nhugo new site my-site --format yaml\ncd my-site\n```\n\n**Directory structure created:**\n```\nmy-site\u002F\n├── hugo.yaml          # Configuration (YAML format)\n├── archetypes\u002F        # Content templates\n│   └── default.md\n├── content\u002F           # All your content goes here\n├── data\u002F              # Data files (JSON\u002FYAML\u002FTOML)\n├── layouts\u002F           # Template overrides\n├── static\u002F            # Static assets (images, CSS, JS)\n├── themes\u002F            # Themes directory\n└── public\u002F            # Build output (generated, git ignore)\n```\n\n**CRITICAL:**\n- Use `--format yaml` for CMS compatibility\n- Never commit `public\u002F` directory to Git\n- Create `.gitignore` immediately (see Step 3)\n\n### Step 3: Theme Installation\n\n**Recommended Method: Git Submodule** ✅\n\n```bash\n# Popular themes:\n# - PaperMod (blogs): https:\u002F\u002Fgithub.com\u002Fadityatelange\u002Fhugo-PaperMod\n# - Book (docs): https:\u002F\u002Fgithub.com\u002Falex-shpak\u002Fhugo-book\n# - Academic (research): https:\u002F\u002Fgithub.com\u002FHugoBlox\u002Ftheme-academic-cv\n# - Ananke (general): https:\u002F\u002Fgithub.com\u002FtheNewDynamic\u002Fgohugo-theme-ananke\n\ngit submodule add --depth=1 https:\u002F\u002Fgithub.com\u002Fadityatelange\u002Fhugo-PaperMod.git themes\u002FPaperMod\n```\n\n**Alternative: Hugo Modules** (advanced)\n```bash\nhugo mod init github.com\u002Fusername\u002Fmy-site\n\n# In hugo.yaml:\n# module:\n#   imports:\n#     - path: github.com\u002Fadityatelange\u002Fhugo-PaperMod\n```\n\n**Add theme to hugo.yaml:**\n```yaml\ntheme: \"PaperMod\"\n```\n\n**When cloning project with submodules:**\n```bash\ngit clone --recursive https:\u002F\u002Fgithub.com\u002Fusername\u002Fmy-site.git\n# Or if already cloned:\ngit submodule update --init --recursive\n```\n\n**Key Points:**\n- Git submodules are recommended over manual downloads\n- `--depth=1` saves space (no theme history)\n- Always run `git submodule update --init --recursive` after clone\n- Hugo Modules are more advanced but don't require Git submodules\n\n### Step 4: Configuration\n\n**hugo.yaml - Complete Example (PaperMod blog):**\n\n```yaml\nbaseURL: \"https:\u002F\u002Fexample.com\u002F\"\ntitle: \"My Hugo Blog\"\ntheme: \"PaperMod\"\nlanguageCode: \"en-us\"\ndefaultContentLanguage: \"en\"\nenableRobotsTXT: true\nbuildDrafts: false\nbuildFuture: false\nbuildExpired: false\nenableEmoji: true\n\nminify:\n  disableXML: true\n  minifyOutput: true\n\nparams:\n  env: production\n  title: \"My Hugo Blog\"\n  description: \"A blog built with Hugo and PaperMod\"\n  author: \"Your Name\"\n  ShowReadingTime: true\n  ShowShareButtons: true\n  ShowPostNavLinks: true\n  ShowBreadCrumbs: true\n  ShowCodeCopyButtons: true\n  defaultTheme: auto  # dark, light, auto\n\n  socialIcons:\n    - name: twitter\n      url: \"https:\u002F\u002Ftwitter.com\u002Fusername\"\n    - name: github\n      url: \"https:\u002F\u002Fgithub.com\u002Fusername\"\n\nmenu:\n  main:\n    - identifier: posts\n      name: Posts\n      url: \u002Fposts\u002F\n      weight: 10\n    - identifier: about\n      name: About\n      url: \u002Fabout\u002F\n      weight: 20\n\noutputs:\n  home:\n    - HTML\n    - RSS\n    - JSON  # Required for search\n```\n\n**Configuration Formats:**\n- **YAML** (recommended): `hugo.yaml` - Better CMS compatibility\n- **TOML** (legacy): `hugo.toml` - Default but problematic with Sveltia CMS\n- **JSON**: `hugo.json` - Rarely used\n\n**Environment-Specific Configs:**\n```\nconfig\u002F\n├── _default\u002F\n│   └── hugo.yaml\n├── production\u002F\n│   └── hugo.yaml  # Overrides for production\n└── development\u002F\n    └── hugo.yaml  # Overrides for local dev\n```\n\n### Step 5: Content Creation\n\n**Create content with Hugo CLI:**\n```bash\n# Blog post\nhugo new content posts\u002Fmy-first-post.md\n\n# Page\nhugo new content about.md\n\n# Nested documentation\nhugo new content docs\u002Fgetting-started\u002Finstallation.md\n```\n\n**Frontmatter Format (YAML recommended):**\n\n```yaml\n---\ntitle: \"My First Post\"\ndate: 2025-11-04T10:00:00+11:00\ndraft: false\ntags: [\"hugo\", \"blog\"]\ncategories: [\"General\"]\ndescription: \"A brief description for SEO\"\ncover:\n  image: \"\u002Fimages\u002Fcover.jpg\"\n  alt: \"Cover image\"\n---\n\n# Post content starts here\n\nThis is my first Hugo blog post!\n```\n\n**TOML Frontmatter (for reference only):**\n```toml\n+++\ntitle = \"My First Post\"\ndate = 2025-11-04T10:00:00+11:00\ndraft = false\ntags = [\"hugo\", \"blog\"]\n+++\n```\n\n**Key Points:**\n- Use `---` delimiters for YAML frontmatter\n- Use `+++` delimiters for TOML frontmatter\n- `draft: false` required for post to appear in production\n- `date` in future = post won't publish (unless `--buildFuture` flag used)\n- Content goes after frontmatter closing delimiter\n\n### Step 6: Build and Development\n\n**Development server (with live reload):**\n```bash\n# Start server\nhugo server\n\n# With drafts visible\nhugo server --buildDrafts\n\n# With future-dated posts\nhugo server --buildFuture\n\n# Bind to specific port\nhugo server --port 1314\n\n# Access at: http:\u002F\u002Flocalhost:1313\n```\n\n**Production build:**\n```bash\n# Basic build\nhugo\n\n# With minification (recommended)\nhugo --minify\n\n# With specific baseURL (for deployment)\nhugo --minify --baseURL https:\u002F\u002Fexample.com\n\n# Or use environment variable\nhugo --minify -b $CF_PAGES_URL\n```\n\n**Build Output:**\n- All generated files go to `public\u002F` directory\n- Typical build time: \u003C100ms for small sites, \u003C5s for 1000+ pages\n- Hugo is the **fastest** static site generator\n\n**Key Points:**\n- Development server has live reload (HMR)\n- Production build should use `--minify`\n- Never commit `public\u002F` directory\n- Build time is extremely fast (Hugo is written in Go)\n\n### Step 7: Cloudflare Workers Deployment\n\n**Create wrangler.jsonc:**\n\n```jsonc\n{\n  \"name\": \"my-hugo-site\",\n  \"compatibility_date\": \"2025-01-29\",\n  \"assets\": {\n    \"directory\": \".\u002Fpublic\",\n    \"html_handling\": \"auto-trailing-slash\",\n    \"not_found_handling\": \"404-page\"\n  }\n}\n```\n\n**Manual deployment:**\n```bash\n# Build site\nhugo --minify\n\n# Deploy to Workers\nnpx wrangler deploy\n```\n\n**GitHub Actions (Automated):**\n\nCreate `.github\u002Fworkflows\u002Fdeploy.yml`:\n\n```yaml\nname: Deploy to Cloudflare Workers\n\non:\n  push:\n    branches: [main]\n\njobs:\n  deploy:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout\n        uses: actions\u002Fcheckout@v4\n        with:\n          submodules: recursive  # Important for theme submodules!\n\n      - name: Setup Hugo\n        uses: peaceiris\u002Factions-hugo@v2\n        with:\n          hugo-version: '0.152.2'\n          extended: true\n\n      - name: Build\n        run: hugo --minify\n\n      - name: Deploy to Cloudflare Workers\n        uses: cloudflare\u002Fwrangler-action@v3\n        with:\n          apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}\n```\n\n**Key Points:**\n- `assets.directory` must be `\".\u002Fpublic\"` (Hugo's output)\n- `html_handling: \"auto-trailing-slash\"` handles Hugo's URL structure\n- `not_found_handling: \"404-page\"` serves Hugo's 404.html\n- Always pin Hugo version in CI\u002FCD (prevents version mismatch errors)\n- Use `submodules: recursive` for theme submodules\n\n---\n\n## Critical Rules\n\n### Always Do\n\n✅ **Install Hugo Extended** (not Standard) - required for SCSS\u002FSass support in themes\n✅ **Use YAML configuration** (`--format yaml`) - better CMS compatibility than TOML\n✅ **Add themes as Git submodules** - easier updates and version control\n✅ **Set correct baseURL** - prevents broken asset links on deployment\n✅ **Pin Hugo version in CI\u002FCD** - prevents version mismatch errors between local and deployment\n✅ **Add `public\u002F` to .gitignore** - build output should not be committed\n✅ **Use `draft: false`** - drafts don't appear in production builds\n✅ **Clone with `--recursive` flag** - ensures theme submodules are fetched\n✅ **Use relative paths for images** - `\u002Fimages\u002Fphoto.jpg` not `..\u002Fimages\u002Fphoto.jpg`\n✅ **Test build before deploying** - catch errors locally with `hugo --minify`\n\n### Never Do\n\n❌ **Don't install Hugo Standard** - most themes require Extended edition\n❌ **Don't use TOML config with Sveltia CMS** - has known bugs, use YAML instead\n❌ **Don't commit `public\u002F` directory** - it's generated output, not source code\n❌ **Don't use different Hugo versions** - local vs CI\u002FCD version mismatch causes errors\n❌ **Don't forget `submodules: recursive`** - themes won't load in CI\u002FCD\n❌ **Don't hardcode production URLs** - use `-b $CF_PAGES_URL` or environment configs\n❌ **Don't push `resources\u002F_gen\u002F`** - generated assets, should be in .gitignore\n❌ **Don't use future dates carelessly** - posts won't publish until date passes\n❌ **Don't skip `.hugo_build.lock`** - add to .gitignore\n❌ **Don't mix YAML and TOML** - stick to one format throughout project\n\n---\n\n## Known Issues Prevention\n\nThis skill prevents **9** documented issues:\n\n### Issue #1: Version Mismatch (Hugo vs Hugo Extended)\n**Error**: `Error: SCSS support not enabled`\n**Source**: https:\u002F\u002Fgohugo.io\u002Ftroubleshooting\u002Ffaq\u002F#i-get-this-feature-is-not-available-in-your-current-hugo-version\n**Why It Happens**: Theme requires SCSS\u002FSass processing, but Hugo Standard doesn't include it\n**Prevention**: Always install Hugo Extended edition. Verify with `hugo version | grep extended`\n\n### Issue #2: baseURL Configuration Errors\n**Error**: Broken CSS\u002FJS\u002Fimage links, 404s on all assets\n**Source**: Hugo docs, Cloudflare Pages guide\n**Why It Happens**: `baseURL` in config doesn't match deployment URL\n**Prevention**:\n- Use environment-specific configs (`config\u002Fproduction\u002Fhugo.yaml`)\n- Or use build flag: `hugo -b $CF_PAGES_URL`\n- Or set correct baseURL in hugo.yaml before build\n\n### Issue #3: TOML vs YAML Configuration Confusion\n**Error**: Sveltia CMS fails to parse frontmatter, config not loading\n**Source**: Sveltia CMS documentation, community reports\n**Why It Happens**: Mixing TOML and YAML, or using TOML with Sveltia CMS (which has bugs)\n**Prevention**: Standardize on YAML format. Create sites with `--format yaml` flag\n\n### Issue #4: Hugo Version Mismatch (Local vs Deployment)\n**Error**: Features work locally but fail in CI\u002FCD, or vice versa\n**Source**: GitHub Actions hugo-setup, Cloudflare Pages docs\n**Why It Happens**: Different Hugo versions have different features\u002Fbugs\n**Prevention**:\n- Pin Hugo version in `hugo.yaml` metadata or README\n- Set `HUGO_VERSION` in Cloudflare Pages\n- Use `hugo-version: '0.152.2'` in GitHub Actions\n\n### Issue #5: Content Frontmatter Format Errors\n**Error**: Content files don't render, build fails with parse errors\n**Source**: Hugo content management documentation\n**Why It Happens**: Wrong delimiters (`---` vs `+++`), invalid YAML\u002FTOML syntax\n**Prevention**:\n- YAML: use `---` delimiters\n- TOML: use `+++` delimiters\n- Validate frontmatter with Sveltia CMS or YAML linter\n\n### Issue #6: Theme Not Found Errors\n**Error**: `Error: module \"PaperMod\" not found`, blank site\n**Source**: Hugo themes documentation\n**Why It Happens**: Theme not installed, or `theme` not set in config, or Git submodules not initialized\n**Prevention**:\n- Set `theme: \"PaperMod\"` in hugo.yaml\n- Use `git submodule add` for theme installation\n- Always `git submodule update --init --recursive` after clone\n\n### Issue #7: Date Time Warp Issues\n**Error**: Content missing on deployed site but visible locally\n**Source**: Hugo date handling documentation\n**Why It Happens**: Future-dated posts published locally (with `--buildFuture`) but not in production\n**Prevention**:\n- Use current or past dates in frontmatter\n- Or add `--buildFuture` flag to production build\n- Check `date` field in frontmatter\n\n### Issue #8: Public Folder Conflicts\n**Error**: Stale content on site, Git conflicts in `public\u002F`\n**Source**: Hugo project structure best practices\n**Why It Happens**: Committing `public\u002F` directory when it should be build output only\n**Prevention**:\n- Add `public\u002F` to `.gitignore`\n- Rebuild on every deployment\n- Never commit generated files\n\n### Issue #9: Module Cache Issues\n**Error**: `failed to extract shortcode`, corrupted module cache\n**Source**: Hugo modules documentation, GitHub issues\n**Why It Happens**: Corrupted Hugo Modules cache (when using modules instead of submodules)\n**Prevention**:\n- Run `hugo mod clean` to clear cache\n- Run `hugo mod tidy` periodically\n- Or use Git submodules instead of modules (more reliable)\n\n---\n\n## Configuration Files Reference\n\n### hugo.yaml (Full Production Example)\n\n```yaml\nbaseURL: \"https:\u002F\u002Fexample.com\u002F\"\ntitle: \"My Hugo Blog\"\ntheme: \"PaperMod\"\nlanguageCode: \"en-us\"\ndefaultContentLanguage: \"en\"\nenableRobotsTXT: true\nbuildDrafts: false\nbuildFuture: false\nbuildExpired: false\nenableEmoji: true\npygmentsUseClasses: true\nsummaryLength: 30\n\nminify:\n  disableXML: true\n  minifyOutput: true\n\nparams:\n  env: production\n  title: \"My Hugo Blog\"\n  description: \"A blog built with Hugo and PaperMod\"\n  keywords: [Blog, Hugo, Tech]\n  author: \"Your Name\"\n  images: [\"\u002Fimages\u002Fog-image.jpg\"]\n  DateFormat: \"January 2, 2006\"\n  defaultTheme: auto  # dark, light, auto\n  disableThemeToggle: false\n\n  ShowReadingTime: true\n  ShowShareButtons: true\n  ShowPostNavLinks: true\n  ShowBreadCrumbs: true\n  ShowCodeCopyButtons: true\n  ShowWordCount: true\n  ShowRssButtonInSectionTermList: true\n  UseHugoToc: true\n  disableSpecial1stPost: false\n  disableScrollToTop: false\n  comments: false\n  hidemeta: false\n  hideSummary: false\n  showtoc: true\n  tocopen: false\n\n  assets:\n    disableHLJS: true\n    disableFingerprinting: false\n\n  label:\n    text: \"My Hugo Blog\"\n    icon: \u002Ffavicon.ico\n    iconHeight: 35\n\n  homeInfoParams:\n    Title: \"Hi there 👋\"\n    Content: Welcome to my blog.\n\n  socialIcons:\n    - name: twitter\n      url: \"https:\u002F\u002Ftwitter.com\u002F\"\n    - name: github\n      url: \"https:\u002F\u002Fgithub.com\u002F\"\n    - name: linkedin\n      url: \"https:\u002F\u002Flinkedin.com\u002F\"\n    - name: rss\n      url: \"\u002Findex.xml\"\n\n  cover:\n    hidden: false\n    hiddenInList: false\n    hiddenInSingle: false\n\n  editPost:\n    URL: \"https:\u002F\u002Fgithub.com\u002Fusername\u002Frepo\u002Ftree\u002Fmain\u002Fcontent\"\n    Text: \"Suggest Changes\"\n    appendFilePath: true\n\n  fuseOpts:\n    isCaseSensitive: false\n    shouldSort: true\n    location: 0\n    distance: 1000\n    threshold: 0.4\n    minMatchCharLength: 0\n    keys: [\"title\", \"permalink\", \"summary\", \"content\"]\n\nmenu:\n  main:\n    - identifier: search\n      name: Search\n      url: \u002Fsearch\u002F\n      weight: 10\n    - identifier: posts\n      name: Posts\n      url: \u002Fposts\u002F\n      weight: 20\n    - identifier: archives\n      name: Archives\n      url: \u002Farchives\u002F\n      weight: 30\n    - identifier: tags\n      name: Tags\n      url: \u002Ftags\u002F\n      weight: 40\n    - identifier: about\n      name: About\n      url: \u002Fabout\u002F\n      weight: 50\n\noutputs:\n  home:\n    - HTML\n    - RSS\n    - JSON  # Required for search functionality\n```\n\n**Why these settings:**\n- `buildDrafts: false` - prevents drafts in production\n- `enableRobotsTXT: true` - SEO best practice\n- `minifyOutput: true` - smaller file sizes\n- `defaultTheme: auto` - respects user's system preference\n- `JSON` output - enables client-side search\n- Social icons - improves discoverability\n\n### wrangler.jsonc (Cloudflare Workers)\n\n```jsonc\n{\n  \"name\": \"my-hugo-site\",\n  \"compatibility_date\": \"2025-01-29\",\n  \"assets\": {\n    \"directory\": \".\u002Fpublic\",\n    \"html_handling\": \"auto-trailing-slash\",\n    \"not_found_handling\": \"404-page\"\n  }\n}\n```\n\n**Why these settings:**\n- `directory: \".\u002Fpublic\"` - Hugo's build output\n- `html_handling: \"auto-trailing-slash\"` - matches Hugo's URL structure\n- `not_found_handling: \"404-page\"` - serves Hugo's custom 404.html\n\n### .gitignore (Essential)\n\n```gitignore\n# Hugo\n\u002Fpublic\u002F\n\u002Fresources\u002F_gen\u002F\n.hugo_build.lock\n\n# OS\n.DS_Store\nThumbs.db\n\n# Editor\n.vscode\u002F\n.idea\u002F\n*.swp\n*.swo\n\n# Dependencies (if using npm for tools)\nnode_modules\u002F\npackage-lock.json\n\n# Logs\n*.log\n```\n\n---\n\n## Sveltia CMS Integration (Recommended)\n\n### Why Sveltia CMS for Hugo?\n\n✅ **Hugo is Sveltia's primary use case** - designed specifically for Hugo\n✅ **Simple setup** - 2 static files, no build step required\n✅ **No npm dependencies** - single CDN script\n✅ **Local backend** - test CMS locally without Git\n✅ **YAML frontmatter** - fully compatible\n✅ **No security vulnerabilities** - lightweight, maintained\n✅ **Active development** - focused on static site generators\n\n### Setup (5 Minutes)\n\n**1. Create admin interface** - `static\u002Fadmin\u002Findex.html`:\n\n```html\n\u003C!doctype html>\n\u003Chtml lang=\"en\">\n  \u003Chead>\n    \u003Cmeta charset=\"utf-8\" \u002F>\n    \u003Cmeta name=\"viewport\" content=\"width=device-width,initial-scale=1\" \u002F>\n    \u003Ctitle>Content Manager\u003C\u002Ftitle>\n  \u003C\u002Fhead>\n  \u003Cbody>\n    \u003Cscript src=\"https:\u002F\u002Funpkg.com\u002F@sveltia\u002Fcms\u002Fdist\u002Fsveltia-cms.js\" type=\"module\">\u003C\u002Fscript>\n  \u003C\u002Fbody>\n\u003C\u002Fhtml>\n```\n\n**2. Create CMS config** - `static\u002Fadmin\u002Fconfig.yml`:\n\n```yaml\nbackend:\n  name: git-gateway\n  branch: main\n\nlocal_backend: true  # Enable local testing\n\nmedia_folder: \"static\u002Fimages\u002Fuploads\"\npublic_folder: \"\u002Fimages\u002Fuploads\"\n\ncollections:\n  - name: \"blog\"\n    label: \"Blog Posts\"\n    folder: \"content\u002Fposts\"\n    create: true\n    slug: \"{{slug}}\"\n    fields:\n      - {label: \"Title\", name: \"title\", widget: \"string\"}\n      - {label: \"Description\", name: \"description\", widget: \"string\", required: false}\n      - {label: \"Date\", name: \"date\", widget: \"datetime\"}\n      - {label: \"Draft\", name: \"draft\", widget: \"boolean\", default: false}\n      - {label: \"Tags\", name: \"tags\", widget: \"list\", required: false}\n      - {label: \"Categories\", name: \"categories\", widget: \"list\", required: false}\n      - {label: \"Cover Image\", name: \"cover\", widget: \"object\", required: false, fields: [\n          {label: \"Image\", name: \"image\", widget: \"image\", required: false},\n          {label: \"Alt Text\", name: \"alt\", widget: \"string\", required: false}\n        ]}\n      - {label: \"Body\", name: \"body\", widget: \"markdown\"}\n\n  - name: \"pages\"\n    label: \"Pages\"\n    folder: \"content\"\n    create: true\n    slug: \"{{slug}}\"\n    filter: {field: \"type\", value: \"page\"}\n    fields:\n      - {label: \"Title\", name: \"title\", widget: \"string\"}\n      - {label: \"Date\", name: \"date\", widget: \"datetime\"}\n      - {label: \"Type\", name: \"type\", widget: \"hidden\", default: \"page\"}\n      - {label: \"Draft\", name: \"draft\", widget: \"boolean\", default: false}\n      - {label: \"Body\", name: \"body\", widget: \"markdown\"}\n```\n\n**3. Rebuild site**:\n```bash\nhugo\n# Admin interface now at: http:\u002F\u002Flocalhost:1313\u002Fadmin\n```\n\n**4. Production OAuth** (for Git backend):\n\nSveltia CMS needs OAuth for GitHub\u002FGitLab authentication in production. Use Cloudflare Workers for OAuth proxy:\n\nSee bundled reference: `references\u002Fsveltia-integration-guide.md`\n\n### Key Points:\n- Admin accessible at `\u002Fadmin` after build\n- `local_backend: true` allows local testing without Git\n- YAML frontmatter format required\n- Collections map to Hugo content directories\n- Media files saved to `static\u002Fimages\u002Fuploads`\n\n---\n\n## TinaCMS Integration (Not Recommended)\n\n⚠️ **Use Sveltia CMS instead**. TinaCMS has significant limitations for Hugo:\n\n### Why Not TinaCMS?\n\n❌ **React-only visual editing** - Hugo is Go-templated, visual editing won't work\n❌ **Complex setup** - requires Node.js server or Tina Cloud\n❌ **692 npm packages** - vs Sveltia's 1 CDN script\n❌ **7 security vulnerabilities** - (4 high, 3 critical as of 2025-11-04)\n❌ **React\u002FNext.js focused** - Hugo is secondary use case\n❌ **YAML only** - same limitation as Sveltia, without benefits\n\n### If You Must Use TinaCMS\n\nOnly consider TinaCMS if:\n- Already using Tina Cloud\n- Have React expertise available\n- Need Tina-specific features\n\nSee bundled reference: `references\u002Ftinacms-integration-guide.md` (warning: not recommended)\n\n---\n\n## Tailwind CSS v4 Integration\n\nHugo supports Tailwind CSS v4 through Hugo Pipes and the Tailwind CLI. This approach is fundamentally different from Vite-based React projects.\n\n### When to Use Tailwind vs Themes\n\n**Use Tailwind with Hugo when:**\n- Building custom designs without relying on themes\n- Need utility-first CSS workflow\n- Want complete styling control\n- Prefer Tailwind over SCSS\u002FSass\n\n**Use themes (PaperMod, Book, etc.) when:**\n- Want proven, production-ready designs\n- Need fast setup without custom CSS\n- Happy with theme customization options\n- Don't need pixel-perfect custom design\n\n### Key Differences from Vite + React\n\n**CRITICAL:** Do NOT try to use the `tailwind-v4-shadcn` skill patterns with Hugo. That skill is for Vite + React projects and is incompatible with Hugo's asset pipeline.\n\n| Aspect | Vite + React | Hugo |\n|--------|-------------|------|\n| **Build System** | JavaScript (Node.js) | Go (Hugo binary) |\n| **Tailwind Integration** | `@tailwindcss\u002Fvite` plugin | Tailwind CLI + PostCSS |\n| **Config File** | `vite.config.ts` | `hugo.yaml` |\n| **Content Scanning** | `content: []` globs | `hugo_stats.json` |\n| **Dev Server** | Vite (port 5173) | Hugo (port 1313) |\n| **Dark Mode** | React ThemeProvider | CSS classes or Alpine.js |\n\n### Quick Start (10 Minutes)\n\n1. **Install Dependencies**\n\n```bash\nnpm install -D tailwindcss postcss autoprefixer\nnpx tailwindcss init\n```\n\n2. **Configure Hugo** (`hugo.yaml`)\n\n```yaml\nbuild:\n  writeStats: true  # Generates hugo_stats.json for Tailwind\n\nmodule:\n  mounts:\n    - source: assets\n      target: assets\n    - source: hugo_stats.json\n      target: assets\u002Fwatching\u002Fhugo_stats.json\n```\n\n3. **Configure Tailwind** (`tailwind.config.js`)\n\n```javascript\nmodule.exports = {\n  content: [\n    '.\u002Fhugo_stats.json',\n    '.\u002Flayouts\u002F**\u002F*.html',\n    '.\u002Fcontent\u002F**\u002F*.{html,md}',\n  ],\n  darkMode: 'class',\n  theme: {\n    extend: {\n      colors: {\n        primary: '#0066cc',\n      },\n    },\n  },\n  plugins: [],\n}\n```\n\n4. **Configure PostCSS** (`postcss.config.js`)\n\n```javascript\nmodule.exports = {\n  plugins: {\n    tailwindcss: {},\n    autoprefixer: {},\n  },\n}\n```\n\n5. **Create CSS Entry File** (`assets\u002Fcss\u002Fmain.css`)\n\n```css\n@import \"tailwindcss\";\n\n@layer base {\n  body {\n    @apply bg-white dark:bg-gray-900 text-gray-900 dark:text-gray-100;\n  }\n}\n```\n\n6. **Process CSS in Template** (`layouts\u002F_default\u002Fbaseof.html`)\n\n```html\n\u003Chead>\n  {{ $style := resources.Get \"css\u002Fmain.css\" | resources.PostCSS }}\n  {{ if hugo.IsProduction }}\n    {{ $style = $style | minify | fingerprint }}\n  {{ end }}\n  \u003Clink rel=\"stylesheet\" href=\"{{ $style.RelPermalink }}\">\n\u003C\u002Fhead>\n```\n\n7. **Start Development**\n\n```bash\nhugo server\n```\n\n### Complete Integration Guide\n\nFor full Tailwind v4 + Hugo setup including:\n- Dark mode implementation (CSS-only and Alpine.js)\n- Typography plugin setup\n- Forms plugin setup\n- Template integration patterns\n- Common issues and solutions\n- Production build optimization\n\n**See bundled resources:**\n- **Reference Guide**: `references\u002Ftailwind-v4-integration.md` (comprehensive documentation)\n- **Minimal Template**: `templates\u002Fhugo-tailwind-minimal\u002F` (starting point)\n- **Blog Template**: `templates\u002Fhugo-tailwind-blog\u002F` (complete blog with Tailwind)\n\n### Tailwind-Specific Issues\n\nCommon issues when using Tailwind with Hugo (all documented with solutions in reference guide):\n\n| Issue | Cause | Solution |\n|-------|-------|----------|\n| **CSS not processing** | PostCSS not configured | Verify `resources.PostCSS` in template |\n| **Classes not purging** | `hugo_stats.json` not generated | Enable `writeStats: true` in `hugo.yaml` |\n| **Dark mode broken** | Wrong config | Use `darkMode: 'class'` in `tailwind.config.js` |\n| **Asset fingerprinting fails** | Incorrect Hugo Pipes usage | Use `RelPermalink` not `Permalink` |\n| **Hugo template syntax in CSS** | Can't use `{{ }}` in CSS | Apply classes in templates, not CSS |\n| **Version mismatch** | CLI vs PostCSS plugin | Update all to same version |\n\n---\n\n## Common Patterns\n\n### Pattern 1: Blog with PaperMod Theme\n\n```bash\n# Scaffold\nhugo new site my-blog --format yaml\ncd my-blog\ngit init\ngit submodule add --depth=1 https:\u002F\u002Fgithub.com\u002Fadityatelange\u002Fhugo-PaperMod.git themes\u002FPaperMod\n\n# Configure (see hugo.yaml example above)\n\n# Create posts\nhugo new content posts\u002Ffirst-post.md\n\n# Develop\nhugo server\n\n# Build\nhugo --minify\n```\n\n**When to use**: Personal blogs, company blogs, news sites\n\n### Pattern 2: Documentation Site with Hugo Book\n\n```bash\n# Scaffold\nhugo new site docs --format yaml\ncd docs\ngit init\ngit submodule add https:\u002F\u002Fgithub.com\u002Falex-shpak\u002Fhugo-book.git themes\u002Fhugo-book\n\n# Configure for docs (nested navigation, search)\n# See: bundled template `templates\u002Fhugo-docs\u002F`\n\n# Create docs\nhugo new content docs\u002Fgetting-started\u002Finstallation.md\n\n# Build\nhugo --minify\n```\n\n**When to use**: Technical documentation, knowledge bases, API docs\n\n### Pattern 3: Landing Page\n\n```bash\n# Scaffold\nhugo new site landing --format yaml\n\n# Use custom layouts (no theme)\n# See: bundled template `templates\u002Fhugo-landing\u002F`\n\n# Single-page structure\nhugo new content _index.md\n\n# Build\nhugo --minify\n```\n\n**When to use**: Marketing sites, product pages, portfolios\n\n### Pattern 4: Multilingual Site\n\n```yaml\n# hugo.yaml\ndefaultContentLanguage: \"en\"\nlanguages:\n  en:\n    languageName: \"English\"\n    weight: 1\n  es:\n    languageName: \"Español\"\n    weight: 2\n\n# Content structure:\n# content\u002F\n# ├── posts\u002F\n# │   └── post-1.en.md\n# │   └── post-1.es.md\n```\n\n**When to use**: International sites, localized content\n\n---\n\n## Using Bundled Resources\n\n### Scripts (scripts\u002F)\n\n**`init-hugo.sh`** - Automated Hugo project setup\n```bash\n.\u002Fscripts\u002Finit-hugo.sh blog my-blog\n# Creates Hugo site with specified template (blog\u002Fdocs\u002Flanding\u002Fminimal)\n# Arguments: [template-type] [project-name]\n```\n\n**`deploy-workers.sh`** - Manual Cloudflare Workers deployment\n```bash\n.\u002Fscripts\u002Fdeploy-workers.sh\n# Runs: hugo --minify && wrangler deploy\n```\n\n**`check-versions.sh`** - Verify Hugo and tool versions\n```bash\n.\u002Fscripts\u002Fcheck-versions.sh\n# Checks: Hugo version, Extended edition, wrangler, Node.js\n```\n\n### Templates (templates\u002F)\n\nComplete, working Hugo projects ready to copy:\n\n**`templates\u002Fhugo-blog\u002F`** - Blog with PaperMod theme\n- Dark\u002Flight mode, search, tags, archives\n- Sveltia CMS pre-configured\n- wrangler.jsonc for Workers\n- GitHub Actions workflow\n\n**`templates\u002Fhugo-docs\u002F`** - Documentation site\n- Nested navigation, search, breadcrumbs\n- Hugo Book theme\n- Sveltia CMS for docs editing\n\n**`templates\u002Fhugo-landing\u002F`** - Landing page\n- Hero, features, testimonials, CTA\n- Custom layouts (no theme)\n- Optimized for conversions\n\n**`templates\u002Fminimal-starter\u002F`** - Bare-bones project\n- No theme, clean slate\n- Setup guide for adding themes\n- Minimal configuration\n\n**When to use templates**: Copy entire template directory to start a new project instantly.\n\n### References (references\u002F)\n\nDetailed guides that Claude can load when needed:\n\n- `references\u002Fsveltia-integration-guide.md` - Complete Sveltia CMS setup, OAuth configuration\n- `references\u002Fworkers-deployment-guide.md` - Cloudflare Workers deployment, CI\u002FCD, custom domains\n- `references\u002Fcommon-errors.md` - All 9 errors with detailed solutions\n- `references\u002Ftheme-customization-guide.md` - Overriding layouts, custom CSS, partials\n- `references\u002Fhugo-vs-alternatives.md` - Comparison with Next.js, Astro, Jekyll\n\n**When Claude should load these**: User asks about specific topics (CMS setup, deployment, errors, theming, alternatives)\n\n### Assets (assets\u002F)\n\n- `assets\u002Fscreenshots\u002F` - Visual examples of Hugo blog, Sveltia CMS, deployment\n- `assets\u002Fdiagrams\u002F` - Hugo directory structure, deployment workflow diagrams\n\n---\n\n## Advanced Topics\n\n### Custom Shortcodes\n\nCreate reusable content components:\n\n```go-html-template\n\u003C!-- layouts\u002Fshortcodes\u002Fyoutube.html -->\n\u003Cdiv class=\"youtube-embed\">\n  \u003Ciframe\n    src=\"https:\u002F\u002Fwww.youtube.com\u002Fembed\u002F{{ .Get 0 }}\"\n    allowfullscreen>\n  \u003C\u002Fiframe>\n\u003C\u002Fdiv>\n```\n\nUsage in content:\n```markdown\n{{\u003C youtube dQw4w9WgXcQ >}}\n```\n\n### Image Processing\n\nHugo has built-in image processing:\n\n```go-html-template\n{{ $image := resources.Get \"images\u002Fphoto.jpg\" }}\n{{ $resized := $image.Resize \"800x\" }}\n\u003Cimg src=\"{{ $resized.RelPermalink }}\" alt=\"Photo\">\n```\n\n### Taxonomy Customization\n\nCreate custom taxonomies beyond tags\u002Fcategories:\n\n```yaml\n# hugo.yaml\ntaxonomies:\n  tag: tags\n  category: categories\n  series: series  # Custom taxonomy\n```\n\n### Data Files\n\nUse JSON\u002FYAML\u002FTOML data files:\n\n```yaml\n# data\u002Fteam.yaml\n- name: Alice\n  role: Developer\n- name: Bob\n  role: Designer\n```\n\nAccess in templates:\n```go-html-template\n{{ range .Site.Data.team }}\n  \u003Cdiv>{{ .name }} - {{ .role }}\u003C\u002Fdiv>\n{{ end }}\n```\n\n---\n\n## Dependencies\n\n**Required**:\n- Hugo v0.149.0+ (Extended edition) - Static site generator\n\n**Optional** (for deployment):\n- wrangler v4.0.0+ - Cloudflare Workers deployment\n- Git v2.0+ - Version control and theme submodules\n\n**Optional** (for CMS):\n- Sveltia CMS (latest) - Content management (CDN-based, no installation)\n\n---\n\n## Official Documentation\n\n- **Hugo**: https:\u002F\u002Fgohugo.io\u002Fdocumentation\u002F\n- **PaperMod Theme**: https:\u002F\u002Fgithub.com\u002Fadityatelange\u002Fhugo-PaperMod\u002Fwiki\n- **Sveltia CMS**: https:\u002F\u002Fgithub.com\u002Fsveltia\u002Fsveltia-cms\n- **Cloudflare Workers**: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fworkers\u002F\n- **Hugo Themes**: https:\u002F\u002Fthemes.gohugo.io\u002F\n\n---\n\n## Package Versions (Verified 2025-11-04)\n\n**Hugo**: v0.152.2+extended (October 24, 2025)\n**PaperMod**: Latest (via Git submodule)\n**Sveltia CMS**: Latest (via CDN)\n**Wrangler**: v4.37.1+ (v4.45.3 available)\n\n---\n\n## Production Example\n\nThis skill is based on live testing:\n- **Test Site**: https:\u002F\u002Fhugo-blog-test.webfonts.workers.dev\n- **Build Time**: 24ms (20 pages)\n- **Deployment Time**: ~21 seconds\n- **Errors**: 0 (all 9 known issues prevented)\n- **Validation**: ✅ Hugo + PaperMod + Sveltia + Workers deployed successfully\n\n---\n\n## Troubleshooting\n\n### Problem: \"SCSS support not enabled\" error\n**Solution**: Install Hugo Extended, not Standard. Verify with `hugo version | grep extended`\n\n### Problem: Blank site after deployment\n**Solution**:\n1. Check `theme` is set in hugo.yaml\n2. Verify theme exists in `themes\u002F` directory\n3. Run `git submodule update --init --recursive`\n\n### Problem: Assets (CSS\u002FJS\u002Fimages) not loading\n**Solution**:\n1. Check `baseURL` in hugo.yaml matches deployment URL\n2. Or use `hugo -b https:\u002F\u002Fyour-site.com`\n3. Or use environment-specific config\n\n### Problem: Posts not appearing on site\n**Solution**:\n1. Check `draft: false` in frontmatter\n2. Check date is not in future\n3. Or build with `--buildDrafts` and `--buildFuture` flags\n\n### Problem: Theme not found in CI\u002FCD\n**Solution**: Add `submodules: recursive` to checkout action in GitHub Actions\n\n### Problem: Sveltia CMS not loading\n**Solution**:\n1. Rebuild site with `hugo`\n2. Check `\u002Fadmin` directory exists in `public\u002F`\n3. Verify `config.yml` syntax\n4. Check browser console for errors\n\n---\n\n## Complete Setup Checklist\n\nUse this checklist to verify your setup:\n\n- [ ] Hugo Extended v0.149.0+ installed (`hugo version` shows \"+extended\")\n- [ ] Project created with `--format yaml` (hugo.yaml exists)\n- [ ] Theme installed and configured (via Git submodule or Hugo Module)\n- [ ] `baseURL` configured correctly in hugo.yaml\n- [ ] `.gitignore` includes `public\u002F` and `resources\u002F_gen\u002F`\n- [ ] Sample content created and renders correctly\n- [ ] Dev server runs without errors (`hugo server`)\n- [ ] Production build succeeds (`hugo --minify`)\n- [ ] wrangler.jsonc configured for Workers (if deploying)\n- [ ] Sveltia CMS configured (if using CMS)\n- [ ] GitHub Actions workflow configured (if using CI\u002FCD)\n- [ ] Deployed successfully (if deploying to Workers)\n\n---\n\n**Questions? Issues?**\n\n1. Check `references\u002Fcommon-errors.md` for all 9 documented errors and solutions\n2. Verify all steps in the setup process\n3. Check official docs: https:\u002F\u002Fgohugo.io\u002Fdocumentation\u002F\n4. Ensure Hugo Extended is installed (most common issue)\n\n---\n\n**This skill provides production-ready Hugo setup with zero errors. All 9 common issues are documented and prevented.**\n","# Hugo Static Site Generator\n\n**Status**: Production Ready\n**Last Updated**: 2025-11-04\n**Dependencies**: None (Hugo is a standalone binary)\n**Latest Versions**: hugo@0.152.2+extended, PaperMod@latest, Sveltia CMS@latest\n\n---\n\n## Quick Start (5 Minutes)\n\n### 1. Install Hugo Extended\n\n**CRITICAL**: Always install Hugo **Extended** edition (not Standard) unless you're certain you don't need SCSS\u002FSass support. Most themes require Extended.\n\n```bash\n# macOS\nbrew install hugo\n\n# Linux (Ubuntu\u002FDebian)\nwget https:\u002F\u002Fgithub.com\u002Fgohugoio\u002Fhugo\u002Freleases\u002Fdownload\u002Fv0.152.2\u002Fhugo_extended_0.152.2_linux-amd64.deb\nsudo dpkg -i hugo_extended_0.152.2_linux-amd64.deb\n\n# Verify Extended edition\nhugo version  # Should show \"+extended\"\n```\n\n**Why this matters:**\n- Hugo Extended includes SCSS\u002FSass processing\n- Most popular themes (PaperMod, Academic, Docsy) require Extended\n- Standard edition will fail with \"SCSS support not enabled\" errors\n- Extended has no downsides (same speed, same features + more)\n\n### 2. Create New Hugo Site\n\n```bash\n# Use YAML format (not TOML) for better CMS compatibility\nhugo new site my-blog --format yaml\n\n# Initialize Git\ncd my-blog\ngit init\n\n# Add PaperMod theme (recommended for blogs)\ngit submodule add --depth=1 https:\u002F\u002Fgithub.com\u002Fadityatelange\u002Fhugo-PaperMod.git themes\u002FPaperMod\n```\n\n**CRITICAL:**\n- Use `--format yaml` to create hugo.yaml (not hugo.toml)\n- YAML is required for Sveltia CMS and recommended for TinaCMS\n- TOML has known bugs in Sveltia CMS beta\n- Git submodules require `--recursive` flag when cloning later\n\n### 3. Configure and Build\n\n```yaml\n# hugo.yaml - Minimal working configuration\nbaseURL: \"https:\u002F\u002Fexample.com\u002F\"\ntitle: \"My Hugo Blog\"\ntheme: \"PaperMod\"\nlanguageCode: \"en-us\"\nenableRobotsTXT: true\n\nparams:\n  ShowReadingTime: true\n  ShowShareButtons: true\n  defaultTheme: auto  # Supports dark\u002Flight\u002Fauto\n```\n\n```bash\n# Create first post\nhugo new content posts\u002Ffirst-post.md\n\n# Run development server (with live reload)\nhugo server\n\n# Build for production\nhugo --minify\n\n# Output is in public\u002F directory\n```\n\n---\n\n## The 7-Step Setup Process\n\n### Step 1: Installation and Verification\n\n**Install Hugo Extended** using one of these methods:\n\n**Method 1: Homebrew (macOS\u002FLinux)** ✅ Recommended\n```bash\nbrew install hugo\n```\n\n**Method 2: Binary Download (Linux)**\n```bash\n# Check latest version: https:\u002F\u002Fgithub.com\u002Fgohugoio\u002Fhugo\u002Freleases\nVERSION=\"0.152.2\"\nwget https:\u002F\u002Fgithub.com\u002Fgohugoio\u002Fhugo\u002Freleases\u002Fdownload\u002Fv${VERSION}\u002Fhugo_extended_${VERSION}_linux-amd64.deb\nsudo dpkg -i hugo_extended_${VERSION}_linux-amd64.deb\n```\n\n**Method 3: Docker**\n```bash\ndocker run --rm -it -v $(pwd):\u002Fsrc klakegg\u002Fhugo:ext-alpine\n```\n\n**Method 4: NPM Wrapper** (not recommended, may lag behind)\n```bash\nnpm install -g hugo-bin\n```\n\n**Verification:**\n```bash\nhugo version\n# Should output: hugo v0.152.2+extended\n#                                ^^^^^^^^ Must show \"+extended\"\n```\n\n**Key Points:**\n- Extended edition required for SCSS\u002FSass\n- Version should be v0.149.0+ for best compatibility\n- NPM wrapper may be behind official releases\n- Pin version in CI\u002FCD (see Step 7)\n\n### Step 2: Project Scaffolding\n\n**Create new site with YAML configuration:**\n\n```bash\nhugo new site my-site --format yaml\ncd my-site\n```\n\n**Directory structure created:**\n```\nmy-site\u002F\n├── hugo.yaml          # Configuration (YAML format)\n├── archetypes\u002F        # Content templates\n│   └── default.md\n├── content\u002F           # All your content goes here\n├── data\u002F              # Data files (JSON\u002FYAML\u002FTOML)\n├── layouts\u002F           # Template overrides\n├── static\u002F            # Static assets (images, CSS, JS)\n├── themes\u002F            # Themes directory\n└── public\u002F            # Build output (generated, git ignore)\n```\n\n**CRITICAL:**\n- Use `--format yaml` for CMS compatibility\n- Never commit `public\u002F` directory to Git\n- Create `.gitignore` immediately (see Step 3)\n\n### Step 3: Theme Installation\n\n**Recommended Method: Git Submodule** ✅\n\n```bash\n# Popular themes:\n# - PaperMod (blogs): https:\u002F\u002Fgithub.com\u002Fadityatelange\u002Fhugo-PaperMod\n# - Book (docs): https:\u002F\u002Fgithub.com\u002Falex-shpak\u002Fhugo-book\n# - Academic (research): https:\u002F\u002Fgithub.com\u002FHugoBlox\u002Ftheme-academic-cv\n# - Ananke (general): https:\u002F\u002Fgithub.com\u002FtheNewDynamic\u002Fgohugo-theme-ananke\n\ngit submodule add --depth=1 https:\u002F\u002Fgithub.com\u002Fadityatelange\u002Fhugo-PaperMod.git themes\u002FPaperMod\n```\n\n**Alternative: Hugo Modules** (advanced)\n```bash\nhugo mod init github.com\u002Fusername\u002Fmy-site\n\n# In hugo.yaml:\n# module:\n#   imports:\n#     - path: github.com\u002Fadityatelange\u002Fhugo-PaperMod\n```\n\n**Add theme to hugo.yaml:**\n```yaml\ntheme: \"PaperMod\"\n```\n\n**When cloning project with submodules:**\n```bash\ngit clone --recursive https:\u002F\u002Fgithub.com\u002Fusername\u002Fmy-site.git\n# Or if already cloned:\ngit submodule update --init --recursive\n```\n\n**Key Points:**\n- Git submodules are recommended over manual downloads\n- `--depth=1` saves space (no theme history)\n- Always run `git submodule update --init --recursive` after clone\n- Hugo Modules are more advanced but don't require Git submodules\n\n### Step 4: Configuration\n\n**hugo.yaml - Complete Example (PaperMod blog):**\n\n```yaml\nbaseURL: \"https:\u002F\u002Fexample.com\u002F\"\ntitle: \"My Hugo Blog\"\ntheme: \"PaperMod\"\nlanguageCode: \"en-us\"\ndefaultContentLanguage: \"en\"\nenableRobotsTXT: true\nbuildDrafts: false\nbuildFuture: false\nbuildExpired: false\nenableEmoji: true\n\nminify:\n  disableXML: true\n  minifyOutput: true\n\nparams:\n  env: production\n  title: \"My Hugo Blog\"\n  description: \"A blog built with Hugo and PaperMod\"\n  author: \"Your Name\"\n  ShowReadingTime: true\n  ShowShareButtons: true\n  ShowPostNavLinks: true\n  ShowBreadCrumbs: true\n  ShowCodeCopyButtons: true\n  defaultTheme: auto  # dark, light, auto\n\n  socialIcons:\n    - name: twitter\n      url: \"https:\u002F\u002Ftwitter.com\u002Fusername\"\n    - name: github\n      url: \"https:\u002F\u002Fgithub.com\u002Fusername\"\n\nmenu:\n  main:\n    - identifier: posts\n      name: Posts\n      url: \u002Fposts\u002F\n      weight: 10\n    - identifier: about\n      name: About\n      url: \u002Fabout\u002F\n      weight: 20\n\noutputs:\n  home:\n    - HTML\n    - RSS\n    - JSON  # Required for search\n```\n\n**Configuration Formats:**\n- **YAML** (recommended): `hugo.yaml` - Better CMS compatibility\n- **TOML** (legacy): `hugo.toml` - Default but problematic with Sveltia CMS\n- **JSON**: `hugo.json` - Rarely used\n\n**Environment-Specific Configs:**\n```\nconfig\u002F\n├── _default\u002F\n│   └── hugo.yaml\n├── production\u002F\n│   └── hugo.yaml  # Overrides for production\n└── development\u002F\n    └── hugo.yaml  # Overrides for local dev\n```\n\n### Step 5: Content Creation\n\n**Create content with Hugo CLI:**\n```bash\n# Blog post\nhugo new content posts\u002Fmy-first-post.md\n\n# Page\nhugo new content about.md\n\n# Nested documentation\nhugo new content docs\u002Fgetting-started\u002Finstallation.md\n```\n\n**Frontmatter Format (YAML recommended):**\n\n```yaml\n---\ntitle: \"My First Post\"\ndate: 2025-11-04T10:00:00+11:00\ndraft: false\ntags: [\"hugo\", \"blog\"]\ncategories: [\"General\"]\ndescription: \"A brief description for SEO\"\ncover:\n  image: \"\u002Fimages\u002Fcover.jpg\"\n  alt: \"Cover image\"\n---\n\n# Post content starts here\n\nThis is my first Hugo blog post!\n```\n\n**TOML Frontmatter (for reference only):**\n```toml\n+++\ntitle = \"My First Post\"\ndate = 2025-11-04T10:00:00+11:00\ndraft = false\ntags = [\"hugo\", \"blog\"]\n+++\n```\n\n**Key Points:**\n- Use `---` delimiters for YAML frontmatter\n- Use `+++` delimiters for TOML frontmatter\n- `draft: false` required for post to appear in production\n- `date` in future = post won't publish (unless `--buildFuture` flag used)\n- Content goes after frontmatter closing delimiter\n\n### Step 6: Build and Development\n\n**Development server (with live reload):**\n```bash\n# Start server\nhugo server\n\n# With drafts visible\nhugo server --buildDrafts\n\n# With future-dated posts\nhugo server --buildFuture\n\n# Bind to specific port\nhugo server --port 1314\n\n# Access at: http:\u002F\u002Flocalhost:1313\n```\n\n**Production build:**\n```bash\n# Basic build\nhugo\n\n# With minification (recommended)\nhugo --minify\n\n# With specific baseURL (for deployment)\nhugo --minify --baseURL https:\u002F\u002Fexample.com\n\n# Or use environment variable\nhugo --minify -b $CF_PAGES_URL\n```\n\n**Build Output:**\n- All generated files go to `public\u002F` directory\n- Typical build time: \u003C100ms for small sites, \u003C5s for 1000+ pages\n- Hugo is the **fastest** static site generator\n\n**Key Points:**\n- Development server has live reload (HMR)\n- Production build should use `--minify`\n- Never commit `public\u002F` directory\n- Build time is extremely fast (Hugo is written in Go)\n\n### Step 7: Cloudflare Workers Deployment\n\n**Create wrangler.jsonc:**\n\n```jsonc\n{\n  \"name\": \"my-hugo-site\",\n  \"compatibility_date\": \"2025-01-29\",\n  \"assets\": {\n    \"directory\": \".\u002Fpublic\",\n    \"html_handling\": \"auto-trailing-slash\",\n    \"not_found_handling\": \"404-page\"\n  }\n}\n```\n\n**Manual deployment:**\n```bash\n# Build site\nhugo --minify\n\n# Deploy to Workers\nnpx wrangler deploy\n```\n\n**GitHub Actions (Automated):**\n\nCreate `.github\u002Fworkflows\u002Fdeploy.yml`:\n\n```yaml\nname: Deploy to Cloudflare Workers\n\non:\n  push:\n    branches: [main]\n\njobs:\n  deploy:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout\n        uses: actions\u002Fcheckout@v4\n        with:\n          submodules: recursive  # Important for theme submodules!\n\n      - name: Setup Hugo\n        uses: peaceiris\u002Factions-hugo@v2\n        with:\n          hugo-version: '0.152.2'\n          extended: true\n\n      - name: Build\n        run: hugo --minify\n\n      - name: Deploy to Cloudflare Workers\n        uses: cloudflare\u002Fwrangler-action@v3\n        with:\n          apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}\n```\n\n**Key Points:**\n- `assets.directory` must be `\".\u002Fpublic\"` (Hugo's output)\n- `html_handling: \"auto-trailing-slash\"` handles Hugo's URL structure\n- `not_found_handling: \"404-page\"` serves Hugo's 404.html\n- Always pin Hugo version in CI\u002FCD (prevents version mismatch errors)\n- Use `submodules: recursive` for theme submodules\n\n---\n\n## Critical Rules\n\n### Always Do\n\n✅ **Install Hugo Extended** (not Standard) - required for SCSS\u002FSass support in themes\n✅ **Use YAML configuration** (`--format yaml`) - better CMS compatibility than TOML\n✅ **Add themes as Git submodules** - easier updates and version control\n✅ **Set correct baseURL** - prevents broken asset links on deployment\n✅ **Pin Hugo version in CI\u002FCD** - prevents version mismatch errors between local and deployment\n✅ **Add `public\u002F` to .gitignore** - build output should not be committed\n✅ **Use `draft: false`** - drafts don't appear in production builds\n✅ **Clone with `--recursive` flag** - ensures theme submodules are fetched\n✅ **Use relative paths for images** - `\u002Fimages\u002Fphoto.jpg` not `..\u002Fimages\u002Fphoto.jpg`\n✅ **Test build before deploying** - catch errors locally with `hugo --minify`\n\n### Never Do\n\n❌ **Don't install Hugo Standard** - most themes require Extended edition\n❌ **Don't use TOML config with Sveltia CMS** - has known bugs, use YAML instead\n❌ **Don't commit `public\u002F` directory** - it's generated output, not source code\n❌ **Don't use different Hugo versions** - local vs CI\u002FCD version mismatch causes errors\n❌ **Don't forget `submodules: recursive`** - themes won't load in CI\u002FCD\n❌ **Don't hardcode production URLs** - use `-b $CF_PAGES_URL` or environment configs\n❌ **Don't push `resources\u002F_gen\u002F`** - generated assets, should be in .gitignore\n❌ **Don't use future dates carelessly** - posts won't publish until date passes\n❌ **Don't skip `.hugo_build.lock`** - add to .gitignore\n❌ **Don't mix YAML and TOML** - stick to one format throughout project\n\n---\n\n## Known Issues Prevention\n\nThis skill prevents **9** documented issues:\n\n### Issue #1: Version Mismatch (Hugo vs Hugo Extended)\n**Error**: `Error: SCSS support not enabled`\n**Source**: https:\u002F\u002Fgohugo.io\u002Ftroubleshooting\u002Ffaq\u002F#i-get-this-feature-is-not-available-in-your-current-hugo-version\n**Why It Happens**: Theme requires SCSS\u002FSass processing, but Hugo Standard doesn't include it\n**Prevention**: Always install Hugo Extended edition. Verify with `hugo version | grep extended`\n\n### Issue #2: baseURL Configuration Errors\n**Error**: Broken CSS\u002FJS\u002Fimage links, 404s on all assets\n**Source**: Hugo docs, Cloudflare Pages guide\n**Why It Happens**: `baseURL` in config doesn't match deployment URL\n**Prevention**:\n- Use environment-specific configs (`config\u002Fproduction\u002Fhugo.yaml`)\n- Or use build flag: `hugo -b $CF_PAGES_URL`\n- Or set correct baseURL in hugo.yaml before build\n\n### Issue #3: TOML vs YAML Configuration Confusion\n**Error**: Sveltia CMS fails to parse frontmatter, config not loading\n**Source**: Sveltia CMS documentation, community reports\n**Why It Happens**: Mixing TOML and YAML, or using TOML with Sveltia CMS (which has bugs)\n**Prevention**: Standardize on YAML format. Create sites with `--format yaml` flag\n\n### Issue #4: Hugo Version Mismatch (Local vs Deployment)\n**Error**: Features work locally but fail in CI\u002FCD, or vice versa\n**Source**: GitHub Actions hugo-setup, Cloudflare Pages docs\n**Why It Happens**: Different Hugo versions have different features\u002Fbugs\n**Prevention**:\n- Pin Hugo version in `hugo.yaml` metadata or README\n- Set `HUGO_VERSION` in Cloudflare Pages\n- Use `hugo-version: '0.152.2'` in GitHub Actions\n\n### Issue #5: Content Frontmatter Format Errors\n**Error**: Content files don't render, build fails with parse errors\n**Source**: Hugo content management documentation\n**Why It Happens**: Wrong delimiters (`---` vs `+++`), invalid YAML\u002FTOML syntax\n**Prevention**:\n- YAML: use `---` delimiters\n- TOML: use `+++` delimiters\n- Validate frontmatter with Sveltia CMS or YAML linter\n\n### Issue #6: Theme Not Found Errors\n**Error**: `Error: module \"PaperMod\" not found`, blank site\n**Source**: Hugo themes documentation\n**Why It Happens**: Theme not installed, or `theme` not set in config, or Git submodules not initialized\n**Prevention**:\n- Set `theme: \"PaperMod\"` in hugo.yaml\n- Use `git submodule add` for theme installation\n- Always `git submodule update --init --recursive` after clone\n\n### Issue #7: Date Time Warp Issues\n**Error**: Content missing on deployed site but visible locally\n**Source**: Hugo date handling documentation\n**Why It Happens**: Future-dated posts published locally (with `--buildFuture`) but not in production\n**Prevention**:\n- Use current or past dates in frontmatter\n- Or add `--buildFuture` flag to production build\n- Check `date` field in frontmatter\n\n### Issue #8: Public Folder Conflicts\n**Error**: Stale content on site, Git conflicts in `public\u002F`\n**Source**: Hugo project structure best practices\n**Why It Happens**: Committing `public\u002F` directory when it should be build output only\n**Prevention**:\n- Add `public\u002F` to `.gitignore`\n- Rebuild on every deployment\n- Never commit generated files\n\n### Issue #9: Module Cache Issues\n**Error**: `failed to extract shortcode`, corrupted module cache\n**Source**: Hugo modules documentation, GitHub issues\n**Why It Happens**: Corrupted Hugo Modules cache (when using modules instead of submodules)\n**Prevention**:\n- Run `hugo mod clean` to clear cache\n- Run `hugo mod tidy` periodically\n- Or use Git submodules instead of modules (more reliable)\n\n---\n\n## Configuration Files Reference\n\n### hugo.yaml (Full Production Example)\n\n```yaml\nbaseURL: \"https:\u002F\u002Fexample.com\u002F\"\ntitle: \"My Hugo Blog\"\ntheme: \"PaperMod\"\nlanguageCode: \"en-us\"\ndefaultContentLanguage: \"en\"\nenableRobotsTXT: true\nbuildDrafts: false\nbuildFuture: false\nbuildExpired: false\nenableEmoji: true\npygmentsUseClasses: true\nsummaryLength: 30\n\nminify:\n  disableXML: true\n  minifyOutput: true\n\nparams:\n  env: production\n  title: \"My Hugo Blog\"\n  description: \"A blog built with Hugo and PaperMod\"\n  keywords: [Blog, Hugo, Tech]\n  author: \"Your Name\"\n  images: [\"\u002Fimages\u002Fog-image.jpg\"]\n  DateFormat: \"January 2, 2006\"\n  defaultTheme: auto  # dark, light, auto\n  disableThemeToggle: false\n\n  ShowReadingTime: true\n  ShowShareButtons: true\n  ShowPostNavLinks: true\n  ShowBreadCrumbs: true\n  ShowCodeCopyButtons: true\n  ShowWordCount: true\n  ShowRssButtonInSectionTermList: true\n  UseHugoToc: true\n  disableSpecial1stPost: false\n  disableScrollToTop: false\n  comments: false\n  hidemeta: false\n  hideSummary: false\n  showtoc: true\n  tocopen: false\n\n  assets:\n    disableHLJS: true\n    disableFingerprinting: false\n\n  label:\n    text: \"My Hugo Blog\"\n    icon: \u002Ffavicon.ico\n    iconHeight: 35\n\n  homeInfoParams:\n    Title: \"Hi there 👋\"\n    Content: Welcome to my blog.\n\n  socialIcons:\n    - name: twitter\n      url: \"https:\u002F\u002Ftwitter.com\u002F\"\n    - name: github\n      url: \"https:\u002F\u002Fgithub.com\u002F\"\n    - name: linkedin\n      url: \"https:\u002F\u002Flinkedin.com\u002F\"\n    - name: rss\n      url: \"\u002Findex.xml\"\n\n  cover:\n    hidden: false\n    hiddenInList: false\n    hiddenInSingle: false\n\n  editPost:\n    URL: \"https:\u002F\u002Fgithub.com\u002Fusername\u002Frepo\u002Ftree\u002Fmain\u002Fcontent\"\n    Text: \"Suggest Changes\"\n    appendFilePath: true\n\n  fuseOpts:\n    isCaseSensitive: false\n    shouldSort: true\n    location: 0\n    distance: 1000\n    threshold: 0.4\n    minMatchCharLength: 0\n    keys: [\"title\", \"permalink\", \"summary\", \"content\"]\n\nmenu:\n  main:\n    - identifier: search\n      name: Search\n      url: \u002Fsearch\u002F\n      weight: 10\n    - identifier: posts\n      name: Posts\n      url: \u002Fposts\u002F\n      weight: 20\n    - identifier: archives\n      name: Archives\n      url: \u002Farchives\u002F\n      weight: 30\n    - identifier: tags\n      name: Tags\n      url: \u002Ftags\u002F\n      weight: 40\n    - identifier: about\n      name: About\n      url: \u002Fabout\u002F\n      weight: 50\n\noutputs:\n  home:\n    - HTML\n    - RSS\n    - JSON  # Required for search functionality\n```\n\n**Why these settings:**\n- `buildDrafts: false` - prevents drafts in production\n- `enableRobotsTXT: true` - SEO best practice\n- `minifyOutput: true` - smaller file sizes\n- `defaultTheme: auto` - respects user's system preference\n- `JSON` output - enables client-side search\n- Social icons - improves discoverability\n\n### wrangler.jsonc (Cloudflare Workers)\n\n```jsonc\n{\n  \"name\": \"my-hugo-site\",\n  \"compatibility_date\": \"2025-01-29\",\n  \"assets\": {\n    \"directory\": \".\u002Fpublic\",\n    \"html_handling\": \"auto-trailing-slash\",\n    \"not_found_handling\": \"404-page\"\n  }\n}\n```\n\n**Why these settings:**\n- `directory: \".\u002Fpublic\"` - Hugo's build output\n- `html_handling: \"auto-trailing-slash\"` - matches Hugo's URL structure\n- `not_found_handling: \"404-page\"` - serves Hugo's custom 404.html\n\n### .gitignore (Essential)\n\n```gitignore\n# Hugo\n\u002Fpublic\u002F\n\u002Fresources\u002F_gen\u002F\n.hugo_build.lock\n\n# OS\n.DS_Store\nThumbs.db\n\n# Editor\n.vscode\u002F\n.idea\u002F\n*.swp\n*.swo\n\n# Dependencies (if using npm for tools)\nnode_modules\u002F\npackage-lock.json\n\n# Logs\n*.log\n```\n\n---\n\n## Sveltia CMS Integration (Recommended)\n\n### Why Sveltia CMS for Hugo?\n\n✅ **Hugo is Sveltia's primary use case** - designed specifically for Hugo\n✅ **Simple setup** - 2 static files, no build step required\n✅ **No npm dependencies** - single CDN script\n✅ **Local backend** - test CMS locally without Git\n✅ **YAML frontmatter** - fully compatible\n✅ **No security vulnerabilities** - lightweight, maintained\n✅ **Active development** - focused on static site generators\n\n### Setup (5 Minutes)\n\n**1. Create admin interface** - `static\u002Fadmin\u002Findex.html`:\n\n```html\n\u003C!doctype html>\n\u003Chtml lang=\"en\">\n  \u003Chead>\n    \u003Cmeta charset=\"utf-8\" \u002F>\n    \u003Cmeta name=\"viewport\" content=\"width=device-width,initial-scale=1\" \u002F>\n    \u003Ctitle>Content Manager\u003C\u002Ftitle>\n  \u003C\u002Fhead>\n  \u003Cbody>\n    \u003Cscript src=\"https:\u002F\u002Funpkg.com\u002F@sveltia\u002Fcms\u002Fdist\u002Fsveltia-cms.js\" type=\"module\">\u003C\u002Fscript>\n  \u003C\u002Fbody>\n\u003C\u002Fhtml>\n```\n\n**2. Create CMS config** - `static\u002Fadmin\u002Fconfig.yml`:\n\n```yaml\nbackend:\n  name: git-gateway\n  branch: main\n\nlocal_backend: true  # Enable local testing\n\nmedia_folder: \"static\u002Fimages\u002Fuploads\"\npublic_folder: \"\u002Fimages\u002Fuploads\"\n\ncollections:\n  - name: \"blog\"\n    label: \"Blog Posts\"\n    folder: \"content\u002Fposts\"\n    create: true\n    slug: \"{{slug}}\"\n    fields:\n      - {label: \"Title\", name: \"title\", widget: \"string\"}\n      - {label: \"Description\", name: \"description\", widget: \"string\", required: false}\n      - {label: \"Date\", name: \"date\", widget: \"datetime\"}\n      - {label: \"Draft\", name: \"draft\", widget: \"boolean\", default: false}\n      - {label: \"Tags\", name: \"tags\", widget: \"list\", required: false}\n      - {label: \"Categories\", name: \"categories\", widget: \"list\", required: false}\n      - {label: \"Cover Image\", name: \"cover\", widget: \"object\", required: false, fields: [\n          {label: \"Image\", name: \"image\", widget: \"image\", required: false},\n          {label: \"Alt Text\", name: \"alt\", widget: \"string\", required: false}\n        ]}\n      - {label: \"Body\", name: \"body\", widget: \"markdown\"}\n\n  - name: \"pages\"\n    label: \"Pages\"\n    folder: \"content\"\n    create: true\n    slug: \"{{slug}}\"\n    filter: {field: \"type\", value: \"page\"}\n    fields:\n      - {label: \"Title\", name: \"title\", widget: \"string\"}\n      - {label: \"Date\", name: \"date\", widget: \"datetime\"}\n      - {label: \"Type\", name: \"type\", widget: \"hidden\", default: \"page\"}\n      - {label: \"Draft\", name: \"draft\", widget: \"boolean\", default: false}\n      - {label: \"Body\", name: \"body\", widget: \"markdown\"}\n```\n\n**3. Rebuild site**:\n```bash\nhugo\n# Admin interface now at: http:\u002F\u002Flocalhost:1313\u002Fadmin\n```\n\n**4. Production OAuth** (for Git backend):\n\nSveltia CMS needs OAuth for GitHub\u002FGitLab authentication in production. Use Cloudflare Workers for OAuth proxy:\n\nSee bundled reference: `references\u002Fsveltia-integration-guide.md`\n\n### Key Points:\n- Admin accessible at `\u002Fadmin` after build\n- `local_backend: true` allows local testing without Git\n- YAML frontmatter format required\n- Collections map to Hugo content directories\n- Media files saved to `static\u002Fimages\u002Fuploads`\n\n---\n\n## TinaCMS Integration (Not Recommended)\n\n⚠️ **Use Sveltia CMS instead**. TinaCMS has significant limitations for Hugo:\n\n### Why Not TinaCMS?\n\n❌ **React-only visual editing** - Hugo is Go-templated, visual editing won't work\n❌ **Complex setup** - requires Node.js server or Tina Cloud\n❌ **692 npm packages** - vs Sveltia's 1 CDN script\n❌ **7 security vulnerabilities** - (4 high, 3 critical as of 2025-11-04)\n❌ **React\u002FNext.js focused** - Hugo is secondary use case\n❌ **YAML only** - same limitation as Sveltia, without benefits\n\n### If You Must Use TinaCMS\n\nOnly consider TinaCMS if:\n- Already using Tina Cloud\n- Have React expertise available\n- Need Tina-specific features\n\nSee bundled reference: `references\u002Ftinacms-integration-guide.md` (warning: not recommended)\n\n---\n\n## Tailwind CSS v4 Integration\n\nHugo supports Tailwind CSS v4 through Hugo Pipes and the Tailwind CLI. This approach is fundamentally different from Vite-based React projects.\n\n### When to Use Tailwind vs Themes\n\n**Use Tailwind with Hugo when:**\n- Building custom designs without relying on themes\n- Need utility-first CSS workflow\n- Want complete styling control\n- Prefer Tailwind over SCSS\u002FSass\n\n**Use themes (PaperMod, Book, etc.) when:**\n- Want proven, production-ready designs\n- Need fast setup without custom CSS\n- Happy with theme customization options\n- Don't need pixel-perfect custom design\n\n### Key Differences from Vite + React\n\n**CRITICAL:** Do NOT try to use the `tailwind-v4-shadcn` skill patterns with Hugo. That skill is for Vite + React projects and is incompatible with Hugo's asset pipeline.\n\n| Aspect | Vite + React | Hugo |\n|--------|-------------|------|\n| **Build System** | JavaScript (Node.js) | Go (Hugo binary) |\n| **Tailwind Integration** | `@tailwindcss\u002Fvite` plugin | Tailwind CLI + PostCSS |\n| **Config File** | `vite.config.ts` | `hugo.yaml` |\n| **Content Scanning** | `content: []` globs | `hugo_stats.json` |\n| **Dev Server** | Vite (port 5173) | Hugo (port 1313) |\n| **Dark Mode** | React ThemeProvider | CSS classes or Alpine.js |\n\n### Quick Start (10 Minutes)\n\n1. **Install Dependencies**\n\n```bash\nnpm install -D tailwindcss postcss autoprefixer\nnpx tailwindcss init\n```\n\n2. **Configure Hugo** (`hugo.yaml`)\n\n```yaml\nbuild:\n  writeStats: true  # Generates hugo_stats.json for Tailwind\n\nmodule:\n  mounts:\n    - source: assets\n      target: assets\n    - source: hugo_stats.json\n      target: assets\u002Fwatching\u002Fhugo_stats.json\n```\n\n3. **Configure Tailwind** (`tailwind.config.js`)\n\n```javascript\nmodule.exports = {\n  content: [\n    '.\u002Fhugo_stats.json',\n    '.\u002Flayouts\u002F**\u002F*.html',\n    '.\u002Fcontent\u002F**\u002F*.{html,md}',\n  ],\n  darkMode: 'class',\n  theme: {\n    extend: {\n      colors: {\n        primary: '#0066cc',\n      },\n    },\n  },\n  plugins: [],\n}\n```\n\n4. **Configure PostCSS** (`postcss.config.js`)\n\n```javascript\nmodule.exports = {\n  plugins: {\n    tailwindcss: {},\n    autoprefixer: {},\n  },\n}\n```\n\n5. **Create CSS Entry File** (`assets\u002Fcss\u002Fmain.css`)\n\n```css\n@import \"tailwindcss\";\n\n@layer base {\n  body {\n    @apply bg-white dark:bg-gray-900 text-gray-900 dark:text-gray-100;\n  }\n}\n```\n\n6. **Process CSS in Template** (`layouts\u002F_default\u002Fbaseof.html`)\n\n```html\n\u003Chead>\n  {{ $style := resources.Get \"css\u002Fmain.css\" | resources.PostCSS }}\n  {{ if hugo.IsProduction }}\n    {{ $style = $style | minify | fingerprint }}\n  {{ end }}\n  \u003Clink rel=\"stylesheet\" href=\"{{ $style.RelPermalink }}\">\n\u003C\u002Fhead>\n```\n\n7. **Start Development**\n\n```bash\nhugo server\n```\n\n### Complete Integration Guide\n\nFor full Tailwind v4 + Hugo setup including:\n- Dark mode implementation (CSS-only and Alpine.js)\n- Typography plugin setup\n- Forms plugin setup\n- Template integration patterns\n- Common issues and solutions\n- Production build optimization\n\n**See bundled resources:**\n- **Reference Guide**: `references\u002Ftailwind-v4-integration.md` (comprehensive documentation)\n- **Minimal Template**: `templates\u002Fhugo-tailwind-minimal\u002F` (starting point)\n- **Blog Template**: `templates\u002Fhugo-tailwind-blog\u002F` (complete blog with Tailwind)\n\n### Tailwind-Specific Issues\n\nCommon issues when using Tailwind with Hugo (all documented with solutions in reference guide):\n\n| Issue | Cause | Solution |\n|-------|-------|----------|\n| **CSS not processing** | PostCSS not configured | Verify `resources.PostCSS` in template |\n| **Classes not purging** | `hugo_stats.json` not generated | Enable `writeStats: true` in `hugo.yaml` |\n| **Dark mode broken** | Wrong config | Use `darkMode: 'class'` in `tailwind.config.js` |\n| **Asset fingerprinting fails** | Incorrect Hugo Pipes usage | Use `RelPermalink` not `Permalink` |\n| **Hugo template syntax in CSS** | Can't use `{{ }}` in CSS | Apply classes in templates, not CSS |\n| **Version mismatch** | CLI vs PostCSS plugin | Update all to same version |\n\n---\n\n## Common Patterns\n\n### Pattern 1: Blog with PaperMod Theme\n\n```bash\n# Scaffold\nhugo new site my-blog --format yaml\ncd my-blog\ngit init\ngit submodule add --depth=1 https:\u002F\u002Fgithub.com\u002Fadityatelange\u002Fhugo-PaperMod.git themes\u002FPaperMod\n\n# Configure (see hugo.yaml example above)\n\n# Create posts\nhugo new content posts\u002Ffirst-post.md\n\n# Develop\nhugo server\n\n# Build\nhugo --minify\n```\n\n**When to use**: Personal blogs, company blogs, news sites\n\n### Pattern 2: Documentation Site with Hugo Book\n\n```bash\n# Scaffold\nhugo new site docs --format yaml\ncd docs\ngit init\ngit submodule add https:\u002F\u002Fgithub.com\u002Falex-shpak\u002Fhugo-book.git themes\u002Fhugo-book\n\n# Configure for docs (nested navigation, search)\n# See: bundled template `templates\u002Fhugo-docs\u002F`\n\n# Create docs\nhugo new content docs\u002Fgetting-started\u002Finstallation.md\n\n# Build\nhugo --minify\n```\n\n**When to use**: Technical documentation, knowledge bases, API docs\n\n### Pattern 3: Landing Page\n\n```bash\n# Scaffold\nhugo new site landing --format yaml\n\n# Use custom layouts (no theme)\n# See: bundled template `templates\u002Fhugo-landing\u002F`\n\n# Single-page structure\nhugo new content _index.md\n\n# Build\nhugo --minify\n```\n\n**When to use**: Marketing sites, product pages, portfolios\n\n### Pattern 4: Multilingual Site\n\n```yaml\n# hugo.yaml\ndefaultContentLanguage: \"en\"\nlanguages:\n  en:\n    languageName: \"English\"\n    weight: 1\n  es:\n    languageName: \"Español\"\n    weight: 2\n\n# Content structure:\n# content\u002F\n# ├── posts\u002F\n# │   └── post-1.en.md\n# │   └── post-1.es.md\n```\n\n**When to use**: International sites, localized content\n\n---\n\n## Using Bundled Resources\n\n### Scripts (scripts\u002F)\n\n**`init-hugo.sh`** - Automated Hugo project setup\n```bash\n.\u002Fscripts\u002Finit-hugo.sh blog my-blog\n# Creates Hugo site with specified template (blog\u002Fdocs\u002Flanding\u002Fminimal)\n# Arguments: [template-type] [project-name]\n```\n\n**`deploy-workers.sh`** - Manual Cloudflare Workers deployment\n```bash\n.\u002Fscripts\u002Fdeploy-workers.sh\n# Runs: hugo --minify && wrangler deploy\n```\n\n**`check-versions.sh`** - Verify Hugo and tool versions\n```bash\n.\u002Fscripts\u002Fcheck-versions.sh\n# Checks: Hugo version, Extended edition, wrangler, Node.js\n```\n\n### Templates (templates\u002F)\n\nComplete, working Hugo projects ready to copy:\n\n**`templates\u002Fhugo-blog\u002F`** - Blog with PaperMod theme\n- Dark\u002Flight mode, search, tags, archives\n- Sveltia CMS pre-configured\n- wrangler.jsonc for Workers\n- GitHub Actions workflow\n\n**`templates\u002Fhugo-docs\u002F`** - Documentation site\n- Nested navigation, search, breadcrumbs\n- Hugo Book theme\n- Sveltia CMS for docs editing\n\n**`templates\u002Fhugo-landing\u002F`** - Landing page\n- Hero, features, testimonials, CTA\n- Custom layouts (no theme)\n- Optimized for conversions\n\n**`templates\u002Fminimal-starter\u002F`** - Bare-bones project\n- No theme, clean slate\n- Setup guide for adding themes\n- Minimal configuration\n\n**When to use templates**: Copy entire template directory to start a new project instantly.\n\n### References (references\u002F)\n\nDetailed guides that Claude can load when needed:\n\n- `references\u002Fsveltia-integration-guide.md` - Complete Sveltia CMS setup, OAuth configuration\n- `references\u002Fworkers-deployment-guide.md` - Cloudflare Workers deployment, CI\u002FCD, custom domains\n- `references\u002Fcommon-errors.md` - All 9 errors with detailed solutions\n- `references\u002Ftheme-customization-guide.md` - Overriding layouts, custom CSS, partials\n- `references\u002Fhugo-vs-alternatives.md` - Comparison with Next.js, Astro, Jekyll\n\n**When Claude should load these**: User asks about specific topics (CMS setup, deployment, errors, theming, alternatives)\n\n### Assets (assets\u002F)\n\n- `assets\u002Fscreenshots\u002F` - Visual examples of Hugo blog, Sveltia CMS, deployment\n- `assets\u002Fdiagrams\u002F` - Hugo directory structure, deployment workflow diagrams\n\n---\n\n## Advanced Topics\n\n### Custom Shortcodes\n\nCreate reusable content components:\n\n```go-html-template\n\u003C!-- layouts\u002Fshortcodes\u002Fyoutube.html -->\n\u003Cdiv class=\"youtube-embed\">\n  \u003Ciframe\n    src=\"https:\u002F\u002Fwww.youtube.com\u002Fembed\u002F{{ .Get 0 }}\"\n    allowfullscreen>\n  \u003C\u002Fiframe>\n\u003C\u002Fdiv>\n```\n\nUsage in content:\n```markdown\n{{\u003C youtube dQw4w9WgXcQ >}}\n```\n\n### Image Processing\n\nHugo has built-in image processing:\n\n```go-html-template\n{{ $image := resources.Get \"images\u002Fphoto.jpg\" }}\n{{ $resized := $image.Resize \"800x\" }}\n\u003Cimg src=\"{{ $resized.RelPermalink }}\" alt=\"Photo\">\n```\n\n### Taxonomy Customization\n\nCreate custom taxonomies beyond tags\u002Fcategories:\n\n```yaml\n# hugo.yaml\ntaxonomies:\n  tag: tags\n  category: categories\n  series: series  # Custom taxonomy\n```\n\n### Data Files\n\nUse JSON\u002FYAML\u002FTOML data files:\n\n```yaml\n# data\u002Fteam.yaml\n- name: Alice\n  role: Developer\n- name: Bob\n  role: Designer\n```\n\nAccess in templates:\n```go-html-template\n{{ range .Site.Data.team }}\n  \u003Cdiv>{{ .name }} - {{ .role }}\u003C\u002Fdiv>\n{{ end }}\n```\n\n---\n\n## Dependencies\n\n**Required**:\n- Hugo v0.149.0+ (Extended edition) - Static site generator\n\n**Optional** (for deployment):\n- wrangler v4.0.0+ - Cloudflare Workers deployment\n- Git v2.0+ - Version control and theme submodules\n\n**Optional** (for CMS):\n- Sveltia CMS (latest) - Content management (CDN-based, no installation)\n\n---\n\n## Official Documentation\n\n- **Hugo**: https:\u002F\u002Fgohugo.io\u002Fdocumentation\u002F\n- **PaperMod Theme**: https:\u002F\u002Fgithub.com\u002Fadityatelange\u002Fhugo-PaperMod\u002Fwiki\n- **Sveltia CMS**: https:\u002F\u002Fgithub.com\u002Fsveltia\u002Fsveltia-cms\n- **Cloudflare Workers**: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fworkers\u002F\n- **Hugo Themes**: https:\u002F\u002Fthemes.gohugo.io\u002F\n\n---\n\n## Package Versions (Verified 2025-11-04)\n\n**Hugo**: v0.152.2+extended (October 24, 2025)\n**PaperMod**: Latest (via Git submodule)\n**Sveltia CMS**: Latest (via CDN)\n**Wrangler**: v4.37.1+ (v4.45.3 available)\n\n---\n\n## Production Example\n\nThis skill is based on live testing:\n- **Test Site**: https:\u002F\u002Fhugo-blog-test.webfonts.workers.dev\n- **Build Time**: 24ms (20 pages)\n- **Deployment Time**: ~21 seconds\n- **Errors**: 0 (all 9 known issues prevented)\n- **Validation**: ✅ Hugo + PaperMod + Sveltia + Workers deployed successfully\n\n---\n\n## Troubleshooting\n\n### Problem: \"SCSS support not enabled\" error\n**Solution**: Install Hugo Extended, not Standard. Verify with `hugo version | grep extended`\n\n### Problem: Blank site after deployment\n**Solution**:\n1. Check `theme` is set in hugo.yaml\n2. Verify theme exists in `themes\u002F` directory\n3. Run `git submodule update --init --recursive`\n\n### Problem: Assets (CSS\u002FJS\u002Fimages) not loading\n**Solution**:\n1. Check `baseURL` in hugo.yaml matches deployment URL\n2. Or use `hugo -b https:\u002F\u002Fyour-site.com`\n3. Or use environment-specific config\n\n### Problem: Posts not appearing on site\n**Solution**:\n1. Check `draft: false` in frontmatter\n2. Check date is not in future\n3. Or build with `--buildDrafts` and `--buildFuture` flags\n\n### Problem: Theme not found in CI\u002FCD\n**Solution**: Add `submodules: recursive` to checkout action in GitHub Actions\n\n### Problem: Sveltia CMS not loading\n**Solution**:\n1. Rebuild site with `hugo`\n2. Check `\u002Fadmin` directory exists in `public\u002F`\n3. Verify `config.yml` syntax\n4. Check browser console for errors\n\n---\n\n## Complete Setup Checklist\n\nUse this checklist to verify your setup:\n\n- [ ] Hugo Extended v0.149.0+ installed (`hugo version` shows \"+extended\")\n- [ ] Project created with `--format yaml` (hugo.yaml exists)\n- [ ] Theme installed and configured (via Git submodule or Hugo Module)\n- [ ] `baseURL` configured correctly in hugo.yaml\n- [ ] `.gitignore` includes `public\u002F` and `resources\u002F_gen\u002F`\n- [ ] Sample content created and renders correctly\n- [ ] Dev server runs without errors (`hugo server`)\n- [ ] Production build succeeds (`hugo --minify`)\n- [ ] wrangler.jsonc configured for Workers (if deploying)\n- [ ] Sveltia CMS configured (if using CMS)\n- [ ] GitHub Actions workflow configured (if using CI\u002FCD)\n- [ ] Deployed successfully (if deploying to Workers)\n\n---\n\n**Questions? Issues?**\n\n1. Check `references\u002Fcommon-errors.md` for all 9 documented errors and solutions\n2. Verify all steps in the setup process\n3. Check official docs: https:\u002F\u002Fgohugo.io\u002Fdocumentation\u002F\n4. Ensure Hugo Extended is installed (most common issue)\n\n---\n\n**This skill provides production-ready Hugo setup with zero errors. All 9 common issues are documented and prevented.**\n",{"name":5,"license":14,"metadata":23,"description":32},{"version":24,"hugo_version":25,"last_verified":26,"token_savings":27,"errors_prevented":28,"tailwind_version":29,"production_tested":30,"templates_included":31},"2.0.0","0.152.2","2025-11-04","60-65%",15,"4.1.16",true,6,"This skill provides comprehensive knowledge for building static websites with Hugo static site generator. It should be used when setting up Hugo projects (blogs, documentation sites, landing pages, portfolios), integrating Tailwind CSS v4 for custom styling, integrating headless CMS systems (Sveltia CMS or TinaCMS), deploying to Cloudflare Workers with Static Assets, configuring themes and templates, and preventing common Hugo setup errors.\n\nUse this skill when encountering these scenarios: scaffolding new Hugo sites, choosing between Hugo Extended and Standard editions, integrating Tailwind CSS v4 with Hugo Pipes, configuring hugo.yaml or hugo.toml files, integrating PaperMod or other themes via Git submodules, setting up Sveltia CMS or TinaCMS for content management, deploying to Cloudflare Workers or Pages, troubleshooting baseURL configuration, resolving theme installation errors, fixing frontmatter format issues (YAML vs TOML), preventing date-related build failures, setting up PostCSS with Hugo, or setting up CI\u002FCD with GitHub Actions.\n\nKeywords: hugo, hugo-extended, static-site-generator, ssg, go-templates, papermod, goldmark, markdown, blog, documentation, docs-site, landing-page, sveltia-cms, tina-cms, headless-cms, cloudflare-workers, workers-static-assets, wrangler, hugo-server, hugo-build, frontmatter, yaml-frontmatter, toml-config, hugo-themes, hugo-modules, multilingual, i18n, github-actions, version-mismatch, baseurl-error, theme-not-found, tailwind, tailwind-v4, tailwind-css, hugo-pipes, postcss, css-framework, utility-css, hugo-tailwind, tailwind-integration, hugo-assets\n","main","6b73b29e4866f997b1eb47fe8d9631396265fc24",0,"https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fagent-skills","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn","2026-09-09 16:06:07",{"source":8,"skillName":5,"commands":40,"prompt":50,"zipAvailable":30},[41,44,47],{"tool":42,"command":43},"npx","npx skills add davidanthonyn\u002Fagent-skills --skill hugo",{"tool":45,"command":46},"bunx","bunx skills add davidanthonyn\u002Fagent-skills --skill hugo",{"tool":48,"command":49},"pnpm","pnpm dlx skills add davidanthonyn\u002Fagent-skills --skill hugo","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fhugo\u002FSKILL.md",[52,58,64,68],{"path":53,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":56,"sourceHtmlUrl":57},".gitignore","OTHER","其他",156,"https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fhugo\u002F.gitignore",{"path":59,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":62,"sourceHtmlUrl":63},"README.md","REFERENCE","参考文档",8284,"https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fhugo\u002FREADME.md",{"path":65,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":66,"sourceHtmlUrl":67},"SKILL.json",36495,"https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fhugo\u002FSKILL.json",{"path":69,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":70,"sourceHtmlUrl":71},"SKILL.md.backup",36414,"https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fhugo\u002FSKILL.md.backup",[73,80,88,95,102,111],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M7AQNJDXVNVMN08N5BHBGZBF","zustand-state-management","Production-tested setup for Zustand state management in React applications with TypeScript.\nThis skill provides comprehensive patterns for building scalable, type-safe global state.\n\nUse when: setting up global state in React, migrating from Redux or Context API, implementing\nstate persistence with localStorage, configuring TypeScript with Zustand, using slices pattern\nfor modular stores, adding devtools middleware for debugging, handling Next.js SSR hydration,\nor encountering hydration errors, TypeScript inference issues, or persist middleware problems.\n\nPrevents 5 documented issues: Next.js hydration mismatches, TypeScript double parentheses\nsyntax errors, persist middleware export errors, infinite render loops, and slices pattern\ntype inference failures.\n\nKeywords: zustand, state management, React state, TypeScript state, persist middleware,\ndevtools, slices pattern, global state, React hooks, create store, useBoundStore,\nStateCreator, hydration error, text content mismatch, infinite render, localStorage,\nsessionStorage, immer middleware, shallow equality, selector pattern, zustand v5","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fzustand-state-management\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":84,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M7AQN2DW9DTPM8BYNZSHQANC","zetic-mlange","Help users integrate the ZETIC Melange (MLange) on-device AI SDK into Android (Kotlin\u002FJava) and iOS (Swift) mobile apps. Use this skill whenever the user mentions Zetic, MLange, Melange, ZeticMLangeModel, ZeticMLangeLLMModel, ZeticMLangeHFModel, on-device NPU inference for mobile, or deploying ML models to Android\u002FiOS with NPU acceleration. Also trigger when users ask about running LLMs on-device with GGUF quantization, mobile NPU model deployment, or converting PyTorch\u002FONNX models for mobile inference. Covers general model inference, LLM inference (streaming token generation), and HuggingFace model loading.","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fzetic-mlange\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fzetic-mlange\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":18},"01M7AQMEK370FBPC75N2W8WA4W","youtube-downloader","Download videos, audio, playlists, and channels from YouTube and 1000+ websites using yt-dlp. Supports quality selection, format conversion, subtitle download, playlist filtering, metadata extraction, thumbnail download, and batch operations. Use when downloading YouTube videos in any quality (4K, 8K, HDR), extracting audio as MP3\u002FM4A\u002FFLAC, downloading entire playlists\u002Fchannels, getting subtitles in multiple languages, converting to specific formats, downloading live streams, archiving content, or batch processing multiple URLs. Optimized for reliability with automatic retries, rate limiting, and error handling.","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fyoutube-downloader\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":18},"01M7AQHKQ4VQB04NH6BG4SV9Q7","wordpress-plugin-core","This skill provides comprehensive knowledge for WordPress plugin development, covering core patterns, security best practices, database interactions, hooks\u002Ffilters, Settings API, custom post types, REST API, and AJAX. This skill should be used when creating WordPress plugins, troubleshooting security issues, implementing custom post types\u002Ftaxonomies, building admin interfaces, or working with the WordPress database.\n\nUse when: Creating new WordPress plugins, implementing nonces\u002Fsanitization\u002Fescaping, working with $wpdb and prepared statements, building Settings API pages, registering custom post types or taxonomies, implementing REST API endpoints, handling AJAX requests, debugging plugin activation\u002Fdeactivation issues, preventing SQL injection\u002FXSS\u002FCSRF vulnerabilities.\n\nKeywords: wordpress plugin development, wordpress security, wordpress hooks, wordpress filters, wordpress database, wpdb prepare, sanitize_text_field, esc_html, wp_nonce, custom post type, register_post_type, settings api, rest api, admin-ajax, wordpress sql injection, wordpress xss, wordpress csrf, plugin header, activation hook, deactivation hook, wordpress coding standards, wordpress plugin architecture","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fwordpress-plugin-core\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":106,"licenseFileUrl":107,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":18},"01M7AQH4JW8F2MJFS1C43TZ2TY","webapp-testing","Test local web applications with Playwright. Use when asked to verify frontend functionality, debug UI behavior, capture browser screenshots, or inspect browser logs.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":18},"01M7AQH0PWD6Z1NN66V15DT25M","web-performance-audit","Audit web performance using Chrome DevTools MCP. Use when asked to audit, profile, debug, or optimize page load performance, Lighthouse scores, or site speed.","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fweb-performance-audit\u002FSKILL.md",[],[]]