Agent skill

Hugo To Markdown

by sickn33 in sickn33/agentic-awesome-skills

Convert Hugo documentation sites and Hugo-managed content into standard Markdown.

Apache-2.0Auto-check passedFrontend & Design

Install Hugo To Markdown

skills CLI
$ npx skills add sickn33/agentic-awesome-skills --skill hugo-to-markdown -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install sickn33/agentic-awesome-skills hugo-to-markdown --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/hugo-to-markdown .claude/skills/hugo-to-markdown && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
hugo-to-markdown
GitHub stars
47k
Used in
1 other repo
Token cost
~3.3k tokens
SKILL.md length
1,624 words
Files
8 (incl. scripts, references)
Skills in repo
1,497
Repo updated
First seen
Licence
Apache-2.0

At a glance

Convert Hugo documentation sites and Hugo-managed content into standard Markdown.

  • Works in 6 steps: Inventory the site before converting files → Convert with repository rules, not… → Preserve semantics during conversion → …
  • Tasks that involve Static sites and blogs
  • SKILL.md covers When to Use, Overview, Official Basis and Workflow, plus 4 more sections
  • Runs Python scripts from its folder; calls python3, npm and go

What it does

Hugo To Markdown is an agent skill from sickn33/agentic-awesome-skills. Convert Hugo documentation sites and Hugo-managed content into standard Markdown.

Its SKILL.md is about 3.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 10 other files, including scripts and reference files (for example `agents/openai.yaml`, `references/conversion-workflow.md` and `references/front-matter-and-content.md`).

It sits in Frontend & Design, covering Static sites and blogs and Markdown. The repository describes itself as: AAS Core is the local, agent-first control plane for complete catalog discovery, agent-owned selection, stack validation, and planning, backed by 2,400+ agentic skills. Includes… The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Static sites and blogs
  • Tasks that involve Markdown

Example prompts

  • “/hugo-to-markdown”

Requirements

  • Python 3
  • Node.js

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Inventory the site before converting files
  2. Convert with repository rules, not generic heuristics
  3. Preserve semantics during conversion
  4. Apply Hugo-specific body rules carefully
  5. Validate the output
  6. Downgrade explicitly when full materialization is not safe

What it can do on your machine

Read from SKILL.md and the folder at commit 1c7bdea. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 2 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3
    • npm
    • go

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Hugo To Markdown loads about 3.3k tokens when it runs, and up to ~9.8k if it reads all its reference files. Until then it costs about 25 tokens; SKILL.md has 1,624 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~25
When it runs · the whole SKILL.md, loaded when a task matches
~3.3k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~9.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from sickn33/agentic-awesome-skills at commit 1c7bdea, republished under its Apache-2.0 licence (© sickn33). 1,624 words, ~3,278 tokens.

Download SKILL.mdSave it as .claude/skills/hugo-to-markdown/SKILL.md (or your agent's skills folder). This skill also uses 7 other files; get the full folder from GitHub.
name
hugo-to-markdown
description
Convert Hugo documentation sites and Hugo-managed content into standard Markdown.
risk
critical
source
https://github.com/chaunsin/agent-skills/tree/master/skills/hugo-to-markdown
source_repo
chaunsin/agent-skills
source_type
community
date_added
2026-07-01
license
Apache-2.0
license_source
https://github.com/chaunsin/agent-skills/blob/master/LICENSE

Hugo To Markdown

When to Use

Use this skill when you need convert Hugo documentation sites and Hugo-managed content into standard Markdown. Use when Agent needs to inspect a local Hugo repository, read hugo.toml or config files, content/, archetypes/, layouts/_shortcodes/, layouts/_markup/, and related docs content, then produce Markdown...

Overview

Use this skill when Markdown output must be derived from the local Hugo site, not guessed from generic Hugo knowledge. The conversion rules are the combination of Hugo's official behavior and the repository's own configuration, shortcode templates, render hooks, archetypes, and content conventions.

The target output is standard Markdown:

  • Keep plain Markdown and YAML front matter.
  • Replace or materialize Hugo-only constructs.
  • Preserve meaning when exact rendering is not safely reproducible.
  • Prefer explicit Markdown text over live Hugo template syntax.
  • Distinguish literal Hugo syntax examples from active Hugo features before rewriting anything.

Official Basis

Treat the repository's own Hugo configuration and templates as the primary ruleset. For any site under conversion, inspect these rule sources in the user's provided site root:

  • hugo.toml (or hugo.yaml, hugo.yml, hugo.json, or config/*)
  • archetypes/*
  • data/*
  • layouts/_shortcodes/* or layouts/shortcodes/*
  • layouts/_markup/*
  • content/**

Also read any local docs that define shortcode, front matter, bundle, resource, and render-hook behavior.

Do not assume built-in Hugo defaults if the repository overrides them locally.

Workflow

1. Inventory the site before converting files

Always inspect the site-level rules first.

bash
python3 scripts/inventory_hugo_rules.py --site-root /path/to/hugo-site

Example invocation for the user's site:

bash
python3 skills/hugo-to-markdown/scripts/inventory_hugo_rules.py \
  --site-root /path/to/your-hugo-site

This inventory step is mandatory for batch work. It identifies:

  • active config files
  • module mounts and content roots
  • custom shortcodes
  • custom render hooks
  • front matter keys seen in content
  • shortcode usage across content files
2. Convert with repository rules, not generic heuristics

Read references/conversion-workflow.md before changing files. Then:

  1. Resolve the real content root from hugo.toml, config.*, and module mounts.
  2. Read archetypes to understand expected front matter shape.
  3. Read the front matter configuration to understand date aliases, fallback order, filename-derived dates, and other inferred metadata.
  4. Read site data sources in data/ when shortcodes or partials pull structured content from them.
  5. Read custom shortcode templates in layouts/_shortcodes/ or layouts/shortcodes/.
  6. Classify each encountered shortcode as embedded, custom, or inline, then check whether it uses named or positional arguments, block syntax, or self-closing syntax.
  7. Read render hooks in layouts/_markup/.
  8. Check whether the repo already defines Markdown- or JSON-facing export templates and partials; if it does, use those as evidence for how the site itself downgrades Hugo constructs.
  9. Follow include-style shortcodes into referenced content files when the docs site composes content from shared fragments.
  10. Convert one file or one coherent section at a time.
3. Preserve semantics during conversion

Use these rules by default:

  • Keep YAML front matter unless the user explicitly asks for front-matter-free Markdown.
  • Preserve core fields such as title, description, date, draft, aliases, slug, url, weight, and nested params when they still carry meaning.
  • Preserve publishDate, lastmod, expiryDate, and page resource metadata when they still affect meaning or downstream routing.
  • Normalize reserved Hugo front matter keys to their canonical names when the repo mixes casing, for example Title to title, Description to description, and LinkTitle to linkTitle.
  • Account for Hugo front matter aliases and tokens before deciding a field is unused. The official Hugo docs recognize aliases such as pubdate, published, modified, and unpublishdate, plus tokens such as :default, :filename, :fileModTime, and :git.
  • Convert Hugo internal links to normal Markdown links with resolved destinations.
  • Replace Hugo shortcodes with plain Markdown, HTML, or explicit notes only after reading the local shortcode implementation.
  • Preserve or materialize shortcode arguments according to the shortcode's real calling convention. Do not assume every shortcode is named-argument, self-closing, or block-capable.
  • Materialize dynamically generated lists and tables when the shortcode renders content from sections or data files.
  • Leave literal Hugo examples unchanged when the document is documenting Hugo syntax rather than invoking it. This applies both inside fenced code blocks and to escaped forms such as {{</* foo */>}} or {{%/* foo */%}} that appear in prose, tables, or notation examples.
  • Preserve block attribute semantics such as {.class #id} and code-fence attributes when the destination Markdown flavor supports them. If not, downgrade explicitly instead of silently dropping them.
4. Apply Hugo-specific body rules carefully

Many Hugo documentation sites use complex local behaviors. Be alert for these common patterns:

  • hugo.toml mounts content/en to the logical content root, so link and include resolution must use Hugo logical paths instead of preserving /en/ blindly.
  • The docs basis depends on Hugo front matter configuration for date resolution, aliases, and filename-derived metadata; read configuration/front-matter.md and [frontmatter] in hugo.toml before normalizing dates or slugs.
  • include renders another page through RenderShortcodes; follow the referenced content file and inline the resulting Markdown.
  • quick-reference, render-list-of-pages-in-section, and render-table-of-pages-in-section generate navigation content from sections; replace them with materialized Markdown lists or tables.
  • glossary-term, glossary, get-page-desc, module-mounts-note, new-in, and deprecated-in expand to prose or badges; convert them into explicit Markdown text or callouts.
  • code-toggle may read config snippets and data-backed examples; preserve the underlying code sample, not the UI toggle.
  • datatable, per-lang-config-keys, root-configuration-keys, syntax-highlighting-styles, chroma-lexers, newtemplatesystem, and hl are also local shortcodes; inspect their implementations before deciding whether to materialize, flatten, or downgrade.
  • if the repo has data-backed or example-extraction shortcodes such as features-table, optional-features-table, clients-example, or jupyter-example, inspect the referenced data/ files, local example sources, and Markdown-export partials before deciding whether to materialize or downgrade.
  • glossary links can use the special Markdown destination (g); resolve these to stable glossary links instead of leaving the placeholder.
  • img and imgproc are presentation helpers around page, global, or remote resources; preserve the underlying image reference and caption semantics.
  • eturl emits links to embedded template sources; convert to a normal Markdown link if the destination is known, otherwise preserve as a textual note.
  • the local link render hook resolves destinations in this order: content page, page resource, section resource when the page is not a leaf bundle, then global resource. It also validates fragments and glossary shorthand.
  • blockquote and code-block render hooks add alert, file-label, summary, and detail semantics; preserve these semantics in Markdown or explicit notes.
  • embedded ref and relref are obsolete for Markdown in modern Hugo docs and can interact poorly with the custom link render hook; resolve the final destination instead of preserving the shortcode.
  • the local docs use Markdown attributes and code-fence options that can change rendered output. Keep these semantics when the destination flavor supports them.

Read references/shortcodes-and-render-hooks.md before converting any file that contains Hugo syntax.

Show full SKILL.md (562 more words)Show less
5. Validate the output

After conversion, scan the generated Markdown for leftover Hugo-only syntax.

bash
python3 skills/hugo-to-markdown/scripts/check_standard_markdown.py \
  --root /path/to/output

If the validator reports active Hugo syntax outside code fences, either:

  • resolve it fully, or
  • replace it with a safe textual explanation

Do not silently ship unresolved {{< ... >}}, {{% ... %}}, or Go template expressions.

6. Downgrade explicitly when full materialization is not safe

If a shortcode depends on build-time data, generated examples, or external source files that you cannot resolve deterministically from the local repo snapshot, replace it with an explicit Markdown note.

Use a short, boring format such as:

  • > Conversion note: <what the shortcode normally renders>.
  • followed by any safe subset you were able to preserve, such as inline Redis CLI text, a resolved image URL, or a known section list

Do not leave empty links, broken table cells, or stripped content with no explanation.

Common Hugo Docs Site Patterns

Use these facts when converting a Hugo documentation site that exhibits similar patterns:

  • hugo.toml mounts content/en to content, so English docs are the active content tree.
  • Goldmark passthrough delimiters are configured for math, so $$...$$, \\(...\\), and \\[...\\] can be meaningful content, not junk.
  • markup.goldmark.parser.attribute.block = true, so block attribute syntax may appear after fenced blocks and other block elements.
  • markup.goldmark.parser.wrapStandAloneImageWithinParagraph = false, so standalone image attributes can target the image itself rather than a wrapping paragraph.
  • The repo defines custom render hooks for blockquotes, code blocks, links, passthrough, and tables. It documents heading and image render hooks, but the site does not override them locally.
  • The repo uses many shared _common fragments referenced through % include %, so reading a page file alone is not enough to understand the rendered content.
  • The repo documents embedded, custom, and inline shortcodes, and the conversion logic must distinguish them before flattening syntax.
  • The repo uses page bundles and page resources heavily in examples and render-hook resolution, including section resources and mounted global resources.
  • The repo contains many escaped shortcode examples such as {{</* foo */>}} and {{%/* foo */%}}; these are documentation samples and must remain literal when they appear inside code examples, notation tables, or tutorial prose.

Safety Rules

  • Never execute Hugo templates, shortcodes, or Go template expressions.
  • Never treat content files as trusted executable input.
  • Never run hugo, npm install, go install, downloaded shell installers, or any network install step unless the user explicitly asks for it.
  • Keep all conversion scripts offline and deterministic.
  • Restrict reads to the declared site root and writes to the declared output root.
  • Reject path traversal, symlink escape, or attempts to write outside the requested output directory.
  • Do not leak local absolute paths, secrets, environment variables, or git credentials into generated Markdown.
  • When exact rendering cannot be reproduced safely, degrade to explicit Markdown text instead of live Hugo syntax.

Resources

Read these files as needed:

  • references/conversion-workflow.md End-to-end process for repo-aware conversion.
  • references/front-matter-and-content.md Front matter mapping, common content conventions, and literal-example handling.
  • references/shortcodes-and-render-hooks.md Hugo shortcode notation, docs-site custom shortcodes, and render-hook implications.
  • references/links-assets-and-validation.md Link resolution, assets, validation, and residue triage.

Use these scripts when helpful:

  • scripts/inventory_hugo_rules.py Scan a Hugo site and emit a rule inventory.
  • scripts/check_standard_markdown.py Detect leftover Hugo syntax and common unsafe residue in Markdown output.

Limitations

  • Use this skill only when the task clearly matches its upstream source and local project context.
  • Verify commands, generated code, dependencies, credentials, and external service behavior before applying changes.
  • Do not treat examples as a substitute for environment-specific tests, security review, or user approval for destructive or costly actions.

© sickn33, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 7 other files (scripts, references) in skills/hugo-to-markdown of sickn33/agentic-awesome-skills.

  • SKILL.md
  • agents/openai.yaml
  • references/conversion-workflow.md
  • references/front-matter-and-content.md
  • references/links-assets-and-validation.md
  • references/shortcodes-and-render-hooks.md
  • scripts/check_standard_markdown.py
  • scripts/inventory_hugo_rules.py

Open the folder on GitHubat commit 1c7bdea

Used in 1 other repository

We found 5 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in sickn33/agentic-awesome-skills, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Hugo To Markdown next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Hugo To Markdown compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Hugo To Markdown this skillsickn33/agentic-awesome-skills47k1 repos~3.3kAutomated safety check: PassApache-2.0
Migrate Content Iadocker/docs4.7k—~5.1kAutomated safety check: PassApache-2.0
Using Docs Kitlobehub/lobe-ui2.2k—~2.8kAutomated safety check: PassMIT
Mintlify Previewlatitude-dev/latitude-llm4.7k—~813Automated safety check: PassMIT
Portable Text Serializationsanity-io/agent-toolkit1881 repos~1.1kAutomated safety check: PassMIT
Generate CLI Docsmycelium-io/mycelium120—~641Automated safety check: PassCustom licence

Similar skills

  • Official

    Handle Hugo docs information-architecture moves: discover old vs new URLs, add front matter aliases (Phase 1), update in-repo links (Phase 2), interactive List 2 resolution and fragment validation…

    4.7k GitHub stars~5.1k tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Using Docs Kit

    lobehub/lobe-ui

    Set up and author a documentation site with @lobehub/docs-kit (the lobedocs CLI, React Router + Vite static docs used by ui.lobehub.com).

    2.2k GitHub stars~2.8k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Mintlify Preview

    latitude-dev/latitude-llm

    Run the public Mintlify product docs site locally for live preview.

    4.7k GitHub stars~813 tokensUpdated 2 days ago
    Frontend & DesignAuto-check passed
  • Portable Text Serialization

    sanity-io/agent-toolkit

    Official

    Render and serialize Portable Text to React, Svelte, Vue, Astro, HTML, Markdown, and plain text.

    188 GitHub starsUsed in 1 repo~1.1k tokens
    Frontend & DesignAuto-check passed
  • Generate CLI Docs

    mycelium-io/mycelium

    Regenerate the HTML docs site (CLI Reference, Configuration, content sections) from decorators, the pydantic config schema, and markdown source files

    120 GitHub stars~641 tokensUpdated today
    Frontend & DesignAuto-check passed
  • Fix Broken Links

    chef/chef-web-docs

    Run linkchecker against a locally served site, a deployed URL, or a local HTML build output, parse the errors, map each broken link back to its Markdown source file, suggest replacement URLs, and…

    143 GitHub stars~3.2k tokensUpdated 2 days ago
    Documents & OfficeAuto-check passed

More from sickn33/agentic-awesome-skills

All 1,497 skills in this repo
  • Liuguang Banlan UI

    sickn33/agentic-awesome-skills

    Implements an interface in one of two named color modes, iridescent white or colorful black, from a parameterized starter that reports measured color intensity.

    47k GitHub starsUsed in 1 repo~2.5k tokens
    Auto-check passed
  • User Thoughts Memory

    sickn33/agentic-awesome-skills

    Saves a user's project decisions, rules and preferences into a project-local mdbase so later sessions and other agents can recover the intent.

    47k GitHub starsUsed in 1 repo~2.5k tokens
    Auto-check passed
  • Using LWC Memory and Graphs

    sickn33/agentic-awesome-skills

    Keeps project decisions, research and verified results available across coding-agent sessions through LWC memory, a document Wiki graph and a CodeGraph code index.

    47k GitHub starsUsed in 1 repo~2k tokens
    Auto-check passed
  • Find Complementary Founders

    sickn33/agentic-awesome-skills

    Guides an agent through assessing its own owner for cofounder fit, publishing an approved profile, and ranking complementary profiles other agents published for their owners.

    47k GitHub starsUsed in 1 repo~4.8k tokens
    Auto-check passed
  • Whatsapp Cloud API

    sickn33/agentic-awesome-skills

    Integracao com WhatsApp Business Cloud API (Meta). An agent skill from sickn33/agentic-awesome-skills.

    47k GitHub starsUsed in 2 repos~4.5k tokens
    Auto-check passed
  • Cline Pilot

    sickn33/agentic-awesome-skills

    Acts as a proxy for the Cline CLI, dispatching coding tasks one at a time, monitoring runs by hard evidence, relaying decisions to you and learning per-project preferences.

    47k GitHub starsUsed in 1 repo~4.6k tokens
    Auto-check passed

Questions about Hugo To Markdown

What does Hugo To Markdown do?

Convert Hugo documentation sites and Hugo-managed content into standard Markdown. Hugo To Markdown is an agent skill from sickn33/agentic-awesome-skills. Convert Hugo documentation sites and Hugo-managed content into standard Markdown.

When should I use Hugo To Markdown?

Hugo To Markdown fits situations like: tasks that involve Static sites and blogs; tasks that involve Markdown.

How do I install Hugo To Markdown in Claude Code?

Run `npx skills add sickn33/agentic-awesome-skills --skill hugo-to-markdown -a claude-code`. Or copy the skill folder (skills/hugo-to-markdown in sickn33/agentic-awesome-skills) into .claude/skills/hugo-to-markdown in your project. Claude Code loads it when a task matches its description.

How do I install Hugo To Markdown in Codex?

Run `npx skills add sickn33/agentic-awesome-skills --skill hugo-to-markdown -a codex`. Or copy the skill folder (skills/hugo-to-markdown in sickn33/agentic-awesome-skills) into .agents/skills/hugo-to-markdown in your project. Codex loads it when a task matches its description.

Can I use Hugo To Markdown in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add sickn33/agentic-awesome-skills --skill hugo-to-markdown -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/hugo-to-markdown, .gemini/skills/hugo-to-markdown, .github/skills/hugo-to-markdown and .opencode/skills/hugo-to-markdown in your project.

What does Hugo To Markdown need to run?

Going by SKILL.md and its folder, Hugo To Markdown needs Python for the scripts in its folder and the command-line tools its instructions call (python3, npm and go). Our summary lists: Python 3; Node.js.

Does Hugo To Markdown access the network?

SKILL.md contains no URLs. Its commands use npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Hugo To Markdown safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Hugo To Markdown use?

Hugo To Markdown is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Hugo To Markdown use?

About 3.3k tokens (SKILL.md is roughly 13k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 6.6k tokens, read only when the agent opens those files.

What are the alternatives to Hugo To Markdown?

Skills that share tags, products or a category with Hugo To Markdown: Migrate Content Ia (docker/docs, 4.7k stars), Using Docs Kit (lobehub/lobe-ui, 2.2k stars), Mintlify Preview (latitude-dev/latitude-llm, 4.7k stars) and Portable Text Serialization (sanity-io/agent-toolkit, 188 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Hugo To Markdown?

sickn33 (a GitHub user) maintains it in sickn33/agentic-awesome-skills, which has 47,443 GitHub stars. The repository holds 1,497 skills in this directory. The repository was last updated on October 10, 2026.

Source: sickn33/agentic-awesome-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.