gws-modelarmor-create-template
Helps your agent create safety templates for prompts. Allows defining rules to protect AI interactions.
What it does
This tool creates a security template to protect your data. Think of it as a set of rules to ensure the information you use is safe.
When to use it
- ✓When you need to define new security rules for your data.
- ✓When setting up a new system and wanting to add a layer of protection.
- ✓If you already use security models and want to create a new one for a specific task.
Example of what to ask your AI
“Create a security template named 'my-secure-model' in project 'my-project' at location 'us-central1'.”
Want more? Open the sections below.
How to use
The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.
Skill link
Ready-to-paste message
How it works
You provide the project name, location, and a unique identifier for your template. Optionally, you can use a pre-defined template like 'jailbreak' or provide your own configurations in JSON format.
Installation
Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.
In the terminal (Claude Code, Codex, Cursor), in your project folder:
npx skills add googleworkspace/cli --skill gws-modelarmor-create-templateOr download just the file:
curl -L https://raw.githubusercontent.com/googleworkspace/cli/main/skills/gws-modelarmor-create-template/SKILL.md -o SKILL.mdTechnical content (original SKILL.md)
Original text by the author, straight from GitHub.
modelarmor +create-template
PREREQUISITE: Read
../gws-shared/SKILL.mdfor auth, global flags, and security rules. If missing, rungws generate-skillsto create it.
Create a new Model Armor template
Usage
gws modelarmor +create-template --project <PROJECT> --location <LOCATION> --template-id <ID>
Flags
| Flag | Required | Default | Description |
|---|---|---|---|
--project |
✓ | — | GCP project ID |
--location |
✓ | — | GCP location (e.g. us-central1) |
--template-id |
✓ | — | Template ID to create |
--preset |
— | — | Use a preset template: jailbreak |
--json |
— | — | JSON body for the template configuration (overrides --preset) |
Examples
gws modelarmor +create-template --project P --location us-central1 --template-id my-tmpl --preset jailbreak
gws modelarmor +create-template --project P --location us-central1 --template-id my-tmpl --json '{...}'
Tips
- Defaults to the jailbreak preset if neither --preset nor --json is given.
- Use the resulting template name with +sanitize-prompt and +sanitize-response.
[!CAUTION] This is a write command — confirm with the user before executing.
See Also
- gws-shared — Global flags and auth
- gws-modelarmor — All filter user-generated content for safety commands
FAQ
What is a 'preset'?
A 'preset' is a ready-made security template you can use. The example given is 'jailbreak', which is a type of security configuration.
What is the '--json' flag for?
It's a way for you to provide detailed and customized instructions for creating the security template, instead of using a pre-made one.
Why is it important to know the created template name?
The name of the created template is used in other tools to apply the security rules you've defined, such as 'sanitize-prompt' and 'sanitize-response'.
Details
Original description by the author
Google Model Armor: Create a new Model Armor template.
repo: googleworkspace/cli
Popularity
- GitHub stars
- 32k
- Ranking position
- #6275
- License
- Apache-2.0
- Updated
- 10/6/2026
Comments
- …
More skills from this repository
gws-admin-reports
Helps your agent get activity reports from Google Workspace. It collects audit and usage data.
googleworkspace/cli
gws-calendar-agenda
Helps your agent see upcoming events across all calendars. It's useful for organizing your schedule and knowing what's coming up.
googleworkspace/cli
gws-calendar-insert
Lets your agent create new events in Google Calendar. It's useful for scheduling appointments and meetings.
googleworkspace/cli
gws-calendar
Allows your agent to manage calendars and events. It's useful for organizing your life and work.
googleworkspace/cli
Similar skills
bengali-nlp
Has your agent process Bengali text. It helps understand and work with the language, normalizing text and handling its unique characteristics.
affaan-m/ECC
prompt-caching-strategy
Helps your agent optimize how it uses prompts for language models. It analyzes how prompts are made to find ways to cut costs and make responses faster by reusing information when possible.
affaan-m/ECC
prompt-optimizer
Has your agent analyze and improve the prompts you write. It suggests how to add information or change the wording so the AI model understands better and gives the desired answer.
affaan-m/ECC