defuddle

Extract clean markdown content from web pages using the Defuddle CLI.

Updated Nov 9, 2023
One-click install
npx skills add https://github.com/oresttokovenko/dot-files --skill defuddle-oresttokovenko
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: defuddle
Source: https://github.com/oresttokovenko/dot-files/tree/main/chezmoi/dot_agents/skills/defuddle
Command: npx skills add https://github.com/oresttokovenko/dot-files --skill defuddle-oresttokovenko

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires defuddle.

What problem does it solve? Fetching web pages with standard tools returns raw HTML cluttered with navigation, ads, and boilerplate, wasting tokens and obscuring the actual content. This Skill uses the Defuddle CLI to strip clutter and return clean markdown from any URL. ## Core Features & Use Cases - Clean Markdown Extraction: Parse any web page into readable markdown with the --md flag, removing navigation and ads. - Metadata Retrieval: Pull specific properties like title, description, or domain with the -p flag. - Flexible Output Formats: Choose markdown, JSON, or HTML output, and save results directly to a file with -o. - Use Case: When a user shares a blog post or documentation URL to summarize, run defuddle parse <url> --md instead of WebFetch to get only the article body, reducing token usage. ## Quick Start Ask the AI to read and summarize the article at a given URL using defuddle instead of WebFetch.

Frequently Asked Questions about defuddle

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert a web page to clean markdown from the command line?

Run `defuddle parse <url> --md` to extract the main content of a web page as markdown. The CLI strips navigation, ads, and boilerplate, returning only the readable article body.

When should I use defuddle instead of WebFetch?

Use defuddle for standard web pages like articles, blog posts, and documentation where clutter inflates token usage. Do not use it for URLs ending in .md, since those are already markdown and should be fetched directly.

How do I install the defuddle CLI?

Install defuddle globally with npm by running `npm install -g defuddle`. After installation, the `defuddle parse` command becomes available in your shell.

Can defuddle extract only the title or description of a page?

Yes, use the `-p` flag with a property name, such as `defuddle parse <url> -p title` or `-p description`. This returns just that metadata field without the full page content.

What output formats does defuddle support?

Defuddle supports markdown via `--md`, JSON containing both HTML and markdown via `--json`, and plain HTML with no flag. You can also save output to a file using the `-o` option.