idorgham/gateflow/redis

Claude Code and agent skill by idorgham/gateflow

Trust tier 3
  • community
Source check pending

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

Specialized workflows and patterns for redis.

Install

npx vskill@latest install idorgham/gateflow/redis

SKILL.md

The same SKILL.md was published earlier as idorgham/gateflow/redis.

SKILL: Upstash Redis & Rate Limiting

Purpose

Manage serverless caching, queuing, and global rate limiting using Upstash Redis for the GateFlow v9.0 infrastructure.

Core Principles

  1. Ephemeral Data: Use Redis for data that is transient (sessions, rates, temp counts).
  2. Cache-Aside: Always check Redis before DB; update Redis on DB write.
  3. Token Bucket: Implement rate limiting using the token bucket algorithm for API protection.

Implementation Rules

  • Keyspace Hierarchy: gf:<env>:<orgId>:<module>:<key>.
  • TTL: Always define Time-To-Live (TTL) to prevent memory leaks.
  • Upstash SDK: Use @upstash/redis for edge-compatible requests.

Anti-Patterns

  • Using Redis as a primary, persistent database (use Prisma/PG).
  • Storing large objects (>1MB) in Redis.
  • Not using prefixes (leads to key collisions in multi-tenant environments).

Code Examples

Rate Limiter (Upstash Ratelimit)
typescript
import { Ratelimit } from '@upstash/ratelimit';
import { Redis } from '@upstash/redis';
const ratelimit = new Ratelimit({
redis: Redis.fromEnv(),
limiter: Ratelimit.slidingWindow(10, '10 s'),
});
export const checkRate = async (userId: string) => {
const { success, remaining } = await ratelimit.limit(`limit:${userId}`);
return { success, remaining };
};
Cached Query
typescript
const getMission = async (id: string) => {
const cacheKey = `mission:${id}`;
const cached = await redis.get(cacheKey);
if (cached) return JSON.parse(cached);
const mission = await prisma.mission.findUnique({ where: { id } });
await redis.set(cacheKey, JSON.stringify(mission), { ex: 3600 });
return mission;
};

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
4
7-day trend score
13

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

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

  • Claude Code
  • Grok Build (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/idorgham/gateflow/redis/badge)](https://verified-skill.com/skills/idorgham/gateflow/redis)

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