gws-modelarmor-create-template

Create Model Armor templates with the gws CLI for Google Cloud projects.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the creation of Model Armor templates that define content filtering and sanitization rules for LLM inputs and outputs, removing the manual work of composing and managing JSON templates across projects.

Core Features & Use Cases

  • Preset or Custom JSON: Create templates from built-in presets (e.g., jailbreak) or supply a full JSON configuration.
  • Project/Location Scoped: Target a specific GCP project and location so templates are created in the correct operational context.
  • Integration Points: Use the created template with sanitize-prompt and sanitize-response workflows to enforce safety checks before model inference.
  • Use Case: Quickly provision a template to block or transform unsafe user inputs before forwarding to a production model.

Quick Start

Run the gws modelarmor +create-template command with the --project, --location, and --template-id flags and include either --preset or --json to create a new template.

Frequently Asked Questions about gws-modelarmor-create-template

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

FAQPage Schema
How do I create a Model Armor template for content filtering in Google Cloud?

To create a Model Armor template, run the gws CLI command with your --project, --location, and --template-id flags, including either a --preset or a --json configuration body to define the sanitization rules.

What is a Model Armor template used for?

A Model Armor template defines content filtering and sanitization rules for LLM inputs and outputs, allowing you to block or transform unsafe user prompts and model responses before production inference.

Can I use a preset instead of custom JSON when creating a Model Armor template?

Yes, you can create a Model Armor template using built-in presets like jailbreak filtering, or you can supply a full custom JSON configuration body to define specific sanitization rules tailored to your needs.

Do I need to specify a project and location to create a Model Armor template?

Yes, you must provide both the --project and --location flags to ensure the Model Armor template is created in the correct operational context within your Google Cloud environment.

What can I do after creating a Model Armor template?

After creating a Model Armor template, you can integrate it with sanitize-prompt and sanitize-response workflows to enforce safety checks and block unsafe user inputs before forwarding them to a production model.

What CLI authentication is required to create Model Armor templates?

You need authenticated access to the gws CLI to create Model Armor templates, ensuring your credentials have the necessary permissions to manage content filtering configurations within your specified Google Cloud project and location.