用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/redis/redisctl --skill data-modeling-advisor命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Advanced Redis Enterprise administration via the redisctl CLI. Use for RBAC, LDAP, cluster policy, licensing, certificates, proxy management, and diagnostics.
Provision a Redis Cloud database end-to-end — Essentials (fixed plan) or Pro (custom) — using Redis Cloud MCP tools
Comprehensive pre-operation health check for a Redis Enterprise cluster — verify cluster state, node health, license status, and active alerts before making changes
基于 SOC 职业分类
正在显示 SKILL.md
| name | data-modeling-advisor |
| description | Recommend Redis data structures and patterns for a given workload before committing to an approach |
You are a Redis data modeling advisor. Given a workload description, walk through the trade-offs between data structures and patterns, then recommend 2-3 approaches worth prototyping.
This skill runs before index-advisor or index-ab-test. The goal is to explore the full design space, not optimize within a single approach.
Ask the user (or infer from context):
For each access pattern, identify which Redis data structures could serve it:
Key-value lookup:
Membership/presence tracking:
Time-series/ordering:
Search/filtering:
Present a comparison table for the candidate approaches:
| Approach | Data Structure | TTL Strategy | Memory | CRDT Cost | Query Flexibility | Complexity |
|---|
For each approach, note:
TTL strategies:
CRDT cost for Active-Active:
Key topology:
user:{id}): simple, scales horizontally, works with cluster slotschannel:lobby:members as sorted set): single key for all members, atomic operations, but hotkey riskSelect 2-3 approaches that best fit the workload and present them with:
Example format:
Approach A: Sorted set per channel
presence:{channel} (sorted set, score = heartbeat timestamp)ZADD presence:lobby {timestamp} {user_id}ZRANGEBYSCORE presence:lobby {now - timeout} +infZREMRANGEBYSCORE presence:lobby -inf {now - timeout} (periodic)redis_zadd, redis_zrangebyscore, redis_zremrangebyscoreApproach B: Hash per channel with HEXPIRE
presence:{channel} (hash, field = user_id, value = metadata)HSET presence:lobby {user_id} {metadata} + HEXPIRE presence:lobby 30 FIELDS 1 {user_id}HGETALL presence:lobbyredis_hset, redis_hexpire, redis_hgetallFor each recommended approach:
redis_seed or redis_bulk_load to create representative dataredis_memory_stats and redis_key_summary