Skip to main content
ClaudeWave
Skill14.8k repo starsupdated today

defuddle

Defuddle extracts article body content from web pages and converts it to clean markdown by removing ads, navigation elements, banners, footers, and boilerplate. Use this skill before ingesting URLs into a wiki to reduce token consumption by 40-60% and produce cleaner markdown pages, particularly for news articles, blog posts, and documentation pages with substantial surrounding content.

Install in Claude Code
Copy
git clone --depth 1 https://github.com/AgriciDaniel/claude-obsidian /tmp/defuddle && cp -r /tmp/defuddle/skills/defuddle ~/.claude/skills/defuddle
Then start a new Claude Code session; the skill loads automatically.

SKILL.md

# Defuddle

Treat Defuddle as an optional external extractor, not an internal capability.
Cleaning, raw capture, and wiki ingestion are separate operations.

Resolve the installed product root from this skill's own location, never from
the selected vault or process working directory:

```bash
PRODUCT_ROOT=/absolute/path/to/installed/claude-obsidian
CORE="$PRODUCT_ROOT/scripts/claude-obsidian.py"
test -f "$CORE"
```

If a separately installed `kepano/obsidian-skills` `defuddle` skill is
available, prefer it for current CLI flags. Retain the privacy, consent, and
transaction rules in this skill.

## Safety contract

- Accept remote inputs only as HTTPS URLs.
- Reject credentials in URLs, fragments, private or local hosts, non-public IP
  addresses, control characters, and sensitive query parameters.
- Never interpolate a URL into a shell string. Pass it as one argv element.
- Treat redirects to a different host as denied until that host is explicitly
  approved.
- State that the URL and request metadata will leave the machine. Network
  access requires explicit consent in the current request or a separate
  confirmation.
- Do not install a cleaner, execute a placeholder runner, or silently switch to
  another network fetcher.
- Do not claim a fixed token reduction or extraction quality. Inspect the
  actual output.

## Plan first

Create an inert URL plan. This validates the URL and executes no network call:

```bash
python3 "$CORE" capture external-plan url "HTTPS_URL"
```

Report the normalized host, network egress, redirect policy, optional external
dependency, and `execute: false`. Then inspect whether this package can find a
configured Defuddle executable:

```bash
python3 "$CORE" contracts --verify --capability defuddle --vault VAULT
```

An `available` state means no executable was found; stop with the inert plan.
A `configured` state means the executable was discovered, but this package has
no bundled behavioral verifier for it. Show that state and reason, identify the
resolved executable path, and require manual review of its provenance, version,
and exact argv before execution. Never relabel `configured` as `verified`.

When unavailable or when manual review is declined, offer these honest
fallbacks: let the user install/configure an external runner, accept a local
HTML or Markdown file in `inbox/`, or leave the URL queued for later. Do not
claim that content was cleaned, captured, or ingested.

## Execute after consent

After network consent, configured-state detection, and manual executable
review, invoke the approved executable with an argv equivalent to:

```text
defuddle parse HTTPS_URL --md
```

Capture bounded stdout in a temporary draft outside shared vault state. Fail
closed on a non-zero exit, empty output, unexpected binary output, an
unapproved redirect, or a response that is clearly an authentication/error
page. Preserve headings, links, code fences, tables, quotations, and source
wording; do not invent missing content.

Preview the cleaned Markdown and report extraction limitations. If the user
asked only to read or analyze it, keep the result transient.

## Optional raw capture

When the user asks to retain the cleaned source:

1. Resolve the user vault.
2. Hash the exact cleaned bytes with SHA-256.
3. Draft a new immutable payload such as
   `.raw/captured/<sha256>.md` and, when provenance metadata is needed, a new
   create-only sidecar with the normalized URL, retrieval date, extractor name
   and version, and content hash.
4. Use `expected_hashes: null` and `mode: create`. If that content-addressed
   payload already exists with the same bytes, report a no-op; never overwrite
   it.
5. Build, inspect, and apply one `claude-obsidian.transaction.v1` capture
   bundle as described in
   [operation-transactions.md](../wiki/references/operation-transactions.md).

Do not create wiki pages, update indexes, assess claims, or mark the source as
ingested. Invoke `wiki-ingest` as a distinct requested operation if the user
wants the captured payload incorporated into the knowledge base.
verifierSubagent

>

wiki-ingestSkill

Ingest supplied source material into an Obsidian vault with provenance and claim tracking: pasted text, files staged in the selected vault's inbox or .raw archive, or explicitly approved URLs. Use for a single source or bounded batch, not for saving an assistant answer. Triggers: ingest, ingest this file, ingest this URL, process this source, read and file this source, batch ingest, ingest these sources.

wiki-lintSkill

Run a deterministic, read-only health check on an Obsidian wiki. Use for lint, vault health check, audit wiki health, find orphans, find dead links, frontmatter audit, provenance audit, or wiki audit. Reports graph, link, frontmatter, provenance-ledger, empty-section, and stale-index findings; it does not reason broadly or repair files.

autoresearchSkill

Run a bounded, source-grounded research loop, draft a cited dossier, and optionally propose a separately reviewed canonical vault merge. Use when the user wants autonomous or deep research that may access the public web. Triggers: /autoresearch, autoresearch, research this topic, deep dive into, investigate, find everything about, research and file, go research, build a wiki on.

canvasSkill

Create, inspect, and update Obsidian JSON Canvas boards with text, file, link, group, and edge nodes. Use for canvas status, canvas lists, visual maps, zones, spatial layouts, adding vault notes or media to a .canvas file, and requests such as create canvas, add to canvas, or put this on the canvas.

saveSkill

Save a user-selected answer, decision, insight, or session summary into an Obsidian vault as one reviewed transaction. Use only when the user explicitly asks to preserve specific conversation content, not when they supply a file or URL to ingest. Triggers: /save, save this, save that answer, file this conversation, save this analysis, keep this insight, preserve this chat result.

wikiSkill

Initialize, adopt, and route work for a separate Obsidian knowledge vault through the portable claude-obsidian core. Use for vault setup, scaffolding, workspace selection, cross-project configuration, or choosing the correct wiki sub-skill. Triggers: /wiki, set up wiki, scaffold vault, create knowledge base, adopt this vault, Obsidian vault, second brain setup, persistent wiki.

obsidian-basesSkill

Explain, draft, and validate Obsidian Bases .base files with filters, formulas, properties, summaries, and table, card, or list views. Use for Obsidian Bases, database-like vault views, dynamic tables, reading lists, task trackers, filters, formulas, summaries, and .base file edits.