redis
БесплатноБез исполняемых скриптовНе проверенRedis CLI client for cache and data store operations running inside a Docker container
от kubiyabot★ 19 звёзд на GitHubОб этом скилле
Redis Skill
Access Redis databases using the redis-cli client running inside a Docker container. Set/get keys, manage data structures, monitor performance, and perform cache operations without installing Redis locally.
Overview
This skill provides the redis-cli command-line client through a containerized runtime. Connect to any Redis instance (local or remote), execute commands, manipulate data structures, and manage your cache - all while keeping your host system clean.
When to Use This Skill
Use this skill when you need to:
- Connect to Redis instances without local installation
- Set and get cached values
- Manage Redis data structures (strings, lists, sets, hashes, sorted sets)
- Monitor Redis performance and commands
- Test cache connections
- Debug caching issues
- Flush databases and manage keys
- Pub/Sub messaging operations
- Execute administrative commands
Prerequisites
Docker
The Redis client runs inside a Docker container:
# macOS (using Homebrew)
brew install --cask docker
# Linux (Ubuntu/Debian)
sudo apt-get update
sudo apt-get install docker.io
sudo systemctl start docker
Redis Server
You need access to a Redis server:
- Local Redis instance
- Remote Redis server
- Cloud-hosted Redis (AWS ElastiCache, Redis Cloud, Azure Cache, etc.)
- Docker Redis container
Configuration
Add to your .skill-engine.toml:
[skills.redis]
source = "docker:redis:7-alpine"
runtime = "docker"
description = "Redis CLI client"
[skills.redis.docker]
image = "redis:7-alpine"
entrypoint = "redis-cli"
network = "bridge"
memory = "128m"
rm = true
Configuration Explained
- image:
redis:7-alpine- Redis 7.x Alpine image (~30MB) - entrypoint:
redis-cli- Redis command-line interface - network:
bridge- Allows connections to Redis servers (local and remote) - memory:
128m- Limits container to 128MB RAM - rm:
true- Automatically removes container after execution
Usage
Redis skill uses pass-through syntax - all arguments after -- are passed directly to redis-cli:
skill run redis -- [redis-cli arguments] [COMMAND] [args...]
Connection Methods
Using Command-Line Arguments
# Connect to local Redis
skill run redis -- -h localhost
# Connect with specific port
skill run redis -- -h localhost -p 6379
# Connect to remote Redis
skill run redis -- -h redis.example.com -p 6379
# Connect with authentication
skill run redis -- -h localhost -a password
# Connect to specific database number
skill run redis -- -h localhost -n 1
Using Environment Variables
# Set Redis password
export REDISCLI_AUTH=your_password
# Connect with authentication
skill run redis -- -h localhost
Common Operations
String Operations
# Set a key
skill run redis -- -h localhost SET mykey "myvalue"
# Get a key
skill run redis -- -h localhost GET mykey
# Set with expiry (EX = seconds)
skill run redis -- -h localhost SET session:123 "data" EX 3600
# Set multiple keys
skill run redis -- -h localhost MSET key1 "value1" key2 "value2"
# Get multiple keys
skill run redis -- -h localhost MGET key1 key2
# Increment counter
skill run redis -- -h localhost INCR counter
# Decrement counter
skill run redis -- -h localhost DECR counter
# Append to string
skill run redis -- -h localhost APPEND mykey " more data"
# Get string length
skill run redis -- -h localhost STRLEN mykey
Key Management
# List all keys
skill run redis -- -h localhost KEYS "*"
# List keys with pattern
skill run redis -- -h localhost KEYS "user:*"
# Check if key exists
skill run redis -- -h localhost EXISTS mykey
# Delete key
skill run redis -- -h localhost DEL mykey
# Delete multiple keys
skill run redis -- -h localhost DEL key1 key2 key3
# Rename key
skill run redis -- -h localhost RENAME oldkey newkey
# Get key type
skill run redis -- -h localhost TYPE mykey
# Set expiration (seconds)
skill run redis -- -h localhost EXPIRE mykey 60
# Set expiration (milliseconds)
skill run redis -- -h localhost PEXPIRE mykey 60000
# Remove expiration
skill run redis -- -h localhost PERSIST mykey
# Get time to live
skill run redis -- -h localhost TTL mykey
# Get TTL in milliseconds
skill run redis -- -h localhost PTTL mykey
Hash Operations
# Set hash field
skill run redis -- -h localhost HSET user:1 name "John"
# Set multiple hash fields
skill run redis -- -h localhost HMSET user:1 name "John" email "[email protected]" age 30
# Get hash field
skill run redis -- -h localhost HGET user:1 name
# Get multiple hash fields
skill run redis -- -h localhost HMGET user:1 name email
# Get all hash fields and values
skill run redis -- -h localhost HGETALL user:1
# Get all hash keys
skill run redis -- -h localhost HKEYS user:1
# Get all hash values
skill run redis -- -h localhost HVALS user:1
# Check if hash field exists
skill run redis -- -h localhost HEXISTS user:1 name
# Delete hash field
skil
Установить redis в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл redis?
Redis CLI client for cache and data store operations running inside a Docker container
Как установить скилл redis?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл redis запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic