RolebookDocs

Run sharing in production

The rolebook-operate-sharing agent skill.

Runs Rolebook Sharing safely in production: the storage migrations on every deploy, one scheduled pruning job with alerts, shared secrets across instances, what Rolebook never deletes, and when a rollback is allowed. Use when the user asks how to deploy, migrate, or upgrade sharing, schedule or fix pruning, set retention for sharing records or audit history, rotate sharing keys, run several instances, or roll sharing back.

Skill name: rolebook-operate-sharing. 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

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. Agree the plan with the user
  4. Run the migrations on every deploy
  5. Keep the secrets the same everywhere
  6. Schedule pruning
  7. Know what is never deleted
  8. Roll back only when asked
  9. Check your work

Reference files

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

  • postgres.md
  • prune-job.md
  • security-rules.md
  • sqlite.md