agentleFS
sergeeeysergeeey/Claude-cod-top-2026/skills/extensions/defuddle/SKILL.md

defuddle

Skill9 starsChanged 7 months agoMITView on GitHub

Defuddle is a JavaScript library (also available as CLI) that extracts the main content from web pages — removes ads, navigation, sidebars, cookie banners — and returns clean Markdown. Used for web clipping into Obsidian.

  • Installs packages

42 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use knap, qmd and 5 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • lucasmaher-hashSkill

    knap

    Render Markdown from templates and structured data using Knap CLI. Use when the user asks to apply a Knap template, turn JSON or CSV data into notes, batch-generate Markdown files, or format Defuddle output into a note.

    Also in 4 projects that use this

  • 0xHoneyJarSkill

    qmd

    Local markdown search engine for knowledge bases, notes, and documentation. Combines BM25 full-text search, vector semantic search, and LLM re-ranking. Use when searching through markdown notes, retrieving documents, or managing knowledge collections.

    Also in 5 projects that use this

  • graypirateSkill

    wiki-lint

    Run a health check on the user's wiki. Use when the user asks to lint, audit, clean up, check, or fix the wiki — or when they suspect orphans, broken wikilinks, stale pages, missing frontmatter, or contradictions between pages. Combines structural checks (zero token cost) with semantic review (LLM reasoning).

    Also in 5 projects that use this

  • bozhouDevSkill

    wiki-query

    Use when asking a question against a personal wiki built with wiki-init and wiki-ingest. Do not answer from general knowledge — always read the wiki pages first.

    Also in 4 projects that use this

  • bozhouDevSkill

    wiki-ingest

    Use when adding a new source to a wiki — a paper, article, URL, file, transcript, or any document. One ingest may touch 10-15 wiki pages.

    Also in 4 projects that use this

  • IgorGanapolskySkill

    graphify

    Query the local Graphify-Labs AST knowledge graph for ThumbGate architecture questions (what connects X to Y, explain a symbol, PreToolUse/gates/adapters). Slash: /graphify.

    Also in 5 projects that use this

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 41 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use --simplify flag for even cleaner output on complex pages

    line 135

“Common” is measured: kept by at least 6 in 10 of the 41 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md
<!-- BSV — Brief Skill View | поиск: BSV Скил : defuddle TL;DR : Очистка HTML → чистый Markdown без мусора Вызов : 'очисти html', 'defuddle', 'extract content' НЕ для : Структурированные документы -->

name: defuddle description: > [STATUS: review] [CONFIDENCE: high] [REVIEWED: 2026-04-12] Defuddle — web page extraction and clipping tool. Strips boilerplate, ads, navigation from HTML → clean Markdown for Obsidian/knowledge base. Triggers: defuddle, web clip, web clipping, extract article, clean html, article extraction, readability, import webpage, save article, clip page. effort: minimal tokens: ~200

Defuddle — Web Article Extraction

What It Is

Defuddle is a JavaScript library (also available as CLI) that extracts the main content from web pages — removes ads, navigation, sidebars, cookie banners — and returns clean Markdown. Used for web clipping into Obsidian.

CLI Usage

# Install
npm install -g defuddle-cli

# Extract article from URL → stdout
defuddle https://example.com/article

# Save directly to Obsidian vault
defuddle https://example.com/article \
  --output ~/.obsidian-vault/clippings/article-title.md

# With metadata (title, author, date, url)
defuddle https://example.com/article --metadata

# Batch from file of URLs
cat urls.txt | xargs -I{} defuddle {} --output clippings/

Output Format

---
title: "Article Title"
author: "Author Name"
date: "2026-04-12"
url: "https://example.com/article"
tags: [clipping]
---

# Article Title

Cleaned body content here...

Programmatic (Node.js)

import { defuddle } from 'defuddle';

const html = await fetch('https://example.com/article').then(r => r.text());
const result = defuddle(document, html, {
  url: 'https://example.com/article',
  markdown: true,    // convert to markdown
  debug: false
});

console.log(result.title);    // article title
console.log(result.content);  // clean markdown
console.log(result.author);   // author if found
console.log(result.date);     // publication date

Python Wrapper (via subprocess)

import subprocess
import json

def clip_to_obsidian(url: str, vault_path: str) -> str:
    """Clip webpage to Obsidian vault using defuddle."""
    result = subprocess.run(
        ["defuddle", url, "--metadata", "--json"],
        capture_output=True, text=True, timeout=30
    )
    data = json.loads(result.stdout)
    title = data["title"].replace("/", "-")[:80]
    content = data["content"]
    
    out_path = f"{vault_path}/clippings/{title}.md"
    with open(out_path, "w") as f:
        f.write(content)
    return out_path

Integration with populate_vault.py

# Add to populate_vault.py sources:
def clip_reading_list(reading_list_path: str, wiki_dir: Path) -> int:
    """Clip all URLs from reading list → wiki entries."""
    urls = Path(reading_list_path).read_text().splitlines()
    count = 0
    for url in urls:
        try:
            result = subprocess.run(["defuddle", url], capture_output=True, text=True)
            if result.returncode == 0:
                # Save to raw/ for processing by session_save.py
                (Path.home() / ".claude/memory/raw" / f"clip-{count}.md").write_text(result.stdout)
                count += 1
        except Exception:
            pass
    return count

vs Alternatives

ToolBest for
DefuddleClean markdown, Obsidian integration
Readability.jsBrowser extension context
Jina ReaderAPI-first, cloud
MarkDownloadBrowser extension, manual

Tips

  • Combine with Obsidian Local REST API to clip directly into vault
  • Tag clippings with #clipping #to-read for easy filtering in Bases/Dataview
  • defuddle handles paywalled content only if you're already authenticated
  • Use --simplify flag for even cleaner output on complex pages

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.