hugo
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "hugo":https://skillpi.com/zh/skills/deepskill-766a120e1aaf59f14eaa313edf5b66455de35fcc9e492945561804ca3dd605c4。安装前核对上游来源和版本:https://github.com/ChrisTitusTech/titus-ai。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
用于构建、编辑、验证和排查 Hugo 站点的问题,覆盖内容、模板、资源文件、分类法、重定向、输出格式及部署配置等方面。
介绍来源: third_party · ChrisTitusTech · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
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.
当前收录版本
0.0.1
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 直接解决用户在构建、编辑和排查 Hugo 静态站点时的核心任务痛点
- 覆盖内容、模板、资源、分类法、重定向、输出格式和部署配置等多个关键方面
- 提供了端到端的验证流程,显著提升日常高频场景的效率
待提升项
-
description写错位置 原报告严重程度:轻微
description 内容在顶层 frontmatter 和 skill_body 内部重复出现
改进建议:建议将详细描述统一放在顶层 frontmatter 的 description 字段中,skill_body 内部可保留更简洁的概述或移至 'When to Use' 章节
亮点
- 触发词精准完整,涵盖了 Hugo 工作的多个关键领域(构建、编辑、验证、排查)
- 边界清晰,明确指出了适用任务范围(内容、模板、资源、部署等)
待提升项
-
缺少 When to Use/示例章节 原报告严重程度:轻微
虽然结构良好,但缺少一个显式的 'When to Use' 或 'Examples' 章节来快速引导用户
改进建议:建议在开头添加一个 'When to Use' 或 'Examples' 章节,提供2-3个典型使用场景的简短示例
亮点
- Phase/步骤清晰(First Pass, Common Commands, Content Work等)
- 有明确的出口条件和验证步骤
- frontmatter完整,单文件长度合理
待提升项
-
部署配置假设风险 原报告严重程度:轻微
部署部分提到匹配验证目标,但未强调必须显式确认现有部署配置才能执行更改
改进建议:建议在部署部分开头添加显式警告:'在执行任何部署相关更改前,必须首先确认并匹配现有的部署配置文件(如 netlify.toml, .github/workflows 等)'
亮点
- 工具来源明确(标准 Hugo 命令)
- 参数使用正确且符合最佳实践
- 覆盖了主要异常情况(如预构建失败的处理)
- 不可逆操作有确认机制(如检查现有配置)
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
账号、密钥或授权
使用专用、最小权限账号,不把密钥粘贴到公开内容或命令日志;核对接收数据的服务与租户。
主文档提及 · 第 65 行
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。