/nocobase-dev:nocobase-ai-builderfrom nocobase-dev
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.
Ships in nocobase-dev. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Turn a user's business request into a coherent, production-shaped AI Portal application. Own both product design and source implementation: do not stop at a mechanical CRUD example when the user has not supplied detailed information architecture, page composition, copy, or visual direction.
portalType === "ai".nocobase-portal-manage when available. Do not resolve a different Portal inside this skill.developmentPath / localPath / local source path is empty in nb portal list -j or nb portal info <portal> -j, run nb portal pull <portal> first through the Portal workflow, read the Portal info/list again, then enter the pulled development directory before applying this skill.sourceStorage, git_repo, git_branch, git_path, --git-path, repository subdirectories, and deployment/storage paths identify where Portal source is stored for pull/push/deploy; they are not the local development directory for source edits unless nb portal pull readback explicitly returns the same path as developmentPath / localPath.@nocobase/portal-template-default as the canonical base-template package. Unless the user explicitly narrows the request, upgrading a Portal means safely applying the latest base-template source changes to the user project, together with required @nocobase/portal-sdk and installed Registry migrations; it never means only changing package or compatibility versions.AGENTS.md and applicable local instructions before changing files.Use question-driven, progressive discovery before designing or writing code. Do not build a complete inventory of the repository as a routine prerequisite.
Scope discovery to the current task or milestone. Inspect application source only when it answers a concrete question or supports the current change, and defer unrelated layers until they become relevant.
nb api swagger list/get to read the narrowest relevant document namespace. Never invent backend contracts.Stop exploring once the target location, closest applicable implementation contract, any API contract required by the task, and a suitable verification path are known. Do not recursively read src, registry, or src/extensions merely to gain general confidence. Repository-wide inspection is reserved for an explicit audit, upgrade, migration, or cross-cutting refactor.
When a requested server-backed capability has no reliable existing example, reading Swagger is required before claiming it can be implemented. Locate and fetch the relevant collection or plugin namespace, then confirm the endpoint, method, parameters, request body, response, and documented permission expectations. If the required capability is absent from the available documents, do not guess an API or present the feature as supported; report the missing contract and determine whether a backend or plugin change is required.
When the active milestone edits application structure or UI foundations, read Project Conventions. When it implements data, authentication, i18n, runtime configuration, or assets, read NocoBase Runtime.
At the start of system design, explicitly ask whether the user wants internationalization. If yes, confirm the primary locale and required additional locales; if the request already specifies them, do not ask again.
Create a compact internal product brief from the user's request:
Keep implementation planning rolling and milestone-sized. For a complete system, outline later milestones briefly and plan the current reversible milestone in detail. Implement and verify it before refining the next milestone, and load specialized skills when their work becomes relevant.
Make reasonable product decisions when details are missing. Ask only when a missing choice materially changes business behavior, data, security, or an irreversible action.
Do not derive the whole product from a Users or CRUD example. Adapt page composition to the business: a workspace should surface work, an overview should surface actionable signals, a detail page should organize related context, and a form should follow the real workflow.
Treat the starter sidebar as a preset reference rather than a fixed application shell. As a product-design optimization, consider the navigation structure that best fits the system—such as top navigation, sidebar navigation, secondary menus, contextual tabs, or a restrained combination. This is guidance, not a requirement to replace the sidebar. Whichever pattern is chosen, keep navigation understandable and ensure its routes, direct access, responsive layout, and interaction remain usable across supported device sizes.
For a complete system, include a dedicated role-and-permission task in the Todo list or implementation plan. Do not bury it under project inspection, routing, or page implementation.
nocobase-acl-manage and treat its explicit Portal entry grant as part of role creation. Verify the role-to-Portal association before continuing.AclPage for a whole page, AclRegion for an independent protected panel, AclField for a field or field group, and CanAccess or ACL-aware built-in action components for controls and record operations. Do not duplicate their checks with local booleans or hard-coded role comparisons.Use nocobase-acl-manage for role, membership, Portal entry, and server ACL changes. Read Routing and Access completely before implementing frontend permissions, and verify at least one allowed and one denied role or permission state.
Design navigation and URL surfaces before implementing page internals:
resource; a route element alone does not create a menu item.resourceAction as Refine path metadata, not as a presentation choice.resourceAction path for each resource create, edit, or show action. When the same surface opens from another list, detail, or workflow host, reuse its business content through an ordinary relative child route owned by that host; do not navigate to the canonical absolute URL and replace the current workflow.Read Routing and Access completely whenever the task adds or changes navigation, routes, dialogs, drawers, subpages, roles, or permissions.
src directories, following the project's current organization. Never create src/extensions/<business-feature> for it.src/extensions for installed Registry extension source and treat src/components/ui as the shadcn foundation. Do not modify either by default.Select stores an enum key or record ID, resolve and render its user-facing label in SelectValue instead of exposing the raw value.query action for charts, KPIs, and grouped aggregation; do not fetch every list record and derive server-scale analytics in the browser.className, and unnecessary rewrites of shadcn defaults.NocoBaseErrorBoundary at region scope for independently recoverable renderers such as charts, AI output, or third-party widgets; do not recreate error-boundary infrastructure in business code.When a real system is being built, remove template presentation from the application surface: hide or unregister demo navigation and routes at the application layer, replace starter branding and copy, and make the first accessible page useful for the target users. Do not delete installed extension source merely to hide a demo entry.
For a new or substantially rebuilt system, populate coherent demo records after the data model and core workflows are working. This is part of the build deliverable, not an optional follow-up.
If the user did not specify a theme, choose a restrained, coherent direction appropriate to the system and continue without blocking. Define theme behavior through application-level semantic tokens and shared layout rules.
If the user wants to choose a theme, direct them to https://www.shadcn.io/theme and accept the selected theme name, Registry URL, or generated installation command. Review the working tree and installer diff, integrate the theme with application branding, and avoid blindly overwriting customized src/components/ui files. A theme supplies visual foundations; it does not replace business-specific information architecture, content, states, or interactions.
After the system's core workflows work without AI, review the finished pages and identify interactions where AI can materially reduce effort or improve decisions. Good candidates include natural-language retrieval, summarization, extraction, classification, drafting, explanation, guided analysis, and multi-step assistance grounded in current page or record context.
For a complete AI Portal system build, implement at least one credible, contextual AI interaction. Evaluation or a list of possible ideas alone does not complete this requirement. Choose the best-supported interaction without asking for another confirmation when it does not materially change business behavior or security.
nathan, dara, lina, and orin even when they are returned by discovery APIs; use a suitable business employee or create a dedicated one.AIPageContextScope, Form filler, or a permission-aware custom frontend Tool—and reuse its context and task contracts.nocobase-ai-employee when employee, model, tool, or prompt configuration is required.Design verification alongside implementation. Add or update the smallest valuable set of automated tests that protects the changed behavior and the system's primary workflows; do not create tests merely to increase coverage or test count.
Use frontend tests for pure logic and local component interaction that can run without backend data, authentication, ACL, or data-provider mocks. Use E2E tests against a real NocoBase environment for authentication, data, roles and permissions, routing integration, files, AI, and complete user journeys. Cover the primary successful workflow and representative high-risk denied, error, or recovery paths.
Run type checking, relevant frontend tests, relevant E2E tests, and the production build. Use focused browser inspection only for exploratory visual or responsive checks that automated assertions cannot reasonably express; it must not replace repeatable acceptance tests.
Read Verification before completing a substantial page or system build.
Treat a Portal upgrade as a source migration, not a package-only update. Keep the
application's own version independent from the exact inherited base release in
nocobase.defaultTemplateVersion.
Before changing an existing Portal's template, Portal SDK major, or installed Registry source, read Portal Project Upgrades completely. Treat user code as irreplaceable: establish and verify a recovery point first, including a separate backup when the project is not a Git repository. Present the target versions, source impact, conflict strategy, verification, and rollback plan, and obtain explicit user confirmation before editing. Then merge the required base-template source without overwriting application-owned code, update installed Registry items separately, and change compatibility metadata only after the matching source has actually been incorporated and verified.
nocobase-data-modeling when the requested UI requires creating or changing backend collections or fields, then return here for source implementation.nocobase-acl-manage when roles, user-role membership, Portal entry access, or server-side resource policy must change; keep frontend access-control implementation in this skill.nocobase-ai-employee for AI employee discovery, lifecycle, models, tools, or prompt configuration.nocobase-portal-manage for Portal create, source sync, dev lifecycle, push, deploy, or destroy operations.This map is just-in-time guidance, not a preflight reading checklist. Load only the reference required by the active milestone; do not read references for future milestones.
| Reference | Read when |
|---|---|
| Project Conventions | Changing structure, branding, theme, shared UI, extension use, or starter content |
| NocoBase Runtime | Using data, API actions, auth, i18n, system settings, basename, or assets |
| Routing and Access | Adding navigation, URL surfaces, roles, ACL, or protected controls |
| Verification | Validating a page, feature, theme, or complete system |
| Portal Project Upgrades | Upgrading an existing Portal template, Portal SDK major, or installed Registry source |
Report:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub agents-store/claude-plugins --plugin nocobase-dev25 skills in this plugin
/api-referenceReference-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./authUse 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-recipesUse 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./examplesUse 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-manageNocoBase 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-employeeNocoBase 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.