googleworkspace avatar

Gws Modelarmor Create Template

Creates Google Cloud Model Armor templates for filtering AI model inputs and outputs against security threats like jailbreak attempts. You'll use this when setting up content safety guardrails for production AI applications that need to block prompt injection, harmful content, or other model abuse patterns. Ships with a jailbreak detection preset, but you can pass custom JSON configurations for specific filtering rules. The resulting templates integrate with Google's AI services to sanitize prompts before they hit your models and responses before they reach users. Essential for any customer-facing AI feature where you can't manually review every interaction.

skills.sh installs
30.5K
GitHub stars
32.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add googleworkspace/cli --skill gws-modelarmor-create-template --agent claude-code

Installs into .claude/skills of the current project.

Files

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
--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.

Sponsors

Details

Repository
github.com/googleworkspace/cli
Categories
CLI & Terminal, Office & Documents

More from googleworkspace/cli

All 113
1googleworkspace avatarpersona-hr-coordinatorgoogleworkspace/cliHandle HR workflows — onboarding, announcements, and employee comms.30.4Kskills.sh installs
2googleworkspace avatarrecipe-share-event-materialsgoogleworkspace/cliShare Google Drive files with all attendees of a Google Calendar event.30.4Kskills.sh installs
3googleworkspace avatarrecipe-send-team-announcementgoogleworkspace/cliSend a team announcement via both Gmail and a Google Chat space.30.3Kskills.sh installs
4googleworkspace avatargws-modelarmor-sanitize-promptgoogleworkspace/cliGoogle Model Armor: Sanitize a user prompt through a Model Armor template.30.3Kskills.sh installs
5googleworkspace avatarrecipe-log-deal-updategoogleworkspace/cliAppend a deal status update to a Google Sheets sales tracking spreadsheet.30.2Kskills.sh installs
6googleworkspace avatargws-scriptgoogleworkspace/cliManage Google Apps Script projects.27.3Kskills.sh installs