skills/hugo-to-markdown/SKILL.md
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/, layout
npx skillsauth add ranbot-ai/awesome-skills hugo-to-markdownInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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...
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:
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.
Always inspect the site-level rules first.
python3 scripts/inventory_hugo_rules.py --site-root /path/to/hugo-site
Example invocation for the user's site:
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:
Read references/conversion-workflow.md before changing files. Then:
hugo.toml, config.*, and module mounts.data/ when shortcodes or partials pull structured content from them.layouts/_shortcodes/ or layouts/shortcodes/.layouts/_markup/.include-style shortcodes into referenced content files when the docs site composes content from shared fragments.Use these rules by default:
title, description, date, draft, aliases, slug, url, weight, and nested params when they still carry meaning.publishDate, lastmod, expiryDate, and page resource metadata when they still affect meaning or downstream routing.Title to title, Description to description, and LinkTitle to linkTitle.pubdate, published, modified, and unpublishdate, plus tokens such as :default, :filename, :fileModTime, and :git.{{</* foo */>}} or `{{%/* footools
Use when a user asks to mine or update a private, evidence-backed work profile from local Claude Code, Codex, Copilot CLI, or OpenCode sessions.
data-ai
Use when diagnosing Android overheating, idle heat, thermal throttling, charging or radio heat, or abnormal battery drain with read-only ADB evidence and approval gates.
research
Research public competitor ads, analyze creative patterns and landing pages, and produce an evidence-labeled strategic teardown.
tools
Compiled CLI covering all 52 endpoints of the Anytype local API — objects, properties, tags, search, chat, files — one binary, no MCP server needed.