Google Model Armor: Create a new Model Armor template.
The gws-modelarmor-create-template skill allows users to create new Model Armor templates within Google Cloud Platform (GCP). This skill addresses the need for standardized, secure configurations for handling user-generated content in AI applications. By providing a mechanism to generate templates, it simplifies the process of defining safety and content moderation policies, ensuring that AI models operate within defined security and ethical guidelines. Users no longer need to manually configure or manage template structures, reducing the risk of errors and inconsistencies in security enforcement.
This skill offers several key features and capabilities. It requires specifying a GCP project, location, and template ID to create a new template. Users can choose between using a preset template, such as 'jailbreak,' or providing a custom JSON configuration to define specific behaviors. The skill integrates with other Model Armor commands, allowing seamless use of the resulting template with operations like +sanitize-prompt and +sanitize-response. Its command-line interface provides clear flags for required and optional parameters, along with examples and tips for effective use, making it accessible for both new and experienced users.
The gws-modelarmor-create-template skill is ideal for developers, security engineers, and AI practitioners who need to enforce content safety and moderation policies consistently across AI models. It is particularly useful in environments where user-generated content must be filtered or sanitized before processing. Typical use cases include creating templates for AI chatbots, content moderation systems, and automated safety checks, providing a reliable and standardized approach to managing AI interactions safely and efficiently.
Use the command `gws modelarmor +create-template` with the required flags `--project`, `--location`, and `--template-id`. You can optionally specify `--preset` or `--json` for template configuration.
Yes, you can provide a JSON body using the `--json` flag, which will override the preset option if specified.
If neither `--preset` nor `--json` is given, the command defaults to using the 'jailbreak' preset.
Yes, you should read the shared skill documentation (`gws-shared`) for authentication, global flags, and security rules. If it is missing, run `gws generate-skills` to create it.
This is a write operation, so it is recommended to confirm with the user before executing, as it will create a new template in your GCP project.
Quick Setup:
.claude/skills/Repository
googleworkspace/cli