ioredis

ioredis is a skill for Claude Code, Codex from jgamaraalv/ts-dev-kit. It costs 153 tokens per session (828 once invoked), scanned A, original, MIT.

A reference skill for ioredis v5, a Node.js and TypeScript client for Redis, which is a fast data store often used for caching, queues, and messaging.

In plain words
What is it for?
Use it while writing code for Redis connections, key-value operations, pipelines, transactions, publish/subscribe messaging, Lua commands, scanning, or connection shutdown.
Why use it?
It puts the required import style, common operations, and known pitfalls in one place. This helps avoid setup and usage mistakes when adding Redis to a Node.js project.

Skill for Claude CodeCodex

Part of the ts-dev-kit plugin — 22 skills, 15 agents shipped together

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.

agentmods
npx agentmods add skills/jgamaraalv/ts-dev-kit/ioredis
Any agent
npx skills add jgamaraalv/ts-dev-kit --skill ioredis
Clone the repo
git clone --depth 1 https://github.com/jgamaraalv/ts-dev-kit

Made for: Claude Code, Codex.

Or install ts-dev-kit, the plugin that ships this one along with the rest of its 22 skills, 15 agents.

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 ioredis

README.md
[![agentmods](https://agentmods.dev/badge/skills/jgamaraalv/ts-dev-kit/ioredis.svg)](https://agentmods.dev/skills/jgamaraalv/ts-dev-kit/ioredis)
Your own site
<a href="https://agentmods.dev/skills/jgamaraalv/ts-dev-kit/ioredis"><img src="https://agentmods.dev/badge/skills/jgamaraalv/ts-dev-kit/ioredis.svg" alt="Measured on agentmods" height="20"></a>
Per session 153 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 828 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00153 $0.00828
Opus 5 $0.00077 $0.00414
Sonnet 5 $0.00031 $0.00166
Haiku 4.5 $0.00015 $0.00083

Measured 5d ago against content hash 3962e817f404, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ioredis 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.

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/ioredis/SKILL.md · 64 lines

How it starts

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

ioredis v5 — Node.js Redis Client

ioredis v5.x. Requires Node.js >= 12, Redis >= 2.6.12. 100% TypeScript.

<quick_reference>

Critical: Import Style

// CORRECT — named import (required for NodeNext / moduleResolution: "nodenext")
import { Redis } from "ioredis";

// For Cluster:
import { Redis, Cluster } from "ioredis";

Quick Reference

Operation Code
Connect new Redis() or new Redis(6379, "host") or new Redis("redis://...")
Get/Set await redis.set("key", "val") / await redis.get("key")
Pipeline await redis.pipeline().set("a","1").get("a").exec()
Transaction await redis.multi().set("a","1").get("a").exec()
Pub/Sub sub.subscribe("ch") / sub.on("message", cb) / pub.publish("ch", msg)
Lua script redis.defineCommand("name", { numberOfKeys: 1, lua: "..." })
Scan redis.scanStream({ match: "prefix:*", count: 100 })
Graceful close await redis.quit()
Force close redis.disconnect()

</quick_reference>

Common Gotchas

  1. Named import: Always import { Redis } from "ioredis" with NodeNext resolution
  2. Pub/Sub isolation: A subscribed client cannot run other commands — use separate instances
  3. maxRetriesPerRequest: Default is 20. Set to null for infinite retries (required by BullMQ)
  4. Pipeline errors: pipeline.exec() never rejects — errors are in each result's [0] position
  5. showFriendlyErrorStack: Performance cost — never enable in production
  6. Cluster pipelines: All keys in a pipeline must hash to slots served by the same node
  7. enableAutoPipelining: 35-50% throughput improvement, safe to enable globally

Read the full file on GitHub · 64 lines

Files

What ships with it

4 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 · 64 lines · 153 tokens per session scan A 3962e817f404

Subscribe to this mod's changes

ioredis is a skill published in the GitHub repository jgamaraalv/ts-dev-kit (15 stars, last pushed 6mo ago), licensed MIT. It adds 153 tokens to every session and 828 once invoked, about $0.0008 per session on Opus 5. 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-08-30.

Related

Other skills, from other repositories

pinecone

Managed vector DB for production RAG and search.

NousResearch/hermes-agent · 13 tokens

redis-inspect

Inspect Redis cache keys, values, and TTLs for debugging. Supports both main cache and system cache. Use for debugging cache issues, checking cached values, and monitoring cache state. Read-only by default.

civitai/civitai · 45 tokens

redis-js

Work with the Upstash Redis JavaScript/TypeScript SDK for serverless Redis operations. Use for caching, session storage, rate limiting, leaderboards, full-text search (querying, filtering, aggregating with @upstash/redis search extension), and all Redis data structures. Supports automatic serialization/deserialization…

upstash/redis-js · 93 tokens

using-redis-token-buckets

Use when adding a bucket-like rate limit backed by Redis: a per-caller budget with burst capacity and continuous refill, a refund path for requests that did no work, or a limit whose Retry-After must be a real wait rather than a window edge. posthog/tokenbucket.py provides an atomic Lua token bucket (consume, refund…

PostHog/posthog-foss · 148 tokens

byted-milvus

Manages Milvus on Volcano Engine (Volcengine): provision/inspect/scale/delete clusters and run collection + CRUD/search operations via bundled CLIs. Use when the user mentions Milvus + Volcengine/Volcano Engine or asks to operate Milvus there.

bytedance/agentkit-samples · 60 tokens

vector-db

Vector database expert for embeddings, similarity search, RAG patterns, and indexing strategies.

RightNow-AI/openfang · 19 tokens