返回顶部
p

publish-to-mdpage

Turn any markdown into a shareable web page via md.page. Use when the user asks to "share this", "publish this markdown", "create a shareable link", "make this a web page", "send this as a link", "host this", or wants to turn any markdown content into a URL. Also triggers on "publish a report", "share my notes", "create a page", or any request to make content accessible via a link.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.2.0
安全检测
已通过
115
下载量
0
收藏
概述
安装方式
版本历史

publish-to-mdpage

# Publish to md.page Publish any markdown as a beautiful, shareable web page with one API call. No accounts, no API keys, no setup. ## API **POST** `https://md.page/api/publish` ```bash curl -X POST https://md.page/api/publish \ -H "Content-Type: application/json" \ -d '{"markdown": "# Hello\n\nYour content here"}' ``` **Response** `201 Created`: ```json { "url": "https://md.page/a8Xk2m", "expires_at": "2026-03-29T12:00:00.000Z" } ``` | Error | Cause | |-------|-------| | `400` | Missing or invalid `markdown` field, or invalid JSON body | | `413` | Content exceeds 500KB | ## Workflow 1. Prepare the markdown content: - If the user wants to publish an **existing file**, use the Read tool to read it first, then publish its contents. **Before publishing, scan the content for secrets** (API keys, tokens, passwords, credentials, private keys, `.env` values). If any are found, warn the user and do NOT publish until they confirm. - If generating new markdown, start with a `# Title` for proper page titles and link previews. Never include secrets or credentials in generated content. 2. Use the **Bash tool with `curl`** to POST the markdown. 3. To safely handle special characters (quotes, apostrophes, newlines), use Python to JSON-encode the payload, then pipe it to curl: ```bash curl -s -X POST https://md.page/api/publish \ -H "Content-Type: application/json" \ -d "$(python3 -c " import json md = '''YOUR MARKDOWN HERE''' print(json.dumps({'markdown': md})) ")" ``` 4. Parse the JSON response and return the `url` to the user. Mention the page expires in 24 hours. 5. If the request fails, check the error status code against the table above and inform the user. ## Formatting tips - A first-line `# Heading` becomes the page title in browser tabs and social previews. - Code blocks, tables, blockquotes, lists, images, and links all render with clean styling. - Dark mode is automatic. - Max content size: 500KB. - URLs are private, unguessable 6-character IDs.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 publish-to-mdpage-1775957581 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 publish-to-mdpage-1775957581 技能

通过命令行安装

skillhub install publish-to-mdpage-1775957581

下载 Zip 包

⬇ 下载 publish-to-mdpage v1.2.0

文件大小: 2.29 KB | 发布时间: 2026-4-13 11:40

v1.2.0 最新 2026-4-13 11:40
Add secret scanning before publish, remove rate-limit/bot-blocking warnings, add keywords for discoverability

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部