360 Secure SkillHub
360 安全技能中心

Gws Modelarmor Create Template

该 Skill 提供 gws 命令行用法,用于在指定 GCP 项目和位置创建 Google Model Armor 模板,可通过 jailbreak 预设或自定义 JSON 配置模板内容。属于写操作,执行前需与用户确认,并依赖 gws-shared 提供的认证与全局参数。

googleworkspace-bot
googleworkspace-bot
热度 74.91
最近更新 2026-05-11 17:29:02
分类:安全依赖:代码执行 / 第三方 API应用场景:自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add gws-modelarmor-create-template
Metadata
name
gws-modelarmor-create-template
description
Google Model Armor: Create a new Model Armor template.
metadata
{"version":"0.22.5","openclaw":{"category":"security","requires":{"bins":["gws"]},"cliHelp":"gws modelarmor +create-template --help"}}

modelarmor +create-template

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

Create a new Model Armor template

Usage

gws modelarmor +create-template --project <PROJECT> --location <LOCATION> --template-id <ID>

Flags

Flag Required Default Description
--project ✓ — GCP project ID
--location ✓ — GCP location (e.g. us-central1)
--template-id ✓ — Template ID to create
--preset — — Use a preset template: jailbreak
--json — — JSON body for the template configuration (overrides --preset)

Examples

gws modelarmor +create-template --project P --location us-central1 --template-id my-tmpl --preset jailbreak
gws modelarmor +create-template --project P --location us-central1 --template-id my-tmpl --json '{...}'

Tips

  • Defaults to the jailbreak preset if neither --preset nor --json is given.
  • Use the resulting template name with +sanitize-prompt and +sanitize-response.

[!CAUTION] This is a write command — confirm with the user before executing.

See Also