This connects Claude to Butterbase's realtime WebSocket layer so it can configure live database subscriptions and debug connection issues. The main gotcha is that RLS policies filter every event per user, so if clients connect but receive nothing, it's almost always missing or overly restrictive row-level security, not a broken WebSocket. The skill exposes manage_realtime for enabling tables and inspecting trigger state, plus detailed protocol docs for presence tracking and multiplayer state. Most valuable when you're adding collaborative features or chasing down why events aren't flowing, since the RLS enforcement model is silent by design and trips up everyone at least once.

GitHub stars
532
last updated
Jun 11, 2026

Install

$ npx -y skills add butterbase-ai/butterbase-skills --skill realtime --agent claude-code

Installs into .claude/skills of the current project.

Files

Butterbase Realtime

Live database change notifications over WebSocket, with per-row RLS enforcement. Once a table is enabled, INSERT/UPDATE/DELETE events stream to subscribed clients filtered by the same RLS policies that gate reads.

One tool: manage_realtime with two actions: configure and get.


1. The mental model

Postgres (data plane)              Control API                       Browser
─────────────────────              ────────────                      ────────
INSERT/UPDATE/DELETE  ──trigger──► realtime.changes  ──WAL listener─► WebSocket ──► client
                                          │
                                          └── RLS check per (role, user) ──► filter rows

When you configure a table:

  1. A Postgres trigger is installed → writes every change to realtime.changes.
  2. A LISTEN connection in RealtimeManager reads those changes.
  3. For each connected client, the change is RLS-checked as that user before broadcasting.
  4. Clients only receive events for rows they could read with a regular SELECT.

2. Prerequisites

Before calling configure, the table must:

Sponsors

Details

Repository
github.com/butterbase-ai/butterbase-skills
Categories
Backend & APIs, Debugging, Databases
License
MIT
First seen
Jun 11, 2026

More from butterbase-ai/butterbase-skills

All 39
1daffy0208 avatarSecurity Engineerdaffy0208/ai-dev-standardsImplement security best practices across the application stack. Use when securing APIs, implementing authentication, preventing vulnerabilities, or conducting s0skills.sh installs
2davila7 avatarMCP Integrationdavila7/claude-code-templatesThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context Protocol", 0skills.sh installs
3davila7 avatarSQL Injection Testingdavila7/claude-code-templatesThis skill should be used when the user asks to "test for SQL injection vulnerabilities", "perform SQLi attacks", "bypass authentication using SQL injection", "0skills.sh installs
4FISHers6 avatarsetupFISHers6/clawBro从零引导配置 clawbro-gateway,包括 API Key、默认 Agent、运行模式(Solo/Multi-agent/Team)、Channel(Lark/DingTalk)。无需 fork 或重新编译。0skills.sh installs
5github avatarmcp-implementation-security-reviewgithub/awesome-copilotReview the implementation source code of MCP (Model Context Protocol) servers, clients, and tool handlers against a security baseline — authentication, sessions0skills.sh installs
6hoangsonww avatardebug-live-issuehoangsonww/claude-code-agent-monitorDebug production-like issues in this repository with disciplined evidence gathering. Use when fixing failing workflows, regressions, flaky behavior, or data inc0skills.sh installs