RolebookDocs

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

RequirementPackage and supported versions
Alwaysrolebook >=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

  1. Before you start
  2. Check the starting point
  3. Hide what people cannot use
  4. Build the share dialog
  5. Show the history
  6. Check your work

Reference files

The skill loads these files from its references/ folder when a step needs them:

  • buttons.md
  • history.md
  • security-rules.md
  • share-dialog.md
  • sharing-module.md