gws-modelarmor-sanitize-prompt

googleworkspace/cli · updated Apr 8, 2026

$npx skills add https://github.com/googleworkspace/cli --skill gws-modelarmor-sanitize-prompt
0 commentsdiscussion
summary

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
skill.md

modelarmor +sanitize-prompt

PREREQUISITE: Read ../gws-shared/SKILL.md for auth, global flags, and security rules. If missing, run gws generate-skills to 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

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.675 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

1 / 8