gws-modelarmor

Sanitize user prompts and model responses using gws modelarmor templates.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates detection and removal of unsafe or policy-violating content from user inputs and model outputs to prevent harmful or disallowed material from reaching downstream systems.

Core Features & Use Cases

  • Prompt Sanitization: Cleanse user prompts to remove disallowed or unsafe content before forwarding to models.
  • Response Sanitization: Post-process model outputs to filter, redact, or normalize unsafe responses.
  • Template Management: Create and apply Model Armor templates for consistent enforcement of safety policies.
  • CLI Discovery & Inspection: Inspect resources and method schemas via the gws CLI to build correct parameters and safe calls.

Quick Start

Sanitize the user message "Please remove insults and disallowed content from this input" using the modelarmor sanitize-prompt 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 before sending them to a model?

To sanitize user prompts, you apply a Model Armor template that automatically detects and removes unsafe or policy-violating content from the input before it reaches the model. This prevents disallowed material from entering your workflow.

What is the best way to filter unsafe content from model responses?

Filtering unsafe model responses involves post-processing outputs through Model Armor to redact, normalize, or remove harmful content. This ensures model responses comply with safety policies before reaching downstream systems.

How do I create and apply safety templates for content moderation?

You create Model Armor templates to define consistent safety rules, then apply them to sanitize prompts and responses. This template-driven approach enforces uniform policy compliance across your content workflows.

Can I inspect method schemas and resources using the gws CLI for moderation pipelines?

Yes, you can inspect resources and method schemas via the gws CLI. This allows you to build correct parameters and construct safe calls when configuring CLI moderation pipelines.

Does Model Armor work with Google Workspace integrations for content filtering?

Yes, Model Armor sanitizes user prompts and model responses specifically within Google Workspace integrations. It filters user-generated content to enforce safety rules and ensure policy compliance across these environments.