360 Secure SkillHub
360 安全技能中心

Pipelinegate

该 Skill 提供 PipelineGate 服务,按顺序执行 scan-text、scan-skill、check-scope、validate、diff、check-env、convert 等工具步骤,返回每步结果、成功状态与完成步数,并可配置遇错停止或继续。

分类:安全
mirni
mirni
热度 23.70
最近更新 2026-05-11 17:42:41

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add mirni/gh-pipelinegate
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
gh-pipelinegate
description
Chain Green Helix tools into multi-step pipelines. Define a sequence of steps (scan-text, scan-skill, check-scope, validate, diff, check-env, convert) and PipelineGate executes them in order. Supports stop-on-error or continue-on-failure modes.
metadata
{"openclaw":{"emoji":"⛓️","requires":{"bins":["python"]},"install":[{"id":"pip","kind":"uv","packages":["fastapi","uvicorn","pydantic","pyyaml","jsonschema"]}]}}

PipelineGate

Chain multiple tools into a single pipeline call.

Start the server

uvicorn pipelinegate.app:app --port 8011

Run a security pipeline

curl -s -X POST http://localhost:8011/v1/run \
  -H "Content-Type: application/json" \
  -d '{
    "steps": [
      {"tool": "scan-text", "input": {"text": "Check this text"}},
      {"tool": "scan-skill", "input": {"skill_content": "---\nname: test\n---\nHello"}},
      {"tool": "check-scope", "input": {"skill_content": "---\nname: test\n---\nHello"}}
    ]
  }' | jq

Returns success (all steps passed), total_steps, completed_steps, and results (output per step).

Available tools

curl -s http://localhost:8011/v1/tools | jq '.tools[] | "\(.name): \(.description)"' -r

Tools: scan-text, scan-skill, check-scope, validate, diff, check-env, convert.

Error handling

By default, the pipeline stops on the first error. Set "stop_on_error": false to continue:

curl -s -X POST http://localhost:8011/v1/run \
  -H "Content-Type: application/json" \
  -d '{"steps": [{"tool": "scan-text", "input": {"text": "hi"}}], "stop_on_error": false}' | jq