
gws-modelarmor-create-template
โ Officialโ 29,425by Google ยท part of googleworkspace/cli
Google Model Armor: Create a new Model Armor template.
This is the playbook your agent receives when the skill activates โ you don't need to read it to use the skill, but it's here to audit before installing.
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
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
npx skills add googleworkspace/cli --skill "gws-modelarmor-create-template" --full-depthRun this in your project โ your agent picks the skill up automatically.
Usage
gws modelarmor +create-template --project <PROJECT> --location <LOCATION> --template-id <ID>No common issues documented yet. If you hit a problem, the repository's GitHub Issues page is the best place to look.
Licensed under Apache-2.0โ you can use, modify, and redistribute it under that license's terms.
View the full license file on GitHub โ