gws-modelarmor-sanitize-prompt▌
googleworkspace/cli · updated Apr 8, 2026
Sanitize user prompts through Google Model Armor safety templates.
- ›Requires a Model Armor template resource name and accepts text input via flag, stdin, or full JSON request body
- ›Designed for inbound prompt safety; use the companion +sanitize-response command for outbound response filtering
- ›Integrates with Google Cloud authentication and global flags defined in gws-shared
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
Discussion
Product Hunt–style comments (not star reviews)- No comments yet — start the thread.
Ratings
4.6★★★★★75 reviews- ★★★★★Camila Kapoor· Dec 28, 2024
Solid pick for teams standardizing on skills: gws-modelarmor-sanitize-prompt is focused, and the summary matches what you get after install.
- ★★★★★Luis Lopez· Dec 28, 2024
We added gws-modelarmor-sanitize-prompt from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Camila Jain· Dec 24, 2024
Keeps context tight: gws-modelarmor-sanitize-prompt is the kind of skill you can hand to a new teammate without a long onboarding doc.
- ★★★★★Arya Smith· Dec 24, 2024
gws-modelarmor-sanitize-prompt reduced setup friction for our internal harness; good balance of opinion and flexibility.
- ★★★★★Mia Bansal· Dec 20, 2024
gws-modelarmor-sanitize-prompt is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- ★★★★★Shikha Mishra· Dec 16, 2024
We added gws-modelarmor-sanitize-prompt from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Hana Bansal· Dec 12, 2024
Useful defaults in gws-modelarmor-sanitize-prompt — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
- ★★★★★Luis Wang· Dec 8, 2024
I recommend gws-modelarmor-sanitize-prompt for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
- ★★★★★Mia Gonzalez· Nov 27, 2024
gws-modelarmor-sanitize-prompt fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Diego Khan· Nov 15, 2024
gws-modelarmor-sanitize-prompt is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
showing 1-10 of 75