chat-feature-foundation

Create PostgreSQL chat schemas, RPCs, and triggers with Supabase publication.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill unit provides the foundation for a chat feature, including database schema setup, RPC functions, triggers, and service hooks. It streamlines the development process for chat applications by automating key setup tasks and providing a comprehensive template.

Core Features & Use Cases

  • Database Schema Setup: Offers pre-defined database schemas with constraints and indexes.
  • RPC Functions: Provides essential RPC functions for creating conversations, sending messages, and managing user participation.
  • Triggers: Includes triggers for notifications and database operations like last message updates.
  • Service Hooks: Offers a template for service layer development and integration with real-time publication systems.

Quick Start

Run the SQL migration chat_schema.sql and utilize the provided RPC functions to start conversations and send messages.

Frequently Asked Questions about chat-feature-foundation

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

FAQPage Schema
How do I set up a chat database schema with Supabase RPC functions?

You can establish a chat database schema by running the provided SQL migration file, which creates tables, constraints, and indexes. The setup includes essential RPC functions for creating conversations, sending messages, and managing user participation.

Does this chat foundation setup include Row Level Security and real-time publication?

Yes, the chat database foundation supports both PostgreSQL Row Level Security for access control and Supabase publication for real-time communication. These features ensure secure message delivery and live updates across the chat application.

What database triggers are needed for a Supabase chat application?

Database triggers for a Supabase chat application handle automated notifications and update last message timestamps. The provided foundation includes these triggers to streamline database operations and maintain conversation state without manual intervention.

Can I use Python-based services for Supabase chat schema migrations?

Yes, the chat feature foundation utilizes Python-based services to execute schema migrations and perform database manipulations. This approach automates the setup of tables, triggers, and RPC functions required for Phase 1-2 chat implementation.

What is the best way to bootstrap a chat feature with database service hooks?

The best way to bootstrap a chat feature is to use a pre-defined database schema with integrated service hooks. This foundation provides templates for service layer development and connects seamlessly with real-time publication systems.

Do I need external dependencies to run the chat schema SQL migration?

No external dependencies are required to run the chat schema SQL migration. The foundation operates independently with scripts and references to establish the database structure, RPCs, and triggers directly within your PostgreSQL environment.