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.
npx skills add jiushiwon/wg-skills --skill python-redis-module-skillgit clone --depth 1 https://github.com/jiushiwon/wg-skillsWrote 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.
[](https://agentmods.dev/skills/jiushiwon/wg-skills/python-redis-module-skill)<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/python-redis-module-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/python-redis-module-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.
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/python-redis-module-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/python-redis-module-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to high
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- high Privilege Escalation · line 251 Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00109 | $0.01958 |
| Opus 5.5 | $0.00044 | $0.00783 |
| Sonnet 5.5 | $0.00022 | $0.00392 |
| Haiku 4.5 | $0.00011 | $0.00196 |
Grade A, and why
python-redis-module-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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 280 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Python Redis Module Skill
面向已有 FastAPI 项目的开发者,快速集成 Redis 能力。
能力清单
| 能力 | 说明 |
|---|---|
| 缓存 | 装饰器缓存、缓存更新、缓存删除 |
| Session | Redis Session 共享 |
| 分布式锁 | 基于 Redis 的分布式锁 |
| 限流 | 基于 Redis 的接口限流 |
| 消息队列 | Redis Stream 消息发布/订阅 |
| 计数器 | 分布式计数器 |
触发场景
用户说"帮我加 Redis"或"集成 Redis"时触发。
依赖配置
pip install redis aioredis
默认方法封装
1. Redis 客户端
# redis_client.py
import redis
from typing import Optional
class RedisClient:
def __init__(self, host: str = "localhost", port: int = 6379, password: Optional[str] = None, db: int = 0):
self.client = redis.Redis(
host=host,
port=port,
password=password,
db=db,
decode_responses=True
)
# 基础操作
def get(self, key: str) -> Optional[str]:
return self.client.get(key)
def set(self, key: str, value: str, ex: Optional[int] = None) -> bool:
return self.client.set(key, value, ex=ex)
def delete(self, *keys: str) -> int:
return self.client.delete(*keys)
def exists(self, key: str) -> bool:
return self.client.exists(key)
def expire(self, key: str, seconds: int) -> bool:
return self.client.expire(key, seconds)
# 哈希操作
def hget(self, name: str, key: str) -> Optional[str]:
return self.client.hget(name, key)
def hset(self, name: str, key: str, value: str) -> int:
return self.client.hset(name, key, value)
def hgetall(self, name: str) -> dict:
return self.client.hgetall(name)
# 列表操作
def lpush(self, name: str, *values: str) -> int:
return self.client.lpush(name, *values)
def rpop(self, name: str) -> Optional[str]:
return self.client.rpop(name)
# 自增
def incr(self, key: str, amount: int = 1) -> int:
return self.client.incr(key, amount)
# 分布式锁
def lock(self, key: str, timeout: int = 30) -> bool:
return self.client.set(f"lock:{key}", "1", nx=True, ex=timeout)
def unlock(self, key: str) -> int:
return self.client.delete(f"lock:{key}")
# 全局实例
redis_client = RedisClient()
What ships with it
1 file 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.
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.
- 1mo ago First seen · 280 lines · 109 tokens per session scan A c27ca46a09e6
python-redis-module-skill is a skill published in the GitHub repository jiushiwon/wg-skills (120 stars, last pushed 6d ago), licensed Apache-2.0. It adds 109 tokens to every session and 1,958 once invoked, about $0.0004 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-08-30.
Other skills, from other repositories
using-redis-token-buckets
Use when adding a bucket-like rate limit backed by Redis: a per-caller budget with burst capacity and continuous refill, a refund path for requests that did no work, or a limit whose Retry-After must be a real wait rather than a window edge. posthog/tokenbucket.py provides an atomic Lua token bucket (consume, refund…
spring-data-redis
Use when implementing caching, session storage, rate limiting, or any Redis integration. Covers cache-aside pattern, key naming, TTL strategy, and serialization config.
using-redis-token-buckets
Use when adding a bucket-like rate limit backed by Redis: a per-caller budget with burst capacity and continuous refill, a refund path for requests that did no work, or a limit whose Retry-After must be a real wait rather than a window edge. posthog/tokenbucket.py provides an atomic Lua token bucket (consume, refund…
bull-mq
Runs background jobs in Node.js with BullMQ, a job queue library backed by Redis (or PostgreSQL since v6): delayed and prioritized jobs, retries with backoff, rate limiting, cron-style job schedulers, parent-child flows and concurrency control. Use when a user asks to add a background worker, queue emails or webhooks…
cache-strategy
Design and implement caching layers for APIs and web applications using Redis or Memcached. Use when you need to reduce database load, improve response times, or handle traffic spikes. Covers cache-aside, write-through, and write-behind patterns, TTL strategies, cache invalidation, and stampede prevention. Trigger…
spring-boot-cache
Provides patterns for implementing Spring Boot caching: configures Redis/Caffeine/EhCache providers with TTL and eviction policies, applies @Cacheable/@CacheEvict/@CachePut annotations, validates cache hit/miss behavior, and exposes metrics via Actuator. Use when adding caching to Spring Boot services, configuring…