
Gws Modelarmor Create Template
Create a Google Cloud Model Armor template via the gws CLI so prompts and responses can be sanitized against jailbreak and custom policies.
Overview
gws-modelarmor-create-template is an agent skill for the Ship phase that creates GCP Model Armor templates via the gws CLI for jailbreak presets or custom JSON policies.
Install
npx skills add https://github.com/googleworkspace/cli --skill gws-modelarmor-create-templateWhat is this skill?
- Creates Model Armor templates with required --project, --location, and --template-id flags
- Supports jailbreak preset or full --json body override for custom template configuration
- Pairs with +sanitize-prompt and +sanitize-response after template creation
- Documents gws modelarmor +create-template CLI (metadata version 0.22.5)
- Marked as a write command—agent must confirm with user before executing
- CLI skill metadata version 0.22.5
- 3 required flags: --project, --location, --template-id
Adoption & trust: 15.1k installs on skills.sh; 26.9k GitHub stars; 3/3 security scanners passed (skills.sh audits).
What problem does it solve?
You are launching an AI feature on Google Cloud but lack a versioned Model Armor template to sanitize prompts and responses in production.
Who is it for?
Indie devs using the gws CLI who need repeatable Model Armor setup with jailbreak preset or custom JSON in CI or agent-driven deploy prep.
Skip if: Non-GCP stacks, teams without gws installed, or policy design-only reviews with no template provisioning.
When should I use this skill?
User asks to create a Model Armor template on GCP via gws modelarmor +create-template or needs jailbreak preset / JSON template provisioning.
What do I get? / Deliverables
A new Model Armor template exists in your project/region, ready to wire into +sanitize-prompt and +sanitize-response after explicit user approval of the write.
- Model Armor template resource in target project/location
- Template id/name usable with sanitize-prompt and sanitize-response
Recommended Skills
Journey fit
How it compares
CLI integration skill for one GCP write—not a full red-team methodology and not an MCP server.
Common Questions / FAQ
Who is gws-modelarmor-create-template for?
Solo builders and small teams on Google Cloud using gws to provision Model Armor before exposing generative endpoints.
When should I use gws-modelarmor-create-template?
During Ship security when you need a jailbreak or custom sanitization template immediately before hooking sanitize-prompt/response in staging or prod.
Is gws-modelarmor-create-template safe to install?
It instructs mutating GCP API calls via gws—review the Security Audits panel on this page and always confirm writes with the user.
Workflow Chain
Requires first: gws shared
SKILL.md
READMESKILL.md - Gws Modelarmor Create Template
# modelarmor +create-template > **PREREQUISITE:** Read `../gws-shared/SKILL.md` for auth, global flags, and security rules. If missing, run `gws generate-skills` to create it. Create a new Model Armor template ## Usage ```bash 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 ```bash 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](../gws-shared/SKILL.md) — Global flags and auth - [gws-modelarmor](../gws-modelarmor/SKILL.md) — All filter user-generated content for safety commands