Tooluck logoTooluck
SKILL.md

gws-modelarmor-sanitize-prompt

Agent skill fromgoogleworkspace/cli

Google Model Armor: Sanitize a user prompt through a Model Armor template.

How to install gws-modelarmor-sanitize-prompt

install gws-modelarmor-sanitize-prompt
# install the cli pack with the skills CLI
npx skills add googleworkspace/cli

# or add only this skill to Claude Code: copy the folder

skills/gws-modelarmor-sanitize-prompt/

# into

~/.claude/skills/gws-modelarmor-sanitize-prompt/ (all projects)

.claude/skills/gws-modelarmor-sanitize-prompt/ (one project)

skills/gws-modelarmor-sanitize-prompt/SKILL.md

Apache-2.0Full file
1# modelarmor +sanitize-prompt
2
3> **PREREQUISITE:** Read `../gws-shared/SKILL.md` for auth, global flags, and security rules. If missing, run `gws generate-skills` to create it.
4
5Sanitize a user prompt through a Model Armor template
6
7## Usage
8
9```bash
10gws modelarmor +sanitize-prompt --template <NAME>
11```
12
13## Flags
14
15| Flag | Required | Default | Description |
16|------|----------|---------|-------------|
17| `--template` | ✓ | — | Full template resource name (projects/PROJECT/locations/LOCATION/templates/TEMPLATE) |
18| `--text` | — | — | Text content to sanitize |
19| `--json` | — | — | Full JSON request body (overrides --text) |
20
21## Examples
22
23```bash
24gws modelarmor +sanitize-prompt --template projects/P/locations/L/templates/T --text 'user input'
25echo 'prompt' | gws modelarmor +sanitize-prompt --template ...
26```
27
28## Tips
29
30- If neither --text nor --json is given, reads from stdin.
31- For outbound safety, use +sanitize-response instead.
32
33## See Also
34
35- [gws-shared](../gws-shared/SKILL.md) — Global flags and auth
36- [gws-modelarmor](../gws-modelarmor/SKILL.md) — All filter user-generated content for safety commands

Excerpt shown under the repository's Apache-2.0 license.

More skills in cli

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates