adding-workspace-apps
Ce qu’il fait
Cette compétence explique comment ajouter une nouvelle application à un espace de travail Agent-Native. Elle aide à décider si une demande est une tâche récurrente simple ou une application distincte avec ses propres écrans et données. Elle s'adresse aux créateurs qui veulent une nouvelle application dans leur espace de travail.
Quand l’utiliser
- ✓Quand on vous demande de créer, construire ou générer un nouvel agent ou une nouvelle application dans un espace de travail.
- ✓Quand une demande pourrait être un simple rappel ou une application complète, et que vous devez trancher.
- ✓Quand une nouvelle application a besoin d'identifiants et que vous devez savoir les fournir en toute sécurité.
Lien du skill
https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/adding-workspace-apps/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Peux-tu construire une nouvelle application dans mon espace de travail qui suit les renouvellements clients, avec ses propres écrans ?”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
L'agent décide d'abord si la demande relève d'un simple comportement de l'espace de travail ou d'une application distincte. Une application distincte est créée dans son propre dossier et montée sur son propre chemin, sans modifier les applications existantes.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis 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
Questions fréquentes
Quand une demande justifie-t-elle sa propre application ?
La compétence indique qu'un produit ayant ses propres écrans, données et flux de travail métier doit devenir une application distincte.
Puis-je modifier une application existante à la place ?
Seulement si vous le demandez explicitement. La compétence interdit d'ajouter de nouvelles pages à une application existante par défaut.
Comment sont gérées les clés d'API ?
La compétence indique d'utiliser le flux de demande du coffre de l'espace de travail, et de ne jamais mettre la valeur dans le code de l'application.
Détails
Description originale de l’auteur
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
Popularité
- Étoiles GitHub
- 7.6k
- Position au classement
- #13131
- Licence
- MIT
- Mis à jour
- 02/11/2026
Commentaires
- …
Autres skills de ce dépôt
design-exploration
7.6kAide votre agent à explorer plusieurs directions de conception d'interface côte à côte, à vous laisser en choisir une, puis à affiner la version retenue.
visual-edit
7.6kAide votre agent à ouvrir une application locale en cours d'exécution dans un éditeur visuel, pour que vous en examiniez et modifiiez ensemble les écrans réels.
turn-into-app
7.6kTransforme un flux de travail, un tableur ou un projet en application visuelle soignée, avec des écrans remplis et un agent qui travaille derrière les commandes.
visual-plan
7.6kTransforme un plan écrit en plan visuel interactif, avec diagrammes, cartes de fichiers, extraits de code commentés et questions ouvertes.
Skills similaires
diffs
394kPermet à votre agent de produire un diff réel et partageable de vos modifications, sous forme de lien ou d'image, plutôt qu'un résumé écrit à la main.
coding-agent
394kAide votre agent à confier une tâche de programmation plus importante à Codex, Claude Code ou OpenCode comme travailleur en arrière-plan, puis à suivre sa progression.
gh-issues
394kAide votre agent à trouver des tickets GitHub, choisir ceux à traiter et ouvrir des pull requests avec des correctifs, y compris le suivi des commentaires de relecture.