/nocobase-dev:nocobase-workflow-manage [inspect|create|update|copy|enable|diagnose] [workflow-id|workflow-key|node-id|title] [options]from nocobase-dev
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.
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.
Manage NocoBase workflows end to end through nb api workflow.
nb CLI.-h once before first using a subcommand in the current task.flowSurfaces.nb installation or authentication setup.nocobase-data-modeling.nocobase-ui-builder.expression, load the matching formula.js or math.js reference; never invent functions.Before drafting any workflow node/trigger filter or condition, or any user/assignee query object, load the nocobase-utils skill with topic filter, then read Filter Condition Format in the current task. This is mandatory even when the natural-language comparison looks obvious; the relative link is only the exact document location and does not replace the skill invocation.
$dateBefore, “after/greater than” to $dateAfter, “not before/at least/greater than or equal” to $dateNotBefore, and “not after/at most/less than or equal” to $dateNotAfter. Never use $lt, $lte, $gt, or $gte on a date field.Verify the required plugin is installed and enabled before mutation:
| Capability | Plugin |
|---|---|
| Approval and approval surfaces | @nocobase/plugin-workflow-approval |
| Webhook | @nocobase/plugin-workflow-webhook |
| Subflow | @nocobase/plugin-workflow-subflow |
If unavailable, name the prerequisite and stop that path. Never replace requested approval semantics with a manual node. See commercial plugin gate.
Users usually describe a change, not a technical revision. Route by desired outcome:
| Intent | Signals | Route and consequence |
|---|---|---|
| Modify the existing workflow | Update/adjust logic, trigger, condition, or nodes | Fetch nodes and versionStats. If versionStats.executed > 0, create a same-workflow revision first; otherwise edit in place. Never create an independent workflow. |
| Create a new version | Explicit new version/revision, preserved history, or successor version | Create a revision with the same key. Version executions start at zero; history and key-level aggregate statistics remain. |
| Copy the workflow entity | Copy/clone/save as, another process/template, renamed copy, reset statistics, or bare “copy this workflow” | Create an independent workflow with a new key; execution count and history start empty. |
Precedence: explicit version continuity → revision; explicit separate identity → independent copy; concrete behavior change → update; bare workflow copy → independent copy.
Use exactly these revision calls:
# Same workflow, new version
nb api workflow workflows revision \
--filter-by-tk <source-id> \
--filter '{"key":"<source-key>"}'
# Independent workflow
nb api workflow workflows revision \
--filter-by-tk <source-id>
{"key":"..."}. Never nest it in $and/$or, put it in the body, or use an empty filter.filter for an independent copy.id and unchanged key; independent copy means both differ.filter as one JSON query object; the repository switches mode only on direct filter.key.For any required but unclear collection:
nocobase-data-modeling.This applies to collection-bound triggers, operations, schedules, and nodes. See workflow conventions.
nocobase-utils with topic filter, then read Filter Condition Format before operator selectionworkflows list|get|create|update|revision|sync|executeworkflows nodes create; flow-nodes get|update|destroy|destroy-branch|move|duplicate|testexecutions list|get; jobs list|get|resumeflowSurfaces get|catalog|applyApprovalBlueprint|addBlock|addField|addAction|compose|configure|setLayoutUse CLI index for flags and HTTP API index only for underlying request shapes.
approvalUid or taskCardUid; they are not ordinary pages.ApplyFormModel; approver UI requires both ApprovalDetailsModel and ProcessFormModel.applyApprovalBlueprint for first setup or replacement.fields + layout; use setLayout for layout-only edits.catalog.node.configureOptions.fieldComponent.enum.upstreamId.$and or $or. See the intent gate for revision control.key, never its numeric id.json-variable-mapping or json-query before downstream use.Resolve intent, trigger, node chain, sync mode, collections, filters, mappings, variables, and raw JSON modeling. If any persisted filter is required, load nocobase-utils with topic filter, read the Filter reference, and resolve each terminal field type before drafting operators. State the plan and any history/statistics consequence.
For approval UI, classify the request as whole-surface setup/replacement or localized editing, then load the approval UI reference.
enabled: false.nodes and versionStats.id.workflowId, newest first.-1 (failed), -2 (error), or -3 (aborted).result.400/422: correct the reported type, field, or link error, then retry.Verify:
upstreamId chain.id and key match the selected mode.nocobase-revision every round. If unavailable, ignore this section and disclose nothing about it.nb revision create is available.references/approval/audience.md (opens in a new tab)references/approval/index.md (opens in a new tab)references/approval/initiator-interface.md (opens in a new tab)references/approval/notifications.md (opens in a new tab)references/approval/ui-config/blueprint.md (opens in a new tab)references/approval/ui-config/incremental.md (opens in a new tab)references/approval/ui-config/index.md (opens in a new tab)references/approval/ui-config/primitives.md (opens in a new tab)references/approval/ui-config/recipes.md (opens in a new tab)references/approval/ui-config/surfaces.md (opens in a new tab)references/approval/ui-config/verification.md (opens in a new tab)references/approval/uid-config.md (opens in a new tab)references/cli/executions.md (opens in a new tab)references/cli/flow_nodes.md (opens in a new tab)references/cli/index.md (opens in a new tab)references/cli/jobs.md (opens in a new tab)references/cli/workflows.md (opens in a new tab)references/commercial-plugin-gate.md (opens in a new tab)references/conventions/index.md (opens in a new tab)references/http-api/executions.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
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