Skip to main content

defuddle

Extract clean Markdown from HTML pages with Defuddle CLI.

ObsidianMIT

SKILL.md

Written by Obsidian and published in obsidianmd/obsidian-skills under the MIT license. Treq shows it unchanged except for heading levels and links to files on GitHub.

Defuddle

Use Defuddle CLI when the user wants clean Markdown extracted from a web page. It removes navigation, ads, and other page clutter.

Check availability with defuddle --help. If it is missing, explain the dependency and offer installation with npm install -g defuddle. Do not claim extraction succeeded if the tool is unavailable or returns an error.

Usage

Always use --md for markdown output:

defuddle parse <url> --md

Save to file:

defuddle parse <url> --md -o content.md

Extract specific metadata:

defuddle parse <url> -p title
defuddle parse <url> -p description
defuddle parse <url> -p domain

Output formats

Flag Format
--md Markdown (default choice)
--json JSON with both HTML and markdown
(none) HTML
-p <name> Specific metadata property

When defuddle runs

Claude Code and Codex keep each installed skill's name and description in context. When a request matches the description, the agent loads the full SKILL.md. You can also run it yourself: type /defuddle in Claude Code or $defuddle in Codex.

Install defuddle

Claude Code

Copy the defuddle folder into .claude/skills/ in your project. To use it in every project, copy it into ~/.claude/skills/ instead.

git clone --depth 1 https://github.com/obsidianmd/obsidian-skills.git /tmp/obsidianmd-obsidian-skills
mkdir -p .claude/skills
cp -r /tmp/obsidianmd-obsidian-skills/plugins/obsidian/skills/defuddle .claude/skills/

Codex

Codex reads skills from .agents/skills/ in your repository, and from ~/.agents/skills/ for every repository. It detects new skills on its own. Restart Codex if defuddle does not appear.

git clone --depth 1 https://github.com/obsidianmd/obsidian-skills.git /tmp/obsidianmd-obsidian-skills
mkdir -p .agents/skills
cp -r /tmp/obsidianmd-obsidian-skills/plugins/obsidian/skills/defuddle .agents/skills/

Treq

Open Settings and select the Skills tab. The tab appears when Skills installation is on under Settings → Feature Preview. Search for defuddle and choose Install….

Install for repository writes the skill under .treq/skills/ in the current repository. Install for application makes it available to every repository on this machine. Each new workspace gets a copy in .claude/skills/ and .agents/skills/, so Claude Code and Codex both find it. See Installing Skills from the Library.

Files

defuddle ships one file, SKILL.md, shown above.

All skills by Obsidian