Verification gating for AI-generated artifacts. Policy checks to catch dangerous patterns before execution.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install moltblock或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install moltblock⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/moltblock/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: moltblock - Trust Layer for AI Agents description: Verification gating for AI-generated artifacts. Policy checks to catch dangerous patterns before execution. version: 0.11.8 homepage: https://github.com/moltblock/moltblock repository: https://github.com/moltblock/moltblock metadata: openclaw: requires: anyBins: - npx - node optionalConfig: - moltblock.json - ~/.moltblock/moltblock.json primaryEnv: OPENAI_API_KEY optionalEnv: - ANTHROPIC_API_KEY - GOOGLE_API_KEY - ZAI_API_KEY homepage: https://github.com/moltblock/moltblock install: - kind: node package: [email protected] bins: [moltblock] ---
Moltblock provides verification gating for AI-generated artifacts. It runs policy checks to catch dangerous patterns before they reach production.
What moltblock does:
moltblock.json, ~/.moltblock/moltblock.json) if present — no config is required
Use moltblock when the task involves:
rm -rf, DROP TABLE), privilege escalation (sudo, chmod 777), credential/key access (.ssh/, id_rsa, .env), system modification, raw disk writes
curl, wget, fetch), file writes, database modifications, subprocess spawning, dynamic code evaluation
Verify a task before execution.
npx [email protected] "<task description>" --provider <provider> --json
| Parameter | Required | Description | |-----------|----------|-------------| | task | Yes | The task description to verify | | --provider | No | LLM provider: openai, google, zai, local (auto-detected from env) | | --model | No | Model override | | --json | No | Output structured JSON result |
Moltblock auto-detects the LLM provider from whichever API key is set. If no key is set, it falls back to a local LLM at localhost:1234. Set one of these for a cloud provider:
OPENAI_API_KEY — OpenAI (primary)
ANTHROPIC_API_KEY — Anthropic/Claude (optional)
GOOGLE_API_KEY — Google/Gemini (optional)
ZAI_API_KEY — ZAI (optional)
# Verify a task
npx [email protected] "implement a function that validates email addresses" --json
{
"verification_passed": true,
"verification_evidence": "All policy rules passed.",
"authoritative_artifact": "...",
"draft": "...",
"critique": "...",
"final_candidate": "..."
}
Use directly with npx (recommended, no install needed):
npx [email protected] "your task" --json
Or install globally:
npm install -g [email protected]
No configuration file is required. Moltblock auto-detects your LLM provider from environment variables and falls back to sensible defaults.
Optionally, place moltblock.json in your project root or ~/.moltblock/moltblock.json to customize model bindings:
{
"agent": {
"bindings": {
"generator": { "backend": "google", "model": "gemini-2.0-flash" },
"critic": { "backend": "google", "model": "gemini-2.0-flash" },
"judge": { "backend": "google", "model": "gemini-2.0-flash" }
}
}
}
See the full configuration docs for policy rules and advanced options.
When used as a skill, moltblock performs policy checks only — no code is generated, written to disk, or executed. The tool analyzes task descriptions against configurable policy rules and returns a pass/fail verification result.
API key scope: Consider using a limited-scope API key dedicated to verification rather than a key with broader permissions.
Moltblock reduces risk but does not eliminate it. Verification is best-effort — policy rules and LLM-based checks can miss dangerous patterns. Always review generated artifacts before executing them. The authors and contributors are not responsible for any damage, data loss, or security incidents resulting from the use of this tool. Use at your own risk.
安装 Skill 后,可以对 AI 说这些话来触发它
Help me get started with Skill
Explains what Skill does, walks through the setup, and runs a quick demo based on your current project
Use Skill to verification gating for AI-generated artifacts
Invokes Skill with the right parameters and returns the result directly in the conversation
What can I do with Skill in my design & creative workflow?
Lists the top use cases for Skill, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/moltblock/ 目录(个人级,所有项目可用),或 .claude/skills/moltblock/(项目级)。重启 AI 客户端后,用 /moltblock 主动调用,或让 AI 根据上下文自动发现并使用。
Skill 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Skill 可免费安装使用。请查阅仓库了解许可证信息。
Verification gating for AI-generated artifacts. Policy checks to catch dangerous patterns before execution.
Skill 属于「Design & Creative」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my design & creative tasks using Skill
Identifies repetitive steps in your workflow and sets up Skill to handle them automatically