Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Defuddle

ASecurity

Extract the main content of any web page as clean Markdown or HTML (Obsidian Web Clipper's engine). Use when you need article extraction in a Node/JS runtime, on math-heavy pages, when you want rich metadata (author, published date, schema.org), or as a quick CLI one-liner. The Python-side equivalent is trafilatura in the local-scrape skill.

6 stars
0 votes
0 copies
0 views
Added 9/30/2026
ai-agentsjavascriptpythongojavabashnextjsnodegitapi

Works with

cliapi

Security Analysis

A100/100

Scanned 9/30/2026

$npx -y skills add aicodedecode/awesome-muse-skills --skill defuddle --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Defuddle?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Defuddle
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aicodedecode-defuddle/badge)](https://www.skillsdirectory.com/skills/aicodedecode-defuddle)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
name: defuddle
description: Extract the main content of any web page as clean Markdown or HTML (Obsidian Web Clipper's engine). Use when you need article extraction in a Node/JS runtime, on math-heavy pages, when you want rich metadata (author, published date, schema.org), or as a quick CLI one-liner. The Python-side equivalent is trafilatura in the local-scrape skill.
---

# defuddle

Article-extraction library by Stephan Ango (kepano, Obsidian CEO) — the engine
behind Obsidian Web Clipper. Takes a URL or HTML, finds the main content,
returns cleaned HTML or Markdown. A more forgiving Mozilla Readability
replacement: removes fewer uncertain elements, standardizes footnotes / code
blocks / math / callouts, and extracts rich metadata. MIT licensed.

Verified working in this environment 2026-09-30 via `npx defuddle`.

## When to use defuddle vs trafilatura

Default article extraction stays **trafilatura** (Python, in the `local-scrape`
skill). Reach for defuddle when:

- The consumer is **JavaScript** — Next.js API routes, Node scripts, browser
  extensions. Native TS, three bundles: `defuddle` (browser, zero deps),
  `defuddle/full` (math + Markdown), `defuddle/node` (Node, accepts any DOM).
- The page is **math-heavy** — MathJax/KaTeX become standard MathML with the
  LaTeX preserved in `data-latex`. (Relevant: KaTeX is in the test-series
  stack.)
- You want **rich metadata** in one call: author, title, description,
  published date, site, domain, favicon, image, language, word count, raw
  schema.org data, meta tags.
- You want a **one-liner** without writing a script (see CLI below).

## CLI (no install needed)

```bash
# URL → Markdown with YAML frontmatter (title, author, source, published…)
npx defuddle parse https://example.com/article --markdown --frontmatter

# JSON with metadata + content
npx defuddle parse page.html --json

# Single property
npx defuddle parse page.html --property title

# Local file / stdin
npx defuddle parse page.html --markdown
cat page.html | npx defuddle parse --markdown

# Debug a bad extraction
npx defuddle parse https://example.com/article --debug
```

## Node.js

```js
import { parseHTML } from 'linkedom';      // or jsdom / happy-dom
import { Defuddle } from 'defuddle/node';

const { document } = parseHTML(html);
const result = await Defuddle(document, 'https://example.com/article', {
  markdown: true,
  useAsync: false,   // IMPORTANT: see below
});
console.log(result.content);   // Markdown
console.log(result.title, result.author, result.published);
```

(`package.json` needs `"type": "module"` for `defuddle/node`.)

## Standing caution: `useAsync`

`parseAsync()` falls back to **third-party APIs** (e.g. FxTwitter) when the
HTML has no usable content (client-side-rendered pages). That breaks the
free-tier-only posture — always pass `useAsync: false` in our usage. For
JS-heavy pages, use the browser tools instead (per the Firecrawl rule:
local/bare fetch first, browser second, Firecrawl last resort).

## Output notes

- Headings standardized (H1→H2, title-matching first heading removed);
  footnotes normalized; callouts (GitHub alerts, Bootstrap alerts, asides)
  become Obsidian-style `> [!info]` blocks in Markdown.
- `contentSelector` option bypasses auto-detection when you know the article
  container's CSS selector.
- Author's own warning: "very much a work in progress" — spot-check output
  on a new domain before batching.

---
## Provenance (system note, 2026-09-30)

- Source: https://github.com/kepano/defuddle. License: MIT.
- Smoke-tested 2026-09-30: `npx defuddle parse https://blog.cloudflare.com/
  --markdown --frontmatter` returned clean Markdown + full frontmatter.
- Complements (does not replace) the Python `local-scrape` skill.

Attribution

aicodedecodeaicodedecode
View sourceSee grades on GitHubMore from aicodedecode →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Terse caveman voice: answer first, fluff gone, every technical fact kept. Use for /caveman, "caveman mode", "talk like caveman", "be brief", "less tokens". Stays on until "stop caveman" or "normal mode".

1100021 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

698461 votes

Writing Skills

Create and manage Claude Code skills in HASH repository following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns), UserPromptSubmit hook, and the 500-line rule. Includes validation and debugging with SKILL_DEBUG. Examples include rust-error-stack, cargo-dep...

3931 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3421 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Amp, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Grok Build, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

741 votes
View all in ai-agents →