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

75 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use knap, results-report and 9 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 5 projects that use this

  • Galaxy-DawnSkill

    results-report

    This skill should be used when the user asks to "write an experiment report", "summarize experimental results", "do experiment retrospection", "write a results report", "写实验总结报告", "写实验复盘", or mentions turning completed experiment artifacts into a structured, decision-oriented research report. It assumes strict analysis should come from `results-analysis` first.

    Also in 3 projects that use this

  • tboome33Skill

    wiki-fold

    Roll up the wiki's journal.md entries into structured fold pages — like 2^k log compaction. Reads the last 2, 4, 8, 16... entries and writes a fold page that summarizes them by extractive summarization (no invention), with backlinks to children. Idempotent at the structural level — re-running with the same window produces a byte-equivalent fold. Use when the user says "fold the log", "rollup recent activity", "compact the log", "/wiki-fold", or after many ingestions when journal.md is becoming too long to read directly.

    Also in 3 projects that use this

  • Clay-HHKSkill

    daily-coding

    Daily coding assistant that auto-triggers when writing/modifying code, providing a core checklist.

    Also in 3 projects that use this

  • Clay-HHKSkill

    kaggle-learner

    This skill should be used when the user asks to "learn from Kaggle", "study Kaggle solutions", "analyze Kaggle competitions", or mentions Kaggle competition URLs. Provides access to extracted knowledge from winning Kaggle solutions across NLP, CV, time series, tabular, and multimodal domains.

    Also in 3 projects that use this

  • kharlamenkodevSkill

    bug-detective

    Also in 3 projects that use this

  • +1 more from Clay-HHK

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 69 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 69 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.