본문으로 건너뛰기
Skillpedia
웹 스크레이핑33k · #8812

web-to-markdown

하는 일

이 스킬은 컴퓨터의 브라우저를 사용해 웹 페이지를 깔끔한 마크다운 파일로 바꿉니다. 자바스크립트로 로드되는 페이지의 기사 텍스트를 저장하거나 재사용하려는 사람을 위한 것입니다.

사용하는 경우

  • ✓기사나 웹 페이지를 깔끔한 텍스트 파일로 저장하고 싶을 때.
  • ✓자바스크립트가 실행된 뒤에야 내용이 보이고 단순 다운로드로는 놓치는 페이지를 다룰 때.
  • ✓결과를 채팅에 붙여 넣지 않고 파일로 저장하거나 출력하고 싶은 경우.

스킬 링크

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/web-to-markdown/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/web-to-markdown/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이 기사 링크에 web-to-markdown 스킬을 사용해서 마크다운 파일로 저장해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

스킬은 로컬의 Chromium 계열 브라우저에서 페이지를 열고, 주요 내용을 추출해 마크다운으로 바꾼 뒤 저장하거나 출력합니다. 사용자는 브라우저에서 로그인이나 확인 절차를 직접 마칠 수도 있습니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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)
  • 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

  1. Confirm the user explicitly invoked the skill (use the skill web-to-markdown).
  2. Validate URL(s) start with http:// or https://.
  3. Ensure web2md is 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
  4. 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 one web2md command per URL using --out ./out/
  5. Validate output:
    • If writing files, verify they exist and are non-empty (e.g. ls -la <path> and wc -c <path>).
  6. 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.
자주 묻는 질문

왜 스킬 이름을 말해야 하나요?

스킬은 사용자가 web-to-markdown을 이름으로 명시적으로 요청할 때만 실행되므로, 스스로 시작하지 않습니다.

어떤 브라우저를 쓰나요?

컴퓨터에 설치된 Chrome, Chromium, Brave, Edge 같은 Chromium 계열 브라우저와 가장 잘 작동합니다.

폴더에 저장할 수 있나요?

네. 결과를 출력하거나 파일로 저장하거나, 페이지 제목에서 가져온 파일 이름으로 폴더에 저장할 수 있습니다.

상세 정보

작성자의 원본 설명

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.

repo: davila7/claude-code-templates

인기도

GitHub 스타
33k
순위
#8812
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬