AgentSkillsCN

web-to-markdown

使用 ezycopy CLI 将任意网页转换为简洁的 Markdown 格式。当用户提出“将此页面转换为 Markdown”、“提取此网页内容”、“保存这篇文章”、“从 URL 获取内容”、“从该链接获取 Markdown”、“抓取此页面”等需求,或希望获得无广告、无杂乱干扰的纯净网页内容时,即可使用此工具。

SKILL.md
--- frontmatter
name: web-to-markdown
description: >
  Convert any webpage to clean markdown using ezycopy CLI. Use when user asks to
  "convert this page to markdown", "extract this webpage", "save this article",
  "grab content from URL", "get markdown from this link", "scrape this page",
  provides a URL to extract, or wants clean web content without ads and clutter.

EzyCopy CLI

Extracts clean markdown from URLs. Default: fast HTTP fetch. Use --browser for Chrome when needed.

Usage

code
ezycopy <URL> [flags]

Flags:

  • -c — Copy output to clipboard
  • -o <path> — Save to file/directory
  • --browser — Use Chrome (for JS-heavy or authenticated sites)
  • --no-images — Strip image links
  • -t <duration> — Timeout (default: 30s)

When to use --browser

  • Twitter/X, SPAs, or JS-rendered sites
  • Authenticated/paywalled content
  • If default returns empty or suspiciously short content

Execution Notes

  • When using --browser mode, run as a foreground process
  • Don't use 2>&1 - let stderr flow naturally

Install

If not installed: curl -sSL https://raw.githubusercontent.com/gupsammy/EzyCopy/main/install.sh | sh