gws-modelarmor

Sanitize prompts and responses using Google Model Armor templates.

Updated May 25, 2025
One-click install
npx skills add https://github.com/temple-slope/dotfiles --skill gws-modelarmor-temple-slope
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: gws-modelarmor
Source: https://github.com/temple-slope/dotfiles/tree/main/.agents/skills/gws-modelarmor
Command: npx skills add https://github.com/temple-slope/dotfiles --skill gws-modelarmor-temple-slope

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Filter user-generated content for safety by applying Google Model Armor templates to sanitize prompts and model outputs, reducing risk in AI systems.

Core Features & Use Cases

  • Prompt sanitization: sanitize user prompts before feeding them to a model.
  • Response sanitization: clean model outputs to enforce policies.
  • Template management: create and apply templates for consistent safety rules across workflows.

Quick Start

Run gws modelarmor with a resource and method to sanitize an input using a predefined template.

Frequently Asked Questions about gws-modelarmor

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

FAQPage Schema
How do I sanitize user prompts for AI security before sending them to a model?▼

Prompt sanitization filters user prompts for safety by applying Google Model Armor templates before feeding them to a model. You can sanitize inputs using the sanitize-prompt helper command with a predefined template.

What is the best way to enforce content safety policies on AI model responses?▼

Enforcing content safety policies on AI model responses is done through response sanitization. This cleans model outputs to ensure they comply with predefined rules using the sanitize-response helper command.

How do I create templates for consistent content safety rules across AI workflows?▼

Creating templates for consistent content safety rules involves using the create-template helper command. This allows you to define and apply uniform sanitization policies across various AI chat and generation workflows.

Can I use a CLI tool to apply Google Model Armor for prompt sanitization?▼

You can use a CLI tool to apply Google Model Armor for prompt sanitization by invoking it as gws modelarmor. It supports specifying resources and methods with flags to filter user-generated content.

Does this content safety tool require any dependencies to run?▼

This content safety tool does not require any external dependencies to run. It operates independently to provide template-based sanitization and policy enforcement for AI systems.