agentleFS
fabioc-alohafabioc-aloha/Alex_ACT_ONE/skills/html-to-md/SKILL.md

html-to-md

Skill0 starsChanged 9 days agoMITView on GitHub

Convert HTML documents to clean Markdown via pandoc. Use when the user asks to convert HTML to markdown or import a .html file into markdown.

1 other project uses a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run the project's Markdown linter over the output to fix heading hierarchy and list spacing.

    line 44

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Html To Md

Convert HTML documents to clean Markdown. Strips inline styles, scripts, and tracking pixels while preserving semantic structure.

Quick Start

node skills/html-to-md/scripts/html-to-md.cjs page.html page.md

What's preserved

  • Headings, paragraphs, lists, blockquotes
  • Tables (when structure is regular)
  • Links and inline code
  • Image references (URLs kept as-is)
  • Emphasis (bold, italic, strikethrough)

What's dropped

  • Inline style attributes
  • <script> and <style> blocks
  • Tracking pixels and analytics tags
  • Most <div>/<span> wrappers (semantic content preserved)

Optional flags

FlagEffect
--extract-imagesCopy referenced local images to an images/ folder; remote URLs remain unchanged
--no-extract-imagesPreserve original local and remote image references
--wrap NLine wrap width (default: 0, no wrapping)

Post-conversion

  • Run the project's Markdown linter over the output to fix heading hierarchy and list spacing. When Core is installed, use its lint-clean-markdown skill.
  • HTML often has multiple <h1> tags; Markdown wants exactly one.

Related

  • docx-to-md — Word source
  • Markdown linting — clean up the result with the project's linter or the lint-clean-markdown skill

Would Revise If

Revisit this skill if Pandoc changes html-to-md flag semantics, local image extraction fails on a supported source, or remote image download becomes a required capability rather than an explicit non-feature.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.