微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🌐

AI对话即生成交互网页

Orb · v1.0.0
入口已确认,内容待校验 文件树里有 SKILL.md,但正文还没采回,frontmatter 未核对。
办公 安全 A 级 作者 saibhaskardevatha 公开目录收录
808 下载 0 安装 1.7k 收藏 1 浏览

简介

Orb 是 Biryani Labs 推出的托管式 Artifact 服务,支持从任意 AI 对话即时生成可分享的网页、Markdown 文档及流程图,7 天托管期助力团队快速可视化协作。

原始描述

Create and share rich interactive artifacts (webpages, markdown, flowcharts) as hosted links from any AI conversation. Use when the user asks to create a das...

通过你的 Agent 添加

安装目录:orb/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/orb/
Codex CLI~/.codex/skills/orb/
DeepSeek Harness~/.agents/skills/orb/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心用法

Orb 是一个将 AI 对话内容转化为可托管、可分享交互式制品(Artifacts)的云服务。用户通过自然语言触发(如"创建一个仪表板""生成流程图""让这份报告可分享"),Agent 即调用 Orb API 生成托管链接,支持三种输出类型:

  • Webpage:单文件自包含 HTML,CSS/JS 必须内联,禁止外部 CDN 与网络请求,支持内联 SVG、Base64 图片或 Orb 托管资源,适用于仪表板、计算器、交互式图表等场景。
  • Markdown:GFM 规范支持表格,原生嵌入 Mermaid 代码块自动渲染为 SVG 图表,适用于技术文档、报告、规格说明书。
  • Flowchart:纯 Mermaid.js 语法(graph/sequenceDiagram/stateDiagram-v2/erDiagram/gantt),专注架构图、流程图、状态机。

工作流程遵循"创建→更新→反馈迭代"闭环:首次生成返回 7 天有效期的托管链接;同一对话中的修改通过 PUT 请求原地更新,保持 URL 不变;用户可在页面留言,Agent 可拉取 pending 反馈并批量应用,形成持续优化循环。

显著优点

  1. 零部署分享:无需服务器、域名或前端工程能力,一句话即可生成可分享的 URL,大幅降低可视化协作门槛。
  2. 对话原生体验:Artifact 生命周期与 AI 对话深度绑定,"创建-修改-收反馈-再迭代"全流程自然语言驱动,符合非技术用户心智模型。
  3. 安全沙箱设计:Webpage 类型强制内联资源、禁止外部脚本与网络请求,天然规避 XSS 与数据泄露风险;API Key 通过环境变量管理,明确禁止回显。
  4. 轻量协作闭环:内置评论收集与批量应用机制,使 AI 生成内容具备类似 Notion/Confluence 的轻量协同能力。

潜在缺点与局限性

  • 有效期限制:免费版仅 7 天托管期,长期存档需付费升级或自行备份内容。
  • 功能边界严格:Webpage 禁止 fetch/WebSocket/外部样式表,复杂动态应用(如需实时数据拉取)需另寻方案。
  • 生态依赖:完全依赖 Orb 云服务可用性,离线场景无法使用;API 调用需用户自行管理 Key 与持久化配置。
  • 类型局限:目前仅支持三种输出形态,不支持 PDF 导出、PPT 生成或复杂多页网站架构。

适合的目标群体

  • 产品经理/运营:快速产出活动页、数据看板、流程图用于评审与分享。
  • 技术写作者/开发者:生成带 Mermaid 图表的技术文档、API 说明、架构图。
  • 咨询顾问/教育者:制作可交互的演示材料、问卷、计算工具,即时收集反馈。
  • 小型团队:替代部分轻量级 SaaS(如 Gamma、Notion 公开页),降低工具链复杂度。

常规使用风险

  1. 配额与成本:免费版限 10 个 Artifact,超出需付费,高频使用需评估成本。
  2. 数据持久性:7 天过期机制可能导致链接失效,关键内容需及时导出或升级。
  3. API 稳定性:依赖第三方服务,存在 rate limit(429)与偶发故障风险,需具备基础错误处理与重试逻辑。
  4. 配置管理:API Key 需按不同 Agent 环境(Claude Code/Gemini CLI/Codex)分别持久化,配置不当将导致会话中断。

技能正文


name: orb description: > Create and share rich interactive artifacts (webpages, markdown, flowcharts) as hosted links from any AI conversation. Use when the user asks to create a dashboard, report, chart, visualization, interactive page, or any shareable content. Triggers on: "create an artifact", "make this shareable", "make this interactive", "create a webpage/dashboard/chart/document". license: MIT metadata: author: biryanilabs version: "1.0" homepage: https://byorb.app openclaw: primaryEnv: ORB_API_KEY requires: env: ["ORB_API_KEY"] bins: ["curl"] allowed-tools: Bash(curl:*)

Orb — Artifacts for your AI Agent

Orb is a hosted artifact service. Use the API at https://api.byorb.app/v1. Artifacts are rendered at https://art.byorb.app/v/.

This skill uses the web API only. Do not save artifact content to disk. Always return the hosted link to the user.


API Key Setup

All requests require an API key via the ORB_API_KEY environment variable.

Before making any API call, check that $ORB_API_KEY is set. If it is not:

  1. Ask the user for their Orb API key:

    I need your Orb API key to create artifacts. Get one at https://byorb.app/dashboard/settings → Create API Key

  2. Once the user provides the key, persist it so it survives across sessions. Use your native configuration mechanism:

    • Claude Code: Add to ~/.claude/settings.json under "env": { "ORB_API_KEY": "..." }
    • Gemini CLI: Write to ~/.gemini/.env as ORB_API_KEY=...
    • Codex: Add to ~/.codex/config.toml under [shell_environment_policy] with set = { ORB_API_KEY = "..." }
    • Fallback: Append export ORB_API_KEY=... to the user's shell profile (~/.zshrc or ~/.bashrc)
  3. Also export ORB_API_KEY=... in the current session so it's available immediately.

All requests require:

Authorization: Bearer $ORB_API_KEY

Default Behavior

When the user asks you to create any visual, interactive, or shareable content, create an artifact via the API and return the hosted link immediately.

In the same conversation, always UPDATE the existing artifact — do not create a new one unless the user explicitly says "new artifact" or "separate artifact".

Boundary rules:

  • Do not embed artifact content inline in the chat. Always return the hosted link.
  • Do not create a new artifact to apply an update. Use PUT on the existing ID.
  • Do not include external <script src="..."> or <link rel="stylesheet" href="..."> tags in Webpages.
  • Do not use fetch(), XMLHttpRequest, or WebSocket in Webpage JS.
  • Do not use external image URLs in Webpages. Use inline SVG, base64 data URIs, or Orb-hosted asset URLs (see Image Assets section).
  • Never expose the API key in any response.

Creating an Artifact

Triggers: "create an artifact", "create a chart / dashboard / report / document / visualization / webpage", "make this interactive", "make this shareable"

curl -sS -X POST https://api.byorb.app/v1/artifacts \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $ORB_API_KEY" \
  -d '{
    "type": "webpage",
    "title": "Q1 Revenue Dashboard",
    "content": "<full content string>"
  }'

Types: webpage | markdown | flowchart

Save the returned id — you will need it for updates and feedback.

Return the link as:

[Q1 Revenue Dashboard](https://art.byorb.app/v/<id>)
_Expires in 7 days · Open to save or leave feedback · Say "apply my artifact comments" to update_

Updating an Artifact

Triggers: "change", "update", "make it", "fix", "add" — referring to an existing artifact

Use the id from this conversation. The URL stays the same.

curl -sS -X PUT https://api.byorb.app/v1/artifacts/<id> \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $ORB_API_KEY" \
  -d '{"content": "<updated full content>"}'

Return:

Updated: [Q1 Revenue Dashboard](https://art.byorb.app/v/<id>)

Applying Artifact Comments

Triggers: "apply my artifact comments", "apply comments", "check artifact feedback"

Step 1 — Fetch pending feedback:

curl -sS "https://api.byorb.app/v1/artifacts/<id>/feedback?status=pending" \
  -H "Authorization: Bearer $ORB_API_KEY"

Step 2 — If feedback exists, apply all in a single PUT update.

Step 3 — Mark processed:

curl -sS -X PATCH https://api.byorb.app/v1/artifacts/<id>/feedback/processed \
  -H "Authorization: Bearer $ORB_API_KEY"

If no pending feedback: "No pending comments found on your artifact." Tell the user which comments were applied.


Uploading Image Assets (for Webpages)

When a Webpage artifact needs an image that cannot be SVG or base64:

curl -sS -X POST https://api.byorb.app/v1/assets \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $ORB_API_KEY" \
  -d '{"image_url": "https://external.com/photo.png"}'

Returns: { "asset_url": "https://art.byorb.app/img/<uuid>" }

Use this URL in your HTML: <img src="https://art.byorb.app/img/<uuid>" alt="..."> Assets expire with the artifact.


Listing Artifacts

Triggers: "show my artifacts", "list my artifacts", "what have I created"

curl -sS https://api.byorb.app/v1/artifacts \
  -H "Authorization: Bearer $ORB_API_KEY"

Present as a list with title and link per artifact.


Artifact Type Guidelines

Webpage — Single self-contained HTML file. All CSS and JS must be inline. No external CDN links. No network calls from JS. Images: inline SVG, base64, or Orb-hosted asset URLs only. Best for: dashboards, calculators, interactive charts, timelines, quizzes.

Markdown — GFM with table support. No raw HTML blocks. Supports embedded Mermaid diagrams using triple-backtick mermaid code blocks — they render as inline SVG diagrams within the document. Best for: reports, summaries, structured documents, specs with diagrams.

Flowchart — Valid Mermaid.js syntax only (standalone diagram). Supported: graph, sequenceDiagram, stateDiagram-v2, erDiagram, gantt. Best for: architecture diagrams, process flows, state machines.


Error Handling

Error Meaning Action
401 Bad or missing API key Prompt user to set key (see API Key Setup section)
402 Free plan limit (10 artifacts) "Visit https://byorb.app/upgrade for unlimited artifacts."
404 Artifact not found Verify ID is from this conversation. Offer to create a new one.
422 Invalid content or type Check type value and content. Retry.
429 Rate limit Back off. Tell user to try again in a moment.

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

content-mediadocsproductivitydesignchart

同类 Skill