零鉴权文件转 Markdown,AI 流水线即插即用
简介
基于 Cloudflare Workers AI 的无鉴权文件转 Markdown 服务,支持 20+ 格式,每日 500 次免费额度,适用于 RAG 文档摄取与 AI 流水线。
原始描述
Convert documents, spreadsheets, images, and structured files into clean, structured Markdown optimized for AI processing without authentication.
通过你的 Agent 添加
点「快速安装」复制一段指令,粘给你正在用的 Agent(Claude Code、Codex、OpenClaw 等),它会自己完成安装。
或者手动安装
包里是 SKILL.md 加作者附带的文件,解压后目录名就是技能名。
技能申请的权限由作者决定,装之前请确认它能读什么、能执行什么。
中文使用说明 来自收录源
核心用法
markdown.new 是一个由 Cloudflare Workers AI 驱动的在线文件转换服务,可将 PDF、Office 文档、电子表格、图片及网页等 20 余种格式转换为结构化 Markdown。服务无需注册或 API Key,通过简单 HTTP 请求即可调用,提供 GET/POST 多种接口模式:GET 直接返回纯文本 Markdown,适合快速处理;POST 返回包含标题、token 数、处理耗时等元数据的 JSON 结构,便于集成自动化流水线。本地文件可通过 /convert 端点以 multipart/form-data 上传转换。
显著优点
- 零门槛使用:无需认证、无信用卡要求,IP 级限流(500 次/日)对轻量场景足够友好。
- 格式覆盖广:从传统文档(PDF/DOCX)到现代数据格式(JSON/XML/CSV),甚至支持 AI 视觉解析图片内容。
- 架构简洁:基于 Cloudflare Edge 网络,响应速度快,适合边缘计算场景。
- 输出标准化:生成的 Markdown 经过清理和结构化,直接适配 LLM 输入,减少下游预处理成本。
潜在局限
- 无 SLA 保障:免费服务无可用性承诺,高峰期可能出现降级。
- IP 限流严苛:500 次/日的硬限制对批量处理场景严重不足,且不支持 API Key 升级(文档未提及付费 tier)。
- 隐私风险:文件需上传至第三方 Cloudflare 基础设施,敏感文档需谨慎评估。
- 解析质量波动:复杂 PDF 版式、扫描件 OCR、AI 图片描述的准确度存在不确定性。
- 大文件处理:电子表格可能截断,未明确说明单文件大小上限。
适合人群
- 个人开发者构建原型或 PoC 阶段的项目
- 轻量级自动化脚本(如 GitHub Actions、Zapier 集成)
- 需要快速验证 RAG 摄取流程的 AI 应用团队
- 临时性、非敏感的文档处理需求
常规风险
| 风险类型 | 说明 |
|---|---|
| 数据驻留 | 文件流经 Cloudflare 全球网络,可能触及多地数据中心 |
| 内容泄露 | 无加密传输强制说明(虽基于 HTTPS),敏感文件建议预脱敏 |
| 服务连续性 | 免费服务策略可能随 Cloudflare 商业决策调整 |
| 输出不可复现 | AI 驱动的图片解析结果可能因模型更新而变化 |
技能正文
File to Markdown — Skill
Overview
Convert files into clean, structured, AI-ready Markdown using the markdown.new API powered by Cloudflare Workers AI toMarkdown().
Supports 20+ formats including documents, spreadsheets, images, and structured data.
No authentication required (500 requests/day per IP).
When to Use This Skill
Use this skill whenever you need to:
- Extract text from files for LLM processing
- Convert PDFs or Office files into Markdown
- Normalize data into structured text
- Process uploaded user files
- Scrape webpage content into Markdown
- Convert images into AI-generated descriptions + content
Common AI workflows:
- RAG ingestion pipelines
- Knowledge base creation
- Document summarization
- Dataset extraction
- Spreadsheet analysis
- OCR-like extraction from images
Supported Formats
Documents
.pdf.docx.odt
Spreadsheets
.xlsx.xls.xlsm.xlsb.et.ods.numbers
Images
.jpg.jpeg.png.webp.svg
Text & Structured Data
.txt.md.csv.json.xml.html.htm
Notes:
- Image conversion uses AI object detection + summarization.
- HTML URL conversion uses a web page pipeline.
- Uploaded HTML uses Workers AI conversion.
API Base URL
https://markdown.new
Endpoints
1️⃣ Convert Remote File (Simple GET)
Returns plain Markdown text.
GET /:file-url
Example:
curl -s "https://markdown.new/https://example.com/report.pdf"
2️⃣ Convert Remote File (JSON Response)
Returns metadata + Markdown.
GET /:file-url?format=json
Example:
curl -s "https://markdown.new/https://example.com/report.pdf?format=json"
3️⃣ Convert Remote File via POST
Use when you want structured JSON response.
POST /
Content-Type: application/json
Body:
{
"url": "https://example.com/report.pdf"
}
Example:
curl -s https://markdown.new/ \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com/report.pdf"}'
4️⃣ Upload Local File
Use when file is not publicly accessible.
POST /convert
multipart/form-data
Example:
curl -s https://markdown.new/convert \
-F "file=@document.pdf"
Response Formats
URL Conversion Response
{
"success": true,
"url": "https://example.com/report.pdf",
"title": "Quarterly Report",
"content": "# Quarterly Report\n\n...",
"method": "Workers AI (file)",
"duration_ms": 1200,
"tokens": 850
}
Upload Conversion Response
{
"success": true,
"data": {
"title": "Q4 Report",
"content": "# Q4 Report\n\n...",
"filename": "report.xlsx",
"file_type": ".xlsx",
"tokens": 1250,
"processing_time_ms": 320
}
}
Best Practices for AI Agents
Prefer GET for Simple Workflows
Use:
GET /:url
When:
- You only need Markdown text
- Speed is important
- No metadata required
Prefer POST for Structured Pipelines
Use POST when:
- Metadata is needed
- Token counts are required
- Monitoring or logging is implemented
- Building automation workflows
File Upload Strategy
Use /convert only if:
- File is local
- File is private
- File requires authentication to access
Otherwise always prefer URL conversion.
Error Handling Strategy
Agents should:
- Check
"success": true - Retry once if network failure
- Validate content length > 0
- Fallback to alternate extraction if needed
Rate Limits
- 500 requests/day per IP without API key
- No signup required
Agents should:
- Cache results when possible
- Avoid duplicate conversions
Integration Examples
JavaScript (Node.js)
const res = await fetch("https://markdown.new/", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
url: "https://example.com/file.pdf"
})
});
const data = await res.json();
console.log(data.content);
Python
import requests
res = requests.post(
"https://markdown.new/",
json={"url": "https://example.com/file.pdf"}
)
data = res.json()
print(data["content"])
Agent Decision Tree
If user provides:
| Input Type | Action |
|---|---|
| Public file URL | Use GET or POST |
| Local file | Use POST /convert |
| Image | Convert then summarize |
| Spreadsheet | Convert then analyze |
| Webpage | Convert URL HTML |
Output Expectations
The Markdown should be:
- Clean
- Structured
- AI-friendly
- Minimal noise
- Ready for LLM ingestion
Limitations
- Complex PDF layouts may lose formatting
- Large spreadsheets may be truncated
- Images rely on AI interpretation accuracy
- Token limits may apply
Summary
This skill provides a universal file-to-Markdown conversion layer for AI systems with:
- No authentication
- Simple HTTP interface
- Multi-format support
- Structured output
- Fast processing
Ideal for document ingestion, RAG pipelines, and automation agents.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。