Gws Modelarmor Sanitize Prompt

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

32,385 stars 1,999 forksAI, LLMs & Agents

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add googleworkspace/cli --skill gws-modelarmor-sanitize-prompt
Manual install
git clone --depth 1 https://github.com/googleworkspace/cli.git /tmp/cli
mkdir -p ~/.claude/skills
cp -r /tmp/cli/skills/gws-modelarmor-sanitize-prompt ~/.claude/skills/gws-modelarmor-sanitize-prompt

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the 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

```bash
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

```bash
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](../gws-shared/SKILL.md) — Global flags and auth
- [gws-modelarmor](../gws-modelarmor/SKILL.md) — All filter user-generated content for safety commands
Read the full skill on GitHub

Details

Skill name
gws-modelarmor-sanitize-prompt
Path
skills/gws-modelarmor-sanitize-prompt/SKILL.md
License
Apache-2.0
Repo updated
3 November 2026

FAQ

What does the Gws Modelarmor Sanitize Prompt skill do?

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

How do I install the Gws Modelarmor Sanitize Prompt skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add googleworkspace/cli --skill gws-modelarmor-sanitize-prompt. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Gws Modelarmor Sanitize Prompt popular?

It lives in googleworkspace/cli, which has 32,385 GitHub stars and 1,999 forks, and is included in 2 curated skill lists.

Related skills

Browse the most popular Claude skills, all ai, llms & agents skills, or write your own with the skills generator.