Google Model Armor: Create a new Model Armor 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
gws modelarmor +create-template --project <PROJECT> --location <LOCATION> --template-id <ID>
| 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) |
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 '{...}'
[!CAUTION] This is a write command — confirm with the user before executing.
Copy a source-pinned command for your client. You run it yourself.
Destination: .claude/skills/gws-modelarmor-create-template · pinned to the source commit
# Run from your project root
git clone https://github.com/googleworkspace/cli.git .skillboard-tmp
git -C .skillboard-tmp checkout a3768d0e82ad83cca2da97724e46bea4ff0e6dbd
mkdir -p ".claude/skills"
cp -r ".skillboard-tmp/skills/gws-modelarmor-create-template" ".claude/skills/"
rm -rf .skillboard-tmpReview the source before running. This copies files into your project; it is not a one-click install and does not verify runtime safety.
sudo apt update && sudo apt install -y gitnpm install -g @anthropic-ai/claude-code# Run from your project root
git clone https://github.com/googleworkspace/cli.git .skillboard-tmp
git -C .skillboard-tmp checkout a3768d0e82ad83cca2da97724e46bea4ff0e6dbd
mkdir -p ".claude/skills"
cp -r ".skillboard-tmp/skills/gws-modelarmor-create-template" ".claude/skills/"
rm -rf .skillboard-tmpDestination: .claude/skills/gws-modelarmor-create-template
Scanner static-checks@0.1.0 · commit a3768d0e82ad. Static checks cannot prove runtime safety – review the source and the exact diff before installing. How checks work.
References parent-directory traversal, which can escape a target directory.
Evidence: ../· fingerprint fa08499e14d0113b