← ClaudeAtlas

daftai-url-to-markdownlisted

Fetch any URL and convert to markdown using Chrome CDP, with automatic image downloading. Supports auto-capture and wait-for-user modes. Downloads article images to local directory and rewrites image references to relative paths. Use when user wants to save a webpage as markdown with images. Keywords: url to markdown, save webpage, download article, 网页转markdown
daftAI2026/daftAI-skills · ★ 2 · Data & Documents · score 56
Install: claude install-skill daftAI2026/daftAI-skills
# URL to Markdown Fetches any URL via Chrome CDP and converts HTML to clean markdown, with automatic image downloading. ## Script Directory **Important**: All scripts are located in the `scripts/` subdirectory of this skill. **Agent Execution Instructions**: 1. Determine this SKILL.md file's directory path as `SKILL_DIR` 2. Script path = `${SKILL_DIR}/scripts/<script-name>.ts` 3. Replace all `${SKILL_DIR}` in this document with the actual path **Script Reference**: | Script | Purpose | |--------|---------| | `scripts/main.ts` | CLI entry point for URL fetching | | `scripts/download-images.ts` | Image download and path rewriting | ## Preferences (EXTEND.md) Use Bash to check EXTEND.md existence (priority order): ```bash # 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 ## Features - Chrome CDP for full JavaScript rendering - Two capture modes: auto or wait-for-user - **Automatic image downloading** with local p