agentleFS
Ghost7802Ghost7802/awesome-api-skills/skills/redis/SKILL.md

redis

Skill13 starsChanged 27 days agoMITView on GitHub

  • Installs packages

12 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use postgres, aws and 3 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • vojtoSkill

    postgres

    Contains guides on how we use PostgreSQL. Use whenever working with PostgreSQL in any way.

    Also in 4 projects that use this

  • VercelSkill

    aws

    Emulated AWS cloud services (S3, SQS, Cognito, IAM, STS) for local development and testing. Use when the user needs to interact with AWS API endpoints locally, test S3 bucket and object operations, emulate SQS queues and messages, test Cognito sign-up, sign-in, JWTs, or Identity Pools, manage IAM users/roles/access keys, test STS assume role, or work without hitting real AWS APIs. Triggers include "AWS emulator", "emulate AWS", "mock S3", "local SQS", "test IAM", "emulate S3", "AWS locally", "STS assume role", or any task requiring local AWS service emulation.

    Also in 3 projects that use this

  • klauswgSkill

    performance

    Optimize web performance for faster loading and better user experience. Use when asked to "speed up my site", "optimize performance", "reduce load time", "fix slow loading", "improve page speed", or "performance audit".

    Also in 3 projects that use this

  • OpenAISkill

    observability

    Vercel Observability expert guidance — Drains (logs, traces, speed insights, web analytics), Web Analytics, Speed Insights, runtime logs, custom events, OpenTelemetry integration, and monitoring dashboards. Use when instrumenting, debugging, or optimizing application performance and user experience on Vercel.

    Also in 3 projects that use this

  • 0xSeroSkill

    security

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 12 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Never expose Redis directly to the public internet.

    line 29
  2. Very specific:

    Always set a TTL (EX or PX) on cache keys to prevent memory exhaustion (OOM).

    line 35
  3. Very specific:

    If memory fills up, verify your eviction policy (maxmemory-policy) is set to allkeys-lru or volatile-lru rather than noeviction.

    line 38
  4. Distinctive:

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

    line 44

“Common” is measured: kept by at least 6 in 10 of the 12 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Redis API Skill

Overview

Redis is used as a database, cache, and message broker. This skill covers the redis (Node.js) and redis-py libraries.

Installation

npm install redis
pip install redis

Authentication

Uses a connection URL redis://user:password@host:port. Redis 6+ supports ACLs (Access Control Lists) for fine-grained permissions.

Core Concepts

  • Keys: The string identifier for data.
  • TTL (Time to Live): Expiration time for a key.
  • Pub/Sub: Publish/Subscribe messaging paradigm.

Common Workflows

  1. createClient({ url }).
  2. await client.connect().
  3. await client.set('key', 'value', { EX: 3600 }).

Error Handling

Handle connection drops. The Node SDK v4+ automatically reconnects. Catch command errors if passing invalid types (e.g., trying to HGET a string).

Security

Never expose Redis directly to the public internet. Ensure requirepass is set or use managed services like ElastiCache with TLS.

Rate Limits

Redis is bound by CPU and Memory, not API limits. It handles 100,000+ operations per second easily.

Best Practices

Always set a TTL (EX or PX) on cache keys to prevent memory exhaustion (OOM). Use pipelining (client.multi()) to batch commands and reduce RTT latency.

Troubleshooting

If memory fills up, verify your eviction policy (maxmemory-policy) is set to allkeys-lru or volatile-lru rather than noeviction.

References

Why use this skill

Use this when your agent works with redis — 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

Production checklist

  • Migrations version-controlled and applied via CI
  • Connection limits and pooling configured
  • Backups and restore procedure documented

Related skills

  • upstash — alternative to
  • bullmq — works well with
  • postgresql — works well with

Last Verified: 2026-07-02

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.