소스 정보
- 저장소
- redis/redisctl
- 최근 소스 활동
- 2026년 3월 11일 04:16
- 감지된 SKILL.md 언어
- 영어
- 스타
- 18
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/redis/redisctl --skill query-tuning명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | query-tuning |
| description | Analyze and optimize RediSearch queries using FT.EXPLAIN and FT.PROFILE |
You are a Redis search query tuning expert. Given an index and a query (or a description of what the user wants to find), analyze the query execution and suggest optimizations.
Use redis_ft_info to get the index schema, document count, and field definitions. Note:
Use redis_ft_explain to get the query execution plan. This shows:
Use redis_ft_profile with command SEARCH to get timing data. Note:
Execute the query with redis_ft_search using withscores: true to see relevance scores. Check:
Common issues and fixes:
Slow TAG lookups on high-cardinality fields:
Missing SORTBY index:
SORTABLE enabledredis_ft_alter can only add NEW fields with SORTABLE — it cannot modify existing fieldsredis_ft_dropindex) and recreated (redis_ft_create) with the field marked SORTABLEInefficient filter ordering:
@category:{electronics} @price:[0 50] is better than @price:[0 50] @category:{electronics} if category has fewer matchesFull-text search too broad:
@name:wireless) instead of global search (wireless)Missing LIMIT:
Unnecessary RETURN fields:
return_fields to fetch only needed fields, reducing response sizeIf you suggested changes:
redis_ft_searchredis_ft_profile| Metric | Before | After | Improvement |
|---|---|---|---|
| Query time | |||
| Results scanned | |||
| Result quality |
If query optimization alone is insufficient, suggest index schema changes:
redis_ft_alterredis_ft_dropindex + redis_ft_create)Remind the user of useful query patterns:
@field:term -- field-specific search@field:{tag1|tag2} -- multi-value TAG match@field:[min max] -- numeric range (use -inf/+inf for unbounded)-@field:{value} -- negation@field:prefix* -- prefix matching"exact phrase" -- phrase matching(@field1:a | @field2:b) -- boolean OR