← Back to Skills Marketplace
441126098

Md To Rich Html

by 441126098 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
38
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install md-to-rich-html
Description
Turn Markdown files or folders into a polished, human-readable, self-contained HTML page by having the agent understand the document, choose an appropriate i...
README (SKILL.md)

Markdown to Rich HTML

Use this skill when the user wants to render, preview, publish, share, or make Markdown easier to read. It supports a single .md file or a folder of .md files.

This is an agent-first skill. The goal is not to mechanically convert Markdown tags into HTML tags. The goal is to read the source, infer the reader's task, and design a page that makes the content easier to scan, understand, compare, and use.

Default Workflow

  1. Inspect the input file or folder and read the Markdown content.
  2. Determine the document's real reading purpose, such as a report, guide, interview pack, decision record, implementation plan, review, tutorial, knowledge note, changelog, or mixed document.
  3. Identify local semantic blocks instead of relying only on document type:
    • executive summary, key takeaways, risks, decisions, action items
    • steps, timeline, roadmap, checklist, status, owners
    • Q&A, interview questions, prompts, answers, follow-ups
    • comparisons, trade-offs, pros/cons, options, matrices
    • metrics, counts, constraints, assumptions, warnings
    • code examples, API references, diagrams, tables, citations
  4. Design an information structure for the page before writing HTML:
    • useful first viewport with title, context, summary, and document-specific signals
    • navigation or section map when the document is long
    • component choices that match the content, not just generic prose
    • responsive behavior for desktop and mobile
  5. Generate a self-contained HTML file with inline CSS and JS.
  6. Validate the HTML statically for complete structure, self-contained assets, valid links/anchors where practical, responsive CSS, and obvious accessibility issues.
  7. Open a browser for visual inspection only when the user explicitly asks for preview/verification, the page has complex layout, JavaScript interaction, Mermaid, charts, or meaningful responsive behavior, or the agent changed an existing visual design.
  8. Iterate if the result still looks like plain Markdown, has weak hierarchy, crowded spacing, broken wrapping, inaccessible contrast, or mobile layout issues.

Design Rules

  • Do not preserve Markdown structure mechanically when a better reading structure is obvious.
  • Do not invent facts. Summaries, stats, badges, labels, and classifications must be derived from the source content or clearly phrased as structural labels.
  • Prefer a small set of reusable human-reading components over document-type templates:
    • summary strip
    • stat grid
    • callout
    • comparison table or option matrix
    • timeline
    • step flow
    • collapsible Q&A
    • checklist panel
    • decision card
    • risk/action item list
    • code explanation block
    • diagram section
  • Use visual hierarchy deliberately: typography, spacing, borders, muted backgrounds, accent colors, section labels, and stable component dimensions.
  • Avoid generic landing pages. The first screen should expose the actual content.
  • Keep the output portable as a single HTML file unless the user asks for external assets.
  • If the Markdown contains Mermaid, either preserve and load Mermaid or convert the diagram to a readable fallback block.
  • If the Markdown contains code, preserve syntax and context; add captions or explanation panels when helpful.
  • If the content is short and plain, keep the design restrained. Do not over-design simple notes.

Quality Bar

Before finishing, check the generated page against these questions:

  • Can a reader understand the document's purpose within the first viewport?
  • Are the most important points surfaced before the long body text?
  • Are repeated structures, such as questions, options, tasks, or releases, rendered as components rather than paragraphs?
  • Are dense tables, code, and diagrams readable on desktop and mobile?
  • Does the page have enough hierarchy and contrast without becoming decorative noise?
  • Does the output avoid the "Markdown with nicer CSS" problem?

Use static inspection as the default verification method. Browser screenshots and console checks are optional quality gates for complex pages, not a required step for every conversion.

Maintenance

  • Prefer improving this skill's guidance and quality bar before adding new detector code.
  • Add helper scripts only when they provide narrow tooling, such as file collection, asset copying, HTML validation, or screenshot capture.
  • Do not move the core design decision back into mechanical detector or template enumeration.
Usage Guidance
This is reasonable to install for converting Markdown into richer HTML. Use it only with Markdown files you are comfortable letting the agent read, and review the generated HTML before publishing or sharing, especially when the source document contains private information or diagrams that may require external rendering libraries.
Capability Assessment
Purpose & Capability
The artifacts consistently describe reading user-selected Markdown files or folders, understanding their structure, and generating a self-contained HTML page; these capabilities are coherent with the stated purpose.
Instruction Scope
Runtime instructions are bounded to Markdown conversion, static validation, and optional browser inspection for complex or user-requested previews; there are no hidden role changes, prompt overrides, or unrelated automation.
Install Mechanism
The package contains only Markdown, YAML metadata, and a license file, with no executable scripts, declared dependencies, API keys, or install-time commands beyond the normal skill installer flow.
Credentials
The skill must read local Markdown content and write HTML output, which is expected for conversion work; users should avoid applying it to documents they do not want an agent to inspect or potentially include in generated output.
Persistence & Privilege
No artifact requests persistence, background workers, privilege escalation, credential/session access, broad indexing, deletion, or remote exfiltration.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install md-to-rich-html
  3. After installation, invoke the skill by name or use /md-to-rich-html
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of md-to-rich-html. - Converts single Markdown files or folders into polished, self-contained HTML pages. - Inspects and understands document purpose before designing an adaptive information structure. - Generates custom HTML, CSS, and JS components tailored to content and reading tasks. - Performs static validation by default; browser-based visual checks are done only for complex or user-requested cases. - Focuses on user-friendly layouts, meaningful hierarchy, and responsiveness for both desktop and mobile. - Avoids generic or mechanical Markdown-to-HTML conversion; always aims for clarity and usefulness in reading.
Metadata
Slug md-to-rich-html
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is Md To Rich Html?

Turn Markdown files or folders into a polished, human-readable, self-contained HTML page by having the agent understand the document, choose an appropriate i... It is an AI Agent Skill for Claude Code / OpenClaw, with 38 downloads so far.

How do I install Md To Rich Html?

Run "/install md-to-rich-html" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Md To Rich Html free?

Yes, Md To Rich Html is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Md To Rich Html support?

Md To Rich Html is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Md To Rich Html?

It is built and maintained by 441126098 (@441126098); the current version is v1.0.0.

💬 Comments