gws-modelarmor-create-template
Google Model Armor: Create a new Model Armor template.
Why use this skill?
Automate the creation of Google Model Armor safety templates. Easily deploy security guardrails for AI projects with this OpenClaw skill.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/googleworkspace-bot/gws-modelarmor-create-templateWhat This Skill Does
The gws-modelarmor-create-template skill allows developers and administrators to programmatically define safety templates within Google Cloud's Model Armor service. Model Armor acts as a defensive layer for AI applications, filtering prompts and responses for harmful content, jailbreak attempts, and policy violations. By utilizing this skill, users can standardize their safety configurations, ensuring that all AI interactions across their project adhere to consistent security guardrails. This skill automates the instantiation of these templates in specific GCP regions, facilitating infrastructure-as-code workflows for LLM safety management.
Installation
To integrate this skill into your environment, run the following installation command in your terminal:
clawhub install openclaw/skills/skills/googleworkspace-bot/gws-modelarmor-create-template
Ensure that you have completed the prerequisite setup defined in gws-shared/SKILL.md regarding authentication, as this skill interacts directly with Google Cloud Platform APIs and requires valid project permissions.
Use Cases
This skill is ideal for teams deploying production-grade generative AI models. Use it to:
- Deploy standardized 'jailbreak' protection presets across development, staging, and production environments.
- Create custom safety configuration templates that reflect organizational compliance policies.
- Programmatically update security postures without relying on the GCP web console.
- Automate safety auditing by applying template IDs across various prompt and response sanitization endpoints.
Example Prompts
- "Create a new Model Armor template for the production project 'ai-safety-prod' in 'us-central1' with the ID 'standard-guardrails' using the jailbreak preset."
- "Set up a custom Model Armor template named 'finance-bot-security' in 'europe-west1' using the provided JSON configuration file."
- "Can you help me initialize a new Model Armor template with the ID 'testing-temp' in the 'us-east1' region for my current project?"
Tips & Limitations
- Write Operation: As this is a write-heavy operation that alters your cloud infrastructure, the system will prompt for confirmation. Always double-check your project ID and location before executing.
- Defaults: If you do not specify a
--presetor--jsonconfiguration, the tool defaults to a standard jailbreak protection template. - Hierarchy: Refer to the
gws-modelarmordocumentation to understand how these templates interact with the+sanitize-promptand+sanitize-responsecommands. - Validation: Ensure your JSON schema matches the requirements for Model Armor templates, as invalid JSON will cause the API call to fail during execution.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-googleworkspace-bot-gws-modelarmor-create-template": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: external-api, file-write
Related Skills
gws-workflow-standup-report
Google Workflow: Today's meetings + open tasks as a standup summary.
recipe-create-feedback-form
Create a Google Form for feedback and share it via Gmail.
gws-admin-reports
Google Workspace Admin SDK: Audit logs and usage reports.
gws-alertcenter
Google Workspace Alert Center: Manage Workspace security alerts.
gws-chat
Google Chat: Manage Chat spaces and messages.