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 chaterm/terminal-skills --skill redisgit clone --depth 1 https://github.com/chaterm/terminal-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/chaterm/terminal-skills/redis)<a href="https://agentmods.dev/skills/chaterm/terminal-skills/redis"><img src="https://agentmods.dev/badge/skills/chaterm/terminal-skills/redis/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/chaterm/terminal-skills/redis"><img src="https://agentmods.dev/badge/skills/chaterm/terminal-skills/redis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00006 | $0.01764 |
| Opus 5 | $0.00003 | $0.00882 |
| Sonnet 5 | $0.00001 | $0.00353 |
| Haiku 4.5 | $0.00001 | $0.00176 |
Grade A, and why
redis 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 11d 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 — 291 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Redis 数据库管理
概述
Redis 命令、持久化、集群配置等技能。
连接管理
# 本地连接
redis-cli
# 远程连接
redis-cli -h hostname -p 6379
redis-cli -h hostname -p 6379 -a password
# 连接并选择数据库
redis-cli -n 1
# 执行单条命令
redis-cli ping
redis-cli get key
# 集群连接
redis-cli -c -h hostname -p 6379
基础命令
键操作
# 查看键
KEYS * # 所有键(生产慎用)
KEYS user:* # 匹配模式
SCAN 0 MATCH user:* COUNT 100 # 安全遍历
# 键信息
EXISTS key
TYPE key
TTL key # 剩余过期时间
PTTL key # 毫秒
# 键操作
DEL key
EXPIRE key 3600 # 设置过期时间
PERSIST key # 移除过期时间
RENAME key newkey
字符串
SET key value
SET key value EX 3600 # 带过期时间
SETNX key value # 不存在时设置
GET key
MSET key1 val1 key2 val2
MGET key1 key2
INCR counter
INCRBY counter 10
DECR counter
APPEND key " suffix"
STRLEN key
哈希
HSET user:1 name "John" age 30
HGET user:1 name
HMSET user:1 name "John" age 30
HMGET user:1 name age
HGETALL user:1
HDEL user:1 age
HEXISTS user:1 name
HKEYS user:1
HVALS user:1
HINCRBY user:1 age 1
列表
LPUSH list value # 左侧插入
RPUSH list value # 右侧插入
LPOP list
RPOP list
LRANGE list 0 -1 # 获取所有
LLEN list
LINDEX list 0
LSET list 0 newvalue
LTRIM list 0 99 # 保留前100个
BLPOP list 10 # 阻塞弹出
集合
SADD set member1 member2
SREM set member1
SMEMBERS set
SISMEMBER set member
SCARD set # 元素数量
SINTER set1 set2 # 交集
SUNION set1 set2 # 并集
SDIFF set1 set2 # 差集
SRANDMEMBER set 3 # 随机获取
有序集合
ZADD zset 100 member1 200 member2
ZREM zset member1
ZRANGE zset 0 -1 # 按分数升序
ZRANGE zset 0 -1 WITHSCORES
ZREVRANGE zset 0 -1 # 按分数降序
ZRANK zset member # 排名
ZSCORE zset member # 分数
ZCOUNT zset 100 200 # 分数范围内数量
ZINCRBY zset 10 member
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.
- 11d ago First seen · 291 lines · 6 tokens per session scan A f7b4d441c6fe
redis is a skill published in the GitHub repository chaterm/terminal-skills (59 stars, last pushed 6mo ago), licensed Apache-2.0. It adds 6 tokens to every session and 1,764 once invoked, about $0.0000 per session on Opus 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
redis-expert
Expert-level Redis for caching, pub/sub, data structures, and high-performance applications. Use when the user mentions cache, pub/sub, in-memory stores, key-value stores, or NoSQL, or when the task involves Data Structures, Basic Operations, Advanced Patterns, or Redis Streams.
redis-docs
Use this skill whenever the user asks about Redis, in-memory databases, caching, pub/sub, streams, vector search, or NoSQL. Covers Redis 8.x including all data types (strings, hashes, lists, sets, sorted sets, streams, JSON, geospatial, probabilistic, time series, vector sets), clustering, replication, sentinel…
redis-cache-master
Configure, monitor, and optimize Redis caches for caching patterns, session storage, and pub/sub queues.
redis
Use when using Redis or any Redis-protocol store (Valkey, ElastiCache, Upstash, Dragonfly, Memorystore) as a cache, queue, rate limiter or distributed lock and it has to be CORRECT rather than merely connected — stampede-proof caching, locks that cannot release someone else's hold, race-free rate limits, and jobs that…
tucache-caching
Use this skill when writing or modifying Spring Boot application code that should use TuCache for method-result caching or cache invalidation with @TuCache and @TuCacheClear.
redis-state-management
Comprehensive guide for Redis state management including caching strategies, session management, pub/sub patterns, distributed locks, and data structures.