hugo-to-markdown
ما الذي تفعله
تحوّل هذه المهارة المواقع والمحتوى المبني باستخدام Hugo إلى صيغة Markdown القياسية. وتقرأ إعدادات موقع Hugo وملفاته لضمان تحويل دقيق.
متى تستخدمها
- ✓عندما تحتاج إلى تحويل موقع Hugo إلى ملفات Markdown.
- ✓لاستخراج المحتوى من موقع Hugo لاستخدامه في مكان آخر.
- ✓عند نقل موقع Hugo إلى منصة أخرى تستخدم Markdown.
رابط المهارة
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/hugo-to-markdown/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“حوّل موقع Hugo هذا إلى Markdown، باستخدام إعداداته وملفاته المحلية.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تحلل المهارة ملفات إعدادات Hugo (مثل hugo.toml) وقوالب الـ shortcodes ومحتوى موقعك. ثم تحوّل هذه العناصر إلى 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(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.
…
الأسئلة الشائعة
ما هو Hugo؟
Hugo مولّد مواقع ثابتة سريع جداً، يُستخدم لبناء المواقع والمدونات.
ما هو Markdown؟
Markdown لغة تنسيق بسيطة تتيح لك تنسيق النص باستخدام رموز شائعة. وهي مستخدمة على نطاق واسع لكتابة محتوى الويب.
لماذا لا أستخدم محولاً عاماً؟
قد لا تفهم المحولات العامة التخصيصات الخاصة بموقع Hugo الخاص بك (مثل الـ shortcodes المخصصة). تستخدم هذه المهارة قواعد موقعك الخاص لتحويل أكثر دقة.
التفاصيل
الوصف الأصلي من المؤلف
Convert Hugo documentation sites and Hugo-managed content into standard Markdown.
الشعبية
- نجوم GitHub
- 48k
- الترتيب
- #4852
- الترخيص
- MIT
- آخر تحديث
- 15/10/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
00-andruia-consultant
48kيساعد وكيلك على بدء مشاريع الذكاء الاصطناعي أو تحسينها. يحلل الكود ويقترح الأدوات ويُعد خطط عمل بالإسبانية.
007
48kيتيح لوكيلك إجراء تدقيقات أمنية ونمذجة التهديدات. مفيد لحماية المشاريع من الهجمات والثغرات الأمنية.
10-andruia-skill-smith
48kيساعد وكيلك على إنشاء أدوات الذكاء الاصطناعي أو تحسينها. يحدد طريقة عملها، ويكتب توثيقها، ويتحقق من بنيتها.
20-andruia-niche-intelligence
48kيتيح لوكيلك إعداد ملخص عن صناعة محددة. مفيد لفهم السياق والقواعد وأنماط الاستخدام والمخاطر لمشروع ما، باستخدام مصادر موثوقة.
مهارات مشابهة
obsidian-vault-maintainer
394kيساعد وكيلك على الحفاظ على خزنة ذاكرة متوافقة مع Obsidian، بروابط ويكي تعمل وخصائص متسقة وأقسام آلية آمنة.
wiki-maintainer
394kيساعد وكيلك على صيانة ويكي ذاكرة OpenClaw بصفحات قابلة للتكرار وكتل مُدارة آمنة، مع فحص التناقضات والثغرات.
obsidian
394kيتيح لوكيلك قراءة ملاحظات Obsidian ومهامها وروابطها وخصائصها والبحث فيها وإنشاؤها وتعديلها، عبر سطر أوامر Obsidian الرسمي.