Aller au contenu
Skillpedia
Agents7.6k · #13147

composable-mini-apps

Ce qu’il fait

Cette compétence guide la conception de petites applications dans un espace de travail partagé, où chaque application a un rôle clair. Elle explique quand une application doit appeler une application pair et quand elle doit utiliser ses propres actions. Elle s'adresse aux créateurs qui veulent des applications modulaires.

Quand l’utiliser

  • ✓Quand vous décidez si une fonctionnalité doit être une nouvelle petite application ou faire partie d'une application existante.
  • ✓Quand une tâche peut avoir besoin de données ou d'une capacité détenues par une autre application de l'espace de travail.
  • ✓Quand deux flux de travail partagent une fonction utilitaire et que vous devez décider où la placer.

Lien du skill

https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/composable-mini-apps/SKILL.md

Copiez-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

Utilise ce skill pour m’aider : https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/composable-mini-apps/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Le rappel de facture doit-il être une petite application à part dans mon espace de travail, ou faire partie de l'application de facturation ?”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'agent donne à chaque application un rôle unique, avec ses propres noms d'actions et identifiants. Il n'appelle une autre application que si l'utilisateur le demande ou si la tâche exige quelque chose que seule cette application fournit.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

Composable Mini-Apps

Rule

Prefer many one-job apps in a workspace over one oversized app. A headless app can own a provider, dataset, workflow, or specialist action surface without a full UI. This architecture does not make every task a cross-app task: use the current app's actions by default. Call a peer only when the user asks or the outcome requires data, credentials, or a capability only that peer can provide. A peer's availability or ability to enrich the result is not enough. The app that owns an artifact remains responsible for authoring and editing it.

Shape

  • Give each mini-app one clear job, a concise package.json description, and action names that describe the job it owns.
  • Keep provider credentials and upstream API details in the app that owns that provider or workflow. When a task needs its peer-exclusive data, credentials, or capability, delegate that bounded work instead of copying integration code.
  • Use a tiny status/config screen only when users need to inspect state. A pure headless app is fine when its job is invoked by agents, automations, or sibling apps.
  • If two workflows only share a helper, put the helper in packages/shared; keep the workflow actions in separate apps.

Discovery And Invocation

The main agent should discover available siblings before assuming capability:

  • Runtime agents receive an <available-apps> block built from discoverAgents(). Workspace siblings are layered in by discoverWorkspaceAgents(). It carries one line per app — enough to know a sibling exists, not enough to know what it can do.
  • Use the built-in describe-workspace-apps tool for actual capability. It reads each peer's live /.well-known/agent-card.json and returns its purpose plus any optional stable machine contracts; pass app: "<id>" for one peer's full description. Use it only when the requested outcome depends on peer-exclusive data or capability and you cannot tell which peer owns it or whether a known peer can provide it, or when the user asks which app can do the job.
  • Never hand-maintain a markdown or code list of what each workspace app does. A stale catalog is worse than none: it reads as authoritative while pointing at capabilities that moved or vanished. An app's purpose belongs in its own package.json description (which flows into the workspace manifest and the <available-apps> block), and its capabilities belong in its exposed actions — both of which describe-workspace-apps reads live.
  • UI shells, headless surfaces, and scripts can read the same registry through GET /_agent-native/agents?selfAppId=<app-id>.
  • Code or CLI callers should use the first-class message-based A2A invocation path (invokeAgent() / agent-native invoke) when they need to ask an app by id, name, or URL.
  • In the agent loop, use call-agent with the sibling app id only when the requested outcome depends on peer-exclusive data or capability, or the user explicitly asks you to involve that app. A sibling's availability or ability to enrich the result is not enough. Never call the current app through call-agent; use local actions instead.
  • Send a natural-language objective by default so the sibling can apply its own instructions, skills, schemas, data dictionary, credentials, and tools. invokeAgentAction() or call-agent with action + input is only for an explicit stable semantic read contract whose complete input is already known. Never expose or call an implementation action as a workaround for slow or failed message delegation.

Send narrow prompts to siblings: name the exact question, relevant ids, date ranges, and expected output shape. Preserve returned ids and URLs verbatim.

Artifact Handoff

Mini-apps should hand off compact artifacts, not giant pasted transcripts or provider dumps. When a mini-app creates something another app may use, return or store an artifact with:

  • artifactType - what kind of output this is, such as deal-set, call-evidence, brief, dashboard, or report.
  • artifactId - the stable app-owned id, file path, or resource id.
  • createdAt - an ISO timestamp.
  • source - provider/app/source ids used to create it.
  • summary - a short human-readable explanation.
  • items or records - the bounded structured data downstream apps need.
  • links - fully qualified URLs for user-visible artifacts.

Downstream apps should receive artifact ids, URLs, and narrow foll

Questions fréquentes

Chaque tâche nécessite-t-elle un appel entre applications ?

Non. La compétence indique d'utiliser par défaut les actions de l'application courante.

Où placer une fonction utilitaire partagée ?

La compétence suggère un dossier de paquets partagés pour les utilitaires utilisés par plus d'une application.

Une application peut-elle être sans écran ?

Oui. Une application sans interface peut exécuter une tâche pour les agents ou d'autres applications.

Détails

Description originale de l’auteur

Build focused workspace apps and cross-app workflows, using A2A only when a task needs a peer-owned capability. Use when designing mini-app boundaries.

repo: BuilderIO/agent-native

Popularité

Étoiles GitHub
7.6k
Position au classement
#13147
Licence
MIT
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires