web-to-markdown
Fungsinya
Skill ini mengubah halaman web menjadi berkas Markdown yang bersih dengan memakai browser di komputer Anda. Skill ini untuk orang yang ingin menyimpan atau memakai ulang teks artikel dari halaman yang dimuat dengan JavaScript.
Kapan dipakai
- โSaat Anda ingin menyimpan artikel atau halaman web sebagai berkas teks yang bersih.
- โKetika halaman hanya menampilkan isinya setelah JavaScript berjalan dan unduhan sederhana melewatkannya.
- โSaat Anda ingin hasilnya disimpan ke berkas atau dicetak, bukan ditempel ke dalam obrolan.
Link skill
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/web-to-markdown/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
โSaya ingin Anda memakai skill web-to-markdown pada tautan artikel ini dan menyimpannya sebagai berkas markdown untuk saya.โ
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill membuka halaman di browser berbasis Chromium yang terpasang di komputer Anda, mengambil konten utamanya, mengubahnya ke Markdown, lalu menyimpan atau mencetaknya. Anda juga dapat menyelesaikan login atau pemeriksaan apa pun sendiri di browser.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
web-to-markdown
Convert web pages to clean Markdown by driving a locally installed browser (via web2md).
Hard trigger gate (must enforce)
This skill MUST NOT be used unless the user explicitly wrote exactly a phrase like:
use the skill web-to-markdown ...use a skill web-to-markdown ...
If the user did not explicitly request this skill by name, stop and ask them to re-issue the request including: use the skill web-to-markdown.
What this skill does
- Handles JS-rendered pages (Puppeteer โ user Chrome).
- Works best with Chromium-family browsers (Chrome/Chromium/Brave/Edge) via
puppeteer-core. - Extracts main content (Readability).
- Converts to Markdown (Turndown) with cleaned links and optional YAML frontmatter.
Non-goals
- Do not use Playwright or other browser automation stacks; the mechanism is
web2md.
Inputs you should collect (ask only if missing)
url(or a list of URLs)- Output preference:
- Print to stdout (
--print), OR - Save to a file (
--out ./file.md), OR - Save to a directory (
--out ./some-dir/to auto-name by page title)
- Print to stdout (
- Optional rendering controls for tricky pages:
--chrome-path <path>(if Chrome auto-detection fails)--interactive(show Chrome and pause so the user can complete human checks/login, then press Enter)--wait-until load|domcontentloaded|networkidle0|networkidle2--wait-for '<css selector>'--wait-ms <milliseconds>--headful(debug)--no-sandbox(sometimes required in containers/CI)--user-data-dir <dir>(login/session; use a dedicated profile directory)
Workflow
- Confirm the user explicitly invoked the skill (
use the skill web-to-markdown). - Validate URL(s) start with
http://orhttps://. - Ensure
web2mdis installed:- Run:
command -v web2md - If missing, instruct the user to install it:
- If available via npm:
npm install -g web2md - If from source: Clone the repository, then run
npm install && npm run build && npm link
- If available via npm:
- Run:
- Convert:
- Single URL โ file:
web2md '<url>' --out ./page.md
- Single URL โ auto-named file in directory:
mkdir -p ./out && web2md '<url>' --out ./out/
- Human verification / login walls (interactive):
mkdir -p ./out && web2md '<url>' --interactive --user-data-dir ./tmp/web2md-profile --out ./out/- Then: complete the check in the browser window and press Enter in the terminal to continue.
- Print to stdout:
web2md '<url>' --print
- Multiple URLs (batch):
- Create output dir (e.g.
./out/) then run oneweb2mdcommand per URL using--out ./out/
- Create output dir (e.g.
- Single URL โ file:
- Validate output:
- If writing files, verify they exist and are non-empty (e.g.
ls -la <path>andwc -c <path>).
- If writing files, verify they exist and are non-empty (e.g.
- Return:
- The saved file path(s), or the Markdown (stdout mode).
Defaults (recommended)
- For most pages:
--wait-until networkidle2 - For heavy apps: start with
--wait-until domcontentloaded --wait-ms 2000, then add--wait-for 'main'(or another stable selector) if needed.
Pertanyaan umum
Mengapa saya perlu menyebut nama skill?
Skill ini hanya berjalan jika Anda secara eksplisit meminta web-to-markdown dengan namanya, sehingga tidak mulai sendiri.
Browser apa yang dipakai?
Skill ini paling baik bekerja dengan browser keluarga Chromium seperti Chrome, Chromium, Brave, atau Edge yang terpasang di komputer Anda.
Bisakah menyimpan ke folder?
Bisa. Anda dapat mencetak hasilnya, menyimpannya ke berkas, atau menyimpannya ke folder dengan nama berkas dari judul halaman.
Detail
Deskripsi asli dari pembuat
Use ONLY when the user explicitly says: 'use the skill web-to-markdown ...' (or 'use a skill web-to-markdown ...'). Converts webpage URLs to clean Markdown by calling the local web2md CLI (Puppeteer + Readability), suitable for JS-rendered pages.
Popularitas
- Bintang GitHub
- 33k
- Peringkat
- #8812
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- โฆ
Skill lain dari repositori ini
owasp-security
33kMengajari agent Anda panduan keamanan OWASP untuk aplikasi web, API, mobile, kontainer, dan agent AI, sehingga bisa menemukan kelemahan umum dan menyarankan perbaikan.
agent-management
33kMembiarkan agent Anda membuat, mencantumkan, menidurkan, membangunkan, mengganti nama, dan menghapus agent AI menggunakan baris perintah AI Maestro, sambil mengelola siklus hidup setiap agent.
agent-messaging
33kMembiarkan agent Anda mengirim, menerima, dan membalas pesan bertanda tangan antaragent AI, menggunakan Agent Messaging Protocol, sebagian besar di mesin Anda sendiri.
docs-search
33kMembiarkan agent Anda mencari dokumentasi kode yang dibuat otomatis untuk tanda tangan fungsi, definisi kelas, dan komentar, sehingga agent memeriksa API yang sebenarnya sebelum mengubah kode.
Skill serupa
tavily
394kMembantu agent Anda mencari di web dengan Tavily dan mengambil teks dari halaman web tertentu, dengan opsi kedalaman, domain, dan tanggal.
blogwatcher
394kMemungkinkan agent Anda mengikuti blog dan feed RSS atau Atom, memeriksanya untuk artikel baru, dan menandai artikel yang sudah Anda baca.
data-scraper-agent
280kMembantu agent mengumpulkan data otomatis dari sumber publik. Bisa dijadwalkan, memperkaya informasi, dan menyimpan hasil. Berguna untuk memantau data online.