web-to-markdown
使用 Jina AI 的阅读器服务将网页转换为 Markdown 格式。当用户要求将网页、网站或 URL 转换、生成、创建、转换或下载为 Markdown、MD 或 md 格式时使用。处理各种短语,例如“将此页面转换为 Markdown”、“从该网站生成 Markdown”、“从该 URL 创建 md 文件”。
📖 中文导读:使用 Jina AI 的阅读器服务将网页转换为 Markdown 格式。当用户要求将网页、网站或 URL 转换、生成、创建、转换或下载为 Markdown、MD 或 md 格式时使用。处理各种短语,例如“将此页面转换为 Markdown”、“从该网站生成 Markdown”、“从该 URL 创建 md 文件”。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: web-to-markdown description: Convert web pages to Markdown format using Jina AI's reader service. Use when the user asks to convert, generate, create, transform, or download a web page, website, or URL into Markdown, MD, or md format. Handles various phrasings like "convert this page to markdown", "generate markdown from this website", "create md file from this URL".
Web to Markdown Converter
Convert any web page to clean Markdown format using Jina AI's reader service.
Process
When a user requests to convert a web page to Markdown:
- Extract the URL from the user's request
- Construct Jina URL: Prepend
https://r.jina.ai/before the user's URL - Fetch with curl: Use
curlto retrieve the Markdown content - Save to file: Write the content to
/mnt/user-data/outputs/{filename}.md - Provide download link: Give the user a link to the generated file
Command Template
curl -s "https://r.jina.ai/{USER_URL}" > /mnt/user-data/outputs/{filename}.md
Example Workflow
User request: "Convert https://example.com/article into markdown"
Execute:
curl -s "https://r.jina.ai/https://example.com/article" > /mnt/user-data/outputs/article.md
Then provide link: computer:///mnt/user-data/outputs/article.md
Filename Generation
Generate a sensible filename from the URL:
- Use the last path segment if available (e.g.,
articlefrom/articles/article) - Remove any file extensions from the URL
- Sanitize by replacing special characters with underscores or hyphens
- Add
.mdextension - If user specifies a custom filename, use that instead
Common User Phrasings
This skill handles various ways users might request conversion:
- "Convert this page to markdown"
- "Generate markdown from this URL"
- "Create an MD file from this website"
- "Download this webpage as markdown"
- "Turn this page into a markdown file"