feat: realtime agent reference#21
Merged
gregnr merged 29 commits intofeature/supabase-skillfrom Feb 6, 2026
Merged
Conversation
124e570 to
78de1af
Compare
The CLAUDE.md symlink causes installation errors when using `npx skills add` as it tries to copy AGENTS.md to itself. - Remove createClaudeSymlink function from build.ts - Remove claudeSymlink from SkillPaths interface - Remove CLAUDE.md references from AGENTS.md structure documentation - Delete existing CLAUDE.md symlink from skills directory Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
4cdb582 to
7a861d9
Compare
78de1af to
d978409
Compare
Add a sanity test that verifies the skills CLI installation works: - Runs `npx skills add . -a claude-code -y` using current directory - Checks command doesn't fail (exit code 0) - Verifies .claude/skills directory is created - Dynamically discovers skills in the repo and verifies they're installed - Checks SKILL.md exists in each installed skill The test runs on every push to main and pull requests. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This reverts commit c07c234.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* feat: supabase db references * refactor: move database references to db subdirectory Move all database reference files to references/db/ to organize by product area and take advantage of the new subdirectory support in the build system. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
The build system now correctly preserves subdirectory paths when generating the Available References section. For example, files in references/db/ are now listed as references/db/file.md instead of just references/file.md. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
7a861d9 to
f5587cb
Compare
d978409 to
bbeb790
Compare
Co-authored-by: Filipe Cabaço <filipecabaco@gmail.com>
Co-authored-by: Filipe Cabaço <filipecabaco@gmail.com>
Co-authored-by: Filipe Cabaço <filipecabaco@gmail.com>
Co-authored-by: Filipe Cabaço <filipecabaco@gmail.com>
Co-authored-by: Filipe Cabaço <filipecabaco@gmail.com>
a450ab6 to
2f78f8f
Compare
- Merge feature/supabase-skill - Move realtime/* files to realtime-* prefix in references/ - Remove .claude from git tracking - Update SKILL.md with flat paths - Rebuild AGENTS.md Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What kind of change does this PR introduce?
Adds comprehensive Realtime reference documentation to the Supabase skill.
What is the current behavior?
The Supabase skill lacks detailed guidance for Realtime features. Developers using the skill had no reference material for Broadcast messaging, Presence tracking, or Postgres Changes subscriptions.
What is the new behavior?
Added a complete set of 8 reference files organized in
skills/supabase/references/realtime/covering:scope:entity:idpattern), configuration options, and authentication setup including RLS policies onrealtime.messagesrealtime.broadcast_changes()andrealtime.send()The
SKILL.mdresources table was updated to reflect the new Realtime categories, andAGENTS.mdwas regenerated to include navigation to the new reference files.Decisions
Key architectural and content decisions made during development:
Organized by feature prefix: Adopted the existing
db/pattern with prefixes (setup-,broadcast-,presence-,postgres-,patterns-) to enable predictable file discovery and maintain consistency with other reference categories.Broadcast over Postgres Changes: References consistently recommend Broadcast for new production applications due to scalability advantages. Postgres Changes is positioned as useful for prototyping but limited by per-subscriber RLS checks (100 subscribers = 100 DB reads per change). This guidance came from Supabase's own documentation and the kiro-powers steering file.
Security-first approach: Private channels and RLS policies on
realtime.messagesare emphasized throughout. All examples useprivate: trueand include authentication setup withsupabase.realtime.setAuth(). The setup-auth.md reference is marked CRITICAL impact.React cleanup patterns emphasized: Memory leak prevention through proper channel cleanup is given CRITICAL impact rating. The patterns-cleanup.md file includes detailed
useRefanduseEffectpatterns to prevent duplicate subscriptions and ensure channels are removed on unmount.Structured naming convention: Introduced
scope:entity:idtopic naming pattern (e.g.,room:123:messages) to enable topic-based RLS policies and make channel purposes clear and filterable.Database-triggered broadcasts: Highlighted
realtime.broadcast_changes()as the scalable alternative topostgres_changessubscriptions, with complete examples of trigger setup and client subscription patterns.Additional context
Sources consulted:
[supabase-prompts-use-realtime.md](https://github.com/supabase-community/kiro-powers/blob/main/shared/supabase-prompts-use-realtime.md)steering fileImpact ratings:
CRITICAL: setup-auth.md, broadcast-database.md, patterns-cleanup.md (security and stability)HIGH: setup-channels.md, broadcast-basics.md, patterns-errors.md (core functionality)MEDIUM: presence-tracking.md, postgres-changes.md (optional features with usage caveats)Trade-offs considered:
MEDIUMimpact because it has computational overhead and lower message rate quotas, making it appropriate only for specific use cases (online indicators, typing status) rather than general state synchronization.