Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
googleworkspace avatar

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)
At a glance

gws-modelarmor-create-template capabilities & compatibility

Works with
gcp
Use cases
security audit
From the docs

What gws-modelarmor-create-template says it does

Create a new Model Armor template
SKILL.md
Defaults to the jailbreak preset if neither --preset nor --json is given
SKILL.md
Use the resulting template name with +sanitize-prompt and +sanitize-response
SKILL.md
npx skills add https://github.com/googleworkspace/cli --skill gws-modelarmor-create-template

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs23.9k
repo stars30k
Security audit3 / 3 scanners passed
Last updatedJuly 22, 2026
Repositorygoogleworkspace/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

SKILL.mdMarkdownGitHub ↗

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

gws modelarmor +create-template --project <PROJECT> --location <LOCATION> --template-id <ID>

Flags

FlagRequiredDefaultDescription
--projectGCP project ID
--locationGCP location (e.g. us-central1)
--template-idTemplate ID to create
--presetUse a preset template: jailbreak
--jsonJSON 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.

Securityappseccompliance

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.