
Gws Modelarmor Create Template
- 23.9k installs
- 30k repo stars
- Updated July 22, 2026
- googleworkspace/cli
gws-modelarmor-create-template is a CLI skill that creates Google Cloud Model Armor templates for content filtering.
About
CLI command to create Google Model Armor templates for filtering user-generated content in LLM applications. Developers use this to set up content safety policies before processing prompts or responses through Model Armor filters. Critical for applications handling untrusted user input with AI models.
- Creates GCP Model Armor templates for content filtering
- Supports jailbreak presets and custom JSON configs
- Integrates with sanitize-prompt and sanitize-response commands
Gws Modelarmor Create Template by the numbers
- 23,859 all-time installs (skills.sh)
- +800 installs in the week ending Jul 28, 2026 (Skillselion tracking)
- Ranked #21 of 2,209 Security skills by installs in the Skillselion catalog
- Security screen: LOW risk (skills.sh audit)
- Data as of Jul 28, 2026 (Skillselion catalog sync)
gws-modelarmor-create-template capabilities & compatibility
- Works with
- gcp
- Use cases
- security audit
What gws-modelarmor-create-template says it does
Create a new Model Armor template
Defaults to the jailbreak preset if neither --preset nor --json is given
Use the resulting template name with +sanitize-prompt and +sanitize-response
npx skills add https://github.com/googleworkspace/cli --skill gws-modelarmor-create-templateAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 23.9k |
|---|---|
| repo stars | ★ 30k |
| Security audit | 3 / 3 scanners passed |
| Last updated | July 22, 2026 |
| Repository | googleworkspace/cli ↗ |
How do you create a Google Model Armor template?
Set up content filtering templates to prevent prompt injection and unsafe AI outputs in backend services.
Who is it for?
Securing LLM applications against prompt injection and harmful outputs
Skip if: Teams that already have Model Armor templates or only need one-off sanitization without creating new policies.
When should I use this skill?
Setting up content safety filters for AI-powered features
What you get
A new Google Model Armor template registered in a GCP project and location.
- Model Armor template resource created in specified GCP location
By the numbers
- Metadata version 0.22.5 in googleworkspace/cli
- Documents 3 required CLI flags: --project, --location, --template-id
Files
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
Related skills
How it compares
Use gws-modelarmor-create-template to provision templates; switch to gws-modelarmor-sanitize-prompt once a template exists.
FAQ
What are Model Armor templates?
Templates that define content filtering rules for LLM inputs and outputs, with presets like jailbreak detection.
Can I use custom JSON configs?
Yes, the --json flag allows full customization of template configuration, overriding preset templates.
Is Gws Modelarmor Create Template safe to install?
skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.