redis-guide-skill

redis-guide-skill is a skill for Claude Code, Codex from jiushiwon/wg-skills. It costs 137 tokens per session (2,608 once invoked), scanned A, original, Apache-2.0.

A learning and selection guide for Redis, an in-memory data store often used for caching, counters, queues, and shared locks.

In plain words
What is it for?
Use it to plan Redis use, design data structures, configure connections, improve cache behavior, and add features such as counters or queues.
Why use it?
It explains Redis concepts, setup, data structures, caching choices, distributed locks, rate limits, and message queues so developers can choose suitable uses.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to plan Redis use, design data structures, configure connections, improve cache behavior, and add features such as counters or queues.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jiushiwon/wg-skills/redis-guide-skill
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jiushiwon/wg-skills --skill redis-guide-skill
Clone the repo
git clone --depth 1 https://github.com/jiushiwon/wg-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for redis-guide-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/jiushiwon/wg-skills/redis-guide-skill/github.svg)](https://agentmods.dev/skills/jiushiwon/wg-skills/redis-guide-skill)
Your own site
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/redis-guide-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/redis-guide-skill/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for redis-guide-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/redis-guide-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/redis-guide-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 137 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,608 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00137 $0.02608
Opus 5.5 $0.00055 $0.01043
Sonnet 5.5 $0.00027 $0.00522
Haiku 4.5 $0.00014 $0.00261

Measured 2mo ago against content hash 1c96cc98e339, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

redis-guide-skill scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

database/redis-guide-skill/SKILL.md · 392 lines

How it starts

The opening of the file, as written. The whole thing — 392 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Redis Module Skill

面向已有后端项目的开发者,快速集成 Redis 能力。

能力清单

能力 说明
连接配置 Jedis/Lettuce/RedisTemplate 配置
缓存操作 String/Hash/List/Set/ZSet 操作
分布式锁 Redisson/手动实现
限流 令牌桶/滑动窗口
消息队列 List/Stream 延迟队列
计数器 点赞/访问量/排行榜

触发场景

用户说"帮我加 Redis"或"集成 Redis"时触发。

核心配置

Java (Spring Boot + Redis)

# application.yml
spring:
  data:
    redis:
      host: ${REDIS_HOST:localhost}
      port: ${REDIS_PORT:6379}
      password: ${REDIS_PASSWORD:}
      database: 0
      lettuce:
        pool:
          max-active: 8
          max-idle: 8
          min-idle: 2
          max-wait: -1ms
// RedisConfig.java
@Configuration
public class RedisConfig {
    @Bean
    public RedisTemplate<String, Object> redisTemplate(RedisConnectionFactory connectionFactory) {
        RedisTemplate<String, Object> template = new RedisTemplate<>();
        template.setConnectionFactory(connectionFactory);
        
        // JSON 序列化
        Jackson2JsonRedisSerializer<Object> serializer = new Jackson2JsonRedisSerializer<>(Object.class);
        template.setKeySerializer(new StringRedisSerializer());
        template.setValueSerializer(serializer);
        template.setHashKeySerializer(new StringRedisSerializer());
        template.setHashValueSerializer(serializer);
        
        return template;
    }
}

Python (FastAPI + Redis)

# config.py
class Settings(BaseSettings):
    redis_host: str = "localhost"
    redis_port: int = 6379
    redis_password: str = ""
    redis_db: int = 0

# redis_client.py
import redis
from typing import Optional

class RedisClient:
    def __init__(self, settings: Settings):
        self.client = redis.Redis(
            host=settings.redis_host,
            port=settings.redis_port,
            password=settings.redis_password,
            db=settings.redis_db,
            decode_responses=True
        )

    def get(self, key: str) -> Optional[str]:
        return self.client.get(key)

    def set(self, key: str, value: str, expire: int = None):
        self.client.set(key, value, ex=expire)

    def hgetall(self, key: str) -> dict:
        return self.client.hgetall(key)

    def hset(self, key: str, field: str, value: str):
        self.client.hset(key, field, value)

Read the full file on GitHub · 392 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 392 lines · 137 tokens per session scan A 1c96cc98e339

Subscribe to this mod's changes

redis-guide-skill is a skill published in the GitHub repository jiushiwon/wg-skills (154 stars, last pushed 7d ago), licensed Apache-2.0. It adds 137 tokens to every session and 2,608 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-16.

Related

redis-guide-skill compared with skills from other repositories

redis-guide-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
redis-guide-skilljiushiwon/wg-skillsSkill1547d agoApache-2.0A137Claude Code, Codex
bex-keyvaluebex-co/bexSkill1.0ktodayApache-2.0A117Claude Code, Codex
redis-jsupstash/redis-jsSkill9893d agoMITA93Claude Code, Codex
using-redis-token-bucketsPostHog/posthog-fossSkill734todayMITA148Claude Code, Codex
bun-redissecondsky/claude-skillsSkill257yesterdayMITA32Claude Code
database-redisHoangNguyen0403/agent-skills-standardSkill598yesterdayMITA37Claude Code, Codex
nw-database-technology-selectionnWave-ai/nWaveSkill63612d agoMITA38Claude Code