G
gws-modelarmor-create-template
by @googleworkspacev
4.4(140)
在Google Model Armor中创建一个新的模板,用于模型安全和部署。
安装方式
npx skills add googleworkspace/cli --skill gws-modelarmor-create-templatecompare_arrows
Before / After 效果对比
1 组使用前
以前,创建Google Model Armor模板需要我手动配置各种参数和规则,这过程复杂且容易遗漏关键设置,尤其对于不熟悉平台的用户来说,学习曲线陡峭,耗时且可能导致配置不当。
使用后
现在,通过自动化指令,我能快速生成符合最佳实践的Google Model Armor新模板,系统会引导我完成必要配置,确保模板的完整性和有效性,极大地简化了模型安全策略的部署流程。
description SKILL.md
modelarmor +create-template
PREREQUISITE: Read
../gws-shared/SKILL.mdfor auth, global flags, and security rules. If missing, rungws generate-skillsto 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
- gws-shared — Global flags and auth
- gws-modelarmor — All filter user-generated content for safety commands
forum用户评价 (0)
发表评价
效果
易用性
文档
兼容性
暂无评价
统计数据
安装量3.5K
评分4.4 / 5.0
版本
更新日期2026年4月29日
对比案例1 组
用户评分
4.4(140)
5
24%
4
51%
3
24%
2
2%
1
0%
为此 Skill 评分
0.0
兼容平台
🔧Claude Code
🔧OpenClaw
🔧OpenCode
🔧Codex
🔧Gemini CLI
🔧GitHub Copilot
🔧Amp
🔧Kimi CLI
时间线
创建2026年3月16日
最后更新2026年4月29日