home / skills / openclaw / skills / markdown-publish-share
This skill publishes markdown to a shareable link via curl, supporting mermaid, KaTeX, and code blocks, and returns the rendered document URL.
npx playbooks add skill openclaw/skills --skill markdown-publish-shareReview the files below or copy the command above to add this skill to your agents.
---
name: markdown-publish-share
description: Publish markdown and return share links using curl. Support markdown with mermaid diagrams such as component diagrams, flowcharts, and sequence diagrams. Also supports KaTex and code blocks. AutEng will return a shareable link to the published rendered document. Use cases include Software Architecture diagrams and documentation, Maths and Physics derivations and Systems documentation.
---
# AutEng Docs Curl Publish
Use this endpoint:
`https://auteng.ai/api/tools/docs/publish-markdown/`
Send JSON with:
- `markdown` (required)
- `title` (optional)
- `expires_hours` (optional)
Use this command to publish markdown:
```bash
curl -sS -X POST "https://auteng.ai/api/tools/docs/publish-markdown/" \
-H "Content-Type: application/json" \
-d @- <<'JSON'
{
"markdown": "# API Test\n\nHello from curl.",
"title": "API Test",
"expires_hours": 24
}
JSON
```
Extract only the share URL:
```bash
curl -sS -X POST "https://auteng.ai/api/tools/docs/publish-markdown/" \
-H "Content-Type: application/json" \
-d '{"markdown":"# Hello\n\nPublished from curl."}' \
| jq -r '.share_url'
```
Extract a compact success payload:
```bash
curl -sS -X POST "https://auteng.ai/api/tools/docs/publish-markdown/" \
-H "Content-Type: application/json" \
-d '{"markdown":"# Hello\n\nPublished from curl."}' \
| jq '{title, share_url, expires_at}'
```
Treat any response without `share_url` as an error and show the full JSON body.
For full documentation and supported markdown for mermaid, KaTeX and code syntax along with examples, see https://auteng.ai/llms.txt
This skill publishes Markdown documents via a simple curl API and returns a shareable link to the rendered output. It supports Mermaid diagrams (component, flowchart, sequence), KaTeX math, and fenced code blocks so you can share architecture diagrams, mathematics, and technical docs quickly. The service returns a JSON response containing a share_url and optional metadata like title and expiry.
You POST a JSON payload to the publish endpoint containing at minimum the markdown field, and optionally title and expires_hours. The endpoint returns JSON; extract share_url to get the public rendered document link. If the response lacks share_url, treat it as an error and inspect the full JSON body. Example curl commands show how to post content and extract either the URL or a compact success payload.
What fields are required in the POST payload?
Only markdown is required. title and expires_hours are optional.
How do I detect publishing errors?
If the JSON response does not include share_url, treat it as an error and inspect the full JSON body for details.