gws-modelarmor
What it does
This command helps keep AI-generated content safe and appropriate. It acts as a filter to ensure AI responses do not contain dangerous or unsuitable information.
When to use it
- ✓When you want to be sure an AI's response is safe.
- ✓When creating content that will be seen by many people.
- ✓To prevent the AI from generating something offensive or harmful.
Skill link
https://github.com/googleworkspace/cli/blob/main/skills/gws-modelarmor/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Check if this AI response is safe to publish.”
5 new skills a week. 1 minute to read.
How it works
It uses a system called 'Model Armor' to analyze text. This system checks if the content follows safety rules before being shown to you or others.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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.
FAQ
What is 'Model Armor'?
'Model Armor' is a set of rules and tools that Google uses to ensure artificial intelligence generates safe and responsible content.
Do I need to install anything to use it?
This command is part of a Google toolset. If you already have access to these tools, you can use it. Otherwise, you might need to set them up first.
Can I create my own safety rules?
Yes, 'Model Armor' allows you to create your own 'templates' to define what is safe or not, according to your needs.
Details
Original description by the author
Google Model Armor: Filter user-generated content for safety.
repo: googleworkspace/cli
Popularity
- GitHub stars
- 32k
- Ranking position
- #9180
- License
- Apache-2.0
- Updated
- 10/6/2026
Comments
- …
More skills from this repository
gws-admin-reports
32kHelps your agent get activity reports from Google Workspace. It collects audit and usage data.
gws-calendar-agenda
32kHelps your agent see upcoming events across all calendars. It's useful for organizing your schedule and knowing what's coming up.
gws-calendar-insert
32kLets your agent create new events in Google Calendar. It's useful for scheduling appointments and meetings.
gws-calendar
32kAllows your agent to manage calendars and events. It's useful for organizing your life and work.
Similar skills
writing-skills
311kTeaches your agent to write new skills and test each one first, checking that the skill actually changes how the agent behaves.
writing-for-agents
310kExplains how to write clear instructions for AI agents, including skills, AGENTS.md, and CLAUDE.md files, so the agent behaves predictably.
bengali-nlp
280kHas your agent process Bengali text. It helps understand and work with the language, normalizing text and handling its unique characteristics.