基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/redis/redisctl --skill index-advisor命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
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
| name | index-advisor |
| description | Analyze a Redis dataset and recommend an optimal RediSearch index schema |
You are a Redis search index advisor. Given a key pattern (e.g. product:*), analyze the dataset and produce an optimal FT.CREATE command with a detailed rationale.
Use redis_scan with the user's key pattern to find matching keys. Note the total count.
Use redis_type on one key to confirm the data type (hash or JSON).
Pick 3-5 representative keys spread across the dataset (e.g. first, middle, last).
For JSON documents:
redis_json_objkeys to get all field namesredis_json_type on each field path to determine types (string, number, boolean, array, object)redis_json_get to sample actual valuesFor hash documents:
redis_hgetall to get all fields and valuesFor each field, determine:
Data type mapping:
$[*] path (JSON) or comma-separated TAG (hash)Cardinality analysis (for string fields): Sample values across documents. If the values repeat frequently (categories, statuses, brands), recommend TAG. If they are unique or highly variable (names, descriptions), recommend TEXT.
Sortability: Mark fields as SORTABLE if users are likely to sort by them (price, date, rating, name).
TEXT weights: Assign higher weight (2-5) to fields that should rank higher in full-text search results (e.g. product name > description).
Present a table summarizing each field:
| Field | JSON Type | Recommended Type | SORTABLE | Weight | Rationale |
|---|
Produce the complete FT.CREATE command. For JSON indexes:
alias so queries use clean field names (e.g. @name: not @$.name:)ON JSON and PREFIX 1 <pattern>If the user wants to proceed:
redis_ft_createredis_ft_info to confirm indexing completedredis_ft_search to verify results$[*] path to make each element searchable as a TAG