Write roles
The rolebook-write-roles agent skill.
Writes and tests Rolebook roles and rules in the app’s policy file, including deny rules, conditions, and field restrictions, with table-driven tests that prove who can and cannot do each action. Use when the user asks to add or change a role, a permission, an action, a deny, a condition such as only the owner or only while not archived, a field that some roles cannot see, or tests for roles.
Skill name: rolebook-write-roles. Ask your agent for the task in your own words, or invoke the skill by name where your tool supports it.
Packages it needs
| Requirement | Package and supported versions |
|---|---|
| Always | rolebook >=4.0.0 <5.0.0 |
The skill checks the installed versions against these ranges before it uses each part, and stops rather than up- or downgrading without your consent.
What it does
- Before you start
- Read the current policy
- Write the change
- Prove it with tests
- Show the user
- Check your work
Reference files
The skill loads these files from its references/ folder when a step needs them:
policy.mdsecurity-rules.mdtesting.md