hugo
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "hugo" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-766a120e1aaf59f14eaa313edf5b66455de35fcc9e492945561804ca3dd605c4. Verify the upstream source and version against https://github.com/ChrisTitusTech/titus-ai before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
For building, editing, validating, and troubleshooting Hugo sites, covering content, templates, resource files, taxonomies, redirects, output formats, and deployment configuration.
Introduction source: third_party · ChrisTitusTech · 0.0.1 Reference
SkillPi interpretation
- Tasks
- Build, edit, validate, and troubleshoot Hugo sites, including content, templates, assets, taxonomies, redirects, output formats, and deployment configuration.
- Testing
- Not tested
Browse files
Frontmatter
name: hugo
description: Build, edit, validate, and troubleshoot Hugo sites, including content, templates, assets, taxonomies, redirects, output formats, and deployment configuration.Hugo
Use this skill for Hugo static-site work: content changes, template/layout edits, taxonomy and menu updates, asset pipeline changes, data files, shortcodes, render hooks, redirects, and deployment validation.
First Pass
Read repository instructions and inspect existing changes first. Choose the remaining context by task; a content correction does not require a full site or deployment inventory:
- Read repository instructions such as
AGENTS.md,.codex/config.toml, and relevant README files. - Identify the Hugo config file:
hugo.toml,config.toml,hugo.yaml,config.yaml,hugo.json, or aconfig/directory. - For content edits, read the target page, nearby content, and the archetype or template defining its required fields.
- For template, asset, or data work, inspect the affected theme, module, or local directories:
themes/,layouts/,assets/,static/,data/,archetypes/,i18n/. - For build or deployment changes, inspect the relevant scripts and configuration:
package.json,go.mod,.github/workflows/,netlify.toml,vercel.json,wrangler.*, Cloudflare Pages docs, or Makefile. - Run or inspect
hugo versionwhen validation depends on version-specific behavior. - Inspect
git status --shortand preserve unrelated user changes.
Common Commands
Use the repository's existing scripts when present. Otherwise prefer:
hugo server
hugo server --buildDrafts --buildFuture
hugo --gc --minify
hugo --printPathWarnings --printUnusedTemplates
Use --source, --config, --environment, or --destination only when the repository structure requires them.
Content Work
- Use existing archetypes and nearby content as the model for new pages or posts.
- Preserve explicit
url,slug,aliases, and redirect behavior unless the task is specifically about URL changes. - Keep front matter format consistent with the file or project: TOML, YAML, or JSON.
- Preserve taxonomy spelling and casing used by existing content.
- For posts, verify required fields such as
title,date,draft,description,summary,image,categories,tags,author, or custom params by checking templates and archetypes. - Use
<!--more-->only when existing list templates or content conventions rely on manual summaries. - Avoid broad rewrites of historical content unless requested.
Template Work
- Prefer existing partials, base templates, render hooks, shortcodes, and CSS patterns over one-off markup.
- Identify template lookup rules before moving or renaming files. Section/type-specific templates can be intentional.
- Treat these as high-impact files because they often affect many pages:
baseof.html, head/meta partials, navigation/header/footer partials, list/single templates, RSS templates, sitemap templates, search index templates, and structured-data partials. - Preserve SEO and sharing behavior: canonical URLs, Open Graph, Twitter cards, JSON-LD, RSS, sitemap, and robots output.
- Preserve accessibility affordances such as semantic headings, skip links, focus states, useful alt text, labels, and keyboard-accessible controls.
- For shortcodes, keep positional/named parameter compatibility unless a breaking change is requested.
Assets And Data
- Understand the asset boundary:
assets/is processed by Hugo Pipes.static/is copied directly to the published site.public/is generated output and is usually not source.
- For SCSS, JS, fonts, and images, follow the existing pipeline rather than adding a new package manager or bundler.
- For image processing, check config and template use of
.Resources,resources.Get,Fit,Fill,Resize, WebP, and fingerprinting before changing paths. - For
data/files, keep JSON/YAML/TOML valid and preserve the shape consumed by templates. - Do not commit secrets, API keys, private tokens, or generated credentials in data files, templates, scripts, or build logs.
Hugo Modules And Themes
- If the site uses Hugo Modules, inspect
go.mod,go.sum, and module imports in config before editing theme files. - If the site uses a theme under
themes/, prefer overriding templates in the projectlayouts/directory unless the task requires changing the theme source. - If the site vendors a theme or has no external theme, treat local templates and assets as first-party source.
Multilingual Sites
When languages, defaultContentLanguage, i18n/, or language-specific content directories are present:
- Preserve translation keys and language-specific URL rules.
- Check whether menus, params, taxonomies, and permalinks are language-specific.
- Validate at least one representative page per affected language when practical.
Deployment
Match validation to the deployment target:
- Cloudflare Pages commonly runs
hugoor a project script and publishespublic/. - Netlify may use
netlify.toml, environment variables, and a pinned Hugo version. - GitHub Pages may deploy through Actions and may require base URL or artifact settings.
- Vercel or custom hosts may wrap Hugo in package scripts.
Do not change deployment commands, publish directories, Hugo versions, or environment assumptions without checking the existing deployment config.
Validation
For most changes, run:
hugo --gc --minify
For content scheduled in the future or drafts:
hugo server --buildDrafts --buildFuture
For high-impact template or URL changes, also inspect representative generated pages or run a local server and check:
- Home page.
- A single content page.
- A list page.
- A taxonomy page.
- Search or JSON output if present.
- RSS or sitemap if touched.
- A page using any changed shortcode/render hook.
If the complete build fails because of a confirmed pre-existing problem outside the requested change, do not weaken or hide that failure. Use the narrowest legitimate Hugo option or environment that still renders the affected content, inspect the generated output, and report the focused validation separately from the unresolved full-build blocker. Never describe focused validation as a successful complete build.
Report validation commands run, failures, skipped checks, and residual risks.
Current listing version
0.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 直接解决用户在构建、编辑和排查 Hugo 静态站点时的核心任务痛点
- 覆盖内容、模板、资源、分类法、重定向、输出格式和部署配置等多个关键方面
- 提供了端到端的验证流程,显著提升日常高频场景的效率
Areas to improve
-
description写错位置 Reported severity: Minor
description 内容在顶层 frontmatter 和 skill_body 内部重复出现
Recommendation: 建议将详细描述统一放在顶层 frontmatter 的 description 字段中,skill_body 内部可保留更简洁的概述或移至 'When to Use' 章节
Highlights
- 触发词精准完整,涵盖了 Hugo 工作的多个关键领域(构建、编辑、验证、排查)
- 边界清晰,明确指出了适用任务范围(内容、模板、资源、部署等)
Areas to improve
-
缺少 When to Use/示例章节 Reported severity: Minor
虽然结构良好,但缺少一个显式的 'When to Use' 或 'Examples' 章节来快速引导用户
Recommendation: 建议在开头添加一个 'When to Use' 或 'Examples' 章节,提供2-3个典型使用场景的简短示例
Highlights
- Phase/步骤清晰(First Pass, Common Commands, Content Work等)
- 有明确的出口条件和验证步骤
- frontmatter完整,单文件长度合理
Areas to improve
-
部署配置假设风险 Reported severity: Minor
部署部分提到匹配验证目标,但未强调必须显式确认现有部署配置才能执行更改
Recommendation: 建议在部署部分开头添加显式警告:'在执行任何部署相关更改前,必须首先确认并匹配现有的部署配置文件(如 netlify.toml, .github/workflows 等)'
Highlights
- 工具来源明确(标准 Hugo 命令)
- 参数使用正确且符合最佳实践
- 覆盖了主要异常情况(如预构建失败的处理)
- 不可逆操作有确认机制(如检查现有配置)
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Accounts, secrets or authorization
Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.
Mentioned in main document · lines 65
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.