nocobase-app-plugin-database-explorer
O que ela faz
Esta skill explica como ver os bancos de dados, as tabelas e os campos usados por um aplicativo NocoBase, sem alterar nada. Ela é para administradores que querem ver ou compartilhar essa estrutura.
Quando usar
- ✓Quando você quer ver a quais bancos de dados um app NocoBase se conecta.
- ✓Quando você precisa consultar os campos e colunas de uma coleção no NocoBase.
- ✓Quando você quer que um papel diferente do administrador do sistema consiga ver a estrutura do banco de dados.
Link da skill
https://github.com/nocobase/nocobase/blob/v3-develop/packages/plugins/app-plugin-database-explorer/skills/nocobase-app-plugin-database-explorer/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Mostre quais coleções e campos o meu app NocoBase tem no banco de dados principal.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A skill usa quatro endpoints somente leitura do plugin Database Explorer para listar conexões, coleções e seus campos. Não há endpoint de escrita, então ela não consegue alterar nada.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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
Perguntas frequentes
Ela consegue alterar o meu banco de dados?
Não. O plugin apenas lê informações e não tem endpoint de escrita.
Como funciona a paginação de listas grandes?
A lista de coleções aceita tamanhos de página de 1 a 100, com um token de página para obter a próxima.
Quem pode ver a estrutura do banco de dados?
O administrador do sistema pode ver por padrão, e você pode conceder acesso a outros papéis.
Detalhes
Descrição original do autor
Browse an application's database connections, collections, and fields read-only through the Database Explorer endpoints, and grant access to them.
repo: nocobase/nocobase
Popularidade
- Estrelas no GitHub
- 25 mil
- Posição no ranking
- #10095
- Licença
- —
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
nocobase-app-development
25 milAjuda seu agente a criar páginas, rotas, dados, permissões e testes para uma aplicação de negócios completa no NocoBase 3.
shadcn
25 milAjuda seu agente a encontrar, adicionar, corrigir e estilizar componentes shadcn/ui em um projeto web, usando a documentação oficial e os registros deles.
nocobase-app-plugin-development
25 milAjuda seu agente a criar e manter plugins do NocoBase 3 dentro de um app existente, incluindo as partes de servidor, cliente, banco de dados e registro.
nocobase-app-upgrade
25 milAjuda seu agente a atualizar um app NocoBase para uma versão mais nova do template, trazendo as mudanças do template e mantendo o seu trabalho.
Skills parecidas
discrawl
394 milPermite que seu agente pesquise e resuma um arquivo local salvo de mensagens do Discord, verifique quão atualizado ele está e leia mensagens diretas.
clickhouse-io
280 milAjuda seu agente a otimizar consultas e esquemas no ClickHouse com boas práticas de alta performance. Use quando consultas analíticas forem lentas.
scientific-db-pubmed-database
280 milAjuda seu agente a buscar artigos científicos na área biomédica. É útil para pesquisas que precisam de informações médicas específicas.