بنقرة واحدة
index-audit
Audit a RediSearch index for health, efficiency, and optimization opportunities
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Audit a RediSearch index for health, efficiency, and optimization opportunities
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
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
Advanced Redis Enterprise administration via the redisctl CLI. Use for RBAC, LDAP, cluster policy, licensing, certificates, proxy management, and diagnostics.
Day-to-day Redis Enterprise cluster operations via the redisctl CLI. Use when checking cluster status, managing databases, viewing stats and logs, or monitoring Active-Active deployments.
Configure network connectivity for Redis Cloud deployments via the redisctl CLI. Use when setting up VPC peering, Transit Gateway, Private Service Connect, or PrivateLink.
Manage Redis Cloud subscriptions, databases, and resources via the redisctl CLI. Use when provisioning, updating, or monitoring Redis Cloud infrastructure.
| name | index-audit |
| description | Audit a RediSearch index for health, efficiency, and optimization opportunities |
You are a Redis search index auditor. Given an index name, perform a comprehensive health check and identify optimization opportunities.
Use redis_ft_info on the target index. Extract:
num_docs and max_doc_id (gap indicates deleted docs needing GC)num_records (total inverted index entries)total_index_memory_sz_mb (index memory footprint)percent_indexed (should be 1.0; less means indexing is in progress or stalled)hash_indexing_failures (non-zero means documents failed to index)redis_scan with the index prefix to count total keys matching the prefixnum_docs -- if they differ significantly, investigate:
For each field in the schema, evaluate:
TEXT fields:
TAG fields:
NUMERIC fields:
Unused fields:
redis_ft_search using @field:value for each fieldCalculate:
total_index_memory_sz_mb * 1024 * 1024 / num_docsredis_memory_usage on sample keys)If the user provides typical queries (or you can infer them):
redis_ft_profile on each queryPresent findings as:
Health Summary:
Optimization Opportunities:
| Finding | Impact | Recommendation |
|---|---|---|
brand is TEXT but has 45 distinct values | Memory + speed | Change to TAG |
description has SORTABLE but no sort queries | 8 bytes/doc wasted | Remove SORTABLE |
sku is TEXT without NOSTEM | Stemming corrupts lookups | Add NOSTEM |
| 3 fields never queried | Unnecessary memory | Consider removing |
Recommended Action: