gws-modelarmor-sanitize-prompt
What it does
This tool helps clean and prepare text you want to send to an artificial intelligence. It uses a predefined template to ensure the text is safe and appropriate.
When to use it
- ✓When you want to make sure your question to the AI won't cause issues.
- ✓Before sending sensitive information to the AI.
- ✓To standardize the format of questions for different AIs.
Skill link
https://github.com/googleworkspace/cli/blob/main/skills/gws-modelarmor-sanitize-prompt/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
“Clean my prompt: 'Tell me about the secrets of the universe.' using the 'universal-secrets-template'.”
5 new skills a week. 1 minute to read.
How it works
You provide the text you want to clean and the name of a cleaning template. The tool applies the rules of that template to your text.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
modelarmor +sanitize-prompt
PREREQUISITE: Read
../gws-shared/SKILL.mdfor auth, global flags, and security rules. If missing, rungws generate-skillsto create it.
Sanitize a user prompt through a Model Armor template
Usage
gws modelarmor +sanitize-prompt --template <NAME>
Flags
| Flag | Required | Default | Description |
|---|---|---|---|
--template |
✓ | — | Full template resource name (projects/PROJECT/locations/LOCATION/templates/TEMPLATE) |
--text |
— | — | Text content to sanitize |
--json |
— | — | Full JSON request body (overrides --text) |
Examples
gws modelarmor +sanitize-prompt --template projects/P/locations/L/templates/T --text 'user input'
echo 'prompt' | gws modelarmor +sanitize-prompt --template ...
Tips
- If neither --text nor --json is given, reads from stdin.
- For outbound safety, use +sanitize-response instead.
See Also
- gws-shared — Global flags and auth
- gws-modelarmor — All filter user-generated content for safety commands
FAQ
What is a 'template'?
It's a set of predefined rules that the tool uses to clean your text.
What happens if I don't provide text?
The tool will read the text you type directly in the terminal or copy from elsewhere.
Can I use this to clean the AI's responses?
No, this tool is for cleaning what you send to the AI. To clean responses, use the '+sanitize-response' tool.
Details
Original description by the author
Google Model Armor: Sanitize a user prompt through a Model Armor template.
repo: googleworkspace/cli
Popularity
- GitHub stars
- 32k
- Ranking position
- #9178
- 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.