
Gws Modelarmor
- 24k installs
- 30k repo stars
- Updated July 22, 2026
- googleworkspace/cli
gws-modelarmor is a Google Workspace skill that filters user-generated content and AI model responses for safety violations.
About
Google Model Armor filters user-generated content and AI model responses for safety violations. Use when sanitizing untrusted user prompts, model outputs, or chat-based UGC through Google's content safety classifier.
- Filter user-generated content for safety violations using Google Model Armor
- Sanitize prompts and model responses through safety templates
Gws Modelarmor by the numbers
- 23,987 all-time installs (skills.sh)
- +802 installs in the week ending Jul 28, 2026 (Skillselion tracking)
- Ranked #20 of 2,209 Security skills by installs in the Skillselion catalog
- Security screen: LOW risk (skills.sh audit)
- Data as of Jul 28, 2026 (Skillselion catalog sync)
gws-modelarmor capabilities & compatibility
- Capabilities
- prompt sanitization · response filtering · content classification
What gws-modelarmor says it does
Google Model Armor: Filter user-generated content for safety.
npx skills add https://github.com/googleworkspace/cli --skill gws-modelarmorAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 24k |
|---|---|
| repo stars | ★ 30k |
| Security audit | 3 / 3 scanners passed |
| Last updated | July 22, 2026 |
| Repository | googleworkspace/cli ↗ |
How do you filter unsafe LLM prompts with Model Armor?
security-audit
Who is it for?
Applications with user-generated content, chat interfaces, or AI model outputs needing content moderation
Skip if: Teams without the gws CLI, Google Cloud Model Armor access, or any LLM input/output safety requirements.
When should I use this skill?
Needing to validate untrusted user input or model responses for safety
What you get
Sanitized prompts, filtered model responses, and Model Armor API calls via the gws CLI.
- sanitized prompts
- filtered model responses
By the numbers
- Metadata version 0.22.5 in googleworkspace/cli
- Documents 2 helper commands: +sanitize-prompt and +sanitize-response
Files
modelarmor (v1)
PREREQUISITE: Read../gws-shared/SKILL.mdfor auth, global flags, and security rules. If missing, rungws generate-skillsto create it.
gws modelarmor <resource> <method> [flags]Helper Commands
| 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 |
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.
Related skills
How it compares
Use gws-modelarmor for end-to-end Model Armor CLI workflows; pair with gws-modelarmor-create-template when no template exists yet.
FAQ
What CLI command sanitizes prompts in gws-modelarmor?
gws-modelarmor documents the +sanitize-prompt helper, invoked as gws modelarmor +sanitize-prompt, which passes user text through a configured Google Model Armor template before LLM inference.
What must load before gws modelarmor commands run?
gws-modelarmor requires reading gws-shared/SKILL.md for auth, global flags, and security rules. If missing, run gws generate-skills to create the shared skill first.
Is Gws Modelarmor safe to install?
skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.