Gws Modelarmor Create Template
Google WorkspaceOfficialPublished by Google Workspace
- Skill
- Tool integration
- Security
- Apache-2.0
- No issues found
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
The gws-modelarmor-create-template skill provides an interface to create new Model Armor templates within Google Cloud Platform. These templates are essential for defining safety configurations that can later be applied to sanitize prompts and responses in AI models. The skill supports creating templates from predefined presets, such as jailbreak protection, or via custom JSON configurations.
What it does
- Creates a new Model Armor template in a specified GCP project and location.
- Supports the use of predefined safety presets like jailbreak protection.
- Allows for custom template configuration using JSON input.
- Integrates with other Model Armor commands for prompt and response sanitization.
When to use it
- When you need to establish new safety guardrails for AI model interactions.
- When you want to deploy a standard jailbreak protection template.
- When you have a specific JSON configuration for a custom safety template.
Advantages
- Simplifies the creation of security templates via CLI.
- Provides flexibility between using presets and custom configurations.
- Ensures consistent safety policy application across AI model deployments.
Usage examples
- “Create a new Model Armor template named my-tmpl in us-central1 using the jailbreak preset.”
- The agent executes the command to create the template with the specified jailbreak configuration.
- “Set up a custom Model Armor template for project my-project in us-central1 using this JSON configuration: {config_data}.”
- The agent creates the template using the provided JSON body.
Install
Download the skill as a ZIP:
https://autogineer.com/agent-skills/googleworkspace/gws-modelarmor-create-template/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip gws-modelarmor-create-template.zip -d .agents/skills
Documentation by Google Workspace
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
Files
- ATTRIBUTION.mdAdded by AutoGineer922 B
- LICENSELicence file added by AutoGineer11.1 KiB
- SKILL.md1.7 KiB
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Security
No issues found by our static scan· No issues found
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Published by
- Google Workspace
- Publisher
- Google Workspace (Official)
- Source
- googleworkspace/cli · skills/gws-modelarmor-create-template · commit cd3697e
- Licence
- Apache License 2.0 (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by Google Workspace or Google Workspace.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download gws-modelarmor-create-template.zip