upstash

upstash is a skill for Claude Code, Codex from ashish7802/awesome-api-skills. It costs 0 tokens per session (557 once invoked), scanned A, original, MIT.

An HTTP-based service for Redis and Kafka that works in serverless and edge environments. Redis is a fast data store often used for caching and rate limits; Kafka handles event streams.

In plain words
What is it for?
Use it for edge rate limiting, caching, event streaming, and tracking short-lived application data.
Why use it?
It provides these services where direct network connections may be restricted, such as Cloudflare Workers or Vercel Edge.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for edge rate limiting, caching, event streaming, and tracking short-lived application data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ashish7802/awesome-api-skills/upstash
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ashish7802/awesome-api-skills --skill upstash
Clone the repo
git clone --depth 1 https://github.com/ashish7802/awesome-api-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for upstash

README.md
[![agentmods](https://agentmods.dev/badge/skills/ashish7802/awesome-api-skills/upstash/github.svg)](https://agentmods.dev/skills/ashish7802/awesome-api-skills/upstash)
Your own site
<a href="https://agentmods.dev/skills/ashish7802/awesome-api-skills/upstash"><img src="https://agentmods.dev/badge/skills/ashish7802/awesome-api-skills/upstash/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for upstash

Your own site · 80×15
<a href="https://agentmods.dev/skills/ashish7802/awesome-api-skills/upstash"><img src="https://agentmods.dev/badge/skills/ashish7802/awesome-api-skills/upstash.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 557 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00557
Opus 5 $0.00000 $0.00279
Sonnet 5 $0.00000 $0.00111
Haiku 4.5 $0.00000 $0.00056

Measured 5d ago against content hash 80e4bab69d6e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

upstash scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (examples/basic.py, examples/basic.ts, examples/rate-limit.ts, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/upstash/SKILL.md · 61 lines

How it starts

The opening of the file, as written. The whole thing — 61 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Upstash API Skill

Quick Start

Upstash provides serverless Redis and Kafka via REST APIs, making it uniquely compatible with Edge environments where raw TCP connections are restricted.

npm install @upstash/redis

Common Workflows

Rate Limiting at the Edge

Utilize Upstash Redis in Cloudflare Workers or Vercel Edge to track IP addresses. Implement a sliding window algorithm to protect expensive downstream APIs (like OpenAI) from abuse.

Production Patterns

REST vs TCP

In serverless/edge environments, always use @upstash/redis (REST HTTP wrapper). In long-running containers (EC2, ECS), you may use standard ioredis connecting to the Upstash TCP endpoint for lower latency.

Error Recovery

Upstash HTTP API retries automatically under the hood via the @upstash/redis SDK. Ensure your logic handles missing keys gracefully (Redis returns null for cache misses).

Security Notes

Keep the UPSTASH_REDIS_REST_TOKEN secure. Avoid storing highly sensitive PII in Redis without application-level encryption, as it is primarily a fast caching layer.

Performance Considerations

REST overhead adds ~10-20ms of latency compared to raw TCP. For extremely high-throughput data pipelines, consider Upstash Kafka instead of Redis Pub/Sub to guarantee message durability.

Testing Guidance

Use a separate Upstash database for integration tests, or mock the REST endpoints using generic JSON responses.

Troubleshooting

If data disappears unexpectedly, ensure you are not hitting the memory limit of your free tier, which triggers the LRU (Least Recently Used) eviction policy.

References

Why use this skill

Use this when your agent works with upstash — structured patterns beat pasted docs and prevent common hallucinations.

AI pitfalls

  • Inventing column names or schema fields
  • Using deprecated driver methods or wrong connection strings
  • Omitting connection pooling or transaction boundaries

Read the full file on GitHub · 61 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 61 lines · 0 tokens per session scan A 80e4bab69d6e

Subscribe to this mod's changes

upstash is a skill published in the GitHub repository ashish7802/awesome-api-skills (13 stars, last pushed 9d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 557 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

azure-resource-manager-redis-dotnet

Azure Resource Manager SDK for Redis in .NET. Use for MANAGEMENT PLANE operations: creating/managing Azure Cache for Redis instances, firewall rules, access keys, patch schedules, linked servers (geo-replication), and private endpoints via Azure Resource Manager. NOT for data plane operations (get/set keys, pub/sub) …

microsoft/skills · 114 tokens

aws-cloudformation-elasticache

Provides AWS CloudFormation patterns for ElastiCache Redis or Memcached infrastructure, including subnet groups, parameter groups, security controls, and cross-stack outputs. Use when designing cache tiers, high-availability replication groups, encryption settings, or reusable CloudFormation templates for application…

giuseppe-trisciuoglio/developer-kit · 61 tokens

cis-aws-database-5.11

Ensure ElastiCache has Cluster Mode Enabled.

CyberStrikeus/CyberStrike · 18 tokens

cis-aws-database-5.12

Ensure ElastiCache is deployed across multiple Availability Zones (AZs).

CyberStrikeus/CyberStrike · 24 tokens

cis-aws-database-5.13

Ensure ElastiCache has automatic backups enabled.

CyberStrikeus/CyberStrike · 18 tokens

workstation-offbox-backup

Keep a data-heavy workstation app's local database small and fast while preserving full history off-box, with archived data staying directly readable without a restore step. Splits by data shape — searchable text to a log/search platform, bulk media to snapshotted storage — and pulls data rather than scripting a push.…

dryvist/claude-code-plugins · 100 tokens