add-role

Implement role-based access control for Next.js with Drizzle ORM and NextAuth.

34|6|Updated Jun 30, 2026
One-click install
npx skills add https://github.com/flavien-ia/hypervibe-harness --skill add-role
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-role
Source: https://github.com/flavien-ia/hypervibe-harness/tree/main/skills/add-role
Command: npx skills add https://github.com/flavien-ia/hypervibe-harness --skill add-role

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill eliminates the complexity of manually implementing access control, database enums, and admin management pages for user permissions.

Core Features & Use Cases

  • Role-Based Access Control: Easily define and manage roles like member, editor, or moderator.
  • Automated Infrastructure: Automatically configures Postgres enums, user table columns, and secure tRPC procedures.
  • Use Case: Quickly transition a simple application into a multi-tenant or tiered-access SaaS by adding role-based restrictions to specific pages and API endpoints.

Quick Start

Use the add-role skill to set up a member, editor, and moderator role system for my project.

Frequently Asked Questions about add-role

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add role-based access control to my T3 application?

To add role-based access control to a T3 application, you can use this skill to automatically generate Postgres enums, update user table columns, and configure secure tRPC procedures for permission gating.

How do I set up user roles with Drizzle ORM and NextAuth?

Setting up user roles with Drizzle ORM and NextAuth involves updating the database schema and adding helper functions. This skill automates that infrastructure setup to ensure type-safe permissions across your application.

Can I use this role management system for both client-side components and server-side tRPC procedures?

Yes, the role management system implements secure, type-safe permission gating that works across both client-side components and server-side tRPC procedures in Next.js applications.

What is the best way to implement an admin management UI for user permissions?

The best way to implement an admin UI for user permissions is using a skill that automatically provisions it alongside the database schema. This eliminates the complexity of manually building access control pages.

Does this access control skill require manual database enum configuration?

No, manual database enum configuration is not required. The skill provides automated infrastructure that directly configures Postgres enums and user table columns for roles like member, editor, and moderator.