googleworkspace avatar

Gws Modelarmor

Google's Model Armor wrapped as a Claude skill for content safety filtering. You get sanitization commands for both user prompts and model responses, plus template creation for custom filtering rules. The main value is having enterprise-grade content moderation built into your workflow without writing safety logic from scratch. It's overkill for most personal projects, but if you're building user-facing AI features or need to meet compliance requirements, this handles the heavy lifting. The schema inspection commands are helpful since Google's API surface can be dense to navigate.

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

Install

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

Installs into .claude/skills of the current project.

Files

modelarmor (v1)

PREREQUISITE: Read ../gws-shared/SKILL.md for auth, global flags, and security rules. If missing, run gws generate-skills to create it.

gws modelarmor <resource> <method> [flags]

Helper Commands

CommandDescription
+sanitize-promptSanitize a user prompt through a Model Armor template
+sanitize-responseSanitize a model response through a Model Armor template
+create-templateCreate a new Model Armor template

Discovering Commands

Before calling any API method, inspect it:

# Browse resources and methods
gws modelarmor --help

# Inspect a method's required params, types, and defaults
gws schema modelarmor.<resource>.<method>

Use gws schema output to build your --params and --json flags.

Sponsors

Details

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

More from googleworkspace/cli

All 113
1googleworkspace avatarpersona-sales-opsgoogleworkspace/cliManage sales workflows — track deals, schedule calls, client comms.30.6Kskills.sh installs
2googleworkspace avatarrecipe-create-expense-trackergoogleworkspace/cliSet up a Google Sheets spreadsheet for tracking expenses with headers and initial entries.30.6Kskills.sh installs
3googleworkspace avatarrecipe-create-feedback-formgoogleworkspace/cliCreate a Google Form for feedback and share it via Gmail.30.5Kskills.sh installs
4googleworkspace avatarrecipe-post-mortem-setupgoogleworkspace/cliCreate a Google Docs post-mortem, schedule a Google Calendar review, and notify via Chat.30.5Kskills.sh installs
5googleworkspace avatargws-modelarmor-create-templategoogleworkspace/cliGoogle Model Armor: Create a new Model Armor template.30.5Kskills.sh installs
6googleworkspace avatarpersona-hr-coordinatorgoogleworkspace/cliHandle HR workflows — onboarding, announcements, and employee comms.30.4Kskills.sh installs