Community编程与开发github.com

googleworkspace/gws-modelarmor-sanitize-prompt

Google Model Armor:通过模型护盾模板对用户提示进行消毒。

gws-modelarmor-sanitize-prompt 是什么?

此技能允许开发者或AI代理使用Google Model Armor服务,通过指定的模板对用户输入的提示(prompt)进行安全消毒处理。它能够检测并过滤掉提示中的有害内容,如攻击性语言、敏感信息或恶意指令,从而保护下游模型或应用的安全。该技能适用于Claude Code、Cursor、Codex等平台,通过连接到Google Cloud的Model Armor API实现。使用前需要配置Google Cloud凭证(如环境变量 `GOOGLE_APPLICATION_CREDENTIALS`)和一个已定义的Model Armor模板。工作流程包括:向Model Armor API发送原始用户提示和模板标识符,API返回消毒后的提示以及关于过滤内容的元数据。此技能对于需要保障用户输入安全的企业级AI应用尤其重要,能够帮助开发者在不直接处理复杂过滤逻辑的情况下快速集成内容安全机制。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/googleworkspace/cli/tree/main/skills/gws-modelarmor-sanitize-prompt

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

gws-modelarmor-sanitize-prompt 是做什么的?

Google Model Armor:通过模型护盾模板对用户提示进行消毒。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

googleworkspace/gws-admin-reports

Google Workspace Admin SDK: Audit logs and usage reports.

googleworkspace/gws-calendar

Google Calendar: Manage calendars and events.

googleworkspace/gws-calendar-agenda

Google Calendar: Show upcoming events across all calendars.

googleworkspace/gws-calendar-insert

Google Calendar: Create a new event.

googleworkspace/gws-chat

Google Chat: Manage Chat spaces and messages.

googleworkspace/gws-chat-send

Google Chat: Send a message to a space.

googleworkspace/gws-classroom

Google Classroom: Manage classes, rosters, and coursework.

googleworkspace/gws-docs

Read and write Google Docs.

googleworkspace/gws-docs-write

Google Docs: Append text to a document.

googleworkspace/gws-drive

Google Drive: Manage files, folders, and shared drives.

googleworkspace/gws-drive-upload

Google Drive: Upload a file with automatic metadata.

googleworkspace/gws-events

Subscribe to Google Workspace events.

googleworkspace/gws-events-renew

Google Workspace Events: Renew/reactivate Workspace Events subscriptions.

googleworkspace/gws-events-subscribe

Google Workspace Events: Subscribe to Workspace events and stream them as NDJSON.

googleworkspace/gws-forms

Read and write Google Forms.

googleworkspace/gws-gmail

Gmail: Send, read, and manage email.

googleworkspace/gws-gmail-forward

Gmail: Forward a message to new recipients.

googleworkspace/gws-gmail-read

Gmail: Read a message and extract its body or headers.

googleworkspace/gws-gmail-reply

Gmail: Reply to a message (handles threading automatically).

googleworkspace/gws-gmail-reply-all

Gmail: Reply-all to a message (handles threading automatically).

相关技能