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。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 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:
- 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. - 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/listfor inspection,editfor targeted changes, andwritefor new files or full rewrites. - Do not use
bashheredocs for ordinary app file creation or mutation in the build turn. That includespackage.json,app.ts,server.ts,app.runtime.yaml,workspace.yaml, and non-src/client/assets such asgame.html. - Use
bashonly for shell-native work such asbun 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/*.tsxand.cssfiles 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'sintegration.destinationpending_integrations[].provider_id(runtime emits this to drive the chat Connect card)- Hono
/api/composio/connect'sbody.provider(Hono uses it verbatim as Composio'stoolkit_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(NOTdiscord— that slug, if it exists, grants onlyidentifyscope and cannot post messages →POST /channels/.../messagesreturns 401, which the SDK maps tonot_connected) - Google Calendar:
googlecalendar(NOTgcalorgoogle) - 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
评论
- …