hugo-to-markdown
Qué hace
Esta herramienta convierte sitios y contenidos creados con Hugo al formato Markdown estándar. Lee las configuraciones y los archivos de tu sitio de Hugo para que la conversión sea precisa.
Cuándo usarla
- ✓Cuando necesites transformar un sitio de Hugo en archivos Markdown.
- ✓Para extraer el contenido de un sitio de Hugo y usarlo en otro lugar.
- ✓Cuando quieras migrar un sitio de Hugo a otra plataforma que use Markdown.
Link de la skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/hugo-to-markdown/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Convierte este sitio de Hugo a Markdown, usando sus configuraciones y archivos locales.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La herramienta analiza los archivos de configuración de Hugo (como hugo.toml), las plantillas de shortcodes y el contenido de tu sitio. Después transforma estos elementos en Markdown limpio y estándar, manteniendo el significado original.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
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(orhugo.yaml,hugo.yml,hugo.json, orconfig/*)archetypes/*data/*layouts/_shortcodes/*orlayouts/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.
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:
- 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:
- Resolve the real content root from
hugo.toml,config.*, and module mounts. - Read archetypes to understand expected front matter shape.
- Read the front matter configuration to understand date aliases, fallback order, filename-derived dates, and other inferred metadata.
- Read site data sources in
data/when shortcodes or partials pull structured content from them. - Read custom shortcode templates in
layouts/_shortcodes/orlayouts/shortcodes/. - Classify each encountered shortcode as embedded, custom, or inline, then check whether it uses named or positional arguments, block syntax, or self-closing syntax.
- Read render hooks in
layouts/_markup/. - 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.
- Follow
include-style shortcodes into referenced content files when the docs site composes content from shared fragments. - 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 nestedparamswhen 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
Titletotitle,Descriptiontodescription, andLinkTitletolinkTitle. - 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, andunpublishdate, 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.
…
Preguntas frecuentes
¿Qué es Hugo?
Hugo es un generador de sitios estáticos muy rápido que se usa para crear sitios web y blogs.
¿Qué es Markdown?
Markdown es un lenguaje de marcado sencillo que te permite dar formato al texto con caracteres comunes. Se usa mucho para escribir contenido web.
¿Por qué no usar un convertidor genérico?
Los convertidores genéricos pueden no entender las personalizaciones específicas de tu sitio de Hugo (como los shortcodes propios). Esta herramienta usa las reglas de tu propio sitio para lograr una conversión más fiel.
Detalles
Descripción original del autor
Convert Hugo documentation sites and Hugo-managed content into standard Markdown.
Popularidad
- Estrellas en GitHub
- 48 mil
- Posición en el ranking
- #4852
- Licencia
- MIT
- Actualizada
- 15/10/2026
Comentarios
- …
Más skills de este repositorio
00-andruia-consultant
48 milAyuda a tu agente a iniciar o mejorar proyectos de IA. Analiza código, sugiere herramientas y crea planes de acción en español.
007
48 milPermite que tu agente realice auditorías de seguridad y modelado de amenazas. Es útil para proteger proyectos contra ataques y vulnerabilidades.
10-andruia-skill-smith
48 milAyuda a tu agente a crear o mejorar herramientas de IA. Define cómo funcionan, escribe la documentación y valida la estructura.
20-andruia-niche-intelligence
48 milPermite que tu agente cree un resumen de un sector específico. Es útil para entender su contexto, normas, patrones de uso y riesgos, usando fuentes fiables.
Skills parecidas
obsidian-vault-maintainer
394 milAyuda a tu agente a mantener ordenado un almacén de memoria compatible con Obsidian, con enlaces de wiki que funcionan, propiedades coherentes y secciones generadas seguras.
wiki-maintainer
394 milAyuda a tu agente a mantener una wiki de memoria de OpenClaw con páginas repetibles, bloques gestionados seguros y comprobaciones de contradicciones o huecos.
obsidian
394 milPermite que tu agente lea, busque, cree y edite notas, tareas, enlaces y propiedades de Obsidian con la línea de comandos oficial de Obsidian.