gws-modelarmor

Sanitize user prompts with configurable safety rules via the gws CLI.

4|2|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/73ai/openbotkit --skill gws-modelarmor-73ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gws-modelarmor
Source: https://github.com/73ai/openbotkit/tree/main/skills/gws-modelarmor
Command: npx skills add https://github.com/73ai/openbotkit --skill gws-modelarmor-73ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Google Model Armor helps ensure safe, policy-compliant prompts by filtering and sanitizing user input before it reaches the AI model, reducing the risk of unsafe or leaking content.

Core Features & Use Cases

  • Prompt sanitization: Apply predefined safety templates to prompts to remove or neutralize unsafe content.
  • Policy-compliant workflows: Enforce content policies in chatbots and assistants before model calls.
  • Local processing: Operates on-device to keep data on your machine and preserve privacy.

Quick Start

Run the gws modelarmor command to sanitize a sample prompt before execution.

Frequently Asked Questions about gws-modelarmor

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

FAQPage Schema
How do I sanitize prompts to filter unsafe content before model execution?

Prompt sanitization applies predefined safety templates to user inputs, removing or neutralizing unsafe content before the AI model processes the request. This ensures policy-compliant workflows in chatbots and developer environments.

What is prompt sanitization and when do I need it for AI assistants?

Prompt sanitization is the process of filtering sensitive or unsafe content from user inputs before they reach an AI model. You need it in chatbots and assistants to enforce content policies and reduce the risk of data leakage.

Can I run content filtering and prompt sanitization locally to preserve data privacy?

Yes, prompt sanitization can operate on-device for local processing. This keeps data on your machine and preserves privacy by applying safety rules before model execution.

How do I configure safety rules for prompt sanitization using the gws CLI?

You can configure safety rules by applying predefined safety templates through the gws CLI. Running the gws modelarmor command sanitizes sample prompts by enforcing these rules before generation.

Do I need predefined safety templates to enforce content policies in chatbots?

Yes, predefined safety templates are required to enforce content policies in chatbots. These templates define the rules for filtering and neutralizing unsafe content before model calls.

What are the limitations of local prompt sanitization for AI models?

Local prompt sanitization requires configurable safety rules and integration via the gws CLI. It depends on predefined templates to filter content, meaning unconfigured rules may allow unsafe prompts to bypass the safety checks.