← Back to Skills Marketplace
chdlc

Web to Markdown

by Christian de la Cruz · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
56
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install web-to-md
Description
Extracts readable markdown from user-provided URLs via a deterministic fallback chain (markdown.new → r.jina.ai). Use when the user supplies specific URLs an...
README (SKILL.md)

Web to Markdown

Deterministic, console-first extraction workflow for user-provided URLs. Enforces a fixed fallback chain to maximize content quality without open-ended browsing.

When to Use

  • The user provides one or more specific URLs.
  • The task requires reading, extracting, summarizing, or analyzing those URLs.
  • A deterministic fallback order is preferred over open-ended browsing.

Do not use for open-ended web discovery unless the user explicitly asks for discovery first.

Fallback Chain

For each URL, attempt in order. Stop at the first sufficient result.

1. markdown.new (AI mode)

curl -s "https://markdown.new/{URL}?method=ai"

2. markdown.new (Auto mode)

Only if step 1 is insufficient or timed out:

curl -s "https://markdown.new/{URL}?method=auto"

3. r.jina.ai (Browser engine)

Only if steps 1–2 are insufficient or timed out:

curl -s "https://r.jina.ai/{URL}" -H "X-Engine: browser"

4. Agent tools (last resort)

If all three prefixes fail, report the failure and fall back to the agent's own extraction tools. This is outside the skill's chain — acknowledge it as a fallback.

Quality Gate

After each step, content is insufficient when any condition is true:

  • Main article or body text is missing
  • Content is clearly truncated
  • Output is mostly navigation, boilerplate, placeholders, or login walls
  • Useful text is too short for the task
  • Important sections requested by the user are absent

Rule of thumb: Under ~1,200 useful characters for an article page is almost certainly truncated. Naturally short pages (announcements, status updates) may be legitimately brief — use judgment.

URL Handling

  • Preserve the protocol when present.
  • Ensure the URL is shell-safe and quoted in all curl commands.
  • Process each URL independently when multiple are provided.

Provenance Reporting

Report exactly one final source label per extracted URL in your response:

Label When
markdown.new:ai method=ai was sufficient
markdown.new:auto method=auto was sufficient (ai failed)
r.jina.ai r.jina.ai was sufficient (both markdown.new failed)
agent-tools All three prefixes failed; agent used own tools

Workflow

  1. Scope gate — Only process URLs explicitly provided by the user. If discovery is needed, use web search first and confirm candidate URLs before extraction.
  2. Normalize — Quote URLs, preserve protocol.
  3. Extract — Run the fallback chain per URL.
  4. Quality gate — Check each result against the insufficiency conditions.
  5. Continue — Use the richest sufficient source for the task.
  6. Report — Include provenance labels in the final response.

Best Practices

  • Keep extraction deterministic — explicit fallback transitions, state why each happened.
  • Prefer reproducible commands with quoted URLs.
  • Conservative timeout handling: continue immediately to the next fallback when blocked.
  • Preserve source traceability via provenance labels.
  • Avoid tool-specific assumptions beyond curl and standard HTTP endpoints.

Edge Cases

  • Page blocks automated access: Skip to next fallback immediately.
  • Multiple URLs: Apply the same sequence to each independently.
  • Naturally short pages: Accept shorter content when it satisfies the request.
  • All prefixes fail: Report failure clearly, then use agent tools as last resort.

Common Pitfalls

  1. Output format must be markdown. If any level returns raw HTML or another format, it breaks the contract. Test each level independently.
  2. Don't skip testing lower fallback levels just because the top level works. A chain is only as reliable as its weakest link.
  3. Quality is subjective — the 1,200-char heuristic is a guideline, not a hard rule. Apply judgment for short-form content.

Verification Checklist

  • curl is installed (which curl)
  • Extraction starts with markdown.new?method=ai
  • method=auto is tried only after ai fails
  • r.jina.ai is tried only after both markdown.new attempts fail
  • All three prefixes failing → report + fall back to agent tools
  • Quality checks include: missing body, truncation, boilerplate, too-short content
  • Final response includes provenance label per URL
Usage Guidance
Install this only if you are comfortable with provided URLs being sent to markdown.new or r.jina.ai. Avoid using it with private intranet links, authenticated pages, signed links, URLs containing tokens or secrets, or links whose existence should remain confidential.
Capability Assessment
Purpose & Capability
The stated purpose is URL-to-markdown extraction, and the artifact's capabilities are limited to curl requests against markdown.new, r.jina.ai, and last-resort agent extraction tools.
Instruction Scope
The workflow is scoped to URLs explicitly provided by the user and includes provenance reporting, but it does not add a clear warning or consent step for sensitive, private, authenticated, internal, or token-bearing URLs.
Install Mechanism
The package contains only SKILL.md and declares curl as a required binary; there are no executable scripts, dependency installs, setup hooks, or hidden files in the artifact.
Credentials
Network use is expected and proportionate for web extraction, but the URLs are sent to third-party services and may reveal confidential link contents or query parameters.
Persistence & Privilege
No persistence, background execution, credential access, privilege escalation, local indexing, file mutation, or destructive behavior is present.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install web-to-md
  3. After installation, invoke the skill by name or use /web-to-md
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release. Deterministic fallback chain: markdown.new → r.jina.ai → agent tools.
Metadata
Slug web-to-md
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Web to Markdown?

Extracts readable markdown from user-provided URLs via a deterministic fallback chain (markdown.new → r.jina.ai). Use when the user supplies specific URLs an... It is an AI Agent Skill for Claude Code / OpenClaw, with 56 downloads so far.

How do I install Web to Markdown?

Run "/install web-to-md" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Web to Markdown free?

Yes, Web to Markdown is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Web to Markdown support?

Web to Markdown is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Web to Markdown?

It is built and maintained by Christian de la Cruz (@chdlc); the current version is v1.0.0.

💬 Comments