gws-modelarmor-sanitize-prompt

Sanitize user prompts by applying a Model Armor template.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This tool sanitizes user prompts by applying a Model Armor template, ensuring unsafe content is filtered before processing.

Core Features & Use Cases

  • Template-driven sanitization enforces organization-specific safety rules on prompts.
  • Integrates with gws modelarmor for automated prompt processing in AI workflows.
  • Accepts input via --text or --json to accommodate different data sources.

Quick Start

Run gws modelarmor +sanitize-prompt with a selected template and input to produce a sanitized prompt.

Frequently Asked Questions about gws-modelarmor-sanitize-prompt

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

FAQPage Schema
How do I sanitize user prompts for AI applications using Model Armor?

To sanitize user prompts, apply a Model Armor template to filter unsafe content before processing. This tool integrates into automated prompt preprocessing pipelines, ensuring organization-specific safety rules are enforced on text or JSON inputs.

What is the best way to filter unsafe content from chatbot prompts before processing?

Template-driven sanitization filters unsafe content from chatbot prompts by applying predefined safety rules. You can submit text or full JSON requests to produce sanitized prompts suitable for downstream AI workflows.

Do I need a template resource name to sanitize prompts with Model Armor?

Yes, a valid template resource name is required to sanitize prompts with Model Armor. The template drives the sanitization process, enforcing your organization-specific safety and compliance rules on the input data.

Can I sanitize a full JSON request instead of just text input?

Yes, you can sanitize a full JSON request instead of just text input. The tool accepts both --text and --json arguments to accommodate different data sources within your content moderation pipelines.

When should I use automated prompt preprocessing in content moderation pipelines?

Automated prompt preprocessing should be used when integrating AI workflows that handle user-generated content. It ensures unsafe content is filtered out by a Model Armor template before the prompts reach your downstream AI applications.

Why does template-driven prompt sanitization matter for compliance?

Template-driven prompt sanitization matters for compliance because it enforces organization-specific safety rules on user prompts. By filtering unsafe content before processing, it ensures AI applications adhere to security and compliance requirements.