agentsclimarketplace

Redis

Skill a5c-ai/babysitter/library/specializations/web-development/skills/redis

Redis caching patterns, pub/sub, sessions, rate limiting, and data structures.From its SKILL.md

Install
npx -y skills add a5c-ai/babysitter --skill redis

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

1.3 KB, 218 tokens by cl100k_base, as published. Nobody here has run it

Redis Skill

Expert assistance for Redis caching and data management.

Capabilities

  • Implement caching strategies
  • Build pub/sub systems
  • Manage sessions
  • Implement rate limiting
  • Use Redis data structures

Caching Pattern

async function getCachedUser(id: string) {
  const cached = await redis.get(`user:${id}`);
  if (cached) return JSON.parse(cached);

  const user = await db.user.findUnique({ where: { id } });
  await redis.setex(`user:${id}`, 3600, JSON.stringify(user));
  return user;
}

Rate Limiting

async function rateLimit(ip: string, limit = 100, window = 60) {
  const key = `ratelimit:${ip}`;
  const count = await redis.incr(key);
  if (count === 1) await redis.expire(key, window);
  return count <= limit;
}

Target Processes

  • caching-implementation
  • real-time-features
  • session-management

What ships with it: 1 file

363 B alongside SKILL.md

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.