defuddle

defuddle is a skill for Claude Code, Codex 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 CodeCodex

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

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.

agentmods
npx agentmods add skills/eliransu/digital-brain/defuddle
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, Codex.

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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00083 $0.00638
Opus 5 $0.00042 $0.00319
Sonnet 5 $0.00017 $0.00128
Haiku 4.5 $0.00008 $0.00064

Measured 4d ago against content hash 24d3ce17635e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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. 4d 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 3mo ago), licensed MIT. It adds 83 tokens to every session and 638 once invoked, about $0.0004 per session on Opus 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

Other skills, from other repositories

llm-wiki

Build and maintain an LLM-curated personal knowledge base — the "LLM Wiki" pattern from Andrej Karpathy's April 2026 gist. Use this skill whenever the user wants to ingest a source (paper, article, transcript, PDF, notes) into a persistent compounding knowledge base, ask a question against accumulated notes, lint or…

praneybehl/llm-wiki-plugin · 221 tokens

wiki-serve

Start the wiki web server — browsable Wikipedia-style UI with live research, split-pane editor, AI assist, and themes. Manual trigger only: /wiki-serve, 'start wiki server', 'browse the wiki'.

Oshayr/LLM-Wiki · 48 tokens

fec-browser-storage

用于选择、实现或审查 localStorage、sessionStorage、IndexedDB、cookie、客户端持久化、离线数据、安全存储或清理策略等浏览器存储方案;中文触发词包括 浏览器存储、客户端持久化。.

bovinphang/frontend-craft · 59 tokens

fec-web-workers

用于将昂贵的浏览器工作移出主线程,涉及 Web Workers、SharedWorker、worker 池、Comlink、transferable objects、Vite/Webpack worker 集成或 UI 响应性修复。不要用于轻量同步工作或 DOM 操作;中文触发词包括 Web Worker、后台线程、主线程阻塞。.

bovinphang/frontend-craft · 78 tokens

9router-web-fetch

Fetch URL → markdown / text / HTML via 9Router /v1/web/fetch using Ollama Cloud / Firecrawl / Jina Reader / Tavily Extract / Exa Contents. Use when the user wants to scrape a webpage, extract URL content, read article, or convert a URL to markdown.

decolua/9router · 67 tokens

openkb-deck-editorial

Use when the user asks the openkb chat to make a deck / slide presentation / PPT / slides / 演示稿 / 幻灯片 from their compiled KB content. Generates a polished single-file HTML deck in the Editorial Monocle visual direction (warm cream background, serif type, brick-red accent) — designed to be opened in a browser…

VectifyAI/OpenKB · 117 tokens