1. Habit
  2. Skills
  3. Redis Connections skill
redis · 3K installs

Redis Connections skill
Runs by itself, PR touches Redis code.

Redis clients stay pooled and fast.

Install the Redis Connections skill and make it a habit: follow https://gethabit.dev/skills/redis/redis-connections.md

  1. 1Copy
  2. 2Paste into Claude Code, Codex or Cursor
  3. 3It runs by itself

3K installs169 starsMIT licenceSource on GitHub ↗

Redis Connections

by redis · 3K installs

The skill

The redis connections skill gives developers client-side guidance for Redis: connection pools or multiplexing, pipelining, SCAN instead of KEYS, RESP3 client-side caching and sensible connect and read timeouts.

Only when you ask.

The habit

Redis clients stay pooled and fast.

↻ Runs by itselfPR touches Redis code

How the habit works.
You don't have to.

Three questionsWhen does it start? How does it check its work? What does it remember?

One run, step by step.
Then it stops.

Stop ruleStops after one pull request and at most 20 findings per run.

  1. 01

    Read the diff

    The agent lists every changed file that sets up or calls a Redis client such as redis-py, Jedis or Lettuce.

  2. 02

    Check connection style

    It confirms the code uses a pool like ConnectionPool or one multiplexed connection, never a fresh connection per call.

  3. 03

    Spot batching chances

    Loops of independent commands get a suggestion to send them through a pipeline instead.

  4. 04

    Flag full scans

    Calls to KEYS, SMEMBERS, HGETALL or LRANGE 0 -1 on big data get swapped for SCAN, SSCAN, HSCAN or paging.

  5. 05

    Review timeouts

    It checks that socket_connect_timeout and socket_timeout are set and that blocking commands carry a timeout.

  6. 06

    Consider client caching

    For hot keys that rarely change, it suggests RESP3 client-side caching; for write-heavy data it advises against it.

  7. 07

    Log and report

    Findings go into the run log and a review comment, and tests run on the result.

What it may do.
Nothing more.

Safe by defaultIt writes only in its own folder and asks you before anything goes out.

Is it for you?
Use it when it fits.

Quick checkRead both lists. If the left one sounds like you, the Redis Connections skill helps.

Use it when

  • ✓ setting up a Redis client
  • ✓ many small Redis calls feel slow
  • ✓ iterating large keyspaces

Skip it when

  • – you need server-side Redis tuning
  • – you do not use Redis

Questions

Redis Connections skill, answered.

Which clients does it cover?

The guidance names redis-py, Jedis, Lettuce, go-redis and NRedisStack.

Does it block blocking commands?

No. BLPOP and similar are fine for queue consumers, but they need a timeout and should not run on a multiplexed connection.

How do I install the Redis Connections skill?

Copy the prompt at the top into your agent. It installs the skill from redis/agent-skills and sets up the habit. Or run npx skills add redis/agent-skills --skill redis-connections.

Is the Redis Connections skill free?

Yes. It is published under MIT. Habit is free too.

Redis Connections. Now as a habit.

Install the Redis Connections skill and make it a habit: follow https://gethabit.dev/skills/redis/redis-connections.md

  • Free
  • No account
  • Undo in one line

All redis skills →More code skills →

Works in

  • Claude Code
  • Codex
  • Cursor
  • ChatGPT
  • Claude app

Made by redis, published under MIT. Habit links to the original and never changes it. Is this your skill?

Copying didn't work here. Select the line and copy it by hand.