Zum Inhalt springen
Skillpedia
Agenten7.6k · #13147

composable-mini-apps

Was er macht

Dieser Skill leitet den Entwurf kleiner Apps in einem gemeinsamen Workspace, in dem jede App eine klare Aufgabe hat. Er erklärt, wann eine App eine Partner-App aufrufen sollte und wann sie ihre eigenen Aktionen nutzt. Er richtet sich an Builder, die modulare Workspace-Apps wollen.

Wann du ihn nutzt

  • ✓Wenn du entscheidest, ob eine Funktion eine neue kleine App oder Teil einer bestehenden sein soll.
  • ✓Wenn eine Aufgabe Daten oder eine Fähigkeit brauchen könnte, die eine andere App im Workspace besitzt.
  • ✓Wenn zwei Abläufe einen Helfer teilen und du entscheiden musst, wo der Helfer liegt.

Link zum Skill

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

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/composable-mini-apps/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Soll die Erinnerungsfunktion für Rechnungen eine eigene kleine App in meinem Workspace sein oder Teil der Abrechnungs-App?”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Der Agent gibt jeder App genau eine Aufgabe mit eigenen Aktionsnamen und Zugangsdaten. Eine andere App ruft er nur auf, wenn der Nutzer es verlangt oder die Aufgabe etwas braucht, das nur diese App bietet.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von 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

Häufige Fragen

Braucht jede Aufgabe einen App-übergreifenden Aufruf?

Nein. Der Skill sagt, standardmäßig die Aktionen der aktuellen App zu nutzen.

Wo sollte ein gemeinsamer Helfer liegen?

Der Skill schlägt einen gemeinsamen Pakete-Ordner für Helfer vor, die mehrere Apps nutzen.

Kann eine App ohne Oberfläche sein?

Ja. Eine kopflose App kann einen Job für Agenten oder andere Apps ausführen, ohne eigene Bildschirme zu haben.

Details

Originalbeschreibung des Autors

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

Beliebtheit

GitHub-Sterne
7.6k
Platz im Ranking
#13147
Lizenz
MIT
Aktualisiert
2.11.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills