# Defuddle > Planifica y, con consentimiento explícito de red, usa un limpiador externo Defuddle opcional para extraer páginas HTTPS tipo artículo como Markdown. Fuente: https://skillsagentes.com/skills/agricidaniel/claude-obsidian/defuddle Markdown: https://skillsagentes.com/skills/agricidaniel/claude-obsidian/defuddle.md Repositorio: https://github.com/AgriciDaniel/claude-obsidian Autor: AgriciDaniel Licencia: MIT Actualizado: el mes pasado Coste de contexto: 68 tok instalada, 1.1k tok al activarse, 1.1k tok con todos los archivos del bundle Bundle: 1 archivo, 4 KB Permisos que pide: ninguno declarado ## Instalación Un skill son archivos markdown: los mismos archivos valen para cualquier agente y lo único que cambia es el directorio de destino, es decir la bandera `--agent`. Añade `-g` para instalarlo en todos los proyectos de la máquina. ```bash # Claude Code npx -y skills add AgriciDaniel/claude-obsidian --skill defuddle --agent claude-code # Cursor npx -y skills add AgriciDaniel/claude-obsidian --skill defuddle --agent cursor # Codex npx -y skills add AgriciDaniel/claude-obsidian --skill defuddle --agent codex # Gemini CLI npx -y skills add AgriciDaniel/claude-obsidian --skill defuddle --agent gemini # Windsurf npx -y skills add AgriciDaniel/claude-obsidian --skill defuddle --agent windsurf # Cline npx -y skills add AgriciDaniel/claude-obsidian --skill defuddle --agent cline ``` ## Qué hace - Planifica la extracción de una página HTTPS a Markdown limpio mediante un extractor externo Defuddle opcional - Exige consentimiento explícito de red antes de cualquier llamada y crea primero un plan inerte sin red - Rechaza credenciales en URLs, hosts privados, IPs no públicas y redirecciones a otro host no aprobado - Guarda opcionalmente la fuente limpiada como captura inmutable con hash SHA-256, sin crear páginas de wiki ## Cuándo usarla - Se pide limpiar una URL o extraer una página tipo artículo a Markdown legible - Se está preparando una fuente web para una ingesta posterior a la wiki ## Qué la activa - "Limpia esta URL con Defuddle" - "Extrae este artículo a Markdown legible" - "Prepara esta página web para ingestarla en la wiki" ## Antes de instalar - Necesita un ejecutable Defuddle externo configurado y consentimiento explícito de acceso a la red antes de ejecutar cualquier extracción. - Necesita en el PATH: python3 - Variables de entorno: CORE, PRODUCT_ROOT - reads environment config ## Archivos - SKILL.md — 4 KB ## SKILL.md Reproducido tal cual desde AgriciDaniel/claude-obsidian bajo MIT. Esta sección es el documento original y está en inglés. # 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/.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. ## Dónde encaja - Categoría: [Investigación](https://skillsagentes.com/categorias/investigacion.md) — Investigación estructurada, búsqueda de fuentes y síntesis. - Creador: [AgriciDaniel](https://skillsagentes.com/creators/agricidaniel.md) — 46 skills en el directorio - [Todas las skills](https://skillsagentes.com/skills.md) - [Ranking de instalaciones](https://skillsagentes.com/ranking.md) ## Otras skills del mismo repositorio - [Wiki](https://skillsagentes.com/skills/agricidaniel/claude-obsidian/wiki.md): Inicializa, adopta y enruta el trabajo hacia un vault de Obsidian separado a través del core portátil `claude-obsidian`. Para configurar el vault o elegir el sub-skill correcto. - [Obsidian Bases](https://skillsagentes.com/skills/agricidaniel/claude-obsidian/obsidian-bases.md): Explica, redacta y valida archivos Obsidian Bases `.base` con filtros, fórmulas, propiedades, resúmenes y vistas de tabla, tarjetas o lista. - [Obsidian Markdown](https://skillsagentes.com/skills/agricidaniel/claude-obsidian/obsidian-markdown.md): Explica, redacta o valida la sintaxis de Obsidian Flavored Markdown: propiedades, wikilinks, embeds, callouts, tags, comentarios, resaltados, referencias de bloque, matemáticas y Mermaid. - [Save](https://skillsagentes.com/skills/agricidaniel/claude-obsidian/save.md): Guarda una respuesta, decisión, insight o resumen de sesión seleccionado por el usuario en un vault de Obsidian como una única transacción revisada, no cuando aporta un archivo o URL. - [Canvas](https://skillsagentes.com/skills/agricidaniel/claude-obsidian/canvas.md): Crea, inspecciona y actualiza tableros Obsidian JSON Canvas con nodos de texto, archivo, enlace, grupo y arista. Para estado del canvas, mapas visuales, zonas y diseños espaciales. --- Skills Agentes · [Índice de páginas en markdown](https://skillsagentes.com/sitemap.md) · [Inicio](https://skillsagentes.com/index.md)