跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

Gws Modelarmor Sanitize Prompt

技能 已验证 活跃

Google Model Armor: Sanitize a user prompt through a Model Armor template.

目的

To enhance AI safety by cleaning user prompts against predefined Model Armor templates before they are processed, preventing potential misuse or harmful content.

功能

  • Sanitize user prompts via Model Armor templates
  • Accepts text input or full JSON request body
  • Supports reading input from stdin
  • Integrates with Google Cloud Model Armor

使用场景

  • When processing potentially untrusted user input that needs to be validated against a security template.
  • As a pre-processing step in AI agent workflows to ensure prompt safety.
  • To adhere to Google Cloud Model Armor policies for prompt handling.

非目标

  • Sanitizing model responses (use `+sanitize-response` instead)
  • Providing AI Model Armor template management beyond basic usage
  • Operating independently of the `gws` CLI

安装

npx skills add googleworkspace/cli

通过 npx 运行 Vercel skills CLI(skills.sh)— 需要本地安装 Node.js,以及至少一个兼容 skills 的智能体(Claude Code、Cursor、Codex 等)。前提是仓库遵循 agentskills.io 格式。

质量评分

已验证
99 /100
1 day ago 分析

信任信号

最近提交2 days ago
星标26.2k
许可证Apache-2.0
状态
查看源代码