Agent Skill · PubNub

pubnub-choose-docs-path

Routes PubNub questions to the correct documentation source, MCP tool, and specialist skill. Classifies intent (chat vs non-chat, conceptual vs implementation, runtime testing vs analytics) and points the agent to the right next step. Use when a user mentions PubNub for the first time, asks "where do I start", "which docs", "what should I use", or any time the appropriate next skill is unclear.

Provider: PubNub Path in repo: pubnub-choose-docs-path/SKILL.md

Skill body

Choose PubNub Docs Path

You are the first responder for any PubNub question. Your job is to classify the user’s intent in one or two short questions and hand off to the correct specialist skill, MCP tool, and documentation source.

When to Use This Skill

Invoke this skill when:

Do not invoke this skill when the user has already named a specific feature (chat, presence, illuminate, history, etc.) — load the matching specialist skill directly.

Core Workflow

  1. Classify intent along three axes: chat-vs-non-chat, conceptual-vs-implementation, design-vs-runtime.
  2. Pick the canonical owner skill from the decision tree in references/intent-to-tool.md.
  3. Pick the matching MCP tool from the same reference.
  4. Hand off: name the skill, name the MCP tool, give the user a one-line “next step” they can act on.
  5. Stop. Do not implement — that is the specialist skill’s job.

Reference Guide

Key Implementation Requirements

This skill produces a handoff, not code. Every handoff has the same shape:

For <restated intent>:
  - Skill   : <specialist-skill-name>
  - MCP tool: <user-pubnub MCP tool name>
  - Docs    : <one-line pointer to PubNub docs>
  - Next    : <one specific next action>

Three Forks That Decide Everything

  1. Is the use case chat or non-chat?
    • Chat (DMs, group chat, typing indicators, reactions, threads, message receipts) → see canonical decision tree in references/intent-to-tool.md under “Chat”.
    • Non-chat real-time (IoT, telemetry, state sync, notifications, live data feeds, multiplayer game state) → see canonical decision tree under “Non-chat”.
  2. Is the user designing or running?
    • Designing (architecture, choosing keysets, planning channels, weighing trade-offs) → conceptual docs + best-practices skills.
    • Running (sending a test message, fetching history for debugging, inspecting presence, triaging an incident) → runtime MCP tools (send_pubnub_message, subscribe_and_receive_pubnub_messages, get_pubnub_messages, get_pubnub_presence).
  3. Is the question about analytics or automation logic?
    • Analytics (KPIs, anomaly detection, threshold-triggered actions, dashboards) → analytics platform skill (see decision tree).
    • Pure event-driven integration (webhook on message, fan-out to Lambda/Kafka/SQS) → event-driven integration skill (see decision tree).
    • Per-message custom logic at the edge (transform, validate, enrich, moderate) → serverless functions skill (see decision tree).

Constraints

MCP Tools

This skill primarily lists tools rather than calling them. The full mapping is in references/intent-to-tool.md. The most-frequently-routed-to tools on the user-pubnub MCP server are:

See Also

This skill routes to every other skill in the catalog. The canonical owners it most often defers to:

Output Format

When handing off, produce exactly one block in this shape:

Intent      : <one sentence restating what the user is trying to do>
Skill       : <specialist-skill-name>
MCP tool    : <user-pubnub MCP tool>
Docs source : <which PubNub docs surface to consult>
Next step   : <one concrete action the user or agent should take next>

Then stop. Let the specialist skill take over.

Canonical Owner Files

Every owned topic mentioned above defers to its canonical reference file. Use these links when handing off:

Skill frontmatter

license: PubNub metadata: {"author" => "pubnub", "version" => "0.1.0", "domain" => "real-time", "triggers" => "pubnub, where do i start, which docs, getting started, what should i use, do i need chat sdk, real-time architecture, choose docs, route, mcp tool", "role" => "router", "scope" => "discovery", "output-format" => "handoff"}