/nocobase-dev:nocobase-ai-employee [action: decide|inspect|create|update|delete|verify|place] [employee?: username] [env?: name]from nocobase-dev
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.
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.
Configure the right AI employee for a NocoBase business surface and own its supported lifecycle safely. Decide whether the requirement should use built-in UI actions, JS actions, workflows, or an AI employee; then reuse, create, maintain, verify, and hand off the final UI placement to nocobase-ui-builder.
nocobase-ui-builder.nocobase-ai-manager.nocobase-ai-knowledge-base-manager.nocobase-ui-builder.nocobase-ui-builder for Modern page/block/action authoring and AI employee action placement.nocobase-data-modeling when the requirement needs new collections, fields, or relations before the AI action can work.nocobase-workflow-manage when the AI employee should call or trigger a workflow tool, or when the task is mostly deterministic backend automation.nocobase-ai-manager before creating or changing dedicated modelSettings.nocobase-ai-knowledge-base-manager when a request requires knowledge-base capability, resources, or binding preparation.| Input | Required | Default | Validation | Clarification Question |
|---|---|---|---|---|
action | yes | decide | one of decide/inspect/create/update/delete/verify/place | "Which AI employee action should I perform?" |
env | no | current environment from nb env list | configured, reachable, authenticated | "Which NocoBase environment should I target?" |
username | record mutation: yes; decision/inspect: optional | none | exact stable username, uniquely resolved | "What is the exact employee username?" |
targetSurface | placement: yes | none | exact page/block/action context | "Which UI surface should expose the employee?" |
changes | create/update: yes | preserve unmentioned values | supported writable fields or a verified specialist handoff | "Which employee fields should change?" |
confirmation | high-risk action: yes | none | fresh exact-target confirmation after impact is shown | "Confirm this exact availability, model, identity, or delete change?" |
Rules:
2; max questions per round: 3.nocobase-ai-manager.Classify the user request before writing anything:
| Need | Prefer |
|---|---|
| Fixed CRUD, navigation, visibility, filters, field assignment, or simple button behavior | Built-in UI action / reaction through nocobase-ui-builder |
| Deterministic client-side calculation, formatting, validation, or data transform | JS action / JS surface through nocobase-ui-builder |
| Deterministic multi-step server automation, approval, notification, scheduled work | Workflow through nocobase-workflow-manage |
| Natural-language interpretation, ambiguous intent, extraction from messy text, summarization, classification, drafting, recommendations, data insight narrative, tool choice, or model judgment | AI employee action |
Only choose AI employee when model judgment materially reduces ambiguity or gives the user a natural-language task surface. Do not use AI employee as a substitute for ordinary deterministic UI configuration.
Decompose the request
nocobase-ui-builder inspection routes first.Decide if AI employee is appropriate
Discover existing AI employees
aiEmployees:listByUser.enabled=true, deprecated=false, role-visible rows with category!="developer". Reject known developer usernames nathan, dara, lina, and orin even when category metadata is missing or stale.modelSettings.references/ai-employee-api.md only when you need concrete resource names, fields, or payload shapes.Reuse or create
bio human-facing and put operational behavior in about.avatar set to a supported avatar seed before calling aiEmployees:create.avatar is missing, empty, null, or unsupported, set it to the default supported seed nocobase-015-male.nb api ai employees, follow Employee Record Management; that narrower safe-field contract governs the record write.Bind the employee to the block
category="developer" employee or known developer username. Developer employees belong only to their dedicated NocoBase builder/editor surfaces; do not add, expose, or select them for user-facing Portal interactions.nocobase-ui-builder and its AI employee action reference.type: "aiEmployee" with settings.username, settings.auto, settings.workContext, settings.tasks, settings.style.props, stepParams, flowModels, or database rows.workContext: [{ "type": "flow-model", "target": "self" }].Verify
nocobase-ui-builder when a write occurred.aiEmployees:listByUser for the intended role, and verify its avatar is non-empty and still one of the supported avatar seeds. Explain any role/ACL follow-up if it is not visible.Prefer business built-ins when they fit:
atlas: route a broad request to other employees or coordinate sub-agents.dex: extract, clean, structure, or fill forms from messy text.viz: analyze data and produce insights or reports.ellis: understand, summarize, and draft email replies.lexi: translation and localization for business users.Never use a developer employee in a business or AI Portal surface. This includes any employee with category="developer" and the known usernames nathan, dara, lina, and orin. Create a dedicated business employee when the task needs domain-specific behavior, a constrained model set, dedicated custom workflow tools, or a role/persona that should be exposed to business users.
avatar is a preset seed string, not an uploaded file object or external image URL.nocobase-015-male.aiEmployees:create payload must include avatar.avatar against the supported seeds below. Replace missing, empty, null, or unsupported values with nocobase-015-male.aiEmployees:list or aiEmployees:listByUser and verify avatar is present.Supported avatar seeds:
nocobase-001-male
nocobase-002-male
nocobase-003-female
nocobase-004-male
nocobase-005-female
nocobase-006-male
nocobase-007-male
nocobase-008-female
nocobase-009-female
nocobase-010-male
nocobase-011-male
nocobase-012-male
nocobase-013-female
nocobase-014-female
nocobase-015-male
nocobase-016-female
nocobase-017-female
nocobase-018-female
nocobase-019-female
nocobase-020-female
nocobase-021-male
nocobase-022-male
nocobase-023-female
nocobase-024-male
nocobase-025-male
nocobase-026-male
nocobase-027-female
nocobase-028-male
nocobase-029-male
nocobase-030-male
nocobase-031-female
nocobase-032-male
nocobase-033-male
nocobase-034-female
nocobase-035-male
nocobase-036-female
nocobase-037-male
nocobase-038-female
nocobase-039-female
nocobase-040-female
nocobase-041-male
nocobase-042-male
nocobase-043-male
nocobase-044-male
nocobase-045-female
nocobase-046-female
nocobase-047-male
nocobase-048-female
nocobase-049-male
nocobase-050-female
nocobase-051-female
nocobase-052-female
nocobase-053-male
nocobase-054-female
nocobase-055-male
nocobase-056-female
nocobase-057-female
nocobase-058-female
nocobase-059-male
nocobase-060-female
Use this internal template before placement:
{
"intent": "what the user wants",
"targetSurface": "page/block/action slot",
"decision": "builtin|js|workflow|ai-employee",
"employee": {
"mode": "reuse|create",
"username": "candidate-or-new-username",
"role": "short business role",
"reason": "why this employee fits"
},
"aiAction": {
"auto": false,
"autoSend": false,
"context": "self|named block|record",
"taskTitle": "short button/task title",
"systemMessage": "stable operational constraints",
"userMessage": "what the employee should do with the block context",
"webSearch": false
}
}
[!IMPORTANT] The former
nocobase-ai-employee-managerskill has been removed and deprecated. All supported employee record operations now usenocobase-ai-employee.
This chapter supplements—but does not replace—the decision, employee matching, avatar, action-contract, and UI-placement workflow above. Keep operational details in the bundled references rather than expanding this main file.
nb api ai employees, read employee-command-map.md, employee-record-fields.md, and employee-record-workflows.md.username; prove absence before create and never mutate identity after creation.nocobase-ai-manager only when dedicated modelSettings are created or changed.nocobase-ai-knowledge-base-manager for capability, resource, and binding preparation; this skill applies only the verified employee-field handoff and does not duplicate KB rules.| Reference | Use When | Notes |
|---|---|---|
| AI employee API | Selecting employees or using confirmed resource actions outside the narrow CLI record surface. | Core fields, prompt semantics, and creation guidance. |
| Block action payload | Preparing a Modern UI AI employee action. | Public action shape and placement handoff. |
| Examples | Classifying AI versus deterministic behavior or drafting task text. | Reusable decisions and payloads. |
| Employee command map | Inspecting or mutating records through nb api ai employees. | Supported CRUD, prerequisites, and exclusions. |
| Employee record fields | Building employee record payloads. | Writable fields, defaults, and protected fields. |
| Employee record workflows | Creating, updating, disabling, deleting, verifying, or rolling back. | Idempotency and safety sequence. |
High-impact actions include changing identity, disabling a business employee, changing dedicated model settings, and deleting a custom employee. Never write protected internal fields or delete a built-in employee.
Secondary confirmation template:
<action> on AI employee <username> in <env>. Expected impact: <availability/model/identity impact>. Type confirm to continue."Rollback guidance lives in employee-record-workflows.md. Never auto-delete a new employee after verification failure, and treat timeout/5xx write state as unknown until readback.
Final responses must identify the environment, action, exact username, safe commands executed, defaults applied, prerequisite or specialist handoffs used, readback evidence, confirmations, rollback limits, partial success, and remaining UI work.
nb api ai employees commands and exclusions.agents/openai.yaml (opens in a new tab)references/ai-employee-api.md (opens in a new tab)references/block-action-payload.md (opens in a new tab)references/employee-command-map.md (opens in a new tab)references/employee-record-fields.md (opens in a new tab)references/employee-record-workflows.md (opens in a new tab)references/examples.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
25 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./npx claudepluginhub agents-store/claude-plugins --plugin nocobase-dev