Fetches any URL via Chrome CDP and converts HTML to clean markdown with automatic image downloading. Supports auto-capture and wait-for-user modes.
Ships in utility-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Fetches any URL via Chrome CDP and converts HTML to clean markdown, with automatic image downloading.
Important: All scripts are located in the scripts/ subdirectory of this skill.
Agent Execution Instructions:
SKILL_DIR${SKILL_DIR}/scripts/<script-name>.ts${SKILL_DIR} in this document with the actual pathScript Reference:
| Script | Purpose |
|---|---|
scripts/main.ts | CLI entry point for URL fetching |
scripts/download-images.ts | Image download and path rewriting |
Use Bash to check EXTEND.md existence (priority order):
# Check project-level first
test -f .daftai-skills/daftAI-url-to-markdown/EXTEND.md && echo "project"
# Then user-level
test -f "$HOME/.daftai-skills/daftAI-url-to-markdown/EXTEND.md" && echo "user"
| Path | Location |
|---|---|
.daftai-skills/daftAI-url-to-markdown/EXTEND.md | Project directory |
$HOME/.daftai-skills/daftAI-url-to-markdown/EXTEND.md | User home |
| Result | Action |
|---|---|
| Found | Read, parse, apply settings |
| Not found | Use defaults |
EXTEND.md Supports: Default output directory | Default capture mode | Timeout settings | Image download toggle
<picture> / <source> tag support for complete image extraction# Auto mode (default) - capture and download images
bun ${SKILL_DIR}/scripts/main.ts <url>
# Wait mode - wait for user signal before capture
bun ${SKILL_DIR}/scripts/main.ts <url> --wait
# Skip image downloading
bun ${SKILL_DIR}/scripts/main.ts <url> --no-images
# Save to specific file
bun ${SKILL_DIR}/scripts/main.ts <url> -o output.md
| Option | Description |
|---|---|
<url> | URL to fetch |
-o <path> | Output file path (default: auto-generated) |
--wait | Wait for user signal before capturing |
--no-images | Skip downloading images (keep remote URLs) |
--timeout <ms> | Page load timeout (default: 30000) |
| Mode | Behavior | Use When |
|---|---|---|
| Auto (default) | Capture on network idle | Public pages, static content |
Wait (--wait) | User signals when ready | Login-required, lazy loading, paywalls |
Wait mode workflow:
--wait → script outputs "Press Enter when ready"YAML front matter with url, title, description, author, published, captured_at fields, followed by converted markdown content.
url-to-markdown/<domain>/
├── <slug>.md
└── images/
├── image1.png
├── image2.svg
└── ...
<slug>: From page title or URL path (kebab-case, 2-6 words)images/ subdirectory next to the markdown fileimages/<filename><slug>-YYYYMMDD-HHMMSS.md| Variable | Description |
|---|---|
URL_CHROME_PATH | Custom Chrome executable path |
URL_DATA_DIR | Custom data directory |
URL_CHROME_PROFILE_DIR | Custom Chrome profile directory |
Troubleshooting: Chrome not found → set URL_CHROME_PATH. Timeout → increase --timeout. Complex pages → try --wait mode.
After the script finishes, the agent MUST perform the following validation steps before reporting completion:
read_web_page to fetch the original URLcurl) for <video>, <iframe>, <source>, or links to Vimeo, YouTube, Wistia, Lottie, etc.[视频:<caption or description>](<video_url>)mediaGallery blocks — check the page's raw HTML/JSON for vimeo.com, youtube.com, .mp4, .webm references point to files that actually exist in the images/ directory><hr> elements are converted to ---/blog/some-post/) to absolute URLs (e.g., https://domain.com/blog/some-post/)[text](url) links are properly formattedCustom configurations via EXTEND.md. See Preferences section for paths and supported options.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/utility-skills:daftai-url-to-markdownfrom utility-skills
npx claudepluginhub daftai2026/daftai-skills --plugin utility-skills5 skills in this plugin
/daftai-chinese-copywritingChecks and fixes Chinese copywriting with autocorrect-backed workflows for text and single-file Markdown/TXT inputs. Use when user asks to normalize Chinese punctuation, spacing, or full-width/half-width usage. Also triggers for "校对", "检查排版", "中英文空格", "全角半角". Does not rewrite document structure, product claims, or UI messaging.
/daftai-chinese-technical-writingWrites, rewrites, and reviews Chinese technical documentation, product copy, and UI microcopy using ruanyf/document-style-guide, STE-inspired Chinese methods for procedural passages, and separate product and UI extensions. Use for 中文技术写作, README, API documentation, 操作指南, 安装部署说明, 故障排查文档, 运维 Runbook, 工具描述, Agent 指令文案, 产品介绍, 功能说明, 界面文案, 按钮, 空状态, and 错误提示 when the task concerns meaning, structure, or wording. Delegates requested formatting checks to daftai-chinese-copywriting. Pure punctuation or spacing tasks belong to that skill; personal essays and author-voice articles do not belong here.
/daftai-gpt-image-promptOptimizes natural-language image requests and rough prompts into ready-to-use GPT Image prompts using the official prompting guide as a live reference. Use when users ask to improve image prompts, 优化生图提示词, 把想法变成提示词, or write GPT Image generation, editing, vector, or animated-image prompts. Produces prompt text, not images, unless the user explicitly asks to generate.
/daftai-image-to-svgConverts transparent or solid-background single-color PNG files and SVG files containing one embedded or local PNG into verified path-only SVG output. Removes pure-color backgrounds automatically. Uses Potrace threshold and parameter scans with alpha error metrics to preserve detailed logos, stamps, engravings, and line art. Use when the user asks to convert images to SVG, vectorize PNG, convert bitmap to true SVG, remove embedded raster data from SVG, 图片转矢量, PNG 转 SVG, 真矢量, or 位图描摹.
Other plugins' skills for the same job