adding-workspace-apps
यह क्या करती है
यह स्किल बताती है कि Agent-Native वर्कस्पेस में नया ऐप कैसे जोड़ें। यह तय करने में मदद करती है कि अनुरोध एक साधारण दोहराया काम है या अपनी स्क्रीन और डेटा वाला अलग ऐप। यह उन बिल्डरों के लिए है जिन्हें अपने वर्कस्पेस में नया ऐप चाहिए।
कब इस्तेमाल करें
- ✓जब कोई आपसे वर्कस्पेस में नया एजेंट या ऐप बनाने, खड़ा करने या जनरेट करने को कहता है।
- ✓जब अनुरोध एक साधारण रिमाइंडर भी हो सकता है और पूरा ऐप भी, और आपको तय करना है कि कौन सा।
- ✓जब नए ऐप को क्रेडेंशियल चाहिए और आपको उन्हें सुरक्षित रूप से देने का तरीका जानना है।
Skill का लिंक
https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/adding-workspace-apps/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“क्या आप मेरे वर्कस्पेस में एक नया ऐप बना सकते हैं जो अपनी स्क्रीन के साथ ग्राहक के रिन्यूअल ट्रैक करे?”
हर हफ़्ते 5 नई skills, 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 कुंजियां कैसे संभाली जाती हैं?
स्किल कहती है कि वर्कस्पेस vault के अनुरोध वाला तरीका इस्तेमाल हो, और मान कभी ऐप के कोड में न डाला जाए।
जानकारी
लेखक का मूल विवरण
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
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
design-exploration
7.6kयह आपके एजेंट को UI के कई डिज़ाइन विकल्प साथ-साथ दिखाने, आपकी पसंद चुनवाने और फिर चुने डिज़ाइन को सुधारने में मदद करती है।
visual-edit
7.6kयह आपके एजेंट को चल रहे लोकल ऐप को विज़ुअल एडिटर में खोलने देती है, ताकि आप उसकी असली स्क्रीन एक साथ देखकर संपादित कर सकें।
turn-into-app
7.6kयह किसी वर्कफ़्लो, स्प्रेडशीट या प्रोजेक्ट को भरी हुई स्क्रीन वाले विज़ुअल ऐप में बदलती है, जिसके कंट्रोल के पीछे एजेंट काम करता है।
visual-plan
7.6kयह सादे टेक्स्ट वाली योजना को डायग्राम, फ़ाइल नक्शों, कोड अंश और खुले सवालों वाली इंटरैक्टिव विज़ुअल योजना में बदलती है।
मिलती-जुलती skills
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।