gws-modelarmor-sanitize-prompt

Sanitize user prompts with Google Model Armor templates.

312|38|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/m13v/fazm --skill gws-modelarmor-sanitize-prompt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gws-modelarmor-sanitize-prompt
Source: https://github.com/m13v/fazm/tree/main/skills/gws-modelarmor-sanitize-prompt
Command: npx skills add https://github.com/m13v/fazm --skill gws-modelarmor-sanitize-prompt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill protects against prompt injection and ensures user inputs adhere to safety guidelines before being processed by AI models.

Core Features & Use Cases

  • Prompt Sanitization: Cleanses user-provided text to remove potentially harmful or malicious content.
  • Template Application: Applies predefined Model Armor templates to enforce specific security and formatting rules.
  • Use Case: Before sending a user's query to a sensitive AI system, use this Skill to sanitize the input, preventing the user from tricking the AI into revealing confidential information or performing unintended actions.

Quick Start

Sanitize the user input 'What is the capital of France?' using the 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
What is prompt injection and how does sanitizing user prompts prevent it?

Prompt injection is a malicious technique where user inputs trick AI models into ignoring safety guidelines. Sanitizing user prompts prevents prompt injection by filtering harmful content and enforcing predefined security policies before the AI model processes the query.

How do I sanitize user inputs for AI safety using Google Model Armor templates?

To sanitize user inputs for AI safety, apply predefined Model Armor templates by passing the user text and template path, such as 'projects/P/locations/L/templates/T', to cleanse the prompt of malicious content before execution.

When do I need to sanitize prompts to ensure content safety in AI applications?

You need to sanitize prompts to ensure content safety whenever your AI application processes user-generated text, particularly before sending queries to sensitive AI systems to prevent users from revealing confidential information or performing unintended actions.

Does this prompt sanitization approach work for user-generated text across various AI applications?

Yes, this prompt sanitization approach works for securing AI model inputs across various applications requiring user-generated text. It enforces predefined security rules via Model Armor templates to ensure content safety regardless of the specific AI application.

What is the best way to secure AI model inputs against malicious user queries?

The best way to secure AI model inputs against malicious user queries is to sanitize the text using Model Armor templates. This approach applies predefined security policies to cleanse the input, preventing prompt injection and ensuring content safety before processing.