gws-modelarmor-create-template
Agent skill fromgoogleworkspace/cli
Google Model Armor: Create a new Model Armor template.
How to install gws-modelarmor-create-template
install gws-modelarmor-create-template
# install the cli pack with the skills CLI
npx skills add googleworkspace/cli# or add only this skill to Claude Code: copy the folder
skills/gws-modelarmor-create-template/
# into
~/.claude/skills/gws-modelarmor-create-template/ (all projects)
.claude/skills/gws-modelarmor-create-template/ (one project)
1# modelarmor +create-template23> **PREREQUISITE:** Read `../gws-shared/SKILL.md` for auth, global flags, and security rules. If missing, run `gws generate-skills` to create it.45Create a new Model Armor template67## Usage89```bash10gws modelarmor +create-template --project <PROJECT> --location <LOCATION> --template-id <ID>11```1213## Flags1415| Flag | Required | Default | Description |16|------|----------|---------|-------------|17| `--project` | ✓ | — | GCP project ID |18| `--location` | ✓ | — | GCP location (e.g. us-central1) |19| `--template-id` | ✓ | — | Template ID to create |20| `--preset` | — | — | Use a preset template: jailbreak |21| `--json` | — | — | JSON body for the template configuration (overrides --preset) |2223## Examples2425```bash26gws modelarmor +create-template --project P --location us-central1 --template-id my-tmpl --preset jailbreak27gws modelarmor +create-template --project P --location us-central1 --template-id my-tmpl --json '{...}'28```2930## Tips3132- Defaults to the jailbreak preset if neither --preset nor --json is given.33- Use the resulting template name with +sanitize-prompt and +sanitize-response.3435> [!CAUTION]36> This is a **write** command — confirm with the user before executing.3738## See Also3940- [gws-shared](../gws-shared/SKILL.md) — Global flags and auth41- [gws-modelarmor](../gws-modelarmor/SKILL.md) — All filter user-generated content for safety commands
Excerpt shown under the repository's Apache-2.0 license.
