Skip to content

pubnub/skills

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PubNub Skills Collection

A comprehensive set of skills for building real-time applications with PubNub's platform. Each skill provides focused guidance, code examples, and best practices for specific PubNub capabilities.

Quick Start

Tessl Install PubNub Skills

npx tessl skill search pubnub

Vercel Skills Install PubNub Skills

The skills CLI requires no installation and can be run directly using npx:

npx skills add pubnub/skills

Available Skills

Skill Description
pubnub-app-developer Core pub/sub messaging, channels, SDK patterns
pubnub-presence Real-time user online/offline status, occupancy
pubnub-functions Serverless edge functions, webhooks, KVStore
pubnub-security Access Manager, AES-256 encryption, TLS
pubnub-chat Chat SDK, messaging, typing indicators, reactions
pubnub-scale High-volume optimization, channel groups, persistence
pubnub-live-auctions Real-time auction platforms with bidding and countdowns
pubnub-live-betting-casino Real-time betting and casino game platforms
pubnub-live-sport-updates Real-time sports scores, play-by-play, scoreboards
pubnub-live-stock-quote-updates Real-time stock quotes and market data
pubnub-live-voting Real-time voting and polling systems
pubnub-multiplayer-gaming Real-time multiplayer game state synchronization
pubnub-order-delivery-driver Real-time order tracking and delivery driver systems
pubnub-telemedicine HIPAA-compliant telemedicine applications

For more details, see the CLI documentation.

Use in Claude Code

Once installed, skills are automatically available. Ask Claude about PubNub topics and the relevant skill will be invoked.

Skill Details

pubnub-app-developer

Build real-time applications with PubNub pub/sub messaging.

Use for:

  • Implementing channels and subscriptions
  • Message handling and SDK configuration
  • Cross-platform development (JavaScript, Python, Swift, Kotlin)

References:

  • publish-subscribe.md - Core pub/sub patterns
  • channels.md - Channel naming and design
  • sdk-patterns.md - SDK initialization across platforms

pubnub-presence

Implement real-time presence tracking with PubNub.

Use for:

  • User online/offline status indicators
  • Channel occupancy counts
  • Connection state management
  • Multi-device synchronization

References:

  • presence-setup.md - Admin Portal configuration
  • presence-events.md - Join/leave/timeout handling
  • presence-patterns.md - Scalable presence best practices

pubnub-functions

Develop serverless edge functions with PubNub Functions 2.0.

Use for:

  • Message transformation and enrichment
  • Webhook integrations with external APIs
  • HTTP endpoints for REST APIs
  • Scheduled tasks and aggregation

References:

  • functions-basics.md - Function structure and event types
  • functions-modules.md - KVStore, XHR, Vault, Crypto modules
  • functions-patterns.md - Counters, rate limiting, workflows

pubnub-security

Secure PubNub applications with Access Manager and encryption.

Use for:

  • Authentication and authorization
  • Token grants and permission management
  • AES-256 message encryption
  • TLS configuration

References:

  • access-manager.md - PAM setup and grants
  • encryption.md - Message and file encryption
  • security-best-practices.md - Key security, compliance

pubnub-chat

Build chat applications with PubNub Chat SDK.

Use for:

  • Direct messaging and group channels
  • Typing indicators and read receipts
  • Message reactions and threading
  • User management

References:

  • chat-setup.md - Chat SDK initialization
  • chat-features.md - Channels, messages, reactions
  • chat-patterns.md - User management, real-time sync

pubnub-scale

Scale PubNub applications for high-volume events.

Use for:

  • Performance optimization
  • Channel groups and wildcard subscriptions
  • Message persistence and history
  • Large-scale event handling (10K+ users)

References:

  • scaling-patterns.md - Channel groups, wildcards
  • performance.md - Message optimization, batching
  • persistence.md - History API, catch-up patterns

pubnub-live-auctions

Build real-time auction platforms with PubNub bidding and countdowns.

Use for:

  • Live bidding with server-side validation
  • Countdown timer synchronization
  • Outbid notifications and bid activity feeds
  • Auction lifecycle management

References:

  • auction-setup.md - Auction channel design, lifecycle management
  • auction-bidding.md - Bid validation, race condition handling
  • auction-patterns.md - Reserve prices, auto-extend, proxy bidding

pubnub-live-betting-casino

Build real-time betting and casino game platforms with PubNub.

Use for:

  • Live/in-play betting with real-time odds updates
  • Casino game state synchronization
  • Wager placement, validation, and settlement
  • Responsible gambling features

References:

  • betting-setup.md - Platform initialization, market channels, odds broadcasting
  • betting-wagers.md - Wager validation, bet settlement, cash-out
  • betting-patterns.md - Casino game sync, in-play patterns, compliance

pubnub-live-sport-updates

Deliver real-time sports scores, play-by-play, and scoreboards with PubNub.

Use for:

  • Live scoreboards and score tickers
  • Play-by-play and timeline feeds
  • Multi-sport dashboards
  • Fan engagement features

References:

  • sport-updates-setup.md - Channel hierarchy, data models, subscription patterns
  • sport-updates-events.md - Game event types, scoring logic, play-by-play
  • sport-updates-patterns.md - Multi-sport dashboards, fan engagement, scaling

pubnub-live-stock-quote-updates

Deliver real-time stock quotes and market data with PubNub.

Use for:

  • Live stock quote streaming
  • Portfolio tracking and watchlists
  • Price alert systems
  • Ticker displays and charting dashboards

References:

  • stock-quotes-setup.md - Channel design, quote broadcasting, ingestion
  • stock-quotes-portfolio.md - Watchlist management, price alerts
  • stock-quotes-patterns.md - Ticker displays, charting, market hours

pubnub-live-voting

Build real-time voting and polling systems with PubNub.

Use for:

  • Live audience polling and voting
  • Real-time vote tallying with duplicate prevention
  • Survey systems with live results
  • Multi-round voting workflows

References:

  • voting-setup.md - Poll creation, channel design, lifecycle management
  • voting-tallying.md - Duplicate prevention, atomic counters, fraud detection
  • voting-patterns.md - Result broadcasting, multi-round voting, weighted votes

pubnub-multiplayer-gaming

Build real-time multiplayer games with PubNub game state sync.

Use for:

  • Game lobbies and room management
  • Game state synchronization with delta updates
  • Matchmaking systems
  • Player connection and reconnection handling

References:

  • gaming-setup.md - Game room creation, lobby management
  • gaming-state-sync.md - Game state synchronization, delta updates
  • gaming-patterns.md - Matchmaking, turn-based/real-time patterns, anti-cheat

pubnub-order-delivery-driver

Build real-time order tracking and delivery driver systems with PubNub.

Use for:

  • GPS location streaming from driver apps
  • Order status pipeline management
  • Dispatch coordination and driver assignment
  • Customer-facing tracking pages

References:

  • delivery-setup.md - Channel design, GPS publishing, SDK initialization
  • delivery-status.md - Order lifecycle states, ETA calculation, geofencing
  • delivery-patterns.md - Dispatch coordination, fleet dashboards, proof of delivery

pubnub-telemedicine

Build HIPAA-compliant telemedicine apps with PubNub real-time messaging.

Use for:

  • Secure patient-provider communication
  • Virtual waiting rooms and patient queues
  • WebRTC video consultation signaling
  • Audit logging and consent management

References:

  • telemedicine-setup.md - HIPAA configuration, encryption, Access Manager
  • telemedicine-features.md - Patient queue management, notifications, consent
  • telemedicine-patterns.md - Consultation workflows, WebRTC signaling, audit logging

Publishing & Updating Skills

Initial Publish

To publish a new skill to the pubnub workspace:

tessl skill publish --workspace pubnub --public ./skills/<skill-name>

Publish All Skills (admin-only)

To publish or update all PubNub skills:

# From the tessl directory
npm i -g @tessl/cli
tessl login
tessl skill publish --workspace pubnub --public ./skills/pubnub-app-developer
tessl skill publish --workspace pubnub --public ./skills/pubnub-presence
tessl skill publish --workspace pubnub --public ./skills/pubnub-functions
tessl skill publish --workspace pubnub --public ./skills/pubnub-security
tessl skill publish --workspace pubnub --public ./skills/pubnub-chat
tessl skill publish --workspace pubnub --public ./skills/pubnub-scale
tessl skill publish --workspace pubnub --public ./skills/pubnub-live-auctions
tessl skill publish --workspace pubnub --public ./skills/pubnub-live-betting-casino
tessl skill publish --workspace pubnub --public ./skills/pubnub-live-sport-updates
tessl skill publish --workspace pubnub --public ./skills/pubnub-live-stock-quote-updates
tessl skill publish --workspace pubnub --public ./skills/pubnub-live-voting
tessl skill publish --workspace pubnub --public ./skills/pubnub-multiplayer-gaming
tessl skill publish --workspace pubnub --public ./skills/pubnub-order-delivery-driver
tessl skill publish --workspace pubnub --public ./skills/pubnub-telemedicine

Updating a Skill

  1. Edit the skill files - Update SKILL.md or reference files in the skill directory

  2. Bump the version - Update the version in tile.json:

    {
      "version": "0.2.0"
    }
  3. Re-publish - Run the publish command again:

    tessl skill publish --workspace pubnub --public ./skills/<skill-name>

Skill Structure

Each skill follows this directory structure:

skills/<skill-name>/
├── SKILL.md           # Main skill definition with frontmatter
├── tile.json          # Generated manifest (auto-created on first publish)
└── references/        # Supporting documentation
    ├── <topic-1>.md
    ├── <topic-2>.md
    └── <topic-3>.md

SKILL.md Frontmatter

Each SKILL.md requires YAML frontmatter:

---
name: skill-name
description: Short description for CLI display
license: PubNub
metadata:
  author: pubnub
  version: "1.0.0"
  domain: real-time
  triggers: comma, separated, keywords
  role: specialist
  scope: implementation
  output-format: code
---

Verify Publication

After publishing, verify the skill is available:

tessl skill search pubnub

Workspace

All skills are published to the pubnub workspace on tessl.io.

Version

All skills are currently at version 0.1.2.

License

PubNub

About

Skills for AI Agents using PubNub SDKs and APIs to enable multiplayer in games, in-app chat, live score updates and in-app communication.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors