Token导航 LogoToken导航

Agent Skill · 开发

vmware-policy(VMware 政策)

vmware-policy 用于辅助安全审计、权限检查和凭据风险排查,适合在 OpenClaw 中需要复核安全边界、认证流程或敏感配置时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

vmware-policy 是开发类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为接触敏感数据;许可证为 MIT-0,第三方扫描已通过,按安装量在开发类的 21,746 个 Skill 里排第 6,166。

总安装 5,061周安装 213GitHub Stars 公开资料未说明下载 1,772核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.5.14

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:vmware-policy(VMware 政策)
来源仓库:https://github.com/zw008/vmware-policy
安装命令:
openclaw skills install vmware-policy
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install vmware-policy

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

统一管理 VMware MCP 系列的安全策略与审核日志。适用于策略规则实施、输入参数清理和合规性检查任务。可辅助生成标准化审计报告和策略变更记录。vmware-policy 属于开发类 Skill,可作为该场景下的辅助能力补充。操作前需确认最小权限原则,避免越权修改关键策略。

涉及生产环境变更时应保留原始配置快照以便追溯。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install vmware-policy;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

vmware-policy 怎么安装?

在终端执行 openclaw skills install vmware-policy。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

vmware-policy 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

vmware-policy 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

vmware-policy 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

vmware-policy 用的人多吗?

公开数据是累计安装 5,061 次,近一周安装 213 次,下载 1,772 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

vmware-policy 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
vmware-policy

VMware 政策 · 本页

5,061—接触敏感数据MIT-0通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
vmware-policy
description
>
installer
kind
uv
package
vmware-policy
allowed-tools
user-invocable
false
metadata
{"openclaw":{"requires":{"bins":["vmware-audit"],"config":["~/.vmware/rules.yaml"]},"optional":{"env":["CLAUDE_SESSION_ID","OLLAMA_HOST"]},"homepage":"https://github.com/zw008/VMware-Policy","emoji":"🛡️","os":["macos","linux"]}}

VMware Policy

Disclaimer: This is a community-maintained open-source project and is not affiliated with, endorsed by, or sponsored by VMware, Inc. or Broadcom Inc. "VMware" and "vSphere" are trademarks of Broadcom. Source code is publicly auditable at github.com/zw008/VMware-Policy under the MIT license.

Unified audit logging, policy enforcement, and input sanitization -- the infrastructure layer for the entire VMware MCP skill family.

Infrastructure dependency: All 8 VMware skills depend on vmware-policy. It is auto-installed and provides the @vmware_tool decorator, sanitize(), and the shared audit database. Family: vmware-aiops (VM lifecycle), vmware-monitor (read-only monitoring), vmware-storage (iSCSI/vSAN), vmware-vks (Tanzu Kubernetes), vmware-nsx (NSX networking), vmware-nsx-security (DFW/firewall), vmware-aria (metrics/alerts/capacity), vmware-avi (AVI/ALB/AKO). | vmware-pilot (workflow orchestration)

What This Skill Does

CategoryComponentsCount
Audit LoggingAuditEngine (SQLite WAL), log rotation, agent detection3
Policy Enginedeny rules, maintenance windows, change limits, hot-reload4
Sanitizationsanitize() -- prompt injection defense, control char stripping1
Decorator@vmware_tool -- pre-check + execute + post-log + metadata1
CLIvmware-audit log, vmware-audit export, vmware-audit stats3

Quick Install

uv tool install vmware-policy
vmware-audit stats          # verify installation
vmware-policy is automatically installed as a dependency of all VMware skills. Manual install is only needed for standalone audit querying.

When to Use This Skill

  • Query the unified audit trail across all VMware skills
  • View denied operations and policy violations
  • Check audit statistics (by skill, by status, by time range)
  • Export audit logs as JSON for external analysis
  • Configure deny rules, maintenance windows, or change limits
  • Integrate the @vmware_tool decorator into a new VMware skill

This skill is auto-loaded as a dependency -- you do not need to invoke it directly. It activates when:

  • Any VMware skill tool function is called (via @vmware_tool decorator)
  • User asks about audit logs, denied operations, or policy rules
  • User runs vmware-audit CLI commands

Related Skills -- Skill Routing

User IntentRecommended Skill
VM lifecycle, deployment, guest opsvmware-aiops (uv tool install vmware-aiops)
Read-only monitoring, zero riskvmware-monitor (uv tool install vmware-monitor)
Storage: iSCSI, vSAN, datastoresvmware-storage (uv tool install vmware-storage)
Tanzu Kubernetes (vSphere 8.x+)vmware-vks (uv tool install vmware-vks)
NSX networking: segments, gateways, NATvmware-nsx (uv tool install vmware-nsx-mgmt)
NSX security: DFW rules, security groupsvmware-nsx-security (uv tool install vmware-nsx-security)
Aria Ops: metrics, alerts, capacityvmware-aria (uv tool install vmware-aria)
Load balancer, AVI, ALB, AKO, Ingressvmware-avi (uv tool install vmware-avi)
Multi-step workflows with approvalvmware-pilot
Audit log query, policy rulesvmware-policy -- this skill

Common Workflows

Query Recent Audit Activity

  1. View last 20 audit entries: vmware-audit log --last 20
  2. Filter by skill: vmware-audit log --skill vmware-nsx --last 50
  3. Check denied operations: vmware-audit log --status denied --since 2026-03-28
  4. View aggregate stats: vmware-audit stats --days 7

Set Up Policy Rules for Production

  1. Copy default rules: cp $(python -c "import vmware_policy; print(vmware_policy.__file__.replace('__init__.py','rules_default.yaml'))") ~/.vmware/rules.yaml
  2. Edit ~/.vmware/rules.yaml -- add deny rules for production:
   deny:
     - name: no-delete-in-prod
       operations: ["delete_*", "cluster_delete"]
       environments: ["production"]
       reason: "Destructive operations blocked in production"
   maintenance_window:
     start: "22:00"
     end: "06:00"
  1. Rules hot-reload automatically -- no restart needed
  2. Verify: vmware-audit log --status denied to see blocked operations

Export Audit Logs for Compliance

  1. Export all logs as JSON: vmware-audit export --format json > audit-export.json
  2. Filter by skill: vmware-audit export --skill vmware-aiops --since 2026-01-01
  3. Import into your SIEM or compliance tool

Usage Mode

ScenarioRecommendedWhy
Query audit logsCLIvmware-audit provides rich table output
Integrate into a skillPython APIfrom vmware_policy import vmware_tool, sanitize
Automated compliance exportCLIvmware-audit export --format json pipes to any tool

CLI Quick Reference

# View recent audit entries
vmware-audit log --last 20
vmware-audit log --skill vmware-nsx --status denied
vmware-audit log --since 2026-03-28 --tool delete_segment

# Export for compliance
vmware-audit export --format json > audit.json
vmware-audit export --skill vmware-aiops --since 2026-01-01

# Aggregate statistics
vmware-audit stats --days 7
vmware-audit stats --days 30
Full CLI reference: see references/cli-reference.md

Python API

from vmware_policy import vmware_tool, sanitize

# Wrap every MCP tool function
@vmware_tool(risk_level="high", sensitive_params=["password"])
def delete_segment(name: str, env: str = "") -> dict:
    ...

# Sanitize untrusted API responses before returning to LLM
clean_text = sanitize(api_response_text, max_len=500)

MCP Tools (0)

vmware-policy does not expose MCP tools. It is a Python library and CLI consumed by other VMware skills.

ComponentTypeDescription
@vmware_toolDecoratorWraps all 156+ MCP tools across 8 skills
sanitize()FunctionPrompt injection defense for API responses
AuditEngineClassSQLite WAL audit logger with rotation
PolicyEngineClassYAML rule evaluation with hot-reload
vmware-auditCLITyper CLI for querying audit trail
detect_agent()FunctionInfers calling AI agent from env vars (see below)

Agent Detection (Transparency Note)

The detect_agent() function in audit.py checks the following environment variables to identify which AI agent is calling the tools. This is read-only inspection for audit logging purposes — no credentials are extracted or stored:

Env VarDetected AgentPurpose
CLAUDE_SESSION_ID or CLAUDE_CODEclaudeClaude Code session
OPENAI_API_KEY or CODEX_SESSIONcodexOpenAI Codex session
OLLAMA_HOSTlocalLocal Ollama model
DEERFLOW_SESSIONdeerflowDeerFlow session
(none matched)unknownUnrecognized agent

The detected agent name is stored in the agent column of ~/.vmware/audit.db for audit trail purposes only. No API keys or tokens are logged.

Troubleshooting

"Cannot initialize audit DB" warning

The audit database directory ~/.vmware/ must be writable. Create it manually: mkdir -p ~/.vmware && chmod 700 ~/.vmware.

Policy rules not taking effect

Rules are loaded from ~/.vmware/rules.yaml. Verify the file exists and contains valid YAML. The PolicyEngine hot-reloads on file change -- no restart needed.

Audit log growing too large

The AuditEngine automatically rotates at 100MB, keeping the 5 most recent archives. For manual cleanup: ls ~/.vmware/audit.*.db to see archives.

"PolicyDenied" exception in skill

This means a deny rule in ~/.vmware/rules.yaml matched the operation. Check vmware-audit log --status denied to see the rule name and reason. To temporarily bypass: VMWARE_POLICY_DISABLED=1 (still logged as bypassed).

Decorator not detecting skill name

The @vmware_tool decorator infers the skill name from the module path (e.g., vmware_aiops.ops.vm_lifecycle -> aiops). If the module does not follow the vmware_<skill> convention, the skill is logged as "unknown".

SQLite "database is locked" error

Multiple concurrent skill processes can write to the same audit.db via WAL mode. If locks persist beyond 5 seconds, check for zombie processes holding the database file.

Setup

uv tool install vmware-policy
mkdir -p ~/.vmware
vmware-policy is auto-installed as a dependency of all VMware skills. The ~/.vmware/ directory is created automatically on first audit write.
Full setup guide, security details, and integration instructions: see references/setup-guide.md

Security

  • Source Code: github.com/zw008/VMware-Policy
  • Config File Contents: ~/.vmware/rules.yaml contains only rule definitions, no credentials
  • Webhook Data Scope: N/A -- vmware-policy does not send data externally
  • TLS Verification: N/A -- vmware-policy does not make network connections
  • Prompt Injection Protection: sanitize() truncates to 500 chars and strips C0/C1 control characters
  • Least Privilege: Audit database is local-only (~/.vmware/audit.db), no network exposure

License

MIT -- github.com/zw008/VMware-Policy

平台分布

OpenClaw

85.53%
按下载量换算1,516

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills