Plan and, with explicit network consent, use an optional external Defuddle cleaner to extract article-like HTTPS pages as Markdown. Use for defuddle, clean this
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-defuddle-c5350d79ee31 ,按照其中的说明把「defuddle」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
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:
PRODUCT_ROOT=/absolute/path/to/installed/claude-obsidian
CORE="$PRODUCT_ROOT/scripts/claude-obsidian.py"
test -f "$CORE"
Every ../wiki/references/ link in this file resolves the same way, relative
to this skill's own directory under $PRODUCT_ROOT, never relative to the
selected vault's wiki/ directory.
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.
Create an inert URL plan. This validates the URL and executes no network call:
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:
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.
After network consent, configured-state detection, and manual executable review, invoke the approved executable with an argv equivalent to:
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.
When the user asks to retain the cleaned source:
.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.expected_hashes: null and mode: create. If that content-addressed
payload already exists with the same bytes, report a no-op; never overwrite
it.claude-obsidian.transaction.v1 capture
bundle as described in
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.