adding-workspace-apps
Fungsinya
Skill ini menjelaskan cara menambahkan aplikasi baru ke workspace Agent-Native. Skill ini membantu memutuskan apakah suatu permintaan cukup berupa tugas berulang sederhana atau perlu menjadi aplikasi terpisah dengan layar dan datanya sendiri. Skill ini untuk pembangun yang menginginkan aplikasi baru di workspace mereka.
Kapan dipakai
- ✓Ketika seseorang meminta Anda membuat atau menghasilkan agent atau aplikasi baru di workspace.
- ✓Saat sebuah permintaan bisa berupa pengingat sederhana atau aplikasi lengkap, dan Anda perlu memutuskan mana yang tepat.
- ✓Ketika aplikasi baru membutuhkan kredensial dan Anda perlu tahu cara menyediakannya dengan aman.
Link skill
https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/adding-workspace-apps/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
“Bisakah Anda membuat aplikasi baru di workspace saya yang melacak perpanjangan pelanggan, dengan layarnya sendiri?”
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent pertama-tama memutuskan apakah permintaan itu cukup sebagai perilaku workspace biasa atau perlu menjadi aplikasi terpisah. Aplikasi terpisah dibuat di folder sendiri dan dipasang di jalurnya sendiri, tanpa mengubah aplikasi yang sudah ada.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Adding Workspace Apps
Classify The Ask First
When a user asks from Dispatch chat or through @agent-native in Slack or
Telegram to create, build, make, scaffold, or generate an "agent", classify
the ask first.
Simple Dispatch-native behavior such as a reminder, digest, monitor, routing
rule, saved instruction, or recurring workflow can stay in Dispatch as a
recurring job/resource/destination. Robust unique products or teammates that
need their own UI, data model, actions, integrations, or domain workflow should
become a separate workspace app under apps/<app-name>, mounted at
/<app-name>.
Where The App Lives
Do not implement a new app by adding a route, page, component, or file to
apps/chat or another existing app unless the user explicitly asks to modify
that existing app.
Vault Access
Dispatch vault access is workspace-wide by default: every saved vault key is available to every workspace app. Only create or request per-app vault grants when Dispatch's vault access setting is switched to manual mode.
When an app needs a provider credential, use the app's scoped secret or
workspace-connection resolver so Dispatch remains the source of truth. Do not
ask a non-admin builder to add a key to local project settings or .env; use
Dispatch's vault request workflow for a missing key and keep the value out of
app code.
Discovery, Links, And The UI Stack
The local workspace gateway discovers apps from
apps/<app-name>/package.json. Production Dispatch images that contain only
.output/ cannot scan those directories: set AGENT_NATIVE_WORKSPACE_APPS_JSON
on the Dispatch service at runtime and the same
VITE_AGENT_NATIVE_WORKSPACE_APPS_JSON while building its client bundle. List
only apps in that workspace, with each deployed path matching its
APP_BASE_PATH and proxy route. Do not reuse another organization's manifest.
Always save a concise, human-readable description in each package manifest;
Dispatch and A2A connected-agent context use the app name plus description so
agents know what it does. Use relative workspace links like /<app-name> and never
hardcode localhost, 127.0.0.1, 8080, 8100, or any dev port in app
cards, instructions, redirects, or navigation; the active workspace
gateway/browser origin owns the port. React Router apps must preserve
APP_BASE_PATH / VITE_APP_BASE_PATH in
app/entry.client.tsx via appBasePath() so the app hydrates correctly when
mounted at /<app-name>. Use the framework/template UI stack for standard UI:
shadcn/ui components and @tabler/icons-react. Do not add lucide-react or
another icon library. Read .agents/skills/shadcn-ui/SKILL.md before adding,
updating, or debugging shadcn components.
App Data Goes Through Actions
Normal app data must flow through actions. For CRUD that the agent can perform,
create defineAction files in actions/, mark reads with
http: { method: "GET" }, and call them from React with useActionQuery /
useActionMutation. Do not add duplicate JSON CRUD routes under /api/* for
the same data unless the route is for uploads, streaming, webhooks, OAuth, or
another route-only concern. Do not add routes whose main job is to wrap,
proxy, or re-export an action; the action endpoint already exists at
/_agent-native/actions/:name. Action-backed UI is what makes agent-created or
agent-edited records appear without a manual refresh.
PostgreSQL Database
App database code targets local PGlite and hosted Postgres. Define schemas with
@agent-native/core/db/schema helpers and write app reads/writes with Drizzle's
PostgreSQL query builder and drizzle-orm operators. Do not import raw schema
drivers in app templates. Keep raw SQL
for additive migrations, health checks, or carefully scoped maintenance. Do not use SQL as object
storage; file bytes belong in upload/private-blob providers with only references
saved to app tables.
Scaffolding
In local development, run
pnpm exec agent-native create <app-name> --template=<template> from the
workspace root. In production, Dispatch posts new-app requests to Builder
branch creation; Builder should still scaffold the separate workspace app. The
workspace dev gateway (pnpm dev) detects new apps/<app-name> directories
automatically.
Scaffolding the directory is not the app being live. Before saying the app is
created, request /<app-name> on the running gateway and confirm it returns
the new app, not a fallback route or another app's shell — then tell
Pertanyaan umum
Kapan sebuah permintaan membutuhkan aplikasi sendiri?
Skill ini menyatakan bahwa produk dengan layar, data, dan alur kerja domain sendiri sebaiknya dibuat sebagai aplikasi terpisah.
Bisakah saya mengubah aplikasi yang sudah ada saja?
Hanya jika Anda memintanya secara eksplisit. Skill ini menyatakan agar halaman baru tidak ditambahkan ke aplikasi yang sudah ada secara default.
Bagaimana kunci API ditangani?
Skill ini menyarankan alur permintaan brankas workspace, dan nilai kunci tidak pernah dimasukkan ke dalam kode aplikasi.
Detail
Deskripsi asli dari pembuat
How to add an app to an Agent-Native workspace: classifying an "agent" request, scaffolding `apps/<app-name>`, app discovery and descriptions, mounting and base paths, action-first data, and finishing a chat-template app. Use when asked to create, build, scaffold, or generate a new agent or app in a workspace.
repo: BuilderIO/agent-native
Popularitas
- Bintang GitHub
- 7.6k
- Peringkat
- #13131
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- …
Skill lain dari repositori ini
design-exploration
7.6kMembantu agent Anda mengeksplorasi beberapa arah desain UI secara berdampingan, membiarkan Anda memilih satu, lalu menyempurnakan desain yang dipilih.
visual-edit
7.6kMembantu agent Anda membuka aplikasi lokal yang sedang berjalan di editor visual agar Anda dapat meninjau dan mengedit layar aslinya bersama-sama.
turn-into-app
7.6kMengubah alur kerja, spreadsheet, atau proyek menjadi aplikasi visual yang rapi, dengan layar yang terisi dan agent yang bekerja di balik kontrol.
visual-plan
7.6kMengubah rencana teks biasa menjadi rencana visual interaktif dengan diagram, peta file, cuplikan kode, dan pertanyaan terbuka.
Skill serupa
diffs
394kMemungkinkan agent Anda menghasilkan diff perubahan yang nyata dan dapat dibagikan sebagai tautan viewer atau file gambar, bukan ringkasan yang ditulis manual.
coding-agent
394kMembantu agent Anda menyerahkan pekerjaan pemrograman besar ke Codex, Claude Code, atau OpenCode di latar belakang, lalu memeriksa kemajuannya.
gh-issues
394kMembantu agent Anda menemukan issue GitHub, memilih yang dikerjakan, dan membuka pull request perbaikan, termasuk tindak lanjut komentar tinjauan.