Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计提醒

nocobase-workflow-managenocobase 工作流程管理

Agent Skill

nocobase-workflow-manage 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

5,122

周安装

220

GitHub Stars

23

下载量

1,795
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:nocobase-workflow-manage(nocobase 工作流程管理)
来源仓库:https://github.com/nocobase/skills
仓库路径:skills/nocobase-workflow-manage
安装命令:
npx skills add https://github.com/nocobase/skills --skill nocobase-workflow-manage
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/nocobase/skills --skill nocobase-workflow-manage

简介

nocobase-workflow-manage 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。

  • 适用于需要根据关键词或任务场景从来源线索中筛选信息的场景。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装并使用。
  • 安装前需确认权限范围和维护状态,注意可能触发联网或文件读写操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Goal

Use the nb api workflow command surface to orchestrate workflows end-to-end: design trigger logic, build node chains, manage versions, and inspect execution results.

CLI usage rules:

  1. Use nb api workflow as the canonical command namespace for workflow operations.
  2. If the CLI is available but not authenticated for the target app, stop and guide the user to authenticate the CLI before continuing.
  3. Before using an nb api workflow subcommand you have not used yet in the current task, run its -h once and follow the generated help text for flags and examples.

Scope

  • Handle: inspect workflow definitions, nodes, version state, executions, and failed jobs.
  • Handle: create new workflows for business targets, then configure triggers and nodes sequentially.
  • Handle: update existing workflows by creating a new revision first when the current version is frozen.
  • Handle: enable workflows, move/duplicate/delete nodes or branches, and execute workflows only after explicit high-risk confirmation.
  • Handle: diagnose failed executions and identify the failed job, node, or configuration mismatch.

Non-Goals

  • Do not handle nb installation or login bootstrap in this skill.
  • Do not design data models, collections, or field schemas from scratch. Hand off to nocobase-data-modeling.
  • Do not invent filter syntax, evaluator functions, node types, trigger types, collection names, field names, or node keys.
  • Do not bypass workflow-specific CLI interfaces with generic CRUD or local source edits.
  • Do not delete whole workflows in this skill. If a user explicitly wants workflow deletion, stop and request a separately reviewed path.

Execution Preconditions

Environment and Tooling

  1. nb CLI must be available and authenticated to perform workflow operations.

- Stop and ask the user to fix auth when the CLI returns 401, 403, Auth required, or equivalent access errors.

  1. Before using an nb api workflow command you have not used yet in the current task, run nb api workflow workflows -h, nb api workflow flow-nodes -h, or the matching nb api workflow <topic> <subcommand> -h once and follow the generated help text.
  2. When configuring expression fields in Calculation, Condition, or Multi-condition nodes, consult nocobase-utils for the authoritative function list of each engine. Never fabricate function names — verify against formula.js reference or math.js reference.
  3. Related helper skills: nocobase-data-modeling, nocobase-utils.

- Use nocobase-data-modeling according to the Collection Resolution Gate whenever a workflow trigger or node configuration depends on collection.

Clarification and Mutation Preconditions

  • Max clarification rounds: 2
  • Max questions per round: 3
  • Default execution bias:

- If the intended action path is at least 70% confident and the remaining uncertainty is in fields that can be safely revised after creation, proceed without asking. For example, nodes in editable (or new) workflow could always be updated (or moved/deleted) later, so if the only uncertainty is about node config details, proceed with the best guess and verify after mutation. Even more, newly created workflow will be in enabled: false state by default, so trigger config can be updated and nodes can be added/edited/moved/deleted freely until the user explicitly enables it, which means most uncertainties in a new workflow can be safely resolved after creation without blocking on questions. - Ask the user only when the unresolved choice affects a create-time commitment or another field that should not be guessed, or when the action is destructive/high-risk.

  • Mutation preconditions:

- CLI is reachable and authenticated. - The requested action is confirmed. - The target workflow is uniquely resolved for non-create actions. - For create, the trigger type and initial node chain are confirmed. - For update, delete-node, and delete-branch, the exact target node or branch and intended end state are confirmed. - If the existing workflow version has versionStats.executed > 0, a new revision is created before any node or trigger mutation.

  • Do not guess fields that behave like immutable or hard-to-reverse create-time decisions. Examples include workflow (trigger) type, and collection-bound trigger config.collection such as data collection event triggers.
  • If uncertainty is limited to later-editable details, proceed with the best-supported choice and verify after mutation.
  • If a required create-time commitment or destructive target is still unresolved, stop and report exactly what is missing instead of guessing.

Collection Resolution Gate

When a requested workflow depends on collection and the correct existing collection is not explicit from the user request or current context:

  1. Use nocobase-data-modeling to inspect existing collections first and inspect fields when needed.
  2. Apply this gate to collection triggers and collection-bound operation triggers such as collection, action, request-interception, approval, custom-action with a bound collection, and schedule in collection time-field mode, as well as nodes whose config requires collection.
  3. If an existing collection matches the business requirement with at least 70% confidence, continue with that collection instead of asking the user.
  4. Only ask the user how to proceed when no existing collection reaches that confidence threshold or when the unresolved collection choice is a create-time commitment that should not be guessed. Offer concrete next steps such as letting the user specify the collection, create it manually, or hand off collection creation to nocobase-data-modeling.

Final Command Surface

Use only this final workflow operation surface. Discover exact flags from -h instead of keeping large command-shape reminders in context:

  • Inspect workflows: nb api workflow workflows list
  • Inspect one workflow (with nodes and version stats): nb api workflow workflows get
  • Create a workflow: nb api workflow workflows create
  • Update a workflow: nb api workflow workflows update
  • Delete workflows: nb api workflow workflows destroy
  • Create a new revision: nb api workflow workflows revision
  • Re-register triggers: nb api workflow workflows sync
  • Execute a workflow manually: nb api workflow workflows execute
  • Create a node under a workflow: nb api workflow workflows nodes create
  • Inspect one node: nb api workflow flow-nodes get
  • Update a node configuration: nb api workflow flow-nodes update
  • Delete a node: nb api workflow flow-nodes destroy
  • Delete a branch: nb api workflow flow-nodes destroy-branch
  • Move a node: nb api workflow flow-nodes move
  • Duplicate a node: nb api workflow flow-nodes duplicate
  • Test a node: nb api workflow flow-nodes test
  • List executions: nb api workflow executions list
  • Inspect one execution (with jobs): nb api workflow executions get
  • Inspect a node job: nb api workflow jobs get
  • List node jobs: nb api workflow jobs list
  • Resume a waiting job: nb api workflow jobs resume

Prefer learning exact flags from help:

nb api workflow -h
nb api workflow workflows -h
nb api workflow workflows list -h
nb api workflow workflows create -h
nb api workflow workflows nodes create -h
nb api workflow flow-nodes -h
nb api workflow executions -h
nb api workflow jobs -h

Use Workflow CLI index as the stable CLI family map and parameter guide.

Consult Workflow HTTP API index only when you need the exact underlying endpoint and parameter shapes.

Hard Rules

  1. Never create a workflow with enabled: true — always create with enabled: false, complete all trigger and node configuration, then enable.
  2. Never edit a frozen version directly — if versionStats.executed > 0, create a new revision first via nb api workflow workflows revision. The filter parameter must include {"key":"<key>"} (the workflow's key) to ensure the new version belongs to the same workflow; omitting key will create an independent copy instead. Use the returned new id for all subsequent operations; discard the old id.
  3. Never omit the target identifier on destructive or mutating calls — pass a concrete --filter-by-tk or a reviewed non-empty --filter before calling update, destroy, revision, move, duplicate, or branch-deletion APIs.
  4. Always chain nodes via upstreamId — every node (except the first) must reference its upstream node. Do not skip or leave upstreamId unset.
  5. Never create nodes concurrently — node creation calls must be executed one at a time, sequentially. Wait for the previous node to be fully created before creating the next one, because the server adjusts internal link relationships during each creation. Batch/parallel node creation is not supported.
  6. Always wrap filter in $and or $or — the root of any filter object must be a condition group. Full operator reference: nocobase-utils / Filter Condition Format.
  7. Always reference node results by key, not id — use {{$jobsMapByNodeKey.<nodeKey>.<path>}} where nodeKey is the node's key property (a short random string). Never use the numeric id, never invent a key — always read the actual key from the node record after creating it. See Common Conventions - Variable Expressions.
  8. Always verify after mutation — after creating, updating, or deleting a workflow or node, read back the result to confirm the change took effect.
  9. Do not auto-enable without user confirmation — always ask the user before setting enabled: true.
  10. Resolve collection names by inspection, not guesswork — follow the Collection Resolution Gate for any collection-bound trigger or node config that requires collection.

Orchestration Process

Planning Phase

Before making any CLI calls, clarify with the user:

  1. Trigger type — what event starts the workflow? → see Trigger Reference
  2. Node chain — what processing steps are needed? → see Node Reference
  3. Execution mode — synchronous or async? See workflow execution mode
  4. Key parameters — collection names, filter conditions, field mappings, variable expressions

If the workflow still depends on an unresolved collection after this clarification, follow the Collection Resolution Gate before asking the user to decide.

Summarize the complete plan in natural language and confirm with the user before making any CLI calls.

Then map the requested action to the corresponding operation in the Final Command Surface to understand which calls will be needed. Consult Endpoint Reference only when the underlying API shape itself matters.

Creating a New Workflow

  1. Resolve collection dependencies first — follow the Collection Resolution Gate before creating the workflow whenever any trigger or node config still has an unresolved collection.
  2. Create workflownb api workflow workflows create with type, title, sync, enabled: false
  3. Configure triggernb api workflow workflows update with config
  4. Add nodes in ordernb api workflow workflows nodes create for each node, chaining via upstreamId; wait for each node to be fully created before creating the next
  5. Configure each nodenb api workflow flow-nodes update with config
  6. Verify — read back the workflow with nodes to confirm trigger config, node count, order, and each node's config are correct
  7. Enable workflow — confirm with the user, then nb api workflow workflows update with enabled: true
  8. Test / verifynb api workflow workflows execute with autoRevision=1

Editing an Existing Workflow

  1. Fetch workflow with nodes and version statsnb api workflow workflows get with appends[]=nodes and appends[]=versionStats
  2. Check if version is frozen (versionStats.executed > 0)

- Yes → create a new revision first: nb api workflow workflows revision The key parameter is the workflow's key field (obtained from the workflow record in step 1). It must be provided to create a revision of the same workflow. Omitting key creates an independent copy instead. Use the returned new id for all subsequent operations. Discard the old id. - No → proceed directly

  1. Edit as needed:

- Update trigger config → nb api workflow workflows update with config - Add node → nb api workflow workflows nodes create - Update node config → nb api workflow flow-nodes update - Delete node → nb api workflow flow-nodes destroy - Move node → nb api workflow flow-nodes move with upstreamId and optional branchIndex (upstreamId: null moves to the front; branchIndex: null for main chain) - Copy node → nb api workflow flow-nodes duplicate with upstreamId and optional branchIndex

  1. Verify — read back modified nodes to confirm changes took effect
  2. Enable (if needed) — confirm with the user, then nb api workflow workflows update with enabled: true

Diagnosing a Failed Execution

  1. List executions to find the failed one: nb api workflow executions list filtered by workflowId, sorted by -id
  2. Get execution detail with jobs (exclude result to reduce size): nb api workflow executions get with appends[]=jobs, appends[]=workflow, appends[]=workflow.nodes, except[]=jobs.result
  3. Find the failed job — look for job.status values of -1 (FAILED), -2 (ERROR), or -3 (ABORTED)
  4. Get full job detail to see the error: nb api workflow jobs get — inspect result for the error message or output that caused the failure
  5. Fix the issue (update node config or create a new revision if version is frozen), then re-execute.

Error Handling

  • API returns 400/422: Read the error message carefully. Common causes: invalid node type, missing required config fields, referencing a non-existent upstreamId. Fix the parameter and retry.
  • CLI returns auth error: Stop all operations. Guide the user to restore CLI authentication.
  • Node creation fails: Do not continue adding downstream nodes. Fix or remove the failed node first, then resume.
  • Revision creation fails: The original workflow may be in an inconsistent state. Re-fetch the workflow to verify its current state before retrying.

Verification Checklist

After completing any workflow operation, verify:

  1. Workflow exists and has the correct type, title, and sync mode
  2. Trigger config matches the planned configuration
  3. Node count and order match the plan (check upstreamId chain)
  4. Each node's type and config are correct
  5. Filter conditions are non-empty where required (update, destroy nodes)
  6. enabled status matches the intended state
  7. For edits on frozen versions: the new revision id is being used, not the old one

References

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.01%
按下载量换算610

Claude

26.9%
按下载量换算483

Cursor

19.81%
按下载量换算356

Gemini CLI

9.49%
按下载量换算170

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills