Skip to content
agents.store
devdevelopment

nocobase-dev

NocoBase v2 development plugin. CLI primary (nb CLI 2.2, stable channel) + REST API fallback (bundled OpenAPI snapshot v2.1.0-beta.29, 272 endpoints). Auto-syncs 20 official upstream skills from nocobase/skills weekly via GitHub Action; UI authoring enters through nocobase-portal-manage. 5 custom skills (overview, auth, cli-recipes, api-reference, examples). Env vars: NB_URL + NB_USER + NB_PASSWORD (sign-in) or NB_URL + NB_TOKEN (API Key).

v2.2.3Updated

  • nocobase
  • nocobase-v2
  • no-code
  • low-code
  • rest-api
  • openapi
  • cli
  • nb-cli
  • collections
  • workflows
  • ui-builder
  • acl
  • plugins
  • data-modeling
  • publish
  • upstream-sync
  • dev
  • agents-store

Install

Pick your agent for the steps.

Install on Claude Code

  1. 1.Add the marketplace

    /plugin marketplace add Agents-Store/claude-plugins
  2. 2.Install the plugin

    /plugin install nocobase-dev@agents-store-claude-plugins

    Type it inside Claude Code.

Claude Code install docs

What is inside

Skills (25)

  • api-reference

    Reference-only skill (loaded on demand) that maps the NocoBase v2 REST API surface — base URL, authentication, action-style endpoint convention, and pointers into the bundled OpenAPI 3.0.3 specification. Loaded by the model when it needs an exact endpoint path or schema; not auto-triggered.

  • auth

    Use when the user wants to authenticate to a NocoBase v2 instance, asks "how do I get a token for NocoBase", "how do I log in via API or CLI", "how do I connect an agent or MCP client", "why is my request returning 401 from NocoBase", or needs working curl/Node samples that send the bearer token. Covers the CLI path (`nb env add` / `nb env auth`), the upstream login flow (NB_USER + NB_PASSWORD → auth:signIn → token), the long-lived API Key path, OAuth through the IdP: OAuth plugin, and the separate Auth: OIDC SSO plugin.

  • cli-recipes

    Use when the user asks how to install or run NocoBase from the terminal — "install nb CLI", "how do I bootstrap NocoBase", "run nb commands", "start/stop/upgrade NocoBase", "add an environment", "backup NocoBase", "enable a plugin". Provides the install one-liner (`@nocobase/cli`, stable channel), the env, lifecycle, plugin and backup recipes in their `nb` 2.2 canonical forms, and a routing table that hands deeper tasks to the upstream `nocobase-env-manage`, `nocobase-plugin-manage`, and `nocobase-publish-manage` skills.

  • examples

    Use when the user asks for an end-to-end example, walkthrough, or sample of doing something in NocoBase v2 — "show me how to", "walk me through", "give me a complete example", "sample script for NocoBase". Indexes worked scenarios that mix REST API and `nb` CLI calls.

  • nocobase-acl-manage

    NocoBase 2 only; never use in a NocoBase 3 project. Task-driven ACL governance through nb CLI for role lifecycle, global role mode, permission policy, Portal entry access, user-role membership, and risk assessment. Use when users describe business permission outcomes instead of raw command arguments, including which roles may enter a Portal.

  • nocobase-ai-builder

    NocoBase 2 only; never use in a NocoBase 3 project. Design, build, and verify source-code applications in NocoBase AI Portals based on @nocobase/portal-template-default. This skill is mandatory whenever the selected Portal has portalType "ai". Use it for complete systems, pages, navigation, CRUD, dashboards, forms, dialogs, drawers, URL-addressable subpages, authentication UI, frontend access control, localization, themes, NocoBase API integration, responsive design, test-driven verification, and safe upgrades of existing Portal template, SDK, and Registry source.

  • nocobase-ai-employee

    NocoBase 2 only; never use in a NocoBase 3 project. Use when a NocoBase task requires AI employee lifecycle work such as discovering existing employees, judging fit, creating or maintaining a dedicated employee, and preparing it before another skill binds it to a UI surface.

  • nocobase-ai-knowledge-base-manager

    NocoBase 2 only; never use in a NocoBase 3 project. Use when users need to check Professional+ knowledge-base capability, consent to enabling an installed-disabled KB plugin, or manage NocoBase vector databases, Local/Readonly/External knowledge bases, documents, retrieval tests, and binding preparation through nb api kb.

  • nocobase-ai-manager

    NocoBase 2 only; never use in a NocoBase 3 project. Use when users need to inspect or maintain NocoBase core AI prerequisites through nb api, including LLM providers, saved services, CLI-versus-UI configuration routing, chat models, embedding discovery, secure credentials, and dependency-safe changes.

  • nocobase-data-analysis

    NocoBase 2 only; never use in a NocoBase 3 project. Query and analyze business data in NocoBase via MCP. Use when users want current counts, grouped breakdowns, owner/source distributions, or business summaries across collections, with main data source first and fallback discovery to other enabled data sources.

  • nocobase-data-modeling

    NocoBase 2 only; never use in a NocoBase 3 project. Create and manage NocoBase data models through the available data-modeling surface. Use when users want to inspect or change collections, fields, relations, or view-backed schemas in a NocoBase app.

  • nocobase-dsl-reconciler

    NocoBase 2 only; never use in a NocoBase 3 project. **Opt-in DSL path** for NocoBase app building. Use ONLY when the user explicitly asks for YAML / DSL / committed-to-git / `cli push` / spec files — e.g. "use the DSL reconciler", "I want YAML I can commit", "build this as a workspaces/ project". For any other UI authoring request (new page, new block, tweak an existing screen), default to `nocobase-ui-builder` instead — this reconciler is still in active development and has rough edges that the live-UI path avoids. When the user opts in: produces/changes files under `workspaces/<project>/`, supports new pages, menus, modules, whole systems, collections, tables, sub-tables, popups, dashboards, approval workflows, recordActions, and deploys them via `cli push`.

  • nocobase-env-manage

    NocoBase 2 only; never use in a NocoBase 3 project. Use when users need NocoBase bootstrap, runtime lifecycle, CLI maintenance, and skills maintenance with nb CLI only.

  • nocobase-file-manager

    NocoBase 2 only; never use in a NocoBase 3 project. Manage NocoBase file storage engines, file collections, their business relations, and file records through nb CLI. Use when the primary task concerns NocoBase file storage configuration, file-model setup, access or retention behavior, or storage/file-record lifecycle.

  • nocobase-notification-manage

    NocoBase 2 only; never use in a NocoBase 3 project. Use when users need to configure, inspect, test, or troubleshoot NocoBase notification management, including in-app message channels, email SMTP channels, workflow notification nodes, and notification send logs.

  • nocobase-plugin-development

    NocoBase 2 only; never use in a NocoBase 3 project. Step-by-step playbook for developing a NocoBase plugin, covering scaffolding, server-side code (collections, APIs, ACL, migrations), client-side code (blocks, fields, actions, settings pages, routes, components), i18n, and verification. TRIGGER when: user asks to create, build, implement, or develop a NocoBase plugin, mentions 'NocoBase plugin', or describes a feature to be built as a NocoBase plugin. This skill contains NocoBase-specific conventions and templates that general coding cannot replicate — always invoke it instead of planning from scratch.

  • nocobase-plugin-manage

    NocoBase 2 only; never use in a NocoBase 3 project. Use when users need to inspect, enable, or disable NocoBase plugins with direct `nb plugin` commands only.

  • nocobase-portal-manage

    NocoBase 2 only; never use in a NocoBase 3 project. PRIMARY ENTRY. Default dispatcher for every NocoBase UI authoring request, including pages, menus, blocks, fields, actions, layouts, reactions, KPI interfaces, dashboards, and charts, even when the user does not mention a Portal. Resolve an enabled Portal from structured `nb portal list -j` output before loading any downstream UI implementation skill: exact `name` when specified; otherwise zero stops, exactly one is automatic, and multiple Portals require explicit selection even when one has `isDefault: true`; show the default marker as informational only. Read the type only from `portalType`; explicitly invoke `nocobase-ui-builder` only for a resolved no-code Portal and require `nocobase-ai-builder` for AI Portal source development. Also use direct `nb portal` commands for explicit Portal lifecycle, source storage, sync, deployment, diagnosis, and destroy tasks.

  • nocobase-prototype-repro

    NocoBase 2 only; never use in a NocoBase 3 project. Use when a task provides a prototype to reproduce — an HTML file, an image, or a link, INCLUDING the published form "Build a NocoBase app — X … Match the layout and signature visuals of this reference prototype: <url>" — or when someone says a built page "doesn't match the prototype / looks monotone / is ugly". A prototype/URL being present is what triggers this skill, EVEN WHEN the same prompt also says "build an app" — the verb "build" does not cancel the prototype. Skip it only when there is NO prototype at all: a bare "build me a CRM/app" → nocobase-app- discipline; a one-field edit / rename → nocobase-ui-builder. It turns "here is the prototype, build it" into a faithful app — analyze prototype, native CRUD, the right native block per region, then a screenshot-vs-prototype visual loop. Native-first; JS only inside a native container; never a full-page JS block. Mechanics live in nocobase-ui-builder, nocobase-data-modeling, nocobase-app-discipline.

  • nocobase-publish-manage

    NocoBase 2 only; never use in a NocoBase 3 project. Use when users need NocoBase backup restore or migration publish operations through nb api backup and nb api migration commands.

  • nocobase-revision

    NocoBase 2 only; never use in a NocoBase 3 project. Use when building a NocoBase app with NocoBase skills or the nb CLI and you want to save a completed, meaningful milestone as a restorable revision.

  • nocobase-ui-builder

    NocoBase 2 only; never use in a NocoBase 3 project. INTERNAL CONTINUATION ONLY. Never select this skill from a raw user UI request. Use it only after nocobase-portal-manage has already resolved exactly one enabled Portal and confirmed portalType=no-code, or has proved the runtime has capabilities.multiPortal === false. Portal count or `isDefault` marker alone never enables this skill. It authors NocoBase Modern UI pages, blocks, menu items, fields, actions, layouts, reactions, and AI employee placements through backend flow-surfaces via nb api. Unresolved UI requests go to nocobase-portal-manage first; a sole AI Portal is handed off automatically for source-code implementation. Hand off AI employee lifecycle work to nocobase-ai-employee and explicit DSL, YAML, git, or cli push workflows to nocobase-dsl-reconciler. It does not handle ACL, data modeling, workflow orchestration, browser reproduction, page error postmortems, Portal lifecycle, AI Portal source-code UI, or non-Modern page navigation.

  • nocobase-utils

    NocoBase 2 only; never use in a NocoBase 3 project. General-purpose NocoBase reference utilities covering filter conditions and field-specific operators, evaluator engines, expression syntax, UID generation, and more. Use when you need authoritative reference information or reusable snippets that apply across multiple NocoBase features.

  • nocobase-workflow-manage

    NocoBase 2 only; never use in a NocoBase 3 project. Use when users need to inspect, create, update, copy, enable, or diagnose NocoBase workflows through `nb`, including version-safe edits, node changes, approval surfaces, and execution troubleshooting.

  • overview

    Use when the user asks anything about NocoBase v2 — "build app on NocoBase v2", "manage NocoBase", "how do I X in NocoBase", "NocoBase API or CLI". Establishes the cardinal rule (REST API or `nb` CLI — pick whichever is convenient) and routes to the right specialist skill among the 20 upstream `nocobase-*` skills and the 4 custom skills in this plugin (UI authoring always enters through `nocobase-portal-manage`).

README

Development plugin for NocoBase v2 — every realistic management and development scenario covered through the nb CLI (primary surface) or the REST API (fallback when CLI is unavailable or inconvenient).

This plugin auto-syncs with nocobase/skills weekly. The 20 upstream skills (prefixed nocobase-* under skills/) are sync-managed — do not edit them by hand. The 5 unprefixed skills (overview, auth, cli-recipes, api-reference, examples) are hand-maintained custom additions: the router, authentication, the nb CLI recipes and the REST-API path. Last sync: upstream 686de87 (v2.0.58, 2026-09-04); command forms were checked against @nocobase/cli 2.2.20.

What's inside

nocobase-dev/
├── .claude-plugin/plugin.json
├── README.md
├── LEARNINGS.md
├── references/
│   └── openapi/
│       └── nocobase.json                # OpenAPI 3.0.3 snapshot, NocoBase v2.1.0-beta.29, 272 endpoints (refresh from a >= 2.2.x stand pending)
└── skills/
    │   # Hand-maintained (no nocobase- prefix):
    ├── overview/                        # cardinal CLI-or-API rule + skill router
    ├── auth/                            # nb env auth, sign-in, API Key bearer, IdP: OAuth, Auth: OIDC
    ├── cli-recipes/                     # nb CLI install + env + lifecycle + recipes
    ├── api-reference/                   # REST API map, points to bundled OpenAPI
    ├── examples/                        # end-to-end scenarios mixing CLI + API
    │
    │   # Sync-managed mirror of nocobase/skills (DO NOT EDIT — auto-overwritten):
    ├── nocobase-portal-manage/          # PRIMARY ENTRY for every UI authoring request (Default dispatcher for NocoBase UI authoring)
    ├── nocobase-ui-builder/             # no-code Portal UI authoring (entered via portal-manage)
    ├── nocobase-ai-builder/             # AI Portal source-code applications
    ├── nocobase-prototype-repro/        # rebuild an app from an HTML/image/link prototype
    ├── nocobase-env-manage/             # bootstrap and lifecycle via nb
    ├── nocobase-data-modeling/          # collections, fields, relations, db views
    ├── nocobase-workflow-manage/        # workflows, nodes, executions
    ├── nocobase-acl-manage/             # roles, permissions, role mode, Portal access
    ├── nocobase-plugin-manage/          # nb plugin list/enable/disable
    ├── nocobase-publish-manage/         # backup/restore + migration
    ├── nocobase-plugin-development/     # write a NocoBase plugin
    ├── nocobase-ai-manager/             # LLM providers, services, models
    ├── nocobase-ai-employee/            # AI employee lifecycle
    ├── nocobase-ai-knowledge-base-manager/  # knowledge bases, vector databases
    ├── nocobase-file-manager/           # storage engines, file collections
    ├── nocobase-notification-manage/    # in-app and email notification channels
    ├── nocobase-revision/               # restorable revisions of a built app
    ├── nocobase-dsl-reconciler/         # opt-in YAML/DSL build path
    ├── nocobase-data-analysis/          # query business data
    └── nocobase-utils/                  # evaluators, expressions, UID, etc.

Cardinal rule

For any NocoBase v2 task, pick the surface that is more convenient — CLI primary, REST API fallback. The overview skill routes the user to the right specialist.

  • CLI (nb …) — best when running on a terminal with an nb env configured: install, lifecycle (nb app …), nb plugin enable, nb backup create|restore, migrations (nb api migration …), declarative nb api ….
  • REST API (/api/…) — best when calling NocoBase from another service, a script, or a workflow runner. Driven by the bundled OpenAPI spec.

Install the CLI

npm install -g @nocobase/cli     # stable channel (`latest`); Node.js >= 22, Yarn 1.x
nb init --ui                     # browser-based first-time setup (install a new app or connect an existing one)
nb app start                     # later runs

Connecting an agent to an existing NocoBase needs NocoBase 2.1.0 or newer. The stable channel is the plugin's default; @nocobase/cli@alpha is only needed for nb portal (Portal lifecycle), which the stable and beta channels do not contain — docs.nocobase.com currently installs @alpha for that reason. Detailed rules in nocobase-env-manage and cli-recipes.

Environment variables

The plugin itself has no .mcp.json and no runtime env vars. With the CLI you do not need any: nb env add / nb env auth store the endpoint and credential (see skills/auth). The variables below are for curl/Node scripts and the nocobase-dsl-reconciler scripts — they match the names used by the upstream nocobase/skills (see nocobase-dsl-reconciler for the canonical reference). Use the same names in your .env so that hand-maintained and upstream skills resolve to one truth.

VariableRequired?PurposeExample
NB_URLalwaysBase URL of the NocoBase instancehttps://app.example.com or http://localhost:14000
NB_USERyes, unless NB_TOKEN setAdmin email created during nb init --uiadmin@example.com
NB_PASSWORDyes, unless NB_TOKEN setAdmin password from nb init --uiadmin123
NB_TOKENoptionalLong-lived bearer token (skips auth:signIn). Created in Settings → API keys (the built-in API keys plugin is enabled by default).eyJhbGciOi…
NOCOBASE_API_TOKENoptionalSynonym for NB_TOKEN — upstream auth helper reads either.—
PG_DSNrarelyDirect Postgres connection — only used by nocobase-dsl-reconciler data-copy scriptspostgres://user:pass@host:5432/nocobase

Two valid setups:

# Setup A — login flow (recommended, matches upstream quick-start)
NB_URL=https://app.example.com
NB_USER=admin@example.com
NB_PASSWORD=<password>

# Setup B — pre-issued token (skips signIn each call)
NB_URL=https://app.example.com
NB_TOKEN=eyJhbGciOi...

Full setup walk-through (CLI envs, curl + Node.js, the auth:signIn flow, OAuth through IdP: OAuth, and the separate Auth: OIDC SSO plugin) in skills/auth/SKILL.md.

MCP

The plugin does not ship an MCP configuration — an endpoint is per instance. NocoBase itself has a built-in MCP server (@nocobase/plugin-mcp-server) at https://<host>:<port>/api/mcp (sub-applications: /api/__app/<app_name>/mcp), authenticated with an API key or OAuth. Add it to your own MCP client; details in skills/overview and skills/auth.

Auto-sync from upstream

A GitHub Action at .github/workflows/sync-nocobase-skills.yml runs every Monday at 06:00 UTC (and on-demand via workflow_dispatch). It:

  1. Clones nocobase/skills at main.
  2. rsyncs only directories matching nocobase-* into plugins/nocobase-dev/skills/.
  3. Opens a PR titled chore(nocobase-dev): sync upstream skills @ <sha> if anything changed.

To trigger manually:

gh workflow run sync-nocobase-skills.yml
# or pin a specific upstream ref / tag:
gh workflow run sync-nocobase-skills.yml -f upstream_ref=v2.0.58

To sync locally without CI:

./scripts/sync-nocobase-skills.sh

The script only ever writes to skills/nocobase-*/; hand-maintained skills are never touched. A sync can bring in text the publication gate rejects (upstream sample paths, test addresses): never edit the synced files — add a value-pinned baseline line to scripts/scrub-allow.txt in a pull request that changes nothing else.

Skill index

SkillSourceTrigger
overviewhand-maintained"How do I do X in NocoBase v2?"
authhand-maintained"Authenticate to NocoBase", "create API key"
cli-recipeshand-maintained"Install nb", "run NocoBase", "nb commands"
api-referencehand-maintained, reference-only(loaded on demand by the model)
exampleshand-maintained"Show me an end-to-end example"
nocobase-portal-manageupstreamany UI authoring request — the primary entry; Portal lifecycle (nb portal, alpha CLI)
nocobase-ui-builderupstreampages, blocks, popups — internal continuation after portal-manage
nocobase-ai-builderupstreamAI Portal source-code applications
nocobase-prototype-reproupstreamrebuild from a prototype (HTML, image, link)
nocobase-env-manageupstreambootstrap, install, lifecycle, CLI and skills maintenance
nocobase-data-modelingupstreamcollections, fields, relations
nocobase-workflow-manageupstreamworkflows, triggers, executions
nocobase-acl-manageupstreamroles, permissions
nocobase-plugin-manageupstreamnb plugin operations
nocobase-publish-manageupstreambackup, restore, migration
nocobase-plugin-developmentupstreamwrite a NocoBase plugin
nocobase-ai-managerupstreamLLM providers, services, models
nocobase-ai-employeeupstreamAI employees
nocobase-ai-knowledge-base-managerupstreamknowledge bases, vector databases
nocobase-file-managerupstreamfile storage, file collections
nocobase-notification-manageupstreamnotification channels and logs
nocobase-revisionupstreamrestorable revisions
nocobase-dsl-reconcilerupstreamYAML-DSL build path (opt-in)
nocobase-data-analysisupstreamquery business data
nocobase-utilsupstreamevaluators, expressions, UID

Sources

Versioning

2.1.0 — re-syncs the vendored skills from upstream (12 → 20 nocobase-* skills, v2.0.58), and rewrites the hand-maintained files for nb 2.2: canonical nb app|env|plugin|backup forms, nb api generated groups, POST /workflows:execute, stable @nocobase/cli channel, Node.js >= 22, IdP: OAuth versus Auth: OIDC, the built-in /api/mcp, and a 20-skill router with nocobase-portal-manage as the UI entry. The bundled OpenAPI is still the 2.1.0-beta.29 snapshot (refresh pending).

2.0.0 — replaces the legacy custom nocobase-dev (v1.5.0); promotes nocobase-2-dev content, refreshes OpenAPI to v2.1.0-beta.29 (272 endpoints, +21 vs prior), adds the upstream auto-sync workflow.