gws-modelarmor-sanitize-response

Sanitize model responses through a Model Armor template using the gws CLI.

8|3|Updated Feb 8, 2026
One-click install
npx skills add https://github.com/haberlah/dotfiles-claude --skill gws-modelarmor-sanitize-response-haberlah
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gws-modelarmor-sanitize-response
Source: https://github.com/haberlah/dotfiles-claude/tree/main/skills/gws-modelarmor-sanitize-response
Command: npx skills add https://github.com/haberlah/dotfiles-claude --skill gws-modelarmor-sanitize-response-haberlah

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Safeguard model outputs by applying a Model Armor template to sanitize content before delivery, reducing risk of unsafe or non-compliant responses.

Core Features & Use Cases

  • Template-driven sanitization: Enforce policy-compliant formatting and content of model outputs.
  • CLI-first workflow: Quick integration with the gws CLI to apply sanitization in automation pipelines.
  • Use Case: Apply to outbound chat responses in customer support, examples, and data-to-text generation where safety is critical.

Quick Start

Run gws modelarmor +sanitize-response with your template to sanitize a model output.

Frequently Asked Questions about gws-modelarmor-sanitize-response

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

FAQPage Schema
How do I sanitize model outputs before delivering them in a chat pipeline?

Sanitize model outputs by applying a Model Armor template to model-generated text or JSON before delivery. This enforces policy-compliant formatting and content, reducing the risk of unsafe or non-compliant responses in automation pipelines.

What is a Model Armor template used for in outbound safety workflows?

A Model Armor template defines the safety and compliance policies applied to sanitize model outputs. It acts as a configuration layer that enforces policy-compliant formatting and content filtering before a response reaches the end user.

How do I apply a Model Armor template to text or JSON responses using the gws CLI?

Run the gws modelarmor sanitize-response command with your specified template to sanitize text or JSON inputs. This CLI-first workflow integrates quickly into existing automation pipelines to filter outbound model responses.

Do I need the gws CLI to sanitize model outputs with Model Armor?

Yes, the gws CLI is required to apply the Model Armor template for sanitization. You also need a valid Model Armor template configured to process your outbound text or JSON model responses.

Can I use Model Armor sanitization for customer support chat responses?

Yes, Model Armor sanitization is designed for outbound chat responses in customer support and data-to-text generation. It ensures that model outputs are sanitized and safe for delivery in critical safety workflows.