gws-modelarmor-sanitize-prompt

Sanitize user prompts through a Model Armor template for safety compliance.

8|1|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/niclasmartinsson-sys/google-workspace-cli --skill gws-modelarmor-sanitize-prompt-niclasmartinsson-sys
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gws-modelarmor-sanitize-prompt
Source: https://github.com/niclasmartinsson-sys/google-workspace-cli/tree/main/skills/gws-modelarmor-sanitize-prompt
Command: npx skills add https://github.com/niclasmartinsson-sys/google-workspace-cli --skill gws-modelarmor-sanitize-prompt-niclasmartinsson-sys

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Sanitize a user prompt through a Model Armor template to enforce safety and compliance before it reaches downstream systems.

Core Features & Use Cases

  • Applies a Model Armor template to sanitize prompts for safety and policy adherence.
  • Supports integration with gws workflows to sanitize inputs prior to model evaluation.
  • Use Case: sanitize a user message before sending it to an LLM in a chat assistant to prevent unsafe outputs.

Quick Start

Provide a prompt and a template name, then run gws modelarmor +sanitize-prompt to sanitize the input.

Frequently Asked Questions about gws-modelarmor-sanitize-prompt

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

FAQPage Schema
How do I sanitize prompts before sending them to an LLM?

Prompt sanitization applies a Model Armor template to filter unsafe content and enforce compliance policies before user messages are processed by downstream AI chat systems.

What do I need to set up to filter user inputs with Model Armor?

You need a configured Model Armor template name and the input text to sanitize. The system validates both inputs before applying the template's safety and compliance rules.

When should I apply prompt safety filtering in AI chat workflows?

Apply prompt safety filtering when user messages require policy enforcement and content moderation prior to model evaluation, preventing unsafe or non-compliant outputs in chat assistants.

Does prompt sanitization work with gws workflows?

Yes, prompt sanitization supports integration with gws workflows to sanitize inputs prior to model evaluation, ensuring safety and policy adherence across AI chat processes.

What are the limitations of using Model Armor templates for prompt compliance?

Model Armor template sanitization is limited to filtering and policy enforcement on the provided input text, requiring a valid template name and relying on pre-configured rules.