gws-modelarmor-sanitize-prompt

Sanitize user prompts with a Model Armor template via CLI flags.

Updated Jun 7, 2026
One-click install
npx skills add https://github.com/vikingokft/vikingo-studio-skills --skill gws-modelarmor-sanitize-prompt-vikingokft
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gws-modelarmor-sanitize-prompt
Source: https://github.com/vikingokft/vikingo-studio-skills/tree/main/google/gws-modelarmor-sanitize-prompt
Command: npx skills add https://github.com/vikingokft/vikingo-studio-skills --skill gws-modelarmor-sanitize-prompt-vikingokft

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Sanitizes user prompts by applying a Model Armor template to enforce safety and content rules, helping to prevent unsafe or inappropriate outputs.

Core Features & Use Cases

  • Template-driven safety: Applies predefined safety policies to user prompts before processing.
  • Configurable via CLI: Supports specifying a template, input text, or a full JSON payload for flexible use cases.
  • Use Case: Validate and sanitize a user-submitted prompt in a chat application to prevent disallowed content.

Quick Start

Run gws modelarmor +sanitize-prompt with your chosen template and input text so the prompt is sanitized before use.

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 user prompts to enforce content safety rules?

Sanitize user prompts by applying a Model Armor template that enforces safety and content rules, preventing unsafe or inappropriate outputs before processing interactive inputs, chat messages, or documents.

How do I configure prompt sanitization using the command line interface?

Configure prompt sanitization via CLI flags including --template to specify the safety policy, --text for the input string, and --json for full payload payloads, enabling flexible filtering workflows.

Does Model Armor sanitization work for chat application inputs and documents?

Yes, Model Armor sanitization applies to interactive prompts, chat inputs, and documents where user-generated text must be filtered, preventing disallowed content in chat applications before processing.

What are the limitations of using Model Armor templates for content safety?

Model Armor templates enforce safety by filtering user prompts via CLI, but rely on predefined policies and global security rules, meaning custom edge cases may require template adjustments to ensure proper sanitization.

Do I need a specific template to sanitize prompts with Model Armor?

Yes, you need to specify a predefined Model Armor template using the --template CLI flag to enforce the specific safety and content rules required for your prompt sanitization workflow.