AI

PubNub Agent Skills: Accelerate AI Development with Real-Time Intelligence

0 MIN READ • Feb 9, 2026

TL;DR: Six PubNub skills are now available for AI-assisted coding. Install via Tessl CLI or Vercel Skills CLI and get expert upgrades for your AI agent. All agents are supported. Add real-time features directly in your workflow such as multiplayer games, sport score updates, delivery notifications, telemedicine and live chat experiences.

Why skills?

Building real-time applications with PubNub just got easier. Instead of tab-switching to documentation or searching Stack Overflow (haha just kidding, you use the AI right?), get expert guidance directly from your AI coding assistant.

Ask about pub/sub patterns, presence tracking, or serverless functions, and get contextual answers with production-ready code.

Quick install

Choose your preferred method:

Option 1: Tessl

# Search available PubNub skills

npx tessl skill search pubnub

Option 2: Vercel Skills

# Install all PubNub skills at once

npx skills add pubnub/skills

Both methods require no global installation. Just use npx and you're ready.

Six skills, one powerful toolkit

Each PubNub Agent Skill focuses on a different pillar of real-time development, and together these six skills give your AI assistant a complete toolkit for building production-ready PubNub applications.

pubnub-app-developer

Your starting point for PubNub development:

  • Publish/subscribe patterns and message flow
  • Channel naming conventions and hierarchies
  • SDK initialization across platforms (JS, Python, Swift, Kotlin)
  • Listener setup and error handling

pubnub-presence

Everything for "who's online" features:

  • Admin Portal configuration for presence
  • Join/leave/timeout event handling
  • Occupancy tracking with hereNow
  • Multi-device user synchronization

pubnub-functions

Serverless edge computing with PubNub Functions 2.0:

  • Before/After Publish event handlers
  • On Request HTTP endpoints
  • KVStore, XHR, Vault, and Crypto modules
  • Real-world patterns: rate limiting, webhooks, workflows

pubnub-security

Lock down your application:

  • Access Manager (PAM) setup and grants
  • The critical authKey vs token distinction
  • AES-256 message encryption
  • TLS 1.2+ requirements and configuration

pubnub-chat

Build chat apps with the PubNub Chat SDK:

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

pubnub-scale

Optimize for millions of users:

  • Channel groups (up to 20,000 channels per client)
  • Wildcard subscriptions for hierarchical data
  • Message persistence and history API
  • Performance tuning and batching strategies


What's in each skill?

Every skill includes:

  1. SKILL.md - Role definition, triggers, and workflow guidance
  2. Reference files - Deep-dive documentation with code examples
  3. Best practices - Patterns learned from production deployments

Real examples, real code

Each skill provides production-ready patterns:


JavaScript
// Initialize with proper configuration
const pubnub = new PubNub({
  publishKey: 'pub-c-...',
  subscribeKey: 'sub-c-...',
  userId: 'unique-user-id',
  authKey: 'auth-token-from-server'  // For Access Manager
});

// Subscribe with presence tracking
pubnub.subscribe({
  channels: ['chat-room'],
  withPresence: true
});

A common pitfall the security skill catches:


JavaScript
// CORRECT: Use authKey for client configuration
const pubnub = new PubNub({
  subscribeKey: 'sub-c-...',
  publishKey: 'pub-c-...',
  userId: 'user-123',
  authKey: 'auth-token-from-server'  // NOT 'token'
});

// WRONG: This will silently fail
const pubnub = new PubNub({
  subscribeKey: 'sub-c-...',
  userId: 'user-123',
  token: 'auth-token'  // Wrong parameter name
});

How skills work

Once installed, skills are automatically available in your AI assistant. When you ask about PubNub topics, you get:

  • Correct API usage patterns
  • Common pitfalls and how to avoid them
  • Production-ready code examples
  • Platform-specific considerations

Ask: "How do I implement typing indicators with PubNub?"

Get: Complete implementation with the Chat SDK, including cleanup patterns and performance considerations.

Get started

Tessl:

Shell command
npx tessl skill search pubnub
tessl skill install pubnub:pubnub-app-developer

Vercel Skills:

Shell
npx skills add pubnub/skills

Learn More

Contributing

The skills are open source. Found an issue? Have an improvement?

  1. Fork the repository https://github.com/pubnub/skills 
  2. Update the skill’s SKILL.md file and reference files
  3. Bump the version in tile.json
  4. Submit a PR

Build something real-time and build it faster with skills!

Questions? Reach out to support@pubnub.com

AI
Dec 19, 2025

Your AI Agent Just Graduated from "Coder" to "Operator"

PubNub MCP Server closes the biggest gap in AI-assisted coding: infrastructure. Instead of breaking flow to create keysets, enable Presence or persistence, or debug live channels, your AI agent can provision, configure, and operate PubNub directly from your IDE. With live docs, it ships code that compiles and backend settings that match intent.
Markus Kohler
Markus Kohler
Real-Time
Oct 14, 2025

Migrating from Pusher to PubNub with AI-Assisted Vibe Coding

Migrate from Pusher to PubNub in minutes with a Claude/Cursor prompt. Choose Chat or Core SDK, set up Access Manager, presence, history, and serverless.
Markus Kohler
Markus Kohler
AI
Nov 7, 2025

Building AI Agents The Better Way

The right way to build AI agents leverages function/tool calling for deterministic JSON output format. This is a critical aspect to creating AI coding agents or any other kind of AI agent, and it enables you to automate virtually any workflow.
Stephen Blum
Stephen Blum