Moltguard Zh logo

Moltguard Zh

Community
L-LesterYu
moltguard-zh

OpenClaw 原生安全插件——通过 MoltGuard API 检测工具结果与消息中的提示注入,可选本地净化网关在发送前脱敏 PII(银行卡/密码等),首次使用自动注册 API 密钥

Overview

PublisherL-LesterYu
RepositoryOpenClaw-hot-skills-zh
Skill namemoltguard-zh
Stars
57
Forks
9
Bundled files
27
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 27 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by L-LesterYu on GitHub. Read the source before you install it.

Installation

Install the Moltguard Zh AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/L-LesterYu/OpenClaw-hot-skills-zh/tree/main/skills/moltguard-zh
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/L-LesterYu/OpenClaw-hot-skills-zh.git /tmp/OpenClaw-hot-skills-zh
mkdir -p .claude/skills
cp -r /tmp/OpenClaw-hot-skills-zh/skills/moltguard-zh .claude/skills/moltguard-zh
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Moltguard Zh in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Moltguard Zh on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Moltguard Zh is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

MoltGuard 安全防护

OpenClaw 原生安全插件,检测和防止提示注入攻击

🛡️ 功能特性

  • 提示注入检测 - 通过 MoltGuard API 分析工具结果和消息中的恶意提示注入
  • 本地净化网关 - 可选的本地提示词净化,在发送到 LLM 前保护敏感数据
  • 自动注册 - 首次使用时自动注册 API 密钥
  • 灵活配置 - 支持超时、日志记录、拦截策略等高级配置

🚀 快速开始

基本配置

启用基本防护:

json
{
  "enabled": true
}

启用本地净化网关

json
{
  "enabled": true,
  "sanitizePrompt": true,
  "gatewayAutoStart": true
}

⚙️ 配置选项

参数类型默认值描述
enabledbooleantrue启用或禁用防护
sanitizePromptbooleanfalse启用本地提示词净化网关
gatewayPortnumber8900本地净化网关端口
gatewayAutoStartbooleantrue插件加载时自动启动网关
blockOnRiskbooleantrue检测到注入时拦截工具调用
apiKeystring-MoltGuard API 密钥(可选)
timeoutMsnumber60000分析超时时间(毫秒)
autoRegisterbooleantrueapiKey 为空时自动注册 API 密钥
apiBaseUrlstringhttps://api.moltguard.comMoltGuard API 基础 URL

🔍 工作原理

1. 检测模式

  • 工具结果分析 - 扫描工具执行结果中的恶意注入内容
  • 消息检测 - 检测输入消息中的提示注入攻击
  • 风险评估 - 基于上下文评估风险级别

2. 净化模式(可选)

  • 本地网关 - 在本地运行提示词净化服务
  • PII 脱敏 - 自动检测并脱敏敏感信息
  • 隐私保护 - 确保敏感数据不会发送到 LLM

🛡️ 安全特性

防护机制

  • 拦截策略 - 检测到风险时自动拦截工具调用
  • 日志记录 - 详细的安全事件日志
  • 实时监控 - 实时监控工具执行和消息内容

合规性

  • 数据本地化 - 敏感数据本地处理,不上传外部服务
  • 透明度 - 所有可能的拦截都会记录日志
  • 可控性 - 用户可以随时调整安全级别

📊 使用建议

高安全性场景

json
{
  "enabled": true,
  "sanitizePrompt": true,
  "blockOnRisk": true,
  "logPath": "~/.openclaw/logs/security"
}

严格环境(无网络)

json
{
  "enabled": true,
  "sanitizePrompt": true,
  "autoRegister": false,
  "blockOnRisk": true
}

🔧 故障排除

常见问题

  1. API 密钥问题

    • 确保网络连接正常
    • 检查 API 密钥是否正确
    • 查看日志文件了解详情
  2. 网关启动失败

    • 检查端口是否被占用
    • 确保 gatewayAutoStart 设置正确
    • 查看系统日志了解错误信息
  3. 性能问题

    • 调整 timeoutMs 参数
    • 启用日志记录查看性能瓶颈

📝 日志记录

所有安全事件都会记录到 JSONL 格式的日志文件中:

bash
# 默认日志位置
~/.openclaw/logs/

# 查看日志
cat ~/.openclaw/logs/moltguard-*.jsonl | jq '.'

日志内容包括:

  • 检测到的时间戳
  • 风险级别
  • 检测到的内容
  • 处理结果
  • 相关上下文

注意: MoltGuard 需要网络连接以进行 API 调用。在严格隔离的环境中,可仅使用本地净化功能。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Moltguard Zh AI skill do?

OpenClaw 原生安全插件——通过 MoltGuard API 检测工具结果与消息中的提示注入,可选本地净化网关在发送前脱敏 PII(银行卡/密码等),首次使用自动注册 API 密钥

Why use Moltguard Zh on TypingMind?

Because you install it once and use it with any model. Moltguard Zh is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Moltguard Zh in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/L-LesterYu/OpenClaw-hot-skills-zh/tree/main/skills/moltguard-zh. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Moltguard Zh?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Moltguard Zh?

As many as you like. As long as a model supports skills, you can use Moltguard Zh with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Moltguard Zh AI skill free?

Yes. It is published on GitHub by L-LesterYu under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇