googleworkspace avatar

Gws Modelarmor Sanitize Response

The gws-modelarmor-sanitize-response skill allows Google Workspace CLI users to filter model-generated responses through a Model Armor template to ensure outbound safety before content reaches end users. It accepts model output via command-line flags or standard input and applies configured safety policies to detect and sanitize potentially harmful content. This skill is designed for developers integrating AI models into Google Workspace applications who need to implement outbound content filtering as part of their safety pipeline.

skills.sh installs
30.2K
GitHub stars
32.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add googleworkspace/cli --skill gws-modelarmor-sanitize-response --agent claude-code

Installs into .claude/skills of the current project.

Files

modelarmor +sanitize-response

PREREQUISITE: Read ../gws-shared/SKILL.md for auth, global flags, and security rules. If missing, run gws generate-skills to create it.

Sanitize a model response through a Model Armor template

Usage

gws modelarmor +sanitize-response --template <NAME>

Flags

FlagRequiredDefaultDescription
--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-response --template projects/P/locations/L/templates/T --text 'model output'
model_cmd | gws modelarmor +sanitize-response --template ...

Tips

  • Use for outbound safety (model -> user).
  • For inbound safety (user -> model), use +sanitize-prompt.

See Also

Sponsors

Details

Repository
github.com/googleworkspace/cli
Categories
CLI & Terminal, Office & Documents

More from googleworkspace/cli

All 113
1googleworkspace avatarrecipe-create-classroom-coursegoogleworkspace/cliCreate a Google Classroom course and invite students.30Kskills.sh installs
2wshobson avatarbats-testing-patternswshobson/agentsMaster Bash Automated Testing System (Bats) for comprehensive shell script testing. Use when writing tests for shell scripts, CI/CD pipelines, or requiring test11.4Kskills.sh installs
3openai avatarplaywrightopenai/skillsUse when the task requires automating a real browser from the terminal (navigation, form filling, snapshots, screenshots, data extraction, UI-flow debugging) vi9.3Kskills.sh installs
4rorkai avatarasc-xcode-buildrorkai/app-store-connect-cli-skillsBuild, archive, generate export options, export, upload, and manage Xcode version/build numbers with the current asc xcode helpers before App Store Connect uplo7.9Kskills.sh installs
5rorkai avatarasc-id-resolverrorkai/app-store-connect-cli-skillsResolve App Store Connect IDs (apps, builds, app and digital-goods versions, groups, testers) from human-friendly names using asc. Use when commands require IDs7.8Kskills.sh installs
6rorkai avatarasc-crash-triagerorkai/app-store-connect-cli-skillsTriage TestFlight crashes, beta feedback, and performance diagnostics using asc. Use when the user asks about TF crashes, TestFlight crash reports, beta tester 6.6Kskills.sh installs