
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.
$ npx -y skills add googleworkspace/cli --skill gws-modelarmor --agent claude-codeInstalls into .claude/skills of the current project.
PREREQUISITE: Read
../gws-shared/SKILL.mdfor auth, global flags, and security rules. If missing, rungws generate-skillsto create it.
gws modelarmor <resource> <method> [flags]
| Command | Description |
|---|---|
+sanitize-prompt | Sanitize a user prompt through a Model Armor template |
+sanitize-response | Sanitize a model response through a Model Armor template |
+create-template | Create a new Model Armor template |
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