jgamaraalv/ts-dev-kit/ioredis

Claude Code and agent skill by jgamaraalv/ts-dev-kit

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

ioredis v5 reference for Node.js Redis client — connection setup, RedisOptions, pipelines, transactions, Pub/Sub, Lua scripting, Cluster, and Sentinel. Use when: (1) creating or configuring Redis connections (standalone, cluster, sentinel), (2) writing Redis commands with ioredis (get/set, pipelines, multi/exec), (3) setting up Pub/Sub or Streams, (4) configuring retryStrategy, TLS, or auto-pipelining, (5) working with Redis Cluster options (scaleReads, NAT mapping), or (6) debugging ioredis connection issues. Important: use named import `import { Redis } from 'ioredis'` for correct TypeScript types with NodeNext.

Install

npx vskill@latest install jgamaraalv/ts-dev-kit/ioredis

SKILL.md

ioredis v5 — Node.js Redis Client

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

<quick_reference>

Critical: Import Style

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

Quick Reference

OperationCode
Connectnew Redis() or new Redis(6379, "host") or new Redis("redis://...")
Get/Setawait redis.set("key", "val") / await redis.get("key")
Pipelineawait redis.pipeline().set("a","1").get("a").exec()
Transactionawait redis.multi().set("a","1").get("a").exec()
Pub/Subsub.subscribe("ch") / sub.on("message", cb) / pub.publish("ch", msg)
Lua scriptredis.defineCommand("name", { numberOfKeys: 1, lua: "..." })
Scanredis.scanStream({ match: "prefix:*", count: 100 })
Graceful closeawait redis.quit()
Force closeredis.disconnect()

</quick_reference>

<gotchas>

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

</gotchas>

<references>

When to Load References

NeedReference file
Connection setup, RedisOptions, TLS, retryStrategy, lifecyclereferences/connection-options.md
Core API: pipelines, transactions, Pub/Sub, Lua scripting, scanning, eventsreferences/core-api.md
Streams, auto-pipelining, transformers, binary data, error handling, debuggingreferences/advanced-patterns.md
Redis Cluster setup, ClusterOptions, Sentinel config, failoverreferences/cluster-sentinel.md

</references>

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
12
Repository npm downloads, 7 days
40
7-day trend score
24

Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 5 Apr 2026, 7 months ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/jgamaraalv/ts-dev-kit/ioredis/badge)](https://verified-skill.com/skills/jgamaraalv/ts-dev-kit/ioredis)

Something wrong with this skill or its page? Tell us.