defuddle

defuddle is a skill for Claude Code from eliransu/digital-brain. It costs 83 tokens per session (638 once invoked), scanned A, a copy of defuddle, MIT.

A web-page cleaner that extracts the main readable content from a URL or local HTML file and outputs it as Markdown. It removes surrounding material such as advertisements, navigation, cookie notices, footers, and sharing controls.

In plain words
What is it for?
Use it before ingesting news articles, blog posts, documentation, or other web pages into a knowledge base. It can also save cleaned output and add source and retrieval-date metadata.
Why use it?
It leaves a smaller, cleaner document for reading or adding to a wiki, without unrelated page elements getting in the way.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the digital-brain plugin — 18 skills, 5 commands, 2 agents, 3 hooks shipped together

Good fit Use it before ingesting news articles, blog posts, documentation, or other web pages into a knowledge base. It can also save cleaned output and add source and retrieval-date metadata.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/eliransu/digital-brain/defuddle
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add eliransu/digital-brain --skill defuddle
Clone the repo
git clone --depth 1 https://github.com/eliransu/digital-brain

Made for: Claude Code.

Or install digital-brain, the plugin that ships this one along with the rest of its 18 skills, 5 commands, 2 agents, 3 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for defuddle

README.md
[![agentmods](https://agentmods.dev/badge/skills/eliransu/digital-brain/defuddle/github.svg)](https://agentmods.dev/skills/eliransu/digital-brain/defuddle)
Your own site
<a href="https://agentmods.dev/skills/eliransu/digital-brain/defuddle"><img src="https://agentmods.dev/badge/skills/eliransu/digital-brain/defuddle/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for defuddle

Your own site · 80×15
<a href="https://agentmods.dev/skills/eliransu/digital-brain/defuddle"><img src="https://agentmods.dev/badge/skills/eliransu/digital-brain/defuddle.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 638 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00083 $0.00638
Opus 5.5 $0.00033 $0.00255
Sonnet 5.5 $0.00017 $0.00128
Haiku 4.5 $0.00008 $0.00064

Measured 3mo ago against content hash 24d3ce17635e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

defuddle scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to defuddle — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/defuddle/SKILL.md · 85 lines

How it starts

The opening of the file, as written. The whole thing — 85 lines — stays where its author put it; the contents beside it link to each section on GitHub.

defuddle: Web Page Cleaner

Defuddle extracts the meaningful content from a web page and drops everything else: ads, cookie banners, nav bars, related articles, footers, social sharing buttons. What remains is the article body as clean markdown.

Use this before any URL ingestion. It is optional but strongly recommended. It cuts token usage by 40-60% on typical web articles and produces cleaner wiki pages.


Install

npm install -g defuddle-cli

Verify: defuddle --version


Usage

Clean a URL directly

defuddle https://example.com/article

Outputs clean markdown to stdout.

Save to .raw/

defuddle https://example.com/article > .raw/articles/article-slug-$(date +%Y-%m-%d).md

Add frontmatter header after saving

After running defuddle, prepend the source URL and fetch date:

SLUG="article-slug-$(date +%Y-%m-%d)"
{ echo "---"; echo "source_url: https://example.com/article"; echo "fetched: $(date +%Y-%m-%d)"; echo "---"; echo ""; defuddle https://example.com/article; } > .raw/articles/$SLUG.md

Clean a local HTML file

defuddle page.html

When to Use

Use defuddle when:

  • Ingesting a news article, blog post, or documentation page from a URL
  • The page has a lot of surrounding content (most web pages do)
  • You want to stay within token budget on a long article

Skip defuddle when:

  • The source is already a clean markdown or PDF file
  • The page is a dashboard, app, or structured data (defuddle expects article-style content)
  • defuddle is not installed and the article is short enough to process raw

Fallback

If defuddle is not installed, check:

which defuddle 2>/dev/null || echo "not installed"

If not installed: use WebFetch directly. The content will be less clean but still workable.


Integration with /wiki-ingest

The /wiki-ingest skill checks for defuddle automatically when a URL is passed. You do not need to run defuddle manually before ingesting a URL. The ingest skill will call it if available.

Read the full file on GitHub · 85 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 85 lines · 83 tokens per session scan A 24d3ce17635e

Subscribe to this mod's changes

defuddle is a skill published in the GitHub repository eliransu/digital-brain (1 stars, last pushed 6mo ago), licensed MIT. It adds 83 tokens to every session and 638 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to defuddle, differing in 0 lines, and is treated as a copy.

Related

defuddle compared with skills from other repositories

defuddle next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
defuddleeliransu/digital-brainSkill16mo agoMITA83Claude Code
llm-wikipraneybehl/llm-wiki-pluginSkill1271mo agoMITA143Claude Code
wiki-serveOshayr/LLM-WikiSkill517mo agoMITA48Claude Code
amazon-search-listingbrowser-act/skillsSkill6.4k26d agoMITA341Claude Code, Codex
amazon-bestseller-listingbrowser-act/skillsSkill6.4k26d agoMITA300Claude Code, Codex
web-search-scraper-api-skillbrowser-act/skillsSkill6.4k26d agoMITA145Claude Code, Codex
youtube-influencer-finder-api-skillbrowser-act/skillsSkill6.4k26d agoMITA156Claude Code, Codex