特色栏目

ASP源码

PHP源码

.NET源码

JSP源码

游戏频道
专题合集
关闭菜单
首页> AI教程> AutEng Docs: 通过 Curl 发布 Markdown 和图表 - Openclaw Skills

AutEng Docs: 通过 Curl 发布 Markdown 和图表 - Openclaw Skills

时间:2026-03-27 20:30:01 作者:互联网

什么是 AutEng Docs Curl 发布?

AutEng Docs Curl Publish 是一款功能强大的工具,旨在弥合本地技术内容与网络分享之间的鸿沟。作为 Openclaw Skills 库的核心组件,它允许开发人员和 AI 代理将原始 Markdown 转换为渲染精美且托管的文档。对于那些需要分享复杂技术信息而又不想承受完整 CMS 系统负担的用户来说,这项技能尤其有价值。

该服务不仅限于基础文本,还全面支持技术文档中经常需要的丰富媒体类型。通过使用此类 Openclaw Skills,用户可以通过 Mermaid 渲染架构图,并通过 KaTeX 显示复杂的数学符号,所有这些都通过一个返回简洁、可分享链接的 API 端口实现。

下载入口:https://github.com/openclaw/skills/tree/main/skills/operator-auteng-ai/auteng-docs-curl-publish

安装与下载

1. ClawHub CLI

从源直接安装技能的最快方式。

npx clawhub@latest install auteng-docs-curl-publish

2. 手动安装

将技能文件夹复制到以下位置之一

全局模式 ~/.openclaw/skills/ 工作区 /skills/

优先级:工作区 > 本地 > 内置

3. 提示词安装

将此提示词复制到 OpenClaw 即可自动安装。

请帮我使用 Clawhub 安装 auteng-docs-curl-publish。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。

AutEng Docs Curl 发布 应用场景

AutEng Docs Curl 发布 工作原理
  1. 用户或代理准备一个 Markdown 字符串,其中可能包含 Mermaid 或 KaTeX 语法。
  2. 构建一个 JSON 负载,包含 markdown 内容、可选标题以及可选的过期时间(以小时为单位)。
  3. 使用 curl 向 AutEng API 端点发送 POST 请求。
  4. 服务器处理 Markdown 并生成该文档的托管、渲染版本。
  5. 技能返回一个包含唯一 share_url 的 JSON 响应,该 URL 可以立即在 Openclaw Skills 生态系统中分享。

AutEng Docs Curl 发布 配置指南

要开始使用此技能,请确保您的系统中安装了 curl 和 jq。通过 Openclaw Skills 开始发布文档不需要复杂的配置。使用以下命令结构发布您的第一个文档:

curl -sS -X POST "https://auteng.ai/api/tools/docs/publish-markdown/" r
  -H "Content-Type: application/json" r
  -d @- <<'JSON'
{
  "markdown": "# 文档标题

内容在此处。",
  "title": "我的文档",
  "expires_hours": 24
}
JSON

AutEng Docs Curl 发布 数据架构与分类体系

该技能在请求和响应中都使用了简单且灵活的数据模式。它与 Openclaw Skills 数据流水线无缝集成。

属性 类型 要求 描述
markdown 字符串 必填 要发布的原始 markdown 内容。
title 字符串 可选 在浏览器标签页中显示的文档标题。
expires_hours 整数 可选 文档删除前的有效小时数。
share_url 字符串 输出 渲染后文档的最终公共 URL。
expires_at 字符串 输出 指示文档过期的 ISO 时间戳。
name: auteng-docs-curl-publish
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.

AutEng Docs Curl Publish

Use this endpoint:

https://auteng.ai/api/tools/docs/publish-markdown/

Send JSON with:

Use this command to publish markdown:

curl -sS -X POST "https://auteng.ai/api/tools/docs/publish-markdown/" r
  -H "Content-Type: application/json" r
  -d @- <<'JSON'
{
  "markdown": "# API Test

Hello from curl.",
  "title": "API Test",
  "expires_hours": 24
}
JSON

Extract only the share URL:

curl -sS -X POST "https://auteng.ai/api/tools/docs/publish-markdown/" r
  -H "Content-Type: application/json" r
  -d '{"markdown":"# Hello

Published from curl."}' r
  | jq -r '.share_url'

Extract a compact success payload:

curl -sS -X POST "https://auteng.ai/api/tools/docs/publish-markdown/" r
  -H "Content-Type: application/json" r
  -d '{"markdown":"# Hello

Published from curl."}' r
  | jq '{title, share_url, expires_at}'

Treat any response without share_url as an error and show the full JSON body.

相关文章

热门文章

猜你喜欢

返回顶部