gws-modelarmor-sanitize-response

仓库创建 2026年3月3日最近提交 5 天前SkillHot 收录 20 天前
▸ 精选理由

可在生成内容后自动化屏蔽或修正敏感输出。

▸ 风险提示

需云项目权限且会调用外部安全审查服务。

这个 Skill 做什么

通过 Model Armor 模板对模型响应进行安全过滤与审查。

把模型生成的回答过一遍规则和模板,自动把敏感内容删掉、改写或拒绝返回,适合在模型答复给用户前做一次安全审查。用在需要合规、屏蔽敏感信息或统一风格的场景,能保证输出满足企业或法规要求。特别之处是基于 Model Armor 的模板化规则,可以复用和集中管理审核策略。

▸ 展开 SKILL.md 英文原文

Google Model Armor: Sanitize a model response through a Model Armor template.

Skill 开发管理响应净化安全审查通用
3.0w
Stars
1.8k
Forks
40
仓库内 Skill
+562
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/googleworkspace/cli/main/skills/gws-modelarmor-sanitize-response/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/googleworkspace/cli/main/skills/gws-modelarmor-sanitize-response/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# 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

```bash
gws modelarmor +sanitize-response --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-response --templa
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有