본문으로 건너뛰기
Skillpedia
글쓰기48k · #4852

hugo-to-markdown

하는 일

이 도구는 Hugo로 만든 사이트와 콘텐츠를 표준 Markdown 형식으로 변환합니다. Hugo 사이트의 설정과 파일을 읽어 정확하게 변환되도록 합니다.

사용하는 경우

  • ✓Hugo 사이트를 Markdown 파일로 바꿔야 할 때.
  • ✓Hugo 사이트에서 콘텐츠를 추출해 다른 곳에서 사용하고 싶을 때.
  • ✓Markdown을 사용하는 다른 플랫폼으로 Hugo 사이트를 옮길 때.

스킬 링크

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/hugo-to-markdown/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/hugo-to-markdown/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이 Hugo 사이트를 로컬 설정과 파일을 사용해 Markdown으로 변환해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

도구는 hugo.toml 같은 Hugo 설정 파일, 쇼트코드 템플릿, 사이트의 콘텐츠를 분석합니다. 그다음 이것들을 원래 의미를 유지하면서 깔끔한 표준 Markdown으로 바꿉니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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 (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.

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:

  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.

…

자주 묻는 질문

Hugo는 무엇인가요?

웹사이트와 블로그를 만드는 데 쓰는 매우 빠른 정적 사이트 생성기입니다.

Markdown은 무엇인가요?

일반적인 문자로 텍스트 서식을 지정할 수 있는 간단한 마크업 언어입니다. 웹 콘텐츠를 작성하는 데 널리 쓰입니다.

일반적인 변환기를 쓰면 안 되나요?

일반 변환기는 Hugo 사이트만의 특별한 설정(예: 맞춤형 쇼트코드)을 이해하지 못할 수 있습니다. 이 도구는 사이트 고유의 규칙을 사용해 더 정확하게 변환합니다.

상세 정보

작성자의 원본 설명

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

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#4852
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬