CtrlK
BlogDocsLog inGet started
Tessl Logo

pubnub/pubnub-functions

Create, configure, and deploy PubNub Functions 2.0 event handlers, triggers, and serverless endpoints. Use when building real-time message transformations, PubNub modules, webhook integrations, or edge data processing.

Does it follow best practices?

Evaluation98%

1.81x

Agent success when using this tile

Validation for skill structure

Overview
Skills
Evals
Files

Evaluation results

96%

40%

Chat Message Enrichment Function

Message transformation with KVStore enrichment

Criteria
Without context
With context

Default async export

0%

100%

Require inside function

100%

100%

Try/catch wrapping

0%

100%

Async/await usage

0%

100%

KVStore for profile lookup

100%

100%

Atomic counter usage

0%

100%

TTL in minutes

100%

100%

Returns request.ok()

100%

100%

Returns request.abort() on error

0%

50%

Operation limit respected

100%

100%

Channel pattern with wildcard

100%

100%

Staging before production

100%

100%

100%

44%

Serverless Product Catalog API

HTTP endpoint REST API function

Criteria
Without context
With context

Request-response signature

100%

100%

Response.send usage

0%

100%

CORS Allow-Origin header

100%

100%

CORS Allow-Methods header

100%

100%

OPTIONS preflight handling

100%

100%

Default async export

0%

100%

Try/catch wrapping

0%

100%

Async/await not then

0%

100%

KVStore require inside body

100%

100%

KVStore TTL in minutes

0%

100%

Error status 500 response

100%

100%

On Request trigger type

100%

100%

100%

28%

Order Notification Pipeline

Webhook integration with vault secrets and external API

Criteria
Without context
With context

Vault for secrets

100%

100%

No hardcoded secrets

100%

100%

XHR fetch for webhook

100%

100%

Fire for analytics

100%

100%

Default async export

0%

100%

Try/catch wrapping

0%

100%

Async/await pattern

0%

100%

Operation limit respected

0%

100%

Channel pattern for orders

100%

100%

Vault setup instructions

100%

100%

After Publish trigger

100%

100%

Staging recommendation

100%

100%

94%

62%

Periodic Leaderboard Aggregation

Scheduled interval aggregation function

Criteria
Without context
With context

Event parameter

0%

100%

Event.ok() return

0%

100%

Event.abort() on error

0%

100%

GetCounter for votes

0%

100%

Publish for broadcast

100%

100%

Default async export

0%

100%

Try/catch wrapping

0%

100%

Async/await pattern

0%

100%

Require inside function

100%

100%

Operation limit awareness

0%

25%

On Interval trigger

100%

100%

Console logging

100%

100%

100%

48%

Authenticated Rate-Limited Message Gateway

Rate limiting with JWT authentication

Criteria
Without context
With context

Vault for JWT secret

100%

100%

JWT module usage

0%

100%

IncrCounter for rate limit

0%

100%

Abort on auth failure

100%

100%

Abort on rate limit

100%

100%

Ok on success

100%

100%

Async/await not then

0%

100%

Default async export

0%

100%

Try/catch wrapping

0%

100%

Channel pattern validity

100%

100%

Require inside function

100%

100%

Operation limit respected

0%

100%

Install with Tessl CLI

npx tessl i pubnub/pubnub-functions
Evaluated
Agent
Claude Code

Table of Contents