personal-user-foundation

Set up personal user account infrastructure with PostgreSQL and Supabase.

Updated May 30, 2026
One-click install
npx skills add https://github.com/buitrankimlong/thongtincty --skill personal-user-foundation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: personal-user-foundation
Source: https://github.com/buitrankimlong/thongtincty/tree/main/.claude/skills/personal-user-foundation
Command: npx skills add https://github.com/buitrankimlong/thongtincty --skill personal-user-foundation

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires typescript, pg, supabase, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill sets up the basic infrastructure for differentiating between personal and company users, including database migration, triggers, types, hooks, and authentication wiring.

Core Features & Use Cases

  • Account Discriminator Setup: Initializes the database schema and triggers to distinguish between personal and company users.
  • Types Definition: Defines data types for personal user information.
  • Hooks and Services: Implements hooks and services for managing personal user profiles.
  • Authentication Wiring: Sets up authentication logic for personal users.
  • Use Case: When starting Phase 1 or Phase 2 of the personal user plan implementation, or when a feature needs to differentiate between personal and company users.

Quick Start

Run the npm run dev command to start the development server and begin implementing the personal user foundation.

Frequently Asked Questions about personal-user-foundation

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

FAQPage Schema
How do I set up database migration for personal and company user discrimination in PostgreSQL?

Database migration for account discrimination initializes schema and triggers in PostgreSQL and Supabase to distinguish between personal and company users. This foundation supports user profile management hooks and authentication wiring.

What is account type discrimination and when do I need it for user profile management?

Account type discrimination is the process of differentiating personal users from company users at the database level. You need it during Phase 1 or Phase 2 of personal user plan implementation when your application requires separate profile management and authentication logic for each user type.

How do I wire authentication logic for personal users using TypeScript and Supabase?

You wire personal user authentication by defining TypeScript data types for user information and implementing dedicated hooks and services. This authentication wiring integrates directly with your Supabase database setup to manage personal user profiles securely.

Do I need Supabase and PostgreSQL to implement the personal user foundation?

Yes, you need both PostgreSQL and Supabase for database operations to implement the personal user foundation. Supabase handles the backend infrastructure, while PostgreSQL executes the database migration and triggers necessary for account type discrimination.

What's the best way to bootstrap a personal user account infrastructure with TypeScript?

The best way to bootstrap personal user account infrastructure is running the development server via npm run dev. This initializes the TypeScript environment to define data types, implement hooks, and set up database migration for personal user profiles.

Why does my personal user plan implementation require database triggers for account discrimination?

Database triggers are required for account discrimination because they automatically enforce the distinction between personal and company users at the database level. This ensures data integrity when managing user profiles and routing authentication logic during Phase 1 or Phase 2 implementation.