Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Connect your AI coding agent to Upstash. This repo ships **skills** (per-SDK ins

| Skill | Description |
|-------|-------------|
| [redis-best-practices](skills/redis-best-practices/) | Performance rules for any Redis, measured on real databases: batching, big keys, TTLs, scripts, connections. |
| [upstash](skills/upstash/) | Combined skill covering all Upstash SDKs and CLIs. |
| [upstash-blob-js](skills/upstash-blob-js/) | S3-compatible object storage with direct browser uploads and signed URLs. |
| [upstash-box-cli](skills/upstash-box-cli/) | Drive a sandboxed cloud container from the terminal with the `box` CLI. |
Expand Down
1 change: 1 addition & 0 deletions skills.sh.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"description": "Serverless Redis for caching, session storage, leaderboards, and rate limiting from edge and serverless functions.",
"skills": [
"upstash-redis-js",
"redis-best-practices",
"upstash-ratelimit-js"
]
},
Expand Down
197 changes: 197 additions & 0 deletions skills/redis-best-practices/SKILL.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion skills/upstash-redis-js/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Common use cases and architectural patterns:

### Performance (performance/)

Optimization techniques and best practices:
Optimization techniques and best practices. For rules on batching, big keys, TTLs, scripts and connections at scale, see the `redis-best-practices` skill.

- **batching-operations.md** - MGET, MSET, batch operations
- **pipeline-optimization.md** - When to use pipelines, performance tips
Expand Down
4 changes: 4 additions & 0 deletions skills/upstash/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ logs and the DLQ, and remote work in a Box (shell, browser, git, preview URLs, P
uploaded to Blob; see `upstash-box-remote-work`). The sub-skills below are for writing application code; reach for
`upstash-cli` only when there is no MCP or the work is inherently shell work.

## [redis-best-practices](redis-best-practices/overview.md)

Redis best practices and performance rules for production, for any Redis deployment including open source Redis, Valkey, Redis Cloud, AWS ElastiCache, Google Memorystore, Azure Cache, and Upstash. Based on real support cases and measured on real databases. Use when writing, reviewing, or debugging Redis code for performance or scale, when choosing between pipeline and MGET, KEYS and SCAN, or WATCH and Lua, or when the user mentions Redis best practices, Redis performance, slow Redis, Redis latency, high memory use, a high Redis bill, big keys, hot keys, large hashes, HGETALL, cache hit rate, TTL jitter, key expiration, cache stampede, maxmemory and eviction policies, unbounded lists or streams, XACK and consumer groups, pub/sub vs streams, Lua script blocking, key-based locking for Lua scripts, connection pooling, serverless connections, retries and timeouts, replication lag, ACL users, credential rotation, or Redis monitoring. Also explains errors such as OOM command not allowed, BUSY Redis is busy running a script, NOSCRIPT, CROSSSLOT, and Upstash limit errors.

## [upstash-blob-js](upstash-blob-js/overview.md)

Work with the @upstash/blob TypeScript/JavaScript SDK for S3-compatible object storage with direct browser uploads, presigned URLs, multipart, and signed reads. Use when storing files or blobs, uploading avatars, images, videos, attachments or user documents, letting a browser upload straight to storage without proxying bytes through a server, generating public or time-limited signed URLs, serving private files, streaming large files with pause and resume, setting cache headers on stored objects, or reaching an S3-compatible bucket from the AWS SDK.
Expand Down
188 changes: 188 additions & 0 deletions skills/upstash/redis-best-practices/overview.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion skills/upstash/upstash-redis-js/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Common use cases and architectural patterns:

### Performance (performance/)

Optimization techniques and best practices:
Optimization techniques and best practices. For rules on batching, big keys, TTLs, scripts and connections at scale, see the `redis-best-practices` skill.

- **batching-operations.md** - MGET, MSET, batch operations
- **pipeline-optimization.md** - When to use pipelines, performance tips
Expand Down
Loading