Claude Code Plugins

Community-maintained marketplace

Feedback

url-to-markdown

@DCjanus/prompts
11
0

需要将网页 URL 内容转换为 Markdown 格式以便阅读,并通过 CloudFlare API 获取指定 URL 的 Markdown 内容的场景。

Install Skill

1Download skill
2Enable skills in Claude

Open claude.ai/settings/capabilities and find the "Skills" section

3Upload to Claude

Click "Upload skill" and select the downloaded ZIP file

Note: Please verify skill by going through its instructions before using it.

SKILL.md

name url-to-markdown
description 需要将网页 URL 内容转换为 Markdown 格式以便阅读,并通过 CloudFlare API 获取指定 URL 的 Markdown 内容的场景。

URL 转 Markdown

在当前文件所在目录运行脚本:./scripts/url_to_markdown.py URL,URL 只支持 http / https

需要先设置环境变量 CLOUDFLARE_ACCOUNT_IDCLOUDFLARE_API_TOKEN。 其中 CLOUDFLARE_API_TOKEN 需要包含 Browser Rendering - Edit 权限。

可选参数:

  • --output:将 Markdown 写入文件(默认输出到 stdout)。
  • --cache-ttl:缓存秒数,默认 60,设为 0 表示不缓存。

示例:

./scripts/url_to_markdown.py https://example.com --output ./page.md --cache-ttl 60

Reference:`scripts/url_to_markdown.py`