gws-modelarmor-create-template
Create Google Model Armor templates to filter prompts and responses for safety.
Works with
What it does
Requires GCP project ID, location, and template ID; supports preset templates (jailbreak) or custom JSON configuration
Templates work with companion sanitize-prompt and sanitize-response commands for comprehensive content filtering
Write operation requiring user confirmation before execution
Defaults to jailbreak preset if no preset or JSON configuration is specified
Installation Guide
How to use gws-modelarmor-create-template on Cursor
AI-first code editor with Composer
Prerequisites
Before installing skills in Cursor, ensure your development environment meets these requirements:
- βΊCursor installed and configured on your machine
- βΊNode.js 16+ with npm β verify with
node --version - βΊActive project directory where you want to add
gws-modelarmor-create-template
Run the install command
Execute the skills CLI command in your project's root directory to begin installation:
Fetches gws-modelarmor-create-template from googleworkspace/cli and configures it for Cursor.
Select Cursor when prompted
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Verify installation
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate gws-modelarmor-create-template. Access via /gws-modelarmor-create-template in your agent's command palette.
Security Notice
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Documentation
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
List & Monetize Your Skill
Submit your Claude Code skill and start earning
Use Cases
User Story & Requirements Generation
Create detailed user stories, acceptance criteria, and feature specs
Example
Generate user stories for 'password reset feature' with acceptance criteria, edge cases, and test scenarios
Reduce spec writing time by 50%, ensure comprehensive coverage
Competitive Analysis
Research competitors, compare features, identify gaps
Example
Analyze 5 competitor products, create feature comparison matrix, suggest differentiation opportunities
Complete competitive research in 2 hours instead of 2 days
Roadmap Prioritization
Evaluate features using frameworks (RICE, ICE, Kano) and create prioritized backlogs
Example
Score 20 feature ideas using RICE framework, generate prioritized roadmap with rationale