用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/skills-registry --skill hugo-new命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
| Use when this capability is needed.
> Use when this capability is needed.
Review architecture and API design for the vfs-s3 project. Use when the user mentions @architect, asks to review an issue's design, discuss module boundaries, API shape, or architectural decisions for vfs-s3. Also trigger when the user wants to create an ADR (Architecture Decision Record) or evaluate a technical approach for the project. Intended for dispatch from Codex automation or Claude routines; GitHub trigger phrase: @vfs-s3-bot please prepare design doc Use when this capability is needed.
基于 SOC 职业分类
正在显示 SKILL.md
| name | hugo-new |
| description | > Use when this capability is needed. |
Create new Hugo content files using the project's archetypes. Archetypes are content templates that Hugo applies when creating new pages with hugo new,
ensuring consistent frontmatter and body structure.
Before creating content, discover what archetypes are available in the project. Check these locations in order of priority:
archetypes/ in the project root (highest priority)themes/<theme-name>/archetypes/ or module pathsList all archetype files to understand available content types:
Glob: archetypes/*.md
Glob: themes/*/archetypes/*.md
Read each archetype to understand the frontmatter fields and body scaffold it provides.
Hugo selects archetypes based on the content path's first directory segment (the "section"):
hugo new posts/my-post.md → looks for archetypes/posts.mdhugo new articles/my-article.md → looks for archetypes/articles.mdarchetypes/default.md if no section-specific archetype existsUse --kind to override automatic archetype selection:
hugo new --kind gallery posts/my-gallery.md
This is essential when:
Before running hugo new, check the existing content directory to understand the project's path conventions:
Glob: content/**/*.md
Common patterns to look for:
content/posts/my-post.mdcontent/posts/2026/0208-my-post.mdcontent/posts/my-post/index.md (allows co-located assets)content/posts/2026/my-post/index.mdMatch the existing convention when constructing the path for hugo new.
Run hugo new with the determined path:
hugo new <section>/<path>.md
# or with explicit archetype:
hugo new --kind <archetype-name> <section>/<path>.md
Page bundles: To create a page bundle (directory with index.md), use:
hugo new <section>/<slug>/index.md
After creation, read the generated file and fill in or adjust frontmatter fields and body content as needed.
After creating content:
Archetypes support Go template actions evaluated once at creation time. The most commonly used variables:
| Template Variable | Description |
|---|---|
{{ .Name }} | Filename without extension |
{{ .Date }} | Current date in RFC 3339 format |
For the complete list of template variables and string functions, see references/archetype-mechanics.md.
.md archetype is NOT used for .markdown targets and vice versa. Match the file extension.content/ to the archetype name. Use --kind to override.hugo new to avoid mismatched templates or inconsistent paths.For detailed archetype mechanics and advanced usage:
references/archetype-mechanics.md - Detailed archetype resolution logic, template variables, and advanced patternsConverted and distributed by TomeVault — claim your Tome and manage your conversions.