bootstrap-user-management

Add account-scoped member management with LiveView UI and role guards to Phoenix 1.8 apps.

1|Updated May 7, 2026
One-click install
npx skills add https://github.com/agoodway/GoodSkills --skill bootstrap-user-management
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: bootstrap-user-management
Source: https://github.com/agoodway/GoodSkills/tree/main/skills/bootstrap-user-management
Command: npx skills add https://github.com/agoodway/GoodSkills --skill bootstrap-user-management

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It provides a ready-to-use way to manage account-scoped users in a multi-tenant Phoenix app, including listing members, inviting by email, role assignment, and safe removal.

Core Features & Use Cases

  • Account-scoped member management: Adds context functions to list members, fetch a member scoped to an account, invite users by email, and remove members safely.
  • Role-based access control: Enforces a role hierarchy where owners can assign any role (including owner), admins can manage members (but not assign owner), and members are restricted.
  • LiveView UI + invite modal: Implements a LiveView that displays members in a table and a LiveComponent modal for inviting and assigning roles.
  • Routes + optional notifications: Adds the required routes within the existing account-scoped live_session and supports optional email notification for invited users.
  • Safety guards: Prevents removing yourself and prevents removing the last owner to maintain account integrity.

Quick Start

Ask your agent to run bootstrap-user-management for your Phoenix 1.8 app after bootstrap-accounts and phx.gen.auth are already set up.

Frequently Asked Questions about bootstrap-user-management

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

FAQPage Schema
How do I add user invitations and role management to a Phoenix LiveView app?▼

You can bootstrap account user management in Phoenix by adding Ecto context functions, LiveView UI with an invite modal, and account-scoped routes to list, invite, and remove members with role-based access control.

How do I enforce RBAC roles like owner, admin, and member in a multi-tenant Phoenix app?▼

Enforcing RBAC roles in a multi-tenant Phoenix app requires a role hierarchy where owners can assign any role, admins manage members but cannot assign owner, and members are restricted from management actions.

Can I prevent users from removing themselves or the last owner in Phoenix LiveView member management?▼

Yes, implementing safety guards in your Phoenix member management context prevents users from removing themselves and blocks removal of the last owner to maintain account integrity.

Do I need DaisyUI and phx.gen.auth set up before adding account member management in Phoenix?▼

Yes, you need DaisyUI integration for the UI components, and your Phoenix app must already have bootstrap-accounts and phx.gen.auth outputs established before bootstrapping user management.

What's the best way to scope member listing and invitation routes in a multi-tenant Phoenix 1.8 application?▼

The best way to scope member routes in a multi-tenant Phoenix 1.8 app is adding them within your existing account-scoped live_session, wiring LiveView actions directly to context operations with compile-time verification.

How does inviting account users by email work with Phoenix LiveView and Ecto contexts?▼

Inviting account users by email in Phoenix uses an Ecto context function to handle the invitation and role assignment, triggered from a LiveComponent modal, with optional email notification support for invited users.