Zum Inhalt springen
Skillpedia
APIs & Server (Backend)25k · #10101

nocobase-app-plugin-notification-in-app

Was er macht

Dieser Skill richtet den In-App-Benachrichtigungs-Posteingang in einer NocoBase-3-App ein. Jeder Nutzer sieht nur seine eigenen Benachrichtigungen, und der Posteingang aktualisiert sich live. Er ist für Entwickler, die einen Posteingang in der App wollen.

Wann du ihn nutzt

  • ✓Wenn Nutzer Benachrichtigungen in einem Posteingang innerhalb der App sehen sollen.
  • ✓Wenn der Posteingang sich live aktualisieren soll, nachdem eine Benachrichtigung gespeichert wurde.
  • ✓Wenn Posteingangs-Einträge fehlen oder beim falschen Nutzer erscheinen und du das diagnostizieren musst.

Link zum Skill

https://github.com/nocobase/nocobase/blob/v3-develop/packages/plugins/app-plugin-notification-in-app/skills/nocobase-app-plugin-notification-in-app/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/nocobase/nocobase/blob/v3-develop/packages/plugins/app-plugin-notification-in-app/skills/nocobase-app-plugin-notification-in-app/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

“Kannst du meiner NocoBase-App einen In-App-Benachrichtigungs-Posteingang hinzufügen, der sich live aktualisiert, wenn einem Nutzer eine Aufgabe zugewiesen wird?”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Die KI registriert die Client- und Server-Einträge des Plugins, platziert die Posteingangs-Komponenten auf einer Seite, die der App gehört, und verbindet das Live-Update-Topic. Gespeicherte Benachrichtigungen bleiben die maßgebliche Quelle.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von GitHub.

Goal

Integrate and maintain the authenticated, user-isolated in-app inbox while keeping durable HTTP state authoritative and realtime events limited to invalidation.

Ownership and Placement

This Skill is published with @nocobase/app-plugin-notification-in-app. The plugin owns its Server runtime, persistence, APIs, realtime contract, and Client inbox components. The target application owns whether both Client and Server entries are registered.

Scope

  • Register the Client and Server plugin entries and the core notification dependency.
  • Render the exported inbox components in an application-owned page.
  • Consume the public realtime topic and event types from the /realtime package entry.
  • Verify or diagnose inbox HTTP access, mutations, user isolation, and reconnect refresh.

Non-Goals

  • Do not replace durable notifications with transient browser toasts.
  • Do not edit inbox tables directly or publish forged realtime events as notification state.
  • Do not expect the plugin to contribute an inbox page; the application owns the route.

Input Contract

Input Required Default Validation Clarification Question
action yes verify for existing code; register for a new target register/verify/diagnose "Should I register, verify, or diagnose the inbox?"
application yes infer from one unambiguous workspace application application root with Server and Client configuration "Which application should register the inbox plugin?"
apiConfig no the target application's injected ApiClient and RealtimeClient authenticated client with the intended baseURL/realtimeURL "Should this application use its default or a custom API host?"

Rules:

  • Resolve package versions and enabled plugins from the target application before changing source.
  • Register the package's public /client and /server entries; do not import implementation files.
  • If the target application is ambiguous, stop mutation and ask.

Mandatory Clarification Gate

  • Max clarification rounds: 2.
  • Max questions per round: 3.
  • Read-only inspection and diagnosis may proceed when the application is unambiguous.
  • Missing required input blocks mutation; report the missing contract instead of guessing.

Workflow

  1. Read Inbox Integration Contract for package requirements, public surfaces, and runtime semantics.
  2. Inspect the target application's Server plugin list, Client composition, authentication setup, api.baseURL, api.realtimeURL, and installed package versions.
  3. Register @nocobase/app-plugin-notification before @nocobase/app-plugin-notification-in-app/server when the application needs the in-app Channel contribution.
  4. Register @nocobase/app-plugin-notification-in-app/client in the Client composition root. The plugin contributes no pages: render NotificationInAppInbox inside NotificationInAppProvider in a page the application declares among its own routes.
  5. In React components and custom Hooks, use useApiClient() from @nocobase/app-client for inbox reads and mutations, and useService(realtimeClientToken) for subscriptions. Outside React, resolve the corresponding tokens from the application's services or receive the clients explicitly. Do not reconstruct /api from the browser location or Portal base.
  6. Keep HTTP state authoritative. On a validated inbox.changed event, realtime connection open, or window focus, trigger a bounded HTTP refetch.
  7. Use the public @nocobase/app-plugin-notification-in-app/realtime entry for shared topic or event types; do not import Server internals.
  8. Test allowed and denied users, mutations without a CSRF token, cross-site cookie writes rejected with INVALID_CSRF_ORIGIN, pagination, custom API hosts, realtime invalidation, and reconnect recovery.
  9. Run lint, typecheck, tests, and build for the plugin and affected application.

Reference Loading Map

| Reference

Häufige Fragen

Sind die Live-Updates die echten Benachrichtigungen?

Nein. Live-Ereignisse sind nur Hinweise, der gespeicherte Posteingang ist der maßgebliche Datensatz.

Fügt das Plugin die Posteingangsseite hinzu?

Nein. Die Anwendung besitzt die Route und platziert die Seite.

Können temporäre Pop-up-Toasts den Posteingang ersetzen?

Nein. Der Skill sagt, dauerhafte Benachrichtigungen dürfen nicht durch temporäre Browser-Toasts ersetzt werden.

Details

Originalbeschreibung des Autors

Use when agents need to register, verify, or diagnose the NocoBase durable in-app inbox, its development-only Client page, or realtime refresh behavior.

repo: nocobase/nocobase

Beliebtheit

GitHub-Sterne
25k
Platz im Ranking
#10101
Lizenz
—
Aktualisiert
2.11.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills