SkillsReviewed · JimLiu

baoyu-url-to-markdown

baoyu-url-to-markdown is a skill for AI-assistant users and developers who want to save web content as readable text, but some captures require manual sign-in and checks for missing content. It bundles a Bun command-line tool that uses Chrome to produce Markdown or JSON from general webpages, X posts, YouTube captions and Hacker News threads.

Researched 16 Nov 2026

In short.

baoyu-url-to-markdown is a skill for AI-assistant users and developers who want reusable copies of web content, but successful extraction can still require manual interaction and inspection for missing material. Its bundled Bun tool controls Chrome, selects a site adapter and exports Markdown or structured JSON, with optional media downloads. Material catches include a remote Defuddle fallback in generic Markdown capture, unencrypted local storage of X session cookies, and differences between documented browser defaults and the implementation. The resource was not run or tested; capture quality, compatibility and operating costs remain unverified.

Researched and written by an AI model and checked by a second AI model. How it works

Covers the complete supplied skills/baoyu-url-to-markdown folder at commit ca703c2d7c2c4399a1dc0cf82224f8551e05a96d: SKILL.md, references, launcher, implementation files, type declarations, package manifest and Bun lockfile. Includes the repository-root LICENSE as the related notice above that folder. Excludes other repository skills, installed third-party package source, browser binaries, live target-site content and later upstream changes. Installation, execution, capture fidelity, authentication recovery, media downloads, performance and operating-system compatibility were not tested.

The overview

What it is

baoyu-url-to-markdown combines instructions that an AI assistant can load with a bundled command-line converter called baoyu-fetch. It belongs to JimLiu/baoyu-skills, and SKILL.md declares version 1.61.0. The original resource is [https://github.com/JimLiu/baoyu-skills/tree/main/skills/baoyu-url-to-markdown].

The selected resource is this skill folder and its supporting files. The converter can also be invoked directly with Bun; its supplied implementation does not configure a language-model provider or require a model API key.

Where it fits

The design is useful for collecting readable articles, captioned talks and discussion threads into notes or material an assistant can subsequently read. Site-specific extraction and reusable browser sessions offer more structure than simply copying visible page text.

Its suitability depends on accepting browser setup and checking the result. The documentation explicitly warns that a normal exit can accompany a login wall, page shell or incomplete body. Generic Markdown extraction can also contact a remote service, so it should not be assumed to operate entirely locally.

Who can use it

Likely users include writers and researchers collecting source material, assistant users saving pages into files, and developers building document-ingestion steps. These are inferred uses of its capture and export features.

Beginners can have a command-capable assistant handle preferences and commands, but still need Bun, Chrome and access to the target content. Developers get adapter overrides, structured output, an existing Chrome debugging connection and diagnostic files. Compatibility with particular assistant products is not established by the supplied files.

What it captures

Four adapters are selected automatically or through --adapter. X extraction handles posts, quoted posts, Articles and connected author threads. YouTube extraction uses available captions, adds timestamp ranges and groups text under chapters when found. Hacker News extraction preserves story metadata and nested comments. Other URLs use the generic webpage adapter.

Markdown includes a metadata block that can contain source addresses, title, author and publication information. JSON includes the document, rendered Markdown, media information and, when available, login details. Optional downloads save discovered images and videos into local directories and rewrite references in the rendered Markdown. Download failures can be skipped while conversion continues.

Using it

What you need

The bundled launcher requires Bun and the runtime dependencies listed in scripts/package.json. Capture requires a Chrome-compatible browser or an existing Chrome DevTools Protocol endpoint, internet access and writable locations for browser data and saved files. Login and verification modes require access to a visible browser window and any necessary site account.

The supplied material establishes no minimum Bun or browser version, hardware requirement, memory budget or verified operating-system compatibility. Downloading media requires --output so the converter can calculate relative file references.

How capture works

The converter launches or reuses Chrome and controls a page through Chrome DevTools Protocol, the browser's debugging interface. Generic capture waits for network activity to settle, scrolls, checks for verification gates and snapshots the rendered HTML. The snapshot also copies accessible shadow-DOM content and resolves relative addresses. Local extraction cleans the HTML and uses Defuddle, with Readability and Turndown as alternative conversion paths.

For generic Markdown output, weak or short extraction can trigger a request to the remote Defuddle service [https://defuddle.md]. The request includes the target URL rather than the captured HTML or Chrome cookies. This exposes the target address to that service and can produce content different from the signed-in browser view. Generic JSON output disables this particular remote fallback in the supplied code.

X extraction reads relevant browser-observed GraphQL responses and scrolls to load more thread content. YouTube extraction reads player configuration and requests an exposed caption track. Hacker News extraction parses the loaded page's story and comment HTML.

Getting started

Obtain the original skill folder with its scripts and references intact. In a repository checkout, the documented dependency-installation command is bun install --cwd skills/baoyu-url-to-markdown/scripts. The launcher is skills/baoyu-url-to-markdown/scripts/baoyu-fetch, and the underlying entry point can be invoked with bun skills/baoyu-url-to-markdown/scripts/lib/cli.ts.

When used through an assistant, first-time setup asks for media handling, an output directory and a preference-save location. Preferences live in EXTEND.md, with project settings taking precedence over XDG configuration and the legacy user-home location. The assistant translates those preferences into CLI options and constructs output paths; the CLI itself does not read EXTEND.md.

Use --browser-path when Chrome cannot be found, --chrome-profile-dir for an explicit browser-data location, or --cdp-url to attach to an existing debugging endpoint. Exact installation steps for a particular assistant host are not supplied.

Example use

An illustrative command, not executed, is: bun skills/baoyu-url-to-markdown/scripts/lib/cli.ts PAGE_URL --headless --output article.md. Replace PAGE_URL with the full address of a public article. The intended result is article.md containing extracted content and available metadata; its actual contents remain unknown until capture and inspection.

For a page requiring sign-in or verification, use --wait-for interaction instead of --headless and complete the requested steps in Chrome. For manual page preparation, --wait-for force also accepts Enter to continue. Adding --download-media requests local copies of discovered media.

For integration into another program, --format json exposes status and structured fields. A detected gate in non-waiting JSON mode can return status needs_interaction through standard output without an error exit. Consumers must inspect status rather than treating process completion as capture success.

Assessment & evidence

Material limitations

Capture is not a complete visual archive. Generic scrolling is capped at four steps, and HTML cleaning removes elements such as forms, embedded frames and canvas content. Long or dynamically loaded pages can therefore remain partial. X thread extraction follows a connected chain centered on the requested post; it does not establish capture of every reply or branch.

YouTube requires an exposed, usable caption track. Although the adapter guide mentions description-only output, the transcript implementation returns no document when captions are unavailable, after which generic extraction may be attempted. With chapters present, the renderer can omit transcript segments before the first chapter if it starts after zero.

Documentation describes default capture as headless, but the argument parser initializes headless to false. --headless requests headless operation when launching a browser; an existing browser may be reused. The documented relative profile location also differs from the implementation's operating-system application-data default. Omit --wait-for for no waiting; the parser does not accept none as an explicit value.

X session cookies are exported as unencrypted JSON in x-session-cookies.json under the resolved profile directory. Debug output can include page HTML, request headers, request bodies and response bodies. These files can contain private content or authentication information. Media downloads can fail independently, so a saved document does not establish that all media was saved.

Why the design matters

The main practical value is combining rendered-page access with extraction tailored to particular content types. Hacker News nesting and YouTube timestamps preserve relationships that generic article extraction may lose. Source metadata helps connect saved text to its origin.

The converter extracts and reformats existing material. A field named summary may contain source metadata or a text excerpt; it is not evidence of an AI-generated explanation. Its fit is strongest when readable, attributable text is the objective and someone can check completeness. Source code alone does not establish superior accuracy or speed.

Other approaches

For developers who already have HTML and only need article extraction, direct use of Defuddle or Mozilla Readability with Turndown is a plausible alternative inferred from this implementation. Those libraries underpin the generic conversion paths here. Comparative setup effort, fidelity, performance and costs are unknown.

Within this resource, --adapter generic forces general webpage extraction instead of a site-specific adapter. This offers a different capture path, but does not preserve a guarantee of transcripts or thread structure. Generic JSON output also avoids the remote Markdown fallback, while potentially producing a different extraction result.

Evidence and confidence

The supplied evidence contains SKILL.md, three reference documents, the shell launcher, TypeScript source, package manifest, Bun lockfile and repository MIT notice. The fixed-version skill instructions are available at [https://raw.githubusercontent.com/JimLiu/baoyu-skills/ca703c2d7c2c4399a1dc0cf82224f8551e05a96d/skills/baoyu-url-to-markdown/SKILL.md].

These materials establish documented features and inspectable implementation paths. The resource was not executed, installed or tested. Actual page captures, authentication recovery, download completeness, performance and platform compatibility remain unverified. No supplied benchmark establishes extraction quality.

Access & freshness

Costs

The MIT notice grants use without a software licence fee. Separate assistant-provider charges, target-site subscriptions and the remote Defuddle service's pricing or limits are unknown. The supplied CLI does not configure model billing. Browser compute, bandwidth and storage for downloaded media are operating requirements, but their consumption and monetary cost were not measured.

Licence and content rights

The repository MIT licence names Jim Liu as the 2026 copyright holder. It permits use, modification, redistribution, sublicensing and sale, provided the copyright and permission notice accompanies copies or substantial portions. The software is supplied without warranty.

That software licence does not establish permission to republish website text, captions, images or videos obtained through the converter. Dependency licences are also not established by the repository notice alone. Rights to captured material and third-party packages require their own applicable terms.

Version and change sensitivity

The supplied snapshot was captured on 16 November 2026 at commit ca703c2d7c2c4399a1dc0cf82224f8551e05a96d. SKILL.md declares version 1.61.0. The capture date does not establish a release date, the latest upstream version or compatibility with sites today.

X extraction depends on particular GraphQL response names, payload structures and page controls. YouTube extraction depends on player configuration and an internal player endpoint with a hard-coded client version. Changes to those sites can affect capture independently of local installation. The lockfile records dependency resolutions but does not prove current compatibility or security.

Before relying on it

Start with a representative public page and compare the saved title, main body, ending and media with the browser view. For YouTube, confirm that a transcript exists and that opening speech is retained. For X, compare the captured chain with the intended posts. These are suggested evaluations, not completed tests.

Choose an explicit profile location and browser mode, decide whether target URLs may be sent to the remote Defuddle service, and protect cookie and debug files accordingly. For generic capture, JSON output disables that remote fallback in the supplied implementation. In automation, inspect status, content and download results; a normal exit alone is insufficient evidence of a complete capture.

Evidence for this report

LICENSEnotice · checked 2026-11-16
skills/baoyu-url-to-markdown/SKILL.mdselected · checked 2026-11-16
skills/baoyu-url-to-markdown/scripts/bun.lockselected · checked 2026-11-16