aakash2289/governclaw-middleware/SKILL.md
Governance middleware for OpenClaw agents. Wraps HTTP, shell, file, and browser actions with policy checks via GovernClaw before execution. Required tools - http. Environment variables - GOVERNCLAW_URL (default http://127.0.0.1:8000).
npx skillsauth add openclaw/skills governclaw-middlewareInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill provides governed wrappers for sensitive operations. It acts as a policy enforcement layer between agents and external systems.
You MUST use governed tools from this skill instead of raw tools when:
governedHttp instead of http)governedShell - future)governedFile - future)governedBrowser - future)governedHttp)allow or block with a reasonMakes HTTP requests through the GovernClaw policy engine.
Parameters:
method (string): HTTP method - "GET", "POST", "PUT", "DELETE"url (string): Target URLbody (object, optional): Request body for POST/PUTheaders (object, optional): Custom headersReturns:
{ ok: false, blocked: true, reason: "..." }Example:
const result = await context.tools.governclawMiddleware.governedHttp({
method: "GET",
url: "https://api.example.com/data"
});
if (result.blocked) {
// Handle policy block
console.log("Blocked:", result.reason);
}
Set the GovernClaw service URL in your environment:
export GOVERNCLAW_URL="http://127.0.0.1:8000"
Or in openclaw.json:
{
"skills": {
"governclaw-middleware": {
"env": {
"GOVERNCLAW_URL": "http://127.0.0.1:8000"
}
}
}
}
The skill automatically forwards these context fields to GovernClaw:
parent_id: The session ID (who owns the request)child_id: The agent ID (who is making the request)source: Where the request originated (agent, control, cron, etc.)channel: The channel ID (if applicable)node_id: The node ID (if applicable)skill: Always "governclaw-middleware"Always check for blocked in responses:
const response = await context.tools.governclawMiddleware.governedHttp({...});
if (!response.ok && response.blocked) {
// Policy violation - do not retry
return { error: response.reason };
}
if (!response.ok) {
// Network or other error - may retry
return { error: "Request failed" };
}
// Success
return response.data;
GovernClaw supports three governance modes:
The skill defaults to governed mode. Future versions may allow per-request mode overrides.
tools
Use when the user wants to connect to, test, or use the McDonalds service at mcp.mcd.cn, including checking authentication, probing MCP endpoints, listing tools, or calling McDonalds MCP tools through a reusable local CLI.
development
Web scraping platform — Twitter/X data, Vinted marketplace, and general web scraping API
development
SlowMist AI Agent Security Review — comprehensive security framework for skills, repositories, URLs, on-chain addresses, and products (Claude Code version)
data-ai
去除中文文本中的 AI 写作痕迹,使其读起来自然。基于维基百科 AI 写作特征指南,检测 24 种 AI 模式。触发词:humanizer-cn、去除 AI 痕迹、去除 AI 写作痕迹、中文文本人性化。