Add the screens
The rolebook-add-screens agent skill.
Adds sharing screens and permission-aware buttons to an app that already uses Rolebook Sharing: a share dialog with owner, members and invitations, an access history panel, and buttons hidden or disabled when the user cannot use them. Use when the user asks for a share button or dialog, a members list, an activity or audit panel, or to hide actions a user is not allowed to take.
Skill name: rolebook-add-screens. 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 |
| Always | @rolebook/sharing >=0.1.0 <0.2.0 |
| One of | @rolebook/sharing-postgres >=0.1.0 <0.2.0, @rolebook/sharing-sqlite >=0.1.0 <0.2.0 |
| One of | @rolebook/sharing-better-auth >=0.1.0 <0.2.0, @rolebook/sharing-clerk >=0.1.0 <0.2.0, @rolebook/sharing-workos >=0.1.0 <0.2.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
- Check the starting point
- Hide what people cannot use
- Build the share dialog
- Show the history
- Check your work
Reference files
The skill loads these files from its references/ folder when a step needs them:
buttons.mdhistory.mdsecurity-rules.mdshare-dialog.mdsharing-module.md