gws-modelarmor
Google Model Armor: Filter user-generated content for safety.
Security Assessment
About gws-modelarmor
The gws-modelarmor skill, also known as Google Model Armor, provides a structured mechanism to filter and sanitize user-generated content for safety. It is designed to help developers and organizations ensure that inputs and outputs processed by AI models comply with safety guidelines, reducing the risk of inappropriate or unsafe content. By leveraging predefined templates, this skill allows for consistent application of content moderation rules, making it easier to manage user interactions in applications that involve natural language processing.
Key features of gws-modelarmor include helper commands for sanitizing both prompts and responses, as well as the ability to create new templates tailored to specific content moderation needs. Users can explore available resources and methods using the CLI, inspect parameters, and configure their calls using flags like --params and --json. The skill integrates with the gws ecosystem and requires prior setup of authentication and global flags as described in shared skill documentation. This ensures that only authorized and properly configured environments can utilize the filtering capabilities.
Typical use cases for gws-modelarmor involve applications that accept user input or generate AI-driven responses where safety and compliance are critical. Target users include AI developers, product managers, and teams responsible for content moderation in chatbots, virtual assistants, or any service where user-generated content needs to be filtered. By implementing gws-modelarmor, teams can maintain a higher standard of safety and consistency in content handling while reducing manual moderation effort.
FAQ
How do I sanitize a user prompt using gws-modelarmor?
You can use the `+sanitize-prompt` helper command to process a user prompt through a Model Armor template, ensuring that the content complies with safety guidelines.
Can I create custom templates for content moderation?
Yes, the `+create-template` helper command allows you to define new Model Armor templates for customized content filtering rules.
What are the prerequisites for using gws-modelarmor?
You must review the shared skill documentation for authentication, global flags, and security rules. If this is missing, run `gws generate-skills` to generate it.
How do I inspect available methods and parameters?
Use `gws modelarmor --help` to browse resources and methods, and `gws schema modelarmor.<resource>.<method>` to view required parameters, types, and defaults.
Does gws-modelarmor work independently of other gws components?
No, it requires the gws environment and relevant bins to be installed, and it relies on prior authentication setup as described in the shared skill documentation.
Install gws-modelarmor
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
googleworkspace/cli