/nocobase-dev:nocobase-ai-knowledge-base-manager [action: preflight|inspect|create|update|upload|revectorize|test|prepare-binding|delete] [target: capability|vector-db|knowledge-base|document|employee] [mode?: direct-cli|ui] [env?: name]from nocobase-dev
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.
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.
Provide an edition-aware, capability-first workflow for NocoBase AI knowledge bases. State the Professional Edition or higher requirement before work, prove entitlement/plugin/runtime capability without guessing the edition, offer to enable an installed-disabled required plugin and do so after explicit user consent through plugin management, then safely manage vector databases, knowledge bases, documents, retrieval tests, and employee-binding inputs.
@nocobase/plugin-ai-knowledge-base is a commercial plugin with minimum edition level Professional; Enterprise is also supported, while Community and Standard are not.@nocobase/plugin-ai must be enabled before the knowledge-base plugin can operate.nocobase-ai-manager only after this skill's capability preflight passes and the selected KB type needs LLM/embedding prerequisites.nocobase-ai-employee owns the final employee record write after this skill prepares and verifies binding inputs.nocobase-plugin-manage, verify post-state, refresh runtime metadata, and continue preflight.LOCAL, READONLY, and EXTERNAL knowledge bases.kb command, missing license key, nb env info, or nb license status.nocobase-plugin-manage; do not merely tell the user to run the command when that workflow is available.nocobase-ai-manager after capability preflight.nocobase-ai-employee for the final binding/unbinding update.| Input | Required | Default | Validation | Clarification Question |
|---|---|---|---|---|
action | yes | preflight for a KB-intent request, otherwise inspect | one of preflight/inspect/create/update/upload/revectorize/test/prepare-binding/delete | "Which knowledge-base action should I perform?" |
target | mutation: yes | capability for preflight | one of capability/vector-db/knowledge-base/document/employee | "Which resource type should I manage?" |
env | no | current env from nb env list | configured, reachable, authenticated | "Which NocoBase CLI environment should I target?" |
identifier | update/upload/revectorize/test/prepare-binding/delete: yes | none | exact vector key, KB key/id, document id, or employee username | "What is the exact target identifier?" |
knowledgeBaseType | create: yes | recommend LOCAL; never mutate on recommendation alone | one of LOCAL/READONLY/EXTERNAL | "Should NocoBase manage documents (Local), read external PGVector data (Readonly), or use an external provider?" |
configurationMode | vector-db create/update: yes | none; never choose implicitly | one of direct-cli/ui | "Should this vector database connection use direct CLI parameters or the NocoBase UI flow?" |
payload | direct-CLI create/update or test/prepare-binding: yes | documented product defaults only when user accepts them | type-specific allowed fields and ranges | "Which vector, KB, retrieval, or binding values should be used?" |
file | upload: yes | none | readable supported file or ZIP; KB must be LOCAL | "Which file should be uploaded to which Local knowledge base?" |
pluginEnableConsent | required when a required plugin is installed-disabled | none; never assume consent | explicit approval for exact package name(s) and environment | "The required plugin is installed but disabled in <env>. Should I enable <package> now and continue the knowledge-base preflight?" |
confirmation | high-risk action: yes | none | fresh exact-target confirmation after impact is shown | "Confirm this exact destructive or dependency-changing operation?" |
Rules:
LOCAL for normal managed-document use; do not create or mutate.direct-cli or ui choice; do not choose for the user.ui, use the AI manager's documented UI-mode workflow, stop for user completion, and independently verify safe vector database fields before continuing.destroy.2.3.@nocobase/plugin-ai in the same request only when it is also installed-disabled and required.nocobase-plugin-manage in safe mode, require plugin-list readback, refresh the environment, and re-run KB API/ACL checks. If consent is declined or enablement fails, stop before KB mutation.configurationMode. For ui, hand off to nocobase-ai-manager only after KB capability passes; for direct-cli, continue in this skill.skipTableExistedCheck=true, require the server's TABLE_ALREADY_EXISTS response plus explicit table-reuse confirmation.@nocobase/plugin-ai-knowledge-base requires NocoBase Professional Edition or higher.kb help, and a safe read.@nocobase/plugin-ai-knowledge-base or its base @nocobase/plugin-ai dependency is installed but disabled, show the exact package name(s) and environment and ask whether to enable them. If approved, invoke nocobase-plugin-manage with action=enable, verify enabled post-state, run runtime refresh, and continue preflight. If declined or failed, stop without KB mutation; do not send the user away to run the enable command manually.LOCAL for normal managed documents; use READONLY only for externally maintained PGVector data and EXTERNAL only when a provider exists.LOCAL/READONLY, run nocobase-ai-manager and consume an enabled service, chat-only saved model configuration, and separately discovered embedding model. For LOCAL, also resolve file storage.direct-cli or ui choice. In ui mode, hand off to nocobase-ai-manager after capability passes, stop for user completion, and consume its independent safe-field readback. In direct-cli mode, follow vector database workflow: provider discovery, protected connection test, create/update, table-reuse guard, dependency impact, and safe readback.vectorization only for an independently requested retry/rebuild. Run hit test only when explicitly requested; neither is an automatic upload follow-up.nocobase-ai-employee.| Reference | Use When | Notes |
|---|---|---|
| Edition and capability preflight | Any request involves KB resources, documents, retrieval, or binding. | Professional+ disclosure, evidence hierarchy, states, and stop/continue matrix. |
| Command map | Selecting license, plugin, runtime, KB, storage, document, or handoff commands. | Includes excluded surface. |
| Vector databases | Testing or changing PGVector configuration. | Secrets, table validation/reuse, dependencies, readback. |
| Knowledge bases and documents | Selecting KB type, creating/updating KBs, uploading, retrying, testing, or deleting. | Immutable fields, file constraints, background semantics, and defaults. |
| AI employee binding | Preparing a binding or unbinding request. | Final employee write is delegated to the AI employee skill. |
High-impact actions are the high-risk actions listed below:
vectorStoreProps[].value;Secondary confirmation template:
<action> on <resource identifier> in <env>. Expected impact: <table/data/retrieval/employee dependency impact>. Type confirm to continue."Rollback guidance:
nocobase-plugin-manage; post-state showed enabled before runtime/API/ACL checks resumed.@nocobase/plugin-ai and KB plugin runtime capability were verified before mutation.enabledModels contains chat models only; embedding is separate.chunkOverlap < chunkSize.direct-cli or ui choice; UI mode paused for user completion and passed independent safe-field readback.TABLE_ALREADY_EXISTS and explicit confirmation.Final response must include:
direct-cli or ui mode and UI completion/readback when applicable;agents/openai.yaml (opens in a new tab)references/ai-employee-binding.md (opens in a new tab)references/command-map.md (opens in a new tab)references/edition-and-capability.md (opens in a new tab)references/knowledge-bases-and-documents.md (opens in a new tab)references/vector-databases.md (opens in a new tab)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./