跳到正文
Skillpedia
通用编程11k · #11677

app-builder-sdk

它能做什么

这项技能指导 AI 在 holaOS 工作区中构建一个新应用。适合希望拥有定制工具的人,从简单的服务连接到完整的仪表板都可以。

适用场景

  • ✓当你希望新建一个 holaOS 应用,并与 Slack 或 Notion 等外部服务相连时。
  • ✓当你希望制作仪表板类应用,例如内容规划器、客户关系管理工具或简单的跟踪器时。
  • ✓当你希望通过氛围编码(vibe coding)快速制作一个可以作为工作区窗格出现的应用的时候。

技能链接

https://github.com/holaboss-ai/holaOS/blob/main/runtime/harnesses/src/embedded-skills/app-builder-sdk/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/holaboss-ai/holaOS/blob/main/runtime/harnesses/src/embedded-skills/app-builder-sdk/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请在我的工作区中为我做一个小型内容规划应用,让我可以添加帖子创意,并在看板上查看。”

每周 5 个新技能,1 分钟读完。

工作原理

AI 会用一个小型 SDK 搭建应用的核心部分,该 SDK 负责智能体对数据和工具的访问。仪表板类应用还会用现成的界面组件构建可视化页面。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

App Builder (SDK)

Use this skill whenever the user wants a new holaOS app. Two shapes both ship through the same SDK; pick the one the request needs:

  1. Integration-only module — Slack, Discord, Notion, Stripe, Linear, anything whose value is "talk to one external service via MCP tools, agent drives, no per-app dashboard". The SDK's default web stub is fine; no src/client/ directory.
  2. Dashboard app — vibe-coded content planners, CRMs, kanban-style trackers, podcast-guest managers, anything where the user expects a workspace pane they can look at and click around in. Has a real shadcn UI authored under src/client/ (TanStack Start). The MCP tools are still there — they're how the agent drives the same data the dashboard surfaces.

The SDK core (5 primitives below) is identical for both shapes. The dashboard shape adds a src/client/ directory; that's the only structural delta.

All supplemental files named in this skill are bundled beside this SKILL.md. Treat those paths as skill-local references that are safe to use in packaged runtimes; do not guess at repo-root paths.

Tooling discipline for this skill

  • In the normal build turn, use surfaced workspace file tools for file work: read / search / find / list for inspection, edit for targeted changes, and write for new files or full rewrites.
  • Do not use bash heredocs for ordinary app file creation or mutation in the build turn. That includes package.json, app.ts, server.ts, app.runtime.yaml, workspace.yaml, and non-src/client/ assets such as game.html.
  • Use bash only for shell-native work such as bun install, starting or probing processes, checking logs, or other commands the surfaced file/runtime tools cannot express directly.
  • The only heredoc exception in this skill is the auto-queued polish pass rule below, and it applies only to apps/<app_id>/src/client/*.tsx and .css files in that separate polish turn.

When NOT to use this skill

  • The user already has a working module app and wants to extend it → modify it in place; don't rewrite as SDK. (The legacy app-builder skill that used to live alongside this one has been removed; all new app work goes through this SDK.)

The 5 primitives

Every SDK app composes exactly these:

app.connection()             // declares "this app needs an integration binding"
app.resource(name, {...})    // declares a row type (status machine, schema, emit rules)
app.action(resource, name, { fromStates, toState, run, [reversible], [steps], [schema] })
app.sync(name, { schedule, attachTo, fetch, upsert, normalize })
app.start()                  // validate config; no scheduling — automations layer does that

Mental model:

  • resource = a row in the app's SQLite (e.g. message, event, issue, pin)
  • action = state transition + upstream API call (e.g. send_message: draft → sent)
  • sync = periodic upstream read that upserts records keyed by external id
  • HOW (steps / states / reversal) lives in the SDK. WHEN (scheduling, retry) lives in Holaboss automations — the SDK never schedules.

Full type contract: sdk-package/src/types.ts. Public exports: sdk-package/src/index.ts.

provider.id MUST be the Composio toolkit slug

There is ONE provider identifier; the same value flows through every layer of the connect + proxy chain:

  • app.runtime.yaml's integration.destination
  • pending_integrations[].provider_id (runtime emits this to drive the chat Connect card)
  • Hono /api/composio/connect's body.provider (Hono uses it verbatim as Composio's toolkit_slug)
  • integration_connections.provider_id (DB row created at OAuth finalize)
  • integration_bindings.integration_key (DB row created when the user clicks Bind)
  • createRuntimeBrokerTransport({ provider }) at runtime (broker keys the binding lookup on it)

provider.id in ProviderRegistry IS this value. It MUST be the canonical Composio toolkit slug — the exact string in Composio's catalog at https://platform.composio.dev — not a "user-friendly" alias. Common ones that bite:

  • Discord bot: discordbot (NOT discord — that slug, if it exists, grants only identify scope and cannot post messages → POST /channels/.../messages returns 401, which the SDK maps to not_connected)
  • Google Calendar: googlecalendar (NOT gcal or google)
  • Google Sheets: googlesheets
  • Google Drive: googledrive
  • Slack / GitHub / Gmail / Notion / Stripe / Linear /
常见问题

使用它需要写代码吗?

你描述想要的应用,AI 负责编写。该技能会指导应用结构,使其能在工作区中正常运行。

两种应用类型有什么区别?

集成类应用只连接外部服务,而仪表板类应用还包含可以点击操作的页面。

智能体也能使用应用的数据吗?

可以。仪表板所使用的同一套工具,也是智能体与应用数据交互的方式。

详情

作者的原始描述

Build a new holaOS app using @holaboss/app-builder-sdk (5 backend primitives + optional shadcn dashboard UI). The canonical path for vibe-coded apps — integration modules AND dashboard apps both live here.

repo: holaboss-ai/holaOS

热度

GitHub 星标
11k
排名
#11677
许可证
—
更新时间
2026/10/28

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能