adding-workspace-apps
하는 일
이 스킬은 Agent-Native 워크스페이스에 새 앱을 추가하는 방법을 설명합니다. 요청이 단순한 반복 작업인지, 자체 화면과 데이터를 가진 별도의 앱인지 판단하도록 돕습니다. 워크스페이스에 새 앱을 만들려는 빌더를 위한 스킬입니다.
사용하는 경우
- ✓워크스페이스에 새 에이전트나 앱을 만들거나 생성해 달라는 요청을 받았을 때.
- ✓간단한 알림인지 전체 앱인지 판단해야 하는 요청일 때.
- ✓새 앱에 자격 증명이 필요하고, 이를 안전하게 제공하는 방법을 알아야 할 때.
스킬 링크
https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/adding-workspace-apps/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“고객 갱신을 추적하고 자체 화면이 있는 앱을 내 워크스페이스에 만들어 주실 수 있나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 먼저 요청이 단순한 워크스페이스 동작인지 별도의 앱인지 판단합니다. 별도의 앱은 자체 폴더에 만들어 자체 경로에 연결하며, 기존 앱은 바꾸지 않습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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
자주 묻는 질문
요청에 별도의 앱이 필요한 경우는 언제인가요?
이 스킬은 자체 화면, 데이터, 도메인 작업 흐름을 가진 제품은 별도의 앱으로 만들어야 한다고 설명합니다.
대신 기존 앱을 바꿀 수 있나요?
요청하셔야만 가능합니다. 이 스킬은 기본적으로 기존 앱에 새 페이지를 추가하지 않습니다.
API 키는 어떻게 처리하나요?
워크스페이스 보관함 요청 절차를 사용하며, 값을 앱 코드에 절대 넣지 않는다고 설명합니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 7.6k
- 순위
- #13131
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
design-exploration
7.6k에이전트가 여러 UI 디자인 방향을 나란히 보여 주고, 사용자가 하나를 고르면 그 디자인을 다듬도록 돕습니다.
visual-edit
7.6k에이전트가 실행 중인 로컬 앱을 시각 편집기에 열어, 실제 화면을 함께 검토하고 편집하도록 돕습니다.
turn-into-app
7.6k워크플로, 스프레드시트 또는 프로젝트를 데이터가 채워진 세련된 시각 앱으로 바꾸고, 컨트롤 뒤에서 에이전트가 작업하도록 합니다.
visual-plan
7.6k일반 텍스트 계획을 다이어그램, 파일 맵, 코드 조각, 열린 질문이 담긴 대화형 시각 계획으로 바꿔 줍니다.