Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计提醒

s2g-workflow-engines2g 工作流引擎

Agent Skill

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

总安装

17,511

周安装

737

GitHub Stars

2

下载量

6,132
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install s2g-workflow-engine

简介

s2g-workflow-engine 连接 S2G 平台执行可视化工作流节点任务。

  • 适用于密码生成、哈希运算等轻量级自动化流程。
  • 通过 WebSocket 实时同步任务状态与执行结果。
  • 通过 clawhub 安装后,注册为 OpenClaw 的可调用工具集。
  • 依赖外部服务可用性,断连时需有本地缓存降级方案。

SKILL.md

name
s2g
description
Connect to S2G (s2g.run) visual workflow automation platform over WebSocket. Execute workflow nodes as tools — password generators, hash functions, date math, format converters, database queries, knowledge base, and any custom node. Use when asked to run S2G workflows, execute S2G nodes, connect to S2G, manage S2G workflows, or interact with the S2G platform API.

S2G Integration

OpenClaw is the orchestrator. S2G is the toolbox. Connect to an S2G workflow via WebSocket, auto-discover all nodes, and execute them as tools.

OpenClaw ──WS──▶ S2G (wss://s2g.run/api/openclaw/ws/{nodeId})
                   ├── PasswordGenerator
                   ├── HashGenerator
                   ├── DateMath
                   ├── SqlServer
                   ├── Knowledge Base
                   └── ... 200+ node types

The OpenClaw Node in S2G

The OpenClaw node is a built-in S2G node type (category: AI) that acts as a bidirectional bridge between OpenClaw agents and S2G workflows. It appears in the S2G node catalog as "OpenClaw Agent" and serves two roles:

  1. Bridge Endpoint — Provides a WebSocket endpoint (wss://s2g.run/api/openclaw/ws/{nodeId}) that OpenClaw agents connect to. Once connected, the agent can execute any sibling node in the workflow.
  1. Data Forwarder — Pushes upstream workflow data to connected OpenClaw agents via Input Forwarding. When the workflow triggers (e.g., from an HTTP webhook, scheduler, or another node), mapped fields are sent to all connected agents as {"type":"data","data":{...}}.

Setting Up the OpenClaw Node

  1. Open the S2G designer at s2g.run
  2. Create or open a workflow
  3. Add an OpenClaw node from the AI category in the node palette
  4. Add tool nodes — any nodes you want the agent to access (e.g., PasswordGenerator, HashGenerator, DateMath, SqlServer, Knowledge Base)
  5. Connect the OpenClaw node to the tool nodes (the connection wiring tells S2G which nodes to expose)
  6. Configure the OpenClaw node (click to open properties):

- Auth Secret (optional) — If set, the bridge must send {"type":"auth","secret":"..."} as its first message - Per-Request Timeout — Maximum time per individual node execution request - Input Forwarding — Map upstream node outputs to push data to connected agents - Manual Payload — Send ad-hoc JSON payloads to connected agents for testing

  1. Start the workflow (▶ button or API: POST https://s2g.run/api/v1/workflows/{id}/start)
  2. Copy the Node ID (UUID) from the node properties — this is needed for the bridge connection URL

Live View

The OpenClaw node properties panel includes a Live View that shows:

  • Connected clients count
  • Real-time execute/result message flow
  • Data push events
  • Connection/disconnection events

Prerequisites

  1. S2G account at s2g.run (or self-hosted instance)
  2. A workflow with an OpenClaw node and tool nodes connected to it
  3. Workflow running — the WebSocket endpoint only accepts connections while the workflow is active
  4. Node.js with ws module: npm install ws

Quick Start

1. Install the bridge

# Copy bridge script to workspace
cp scripts/s2g-bridge.js ~/.openclaw/workspace/s2g-bridge.js
npm install ws

2. Get the OpenClaw node ID

In the S2G designer at s2g.run, click the OpenClaw node → copy the Node ID (UUID) from properties.

3. Start the bridge

# Connect to public S2G
node s2g-bridge.js --s2g wss://s2g.run --node-id YOUR_NODE_UUID [--port 18792] [--secret SECRET]

# Or with environment variables:
S2G_WS_HOST=wss://s2g.run S2G_NODE_ID=abc-123 node s2g-bridge.js

# Self-hosted S2G instance (development)
node s2g-bridge.js --s2g ws://YOUR_HOST:5184 --node-id YOUR_NODE_UUID

4. Verify

curl http://localhost:18792/health
# {"healthy":true,"uptime":42.5}

curl http://localhost:18792/nodes
# Lists all discovered nodes with names, types, and IDs

Bridge HTTP API

The bridge exposes a local HTTP API on port 18792 (configurable via --port):

MethodEndpointDescription
GET/health200 if connected to S2G, 503 if not
GET/statusFull status: connection state, host, node list, stats, errors
GET/nodesList all available S2G nodes (name, type, ID)
POST/executeExecute by nodeId: { nodeId, params }
POST/execute/:nameExecute by name (fuzzy match): { params }
POST/refreshRequest fresh node list from S2G
POST/reconnectForce disconnect and reconnect to S2G

Executing Nodes

By name (recommended)

curl -X POST http://localhost:18792/execute/PasswordGenerator \
  -H "Content-Type: application/json" \
  -d '{"params": {"length": "20", "mode": "strong"}}'

By node ID

curl -X POST http://localhost:18792/execute \
  -H "Content-Type: application/json" \
  -d '{"nodeId": "uuid-here", "params": {"length": "20"}}'

Response

{
  "success": true,
  "output": {
    "Password": "xK9!mN...",
    "Strength": "Very Strong",
    "_TriggeredTags": "[\"success\"]"
  }
}

Node Schema Discovery

Before using an unfamiliar node, check its exact parameter names via the S2G Catalog API:

# Get schema for any node type
curl -H "X-API-Key: $KEY" "https://s2g.run/api/v1/catalog/nodes/Custom_Base64/schema"

# List all available node categories
curl -H "X-API-Key: $KEY" "https://s2g.run/api/v1/catalog/categories"

# List all nodes in a category
curl -H "X-API-Key: $KEY" "https://s2g.run/api/v1/catalog/categories/AI/nodes"

The fieldName in inputFields is the exact key to use in params. Case-sensitive.

Common Node Types

Data Generation

  • PasswordGeneratorlength, mode (strong/pronounceable/passphrase/PIN), count
  • UuidGeneratorcount, format
  • HashGeneratortext, algorithm (md5/sha1/sha256)
  • LoremIpsumcount, unit (paragraphs/sentences/words)

Data Operations

  • DateMathoperation (add/subtract/difference), date1, date2, days, hours...
  • ExpressionEvaluatorexpression, variables, precision
  • CronParserexpression, count, fromDate
  • TimezoneConverterdatetime, fromTimezone, toTimezone
  • JsonPathQueryjson, path, returnFirst

Text & Encoding

  • Base64inputText, mode (encode/decode)
  • UrlEncodeinputText, mode (encode/decode)
  • CaseConvertertext, targetCase (camelCase/PascalCase/snake_case/kebab-case)
  • MarkdownToHtmlmarkdown, addWrapper
  • TextDiffoldText, newText

Format Conversion

  • XmlToJsonxmlInput
  • JsonToXmljsonInput, rootElement
  • CsvJsoninputText, mode (toJson/toCsv), delimiter
  • JwtDecodertoken

AI Nodes

  • OpenAI — GPT models for text generation
  • Anthropic — Claude models
  • Gemini — Google AI models
  • DeepSeek / DeepSeek Agent — DeepSeek models with agent capabilities
  • Orchestrator — Multi-agent orchestration across AI providers

Knowledge Base

  • Knowledge — Graph-based knowledge store with 11 operations: Search, GetEntity, AddEntity, UpdateEntity, DeleteEntity, AddRelation, RemoveRelation, GetRelations, GetGraph, ListEntities, ListTypes

Vector Storage

  • VectorDb — Vector store for RAG: ingest documents, semantic search
  • VectorClient — Query vector stores from workflows

Database

  • SqlServer — Execute SQL queries against SQL Server
  • Postgresql — Execute PostgreSQL queries
  • MongoDB — MongoDB document operations

Data Push (S2G → OpenClaw)

S2G can push data to connected OpenClaw agents in two ways:

  1. Input Forwarding — Configure in the OpenClaw node properties. Map upstream node output fields to keys that get forwarded to all connected agents. When the workflow triggers (e.g., webhook receives data → processes it → OpenClaw node forwards results), agents receive {"type":"data","data":{...}}.
  1. Manual Payload — In the OpenClaw node properties, use the Manual Payload editor to send ad-hoc JSON to all connected agents. Useful for testing and debugging.

Deployment & Operations

For running as a service (systemd/pm2), connection lifecycle, auto-reconnect behavior, monitoring, handling S2G/OpenClaw restarts, security, and multi-bridge setups: see references/operations.md.

Key points:

  • Bridge auto-reconnects on disconnect (5s delay)
  • Bridge is stateless — just needs the WebSocket URL and node ID
  • Sends keepalive pings every 30s to detect dead connections
  • 409 = workflow not running — enable Auto-Start (🚀) in S2G or start via API: POST https://s2g.run/api/v1/workflows/{id}/start
  • Logs to logs/s2g-bridge.log with 5MB rotation

S2G REST API

Full platform API at https://s2g.run/api/v1/ covering workflows, catalog, knowledge base, AI assistant, connections, usage, and logs: see references/api.md.

Key capabilities:

  • Workflows — Create, start/stop, add/remove nodes and connections: https://s2g.run/api/v1/workflows
  • Catalog — Discover all 200+ node types and their schemas: https://s2g.run/api/v1/catalog/nodes
  • Knowledge Base — Graph-based knowledge store with search, entities, and relations
  • AI Assistant — Generate workflows from natural language: POST https://s2g.run/api/v1/ai/generate
  • Connections — Manage OAuth/API key connections: https://s2g.run/api/v1/connections
  • Usage & Logs — Monitor quotas and execution logs: https://s2g.run/api/v1/usage

WebSocket Protocol

For raw protocol details (message types, auth handshake, data push framing): see references/protocol.md.

Connection URL: wss://s2g.run/api/openclaw/ws/{nodeId} Health check: GET https://s2g.run/api/openclaw/health

Tips

  • No manual wiring needed. All sibling nodes connected to the OpenClaw node are auto-discovered on connect.
  • Param names are case-sensitive. Always verify with the catalog schema API.
  • _TriggeredTags in output indicates which connection tag fired (success/error).
  • 409 on connect means workflow isn't running. Start it at s2g.run or via API.
  • Bridge auto-reconnects on disconnect with 5s delay — no manual intervention needed.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

OpenClaw

76.23%
按下载量换算4,674

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

未展示

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

来源信息

继续浏览同类 Skills