跳到正文
Skillpedia
网页抓取16k · #10806

defuddle

它能做什么

这个技能帮助为知识库准备网页,规划如何去除杂乱内容,并保存可读的副本。适合为笔记收集在线来源的人。

适用场景

  • ✓当你想把网页转换为干净、可读的文本,以便记入笔记时。
  • ✓当你在把源文件加入知识库之前,想保留一份本地副本时。
  • ✓当你想了解网页提取需要什么,例如网络访问和重定向规则时。

技能链接

https://github.com/AgriciDaniel/claude-obsidian/blob/main/skills/defuddle/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/AgriciDaniel/claude-obsidian/blob/main/skills/defuddle/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请规划如何把这篇文章页面清理成可读的文本,供我记入笔记,并告诉我它需要哪些访问权限。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会检查链接是否为安全的公共网络地址,并编写一份不发出任何网络请求的计划。它也可以保存电脑上已有的源文件。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Defuddle

Treat Defuddle as an optional external extractor. This package supports inert URL plans and filesystem capture; it does not ship an enforcing network cleaner. 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. Upstream flags may be checked in a separately installed kepano/obsidian-skills reference, but do not override this package's privacy and transaction boundary.

Inert URL plan

Accept HTTPS URLs only. Reject credentials, fragments, controls, sensitive query parameters, and non-public hosts or IP addresses. Never interpolate a URL into a shell string. Use one argv element when constructing a plan:

python3 "$CORE" capture external-plan url "HTTPS_URL"
python3 "$CORE" contracts --verify --capability defuddle --vault "$VAULT"

The plan executes no network request. Report the normalized host, required network egress, redirect policy, optional dependency, and execute: false. An available state means no executable was found. A configured state means an executable was discovered without a bundled behavioral verifier. Identify the manual executable and its reported reason; never run it merely because it was found. Never relabel configured as verified.

Why execution stops here

The upstream CLI inspected at commit 556d74e8c8fd68c49912d4b11a4ae9ec04d7b2b5 (checked 2026-10-17) follows redirects and enables asynchronous extraction. Even parsing a local HTML file can request additional resources or third-party fallbacks. Inspecting argv or obtaining consent for the initial URL cannot prove that every eventual destination remains approved.

Do not execute the bare CLI against a URL or local HTML under this workflow. Do not silently substitute a browser, fetcher, proxy, cookies, or another runner. A future runnable adapter must enforce approved destinations after DNS and on each redirect, disable uncontrolled async/fallback traffic, constrain proxy behavior, and bound bytes, time, and subprocess output. It must retain original and final locators, exact version, approved hosts, capture hash, and mode. Behavioral tests must prove these limits before execution is offered. Consent for each destination remains required even with an enforcing adapter.

Do not install tools or claim cleaning, extraction quality, or token savings. Leave the URL queued, or accept an already available local file. A local file may be retained as bytes without rendering HTML or running its scripts.

Reviewable filesystem capture

When the user asks to retain an existing local HTML or Markdown file, place it in the selected vault's inbox/ first. Preview and apply the filesystem plan with a pinned timestamp and operation ID:

python3 "$CORE" capture plan --vault "$VAULT" "$VAULT/inbox/source.md"
python3 "$CORE" capture apply --vault "$VAULT" "$VAULT/inbox/source.md" \
  --generated-at "$GENERATED_AT" --operation-id "$OPERATION_ID"
# Set APPROVAL_SHA256 to the reviewed approved_plan_sha256 from the dry run.
python3 "$CORE" capture apply --vault "$VAULT" "$VAULT/inbox/source.md" \
  --generated-at "$GENERATED_AT" --operation-id "$OPERATION_ID" \
  --approved-plan-sha256 "$APPROVAL_SHA256" --apply

This preserves source bytes in create-only .raw/captured/ storage. It does not clean HTML, verify source metadata, or synthesize pages. Inspect the actual result and record extraction limitations. If already cleaned text is supplied, retain its known extractor/version and locator without inventing missing fields. Report the operation ID and exact changed paths. A repeated identical payload is a no-op; never overwrite immutable raw state.

Use operation-transactions.md for custom capture drafts. Read or analyze transiently when retention was not requested. Invoke wiki-ingest only as a distinct requested operation.

常见问题

它现在会下载网页吗?

不会。URL 计划不发出任何网络请求,因此规划期间不会获取任何内容。

为什么目前还不能通过网络清理页面?

该技能说明,在有经过验证、能够执行其规则的适配器之前,网络提取功能保持不可用。

它接受哪些链接?

只接受指向公共地址的 HTTPS 链接,且不包含登录信息或敏感查询参数。

详情

作者的原始描述

Plan optional Defuddle extraction and retain already available local source files through reviewed filesystem capture. Use for defuddle, clean this URL, strip page clutter, readable Markdown from a web page, or preparing a web source for later wiki ingestion. Network extraction remains unavailable until an enforcing adapter is verified.

repo: AgriciDaniel/claude-obsidian

热度

GitHub 星标
16k
排名
#10806
许可证
MIT
更新时间
2026/10/25

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能