gws-modelarmor

Filter user-generated content with Google Model Armor templates.

30.3k|1.8k|Updated Mar 2, 2026
One-click install
npx skills add https://github.com/googleworkspace/cli --skill gws-modelarmor-googleworkspace
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gws-modelarmor
Source: https://github.com/googleworkspace/cli/tree/main/skills/gws-modelarmor
Command: npx skills add https://github.com/googleworkspace/cli --skill gws-modelarmor-googleworkspace

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps ensure user-generated content is safe and appropriate by filtering it through Google Model Armor.

Core Features & Use Cases

  • Sanitize Prompts: Clean user prompts before they are sent to a model.
  • Sanitize Responses: Filter model responses to remove potentially harmful or inappropriate content.
  • Create Templates: Define custom filtering rules and templates for content moderation.
  • Use Case: A customer service chatbot uses this Skill to sanitize both user queries and its own responses, preventing the spread of misinformation or offensive language.

Quick Start

Use the gws-modelarmor skill to sanitize the user prompt 'Tell me about your product'.

Frequently Asked Questions about gws-modelarmor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I filter user-generated content for safety before sending it to a model?

To filter user-generated content for safety, you can sanitize prompts before they are sent to a model. This process removes harmful or inappropriate language by applying custom filtering rules defined in specific templates.

What is the best way to moderate chatbot responses to prevent harmful content?

The best way to moderate chatbot responses is to sanitize the model's output using content filtering. This ensures the generated text is safe by passing it through custom templates designed for response validation.

How do I create custom templates for content moderation?

You can create custom templates for content moderation to define specific filtering rules. These templates allow you to establish customized safety boundaries for both prompt sanitization and response filtering.

Do I need the gws CLI tool to sanitize prompts with Model Armor?

Yes, you need the gws CLI tool to sanitize prompts using Model Armor. The tool processes the content by applying the specific Model Armor templates required for the filtering operation.

Can I use this Skill to clean user queries in a customer service chatbot?

Yes, you can use this Skill to clean user queries in a customer service chatbot. It sanitizes both incoming user prompts and outgoing responses, preventing the spread of misinformation or offensive language.

What is prompt sanitization and when do I need it?

Prompt sanitization is the process of cleaning user inputs before they reach a model. You need it when processing user-generated content to ensure prompts are free from potentially harmful or inappropriate text.