gws-modelarmor-sanitize-prompt

Sanitize user prompts using Model Armor templates.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gws, and includes scripts (resource) components.

What problem does it solve?

This Skill ensures user prompts are sanitized through Model Armor templates, mitigating security risks and improving content safety.

Core Features & Use Cases

  • Prompt Sanitization: Filters and cleans user-generated content to prevent harmful or inappropriate material.
  • Model Armor Templates: Utilizes predefined templates for specific sanitization requirements.
  • Use Case: Ideal for applications where user input is processed, such as Q&A forums, chatbots, and content moderation platforms.

Quick Start

Sanitize a user prompt using the Model Armor template 'projects/P/locations/L/templates/T'.

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 for content safety in a chatbot?

To sanitize user prompts, you can use Model Armor templates to filter and clean user-generated content, mitigating security risks. This prevents harmful or inappropriate material from being processed by applications like chatbots.

What is the best way to secure user input for content moderation platforms?

The best way to secure user input is by applying predefined Model Armor templates for prompt sanitization. This approach filters user-generated content to prevent harmful material from reaching your content moderation platforms.

How do I use Model Armor templates to filter user-generated content?

You use Model Armor templates by specifying the template path, such as 'projects/P/locations/L/templates/T', to securely sanitize user prompts. This ensures content safety by filtering inappropriate material.

Do I need gws to process user prompts with Model Armor templates?

Yes, you need the gws dependency to run this prompt sanitization process. It provides the required environment to securely process user prompts using Model Armor templates for content safety.

Why does user input sanitization matter for Q&A forums?

User input sanitization matters for Q&A forums because it mitigates security risks by filtering harmful or inappropriate material. Using predefined templates ensures user-generated content is processed securely and safely.

Can I use predefined templates for specific prompt sanitization requirements?

Yes, you can use predefined Model Armor templates for specific sanitization requirements. This allows you to securely filter and clean user prompts, ensuring content safety across various user-generated content applications.