More screenshots

    Works with the AI tools you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIGitHub CopilotGitHub CopilotGemini CLIGemini CLI+20 more

    Add Role Permissions Automatically

    1

    Automatically add role-based permissions to existing apps.

    $8.99

    Secure checkout via Stripe

    30-day refund guarantee

    Converts to your local currency at checkout

    0 installsSecurity scanned
    Add Role Permissions Automatically

    Add Role Permissions Automatically

    Example session with this skill installed

    Add an admin role to my Express app and protect all routes under /api/admin so only admins can access them.

    • Read your context and instructions
    • Compiled the add role permissions

    Project Detected: Express.js with Passport.js auth.

    Permission Feature Added

    • Admin role field in User model
    • isAdmin authorization middleware

    Files Modified

    • models/User.js
    • middleware/auth.js
    • routes/admin.js

    Validation Result: Linting and Type Check passed.

    Connects securely to your tools. The creator never sees your data.

    What you get

    Protect admin routes by injecting role-check middleware.Add RBAC fields to existing database schemas and models.Generate custom authorization guards for API endpoints.Audit and update existing route permissions for least-privilege access.

    About this skill

    The problem

    Manually implementing RBAC is error-prone and tedious. Developers often struggle to integrate role checks into existing middleware without breaking authentication or creating security holes.

    What it does

    • Detects existing authentication systems and user models automatically.
    • Injects role-based access control (RBAC) into existing routes and API endpoints.
    • Generates custom authorization middleware or guards following project conventions.
    • Updates database schemas and config files to support permission levels.
    • Verifies security changes by running type checks and existing test suites.

    Frameworks & tools

    Works with any Node.js, Python, or Go web framework. Handles Express, FastAPI, NestJS, and common ORMs like Prisma or SQLAlchemy.

    Why this beats prompting it yourself

    Generic prompts often hallucinate security patterns that don't match your specific auth stack. This skill performs a deep-file inspection first, ensuring new permission logic respects your existing middleware and naming conventions without weakening security.

    Use cases

    • Locking down an admin dashboard to specific user roles.
    • Adding a 'moderator' tier to an existing community platform.
    • Restricting sensitive API endpoints to authenticated owners only.
    • Scaffolding a least-privilege permission system for a new MVP.

    Known limitations

    Will not perform destructive database migrations or bypass existing auth. Requires an existing project structure to detect conventions.

    How to install

    Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.

    ~30 seconds
    1. 1

      Download the ZIP

      Free skills download straight away. Paid skills unlock right after purchase.

    2. 2

      Unzip into your skills folder

      Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.

    3. 3

      Ask your agent to use it

      Restart the agent if it was already running. It picks the skill up automatically - no config needed.

    Skills folder by agent

    Click the path to copy it. Create the folder if it does not exist yet.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    30-day refund

    Not a fit? Get your money back

    Trust & safety

    Security scanned

    Verified clean 22 days ago

    • Passed all security checks, Safe to install

    Listed22 days ago
    Updated8 days ago

    Frequently Asked Questions