Skills
Skills that teach your coding agent to add Rolebook authorization and sharing to an app the right way.
The Rolebook skills bundle (rolebook 0.1.0) teaches a coding agent to add Rolebook authorization and sharing to an app the right way. It is published to Amakinto-Labs/rolebook-skills.
Install
Into every detected agent tool, one tool, or as a dry run, with the plugins CLI; or the skills only, with the skills CLI (Node 22.20 or later):
# Every detected agent tool. plugins@1.3.6
npx plugins@1.3.6 add Amakinto-Labs/rolebook-skills
npx plugins@1.3.6 add Amakinto-Labs/rolebook-skills --target claude-code # one tool: claude-code, cursor, codex, grok, kimi, github-copilot, vscode
npx plugins@1.3.6 discover Amakinto-Labs/rolebook-skills # dry run
# Skills only, into the current project (add -g for every project). skills@1.7.4, Node 22.20+
npx skills@1.7.4 add Amakinto-Labs/rolebook-skills
npx skills@1.7.4 add Amakinto-Labs/rolebook-skills --skill rolebook-setup -a claude-code In Claude Code without either CLI:
/plugin marketplace add Amakinto-Labs/rolebook-skills
/plugin install rolebook@rolebook The skills
| Skill | Name | Does |
|---|---|---|
| Set up Rolebook | rolebook-setup | Adds Rolebook authorization to a Next.js or Hono app in TypeScript: a policy file, a session-to-binding loader, trusted resource loaders, and server-side permission checks on routes |
| Add sharing | rolebook-add-sharing | Makes one resource type shareable with Rolebook Sharing: owners, members with roles, invitations to existing users, access that ends on a date, listing what a user can access, and the database tables and server routes it needs |
| Add the screens | rolebook-add-screens | 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 |
| Write roles | rolebook-write-roles | 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 |
| Debug a no | rolebook-debug-denial | Finds out why Rolebook said no to someone and how to fix it, by reproducing the exact check through the app’s own loaders and reading its decision code and trace |
| Review before launch | rolebook-launch-review | Reviews an app that uses Rolebook for common access-control mistakes before launch and reports each finding with file, line, risk, and fix, changing nothing unless asked |
| Mount the API | rolebook-mount-api | Mounts the Rolebook Sharing HTTP API in a Hono or Next.js app with @rolebook/server, taking the tenant and actor from the session, checking origins, and keeping invitation tokens on the server, then calls it from the browser with a typed fetch client |
| Add custom roles | rolebook-custom-roles | Moves an app that uses Rolebook Sharing to versioned policies stored in its own database, so operators can save, preview, and publish policy changes and define custom member roles per tenant within a fixed template |
| Run sharing in production | rolebook-operate-sharing | 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 |
| Write a storage adapter | rolebook-write-adapter | Writes a Rolebook Sharing storage adapter for a database the first-party adapters do not cover, and proves it with the @rolebook/sharing-testkit contract suite before any route uses it |
Each skill states the package versions it supports, uses only the APIs these docs and its references show, and follows the bundle’s shared security rules.