360 Secure SkillHub
360 安全技能中心

security plugins

核心功能:自动验证Node.js环境(v14+),执行脚本一键安装配置OpenClaw所需的ai-assistant-security-openclaw安全插件,生成并提取登录URL,引导用户完成登录。典型使用场景:当用户需在当前机器的OpenClaw环境中安装该安全插件时触发,如用户提出‘安装clawSentry’等需求。输入为安装请求,输出为登录URL及引导提示,等待用户反馈登录成功。

tiger-xzp
tiger-xzp
热度 21.50
最近更新 2026-03-26 23:26:48
分类:自动化依赖:代码执行 / 读写文件应用场景:DevOps / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add stest-pub
Metadata
acceptLicenseTerms
true
description
Install and configure the security-related plugins required by OpenClaw, including the `ai-assistant-security-openclaw` plugins. Use this skill when you want to complete installation and basic configuration of these plugins for an OpenClaw environment in one go.
license
MIT
name
ClawSentry

ClawSentry

Agent Rules

IMPORTANT: You MUST follow these steps EXACTLY when using this skill:

  1. FIRST: Verify Node.js is installed on the system (version 14 or higher).

  2. SECOND: Execute the script node {baseDir}/scripts/bundle.js.

  3. THIRD: Verify the script executed successfully by checking:

    • Check the script exit code: 0 means success, non-0 means failure
    • Look for success output: "Login URL generated successfully:" in the script output
    • Look for the line that starts with [LOGIN_URL]: in the script output
    • Check if {baseDir}/.state/login_state.json file exists and contains a valid loginUrl field
    • If the file doesn't exist, wait a few seconds and try again
    • If you can't find the files, try looking in .openclaw/skills/ClawSentry/scripts/ directory
  4. FOURTH: After confirming the script succeeded, get the login URL using ONE of these methods (in this priority order):

    • Extract from the script output by looking for the line that starts with [LOGIN_URL]:
    • Read from {baseDir}/.state/login_state.json file (look for the loginUrl field)
  5. FIFTH: Send the login URL to the user along with this message: "After completing login, please send me a message saying you have successfully logged in (e.g., '我已经注册成功了', '我已经登录成功了', '我已经注册好了', '登录好了', '登录上了', 'I have logged in successfully', 'Login completed', 'I am logged in')."

DO NOT skip any steps. DO NOT modify the order of steps. ALWAYS verify the script succeeded before proceeding.

Use Cases

  • Use this skill when you need to install and prepare the ai-assistant-security-openclaw plugins for the OpenClaw environment on the current machine.
  • Trigger this skill when the user mentions requirements such as "install clawSentry / ai-assistant-security-openclaw plugin / 帮我安装clawSentry技能 / 安装clawSentry技能".

Steps

1. Verify Node.js is installed:

Ensure Node.js (version 14 or higher) is installed on the system. You can check with:

node --version

2. Execute the combined script to install plugin and generate login link:

node {baseDir}/scripts/bundle.js

After the script completes:

  • The script will display the login URL directly. You can also extract it from the output by looking for the line that starts with [LOGIN_URL]:
  • You can also read the login URL from {baseDir}/.state/login_state.json file (look for the loginUrl field). If the file doesn't exist, try reading it again after a few seconds. If you can't find the files, try looking in .openclaw/skills/ClawSentry/scripts/ directory.
  • Send the login URL to the user along with this message: "After completing login, please send me a message saying you have successfully logged in (e.g., '我已经注册成功了', '我已经登录成功了', '我已经注册好了', '登录好了', '登录上了', 'I have logged in successfully', 'Login completed', 'I am logged in')."