Generate Actra policies, schema, and governance rules using natural language.
This Claude Skill helps you go from idea to enforceable policy YAML in seconds.
The Actra Claude Skill can:
- Generate policy YAML from plain English
- Create schema definitions for actions, actor and snapshot
- Suggest safe policy patterns
- Generate governance policies
- Explain why a rule blocks an action
- Create test scenarios
Actra enforces decisions at runtime.
This skill helps you write those decisions faster and correctly.
Actra enforces policies. Claude helps you create them.
Download the actra.skill file:
https://raw.githubusercontent.com/getactra/actra/main/claude/actra-policy-generator.skill
- Open Claude
- Go to Customize
- Go to Skills
- Select + > + Create skill > Upload a skill Upload the downloaded
actra.skillfile - Activate the skill
You can now describe policies in natural language.
Generate a policy to block refunds above 5000
Allow refunds above 5000 only for admin users
Create a governance rule that ensures all delete actions require approval
Block AI agents from calling tools that modify infrastructure
Explain why this policy blocks a refund of 8000
version: 1
rules:
- id: block_large_refund
scope:
action: refund
when:
subject:
domain: action
field: amount
operator: greater_than
value:
literal: 5000
effect: block- Generate policy using Claude Skill
- Copy the YAML
- Load into Actra runtime
Example:
policy = Actra.from_strings(schema, policy_yaml)Actra will now enforce the generated policy before execution.
- Start simple, then refine policies
- Use governance rules for safety-critical systems
- Always test policies with real scenarios
- Keep policies external to application logic
Want to improve the skill?
- Add better prompt templates
- Improve policy generation patterns
- Contribute real-world examples
- Main Repo: https://github.com/getactra/actra
- Docs: https://docs.actra.dev
Apache 2.0