Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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`…

nocobaseот nocobase★ 54 звезды на GitHub6 установок в других каталогах

Об этом скилле

Goal

Manage NocoBase workflows end to end through nb api workflow.

  1. Require an authenticated nb CLI.
  2. Run -h once before first using a subcommand in the current task.
  3. Use only workflow-specific CLI interfaces; do not substitute generic CRUD or source edits.

Scope

  • Inspect, create, update, version, copy, enable, and diagnose workflows.
  • Configure triggers and sequential node chains.
  • Move, duplicate, test, or delete nodes and branches.
  • Inspect executions and failed jobs.
  • Author workflow-bound approval surfaces through flowSurfaces.

Non-Goals

  • nb installation or authentication setup.
  • Data-model design; use nocobase-data-modeling.
  • Ordinary pages, tabs, popups, or routes; use nocobase-ui-builder.
  • Whole-workflow deletion.
  • Approval schema wiring.
  • Invented types, fields, keys, filters, or evaluator functions.

Input Contract

Environment and Tooling

  • Stop on authentication or authorization errors.
  • For expression, load the matching formula.js or math.js reference; never invent functions.

Filter Authoring Gate

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.

  1. Read the target collection's field metadata and resolve the terminal field's frontend interface/type.
  2. Select the operator only from that field group's documented allowlist.
  3. For date fields, map “before/less than” to $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.
  4. Keep the configuration's documented filter shape and verify the final field/operator pairs before mutation.

Commercial Plugin Capability Gate

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.

Mandatory Clarification Gate

  • Ask only about unresolved create-time, destructive, high-risk, or owner choices; at most two rounds and three questions per round.
  • Proceed when later-editable details are at least 70% certain; verify them after mutation.
  • Require a unique target and exact intended end state before mutation.
  • Do not ask which copy mode the user means; infer it through the following gate and state the chosen outcome before mutation.

Workflow Update and Copy Intent 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>
  • Same-workflow mode requires the exact top-level control object {"key":"..."}. Never nest it in $and/$or, put it in the body, or use an empty filter.
  • Omit filter for an independent copy.
  • Read back before further mutation: revision means new id and unchanged key; independent copy means both differ.
  • The CLI sends filter as one JSON query object; the repository switches mode only on direct filter.key.

Collection Resolution Gate

For any required but unclear `colle

Полный SKILL.md на GitHub

Установить nocobase-workflow-manage в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

shell
Read(local skill references only)
nb(workflows:list|get|create|update|revision|execute, workflows/<workflowId>/nodes:create, flow_nodes:get|update|destroy|destroyBranch|move|duplicate|test, executions:list|get, jobs:get, flowSurfaces:get|catalog|applyApprovalBlueprint|addBlock|addField|addAction|compose|configure|setLayout)

Вложенные файлы

references/approval/audience.mdreferences/approval/index.mdreferences/approval/initiator-interface.mdreferences/approval/notifications.mdreferences/approval/ui-config/blueprint.mdreferences/approval/ui-config/incremental.mdreferences/approval/ui-config/index.mdreferences/approval/ui-config/primitives.mdreferences/approval/ui-config/recipes.mdreferences/approval/ui-config/surfaces.mdreferences/approval/ui-config/verification.mdreferences/approval/uid-config.mdreferences/cli/executions.mdreferences/cli/flow_nodes.mdreferences/cli/index.mdreferences/cli/jobs.mdreferences/cli/workflows.mdreferences/commercial-plugin-gate.mdreferences/conventions/index.mdreferences/http-api/executions.mdreferences/http-api/flow_nodes.mdreferences/http-api/index.mdreferences/http-api/jobs.mdreferences/http-api/workflows.mdreferences/modeling/executions.mdreferences/modeling/flow_nodes.mdreferences/modeling/index.mdreferences/modeling/jobs.mdreferences/modeling/workflows.mdreferences/nodes/aggregate.mdreferences/nodes/ai-employee.mdreferences/nodes/approval.mdreferences/nodes/calculation.mdreferences/nodes/cc.mdreferences/nodes/condition.mdreferences/nodes/create.mdreferences/nodes/delay.mdreferences/nodes/destroy.mdreferences/nodes/end.mdreferences/nodes/index.md

FAQ

Что делает скилл 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.

Как установить скилл nocobase-workflow-manage?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл nocobase-workflow-manage запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить nocobase-workflow-manage с