nocobase-app-plugin-database-explorer
Was er macht
Dieser Skill erklärt, wie du die Datenbanken, Tabellen und Felder einer NocoBase-Anwendung einsehen kannst, ohne etwas zu verändern. Er ist für Administratoren gedacht, die diese Struktur sehen oder teilen wollen.
Wann du ihn nutzt
- ✓Wenn du sehen willst, mit welchen Datenbanken eine NocoBase-App verbunden ist.
- ✓Wenn du die Felder und Spalten einer Collection in NocoBase nachschlagen musst.
- ✓Wenn eine andere Rolle als der Systemadministrator die Datenbankstruktur sehen soll.
Link zum Skill
https://github.com/nocobase/nocobase/blob/v3-develop/packages/plugins/app-plugin-database-explorer/skills/nocobase-app-plugin-database-explorer/SKILL.mdKopiere 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
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Zeig mir, welche Collections und Felder meine NocoBase-App in ihrer Hauptdatenbank hat.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Er nutzt vier reine Lese-Endpunkte des Plugins Database Explorer, um Verbindungen, Collections und deren Felder aufzulisten. Es gibt keinen Schreib-Endpunkt, daher kann er nichts verändern.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
Database Explorer
Use this Skill when
Someone needs to see what databases an application talks to, which collections live on each one, or what fields and physical columns a collection has — and when a role other than System Administrator should be able to see that.
It is not for changing anything. The plugin has no write endpoint, and creating or altering a collection belongs to migrations.
Public surfaces
Four read endpoints:
| Method and path | Returns |
|---|---|
GET /api/databaseExplorer/connections |
Every configured connection; the default one has isDefault: true |
GET /api/databaseExplorer/connections/:connection/collections |
One page of collections; pageSize is 1–100 (default 20), pageToken opaque |
GET /api/databaseExplorer/connections/:connection/collections/:collection |
The resolved definition, its fields, and resolution warnings |
GET /api/databaseExplorer/connections/:connection/collections/:collection/physicalSchema |
Physical columns, indexes, keys, and constraints |
Success is { data }; the connection list is { data, meta: { total } } and the collection list { data, meta: { nextPageToken? } }. Failures use the standard /api error body with domain databaseExplorer; branch on reason: DATABASE_EXPLORER_FORBIDDEN (403), CONNECTION_NOT_FOUND and COLLECTION_NOT_FOUND (404), INVALID_CURSOR and INVALID_LIST_OPTIONS (400), and DATABASE_UNAVAILABLE, CONNECTION_UNAVAILABLE, CONNECTION_UNREACHABLE and SCHEMA_READ_DENIED (503). A malformed pageSize or pageToken is 400 INVALID_INPUT in the app domain.
The running application documents these routes under the DatabaseExplorer tag at /api/swagger/docs (JSON at /api/swagger, signed in); their operationIds are databaseExplorerListConnections, databaseExplorerListCollections, databaseExplorerGetCollection and databaseExplorerGetPhysicalSchema.
The client entry exports DatabaseExplorerClient, a typed client for these endpoints, and DATABASE_EXPLORER_ACCESS, the grant they check. The plugin contributes no pages; an application that wants one builds it on the client and declares it among its own routes with that grant. The server entry also exports the read functions (listConnections, listCollections, readCollection, readPhysicalCollection), the DATABASE_EXPLORER_PAGE constant, and the response types.
Prerequisites
Register @nocobase/app-plugin-authentication and @nocobase/app-plugin-authorization before this plugin on both runtimes. An application configured with database.default: none gets 503 DATABASE_UNAVAILABLE from every endpoint.
App workflow
Add the plugin to both composition roots and to the application's dependencies:
// server/plugins.ts
import databaseExplorer from '@nocobase/app-plugin-database-explorer/server';
// client/plugins.ts
import databaseExplorer from '@nocobase/app-plugin-database-explorer/client';
// then call it: databaseExplorer()
A System Administrator can already read the endpoints, because that permission set grants page:*/access. To let another role in, add one grant to its permission set:
{
"resource": { "type": "page", "id": "database-explorer" },
"actions": [{ "action": "access" }]
}
An application page built on the endpoints declares its route with the same grant (DATABASE_EXPLORER_ACCESS), so the navigation entry and the endpoints never disagree.
Ownership
The plugin owns the access resource, its endpoints and their response shapes, and the rule about what a connection may reveal. Applications own whether the plugin is registered, any page built on it, and who is granted access.
Connection responses never carry a password, user name, host, port, socket path, SQLite filename, TLS material, driver options, or pool settings. That list is enforced as an allow-list in server/connection-summary.ts, so a field a new dialect adds stays inside by default. Do not turn it into a deny-list, and do not add a locator to it because a
Häufige Fragen
Kann er meine Datenbank verändern?
Nein. Das Plugin liest nur Informationen und hat keinen Schreib-Endpunkt.
Wie funktioniert das Blättern bei großen Listen?
Die Collection-Liste unterstützt Seitengrößen von 1 bis 100, mit einem Seiten-Token für die nächste Seite.
Wer kann die Datenbankstruktur sehen?
Der Systemadministrator kann sie standardmäßig sehen, und du kannst anderen Rollen Zugriff gewähren.
Details
Originalbeschreibung des Autors
Browse an application's database connections, collections, and fields read-only through the Database Explorer endpoints, and grant access to them.
repo: nocobase/nocobase
Beliebtheit
- GitHub-Sterne
- 25k
- Platz im Ranking
- #10095
- Lizenz
- —
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
nocobase-app-development
25kHilft deinem Agenten, Seiten, Routen, Daten, Berechtigungen und Tests für eine vollständige NocoBase-3-Geschäftsanwendung zu bauen.
shadcn
25kHilft deinem Agenten, shadcn/ui-Komponenten in einem Webprojekt zu finden, hinzuzufügen, zu reparieren und zu gestalten, mit den offiziellen Dokumenten und Registern.
nocobase-app-plugin-development
25kHilft deinem Agenten, NocoBase-3-Plugins in einer bestehenden App zu erstellen und zu pflegen, einschließlich Server-, Client-, Datenbank- und Registrierungsteilen.
nocobase-app-upgrade
25kHilft deinem Agenten, eine NocoBase-App auf eine neuere Vorlagenversion zu aktualisieren, Vorlagenänderungen zu übernehmen und deine eigenen Arbeiten zu behalten.
Ähnliche Skills
discrawl
394kLässt deinen Agenten ein gespeichertes lokales Archiv von Discord-Nachrichten durchsuchen und zusammenfassen, dessen Aktualität prüfen und Direktnachrichten lesen.
clickhouse-io
280kHilft deinem Agenten, Abfragen und Schemas in ClickHouse zu optimieren. Nutzt Best Practices für schnelle Analyse-Workloads. Ideal, wenn Auswertungen zu langsam laufen.
scientific-db-pubmed-database
280kHilft deinem Agenten, wissenschaftliche Artikel im biomedizinischen Bereich zu suchen. Nützlich für Recherchen mit speziellen medizinischen Informationen.