Install
openclaw skills install @momofa/nishareUse when the user wants to publish, update, or explain how to publish AI-generated HTML, image, or document content to Nishare via its API, needs curl examples, API-Key/Bearer authentication, 工作组 targeting, payload validation rules, or wants an agent prompt that returns a Nishare shareUrl.
openclaw skills install @momofa/nishareUse this skill when helping a user or another AI tool publish generated content to Nishare.
https://nishare.comPOST /api/ai/publishPOST /api/ai/updateimageDataUrl, imageBase64, or imageUrlX-Nishare-Key: nsk_xxx, orAuthorization: Bearer nsk_xxxshareUrl to the user on success. On failure, surface message and any matches.Use this prompt when instructing another AI tool:
把内容发布到 Nishare:POST https://nishare.com/api/ai/publish,成功后返回 shareUrl,失败时返回 message。
For full HTML pages:
请把你生成的完整页面 HTML 通过 POST 发送到 https://nishare.com/api/ai/publish,JSON 格式为 {"title":"页面标题","type":"html","html":"完整页面 HTML"},然后把响应里的 shareUrl 返回给我。
Publish HTML:
curl -s https://nishare.com/api/ai/publish \
-H 'Content-Type: application/json' \
-d '{"title":"AI 生成演示","type":"html","html":"<!doctype html><html><body><h1>Hello</h1></body></html>"}'
Publish with API Key:
curl -s https://nishare.com/api/ai/publish \
-H 'Content-Type: application/json' \
-H 'X-Nishare-Key: nsk_xxx' \
-d '{"title":"AI 生成演示","type":"html","html":"<!doctype html><html><body><h1>Hello</h1></body></html>"}'
Update a project:
curl -s https://nishare.com/api/ai/update \
-H 'Content-Type: application/json' \
-H 'X-Nishare-Key: nsk_xxx' \
-d '{"projectId":"project_id","title":"更新后的演示","type":"html","html":"<!doctype html><html><body><h1>Updated</h1></body></html>"}'
Read references/api.md when you need: