用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/xiaoDongMr/agentic-workflow-studio --skill workflow-node-selector命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | workflow-node-selector |
| description | Builds or updates frontend selector-node data for deterministic branching. |
| allowed-tools | ["execute_node_skill_script","update_current_graph"] |
Use type: selector for deterministic conditional routing. Structured rules
are authoritative. The script generates the frontend selectorBranches,
operand metadata, IDs, readable prompt, fixed engine config, and empty
inputs/outputs/inputMappings.
build_node.data accepts only:
| Field | Type | Required | Meaning |
|---|---|---|---|
title | string | no | Defaults to 选择器节点 |
description | string | no | Node description |
rules | array | yes | Ordered condition branches |
Each rule is:
{
"label": "命中",
"conditions": [
{
"left": {"source": "start.input"},
"operator": "equals",
"right": {"value": "input", "valueType": "String"}
}
]
}
An operand contains exactly one of:
{"source": "node-id.output-name"}.{"value": <JSON value>, "valueType": "String"}.valueType is optional for literals and is inferred from the JSON value.
Source values must come from list_input_sources. Do not generate frontend
operand fields such as sourceType, nodeId, fieldPath, or displayLabel.
Supported operators:
equals, not_equalscontains, not_containslength_gt, length_gte, length_lt, length_lteRules are evaluated from top to bottom. Conditions in one rule use AND
semantics. The first matching rule is selected; otherwise the fixed else
branch is selected. Rule labels must be non-empty and case-insensitively unique.
Do not use reserved routing labels such as else, 否则, 条件 1, or
selector-branch-0.
n: sourcePortID: selector-branch-{n}.sourcePortID: selector-else.workflow-node-selector/scripts/node.pylist_input_sources{"upstream_node_ids": ["intended-direct-predecessor-id"]}{"node_id": "existing-id"}{"sources": [...], "allowed_source_values": ["node-id.output-name"]}workflow-node-selector/scripts/node.pybuild_node{"data": {"title": "...", "description": "...", "rules": [...]}, "upstream_node_ids": ["direct-predecessor-id"]}{"node": <complete node>}workflow-node-selector/scripts/node.pyupdate_node{"node_id": "existing-id", "changes": {"title": "...", "description": "...", "rules": [...]}}{"node": <complete updated node>}For updates, omitted fields stay unchanged. When any rule or condition changes,
submit the complete rules array. Do not submit config, selectorBranches,
inputs, outputs, inputMappings, prompt, IDs, type, position, or
runtime status.