redis-search

redis-search is a skill for Claude Code from redis/agent-skills. It costs 152 tokens per session (3,044 once invoked), scanned A, original, MIT.

Guidance for using Redis Search, a Redis feature for finding and ranking stored data by text, numbers, locations, JSON fields, or vectors. It covers index design and search commands, including searches that combine words with meaning-based vector matches.

In plain words
What is it for?
Use it to create or review Redis Search indexes, write text, numeric, geographic, JSON, vector, or combined queries, and build retrieval-augmented generation (RAG) systems that find relevant data for an AI response.
Why use it?
It helps you choose compatible field types and commands instead of guessing, and gives ways to investigate empty or slow results. It also covers changing indexes without taking the service offline.

Skill for Claude Code ✓ vendor

Written for Claude Code: shipped in a Claude Code plugin.

Part of the redis-development plugin — 8 skills shipped together

Good fit Use it to create or review Redis Search indexes, write text, numeric, geographic, JSON, vector, or combined queries, and build retrieval-augmented generation (RAG) systems that find relevant data for an AI response.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/redis/agent-skills/redis-search
About the project

Redis Agent Skills is Redis's collection of packaged instructions and resources that teach AI coding agents how to work with Redis data structures, connections, search, caching, clustering, security, observability, and agent memory. It is for developers using coding agents to build or troubleshoot Redis-backed applications. The catalogue entries are the project's own agent skills, instructions, and plugin packaging.

redis/agent-skills · 142 stars · on GitHub · redis.io

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add redis/agent-skills --skill redis-search
Clone the repo
git clone --depth 1 https://github.com/redis/agent-skills

Made for: Claude Code.

Or install redis-development, the plugin that ships this one along with the rest of its 8 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for redis-search

README.md
[![agentmods](https://agentmods.dev/badge/skills/redis/agent-skills/redis-search/github.svg)](https://agentmods.dev/skills/redis/agent-skills/redis-search)
Your own site
<a href="https://agentmods.dev/skills/redis/agent-skills/redis-search"><img src="https://agentmods.dev/badge/skills/redis/agent-skills/redis-search/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for redis-search

Your own site · 80×15
<a href="https://agentmods.dev/skills/redis/agent-skills/redis-search"><img src="https://agentmods.dev/badge/skills/redis/agent-skills/redis-search.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 152 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,044 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 26 Aug 2026
  • Snyk pass 26 Aug 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00152 $0.03044
Opus 5 $0.00076 $0.01522
Sonnet 5 $0.00030 $0.00609
Haiku 4.5 $0.00015 $0.00304

Measured 9d ago against content hash 1df77121b528, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

redis-search scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/redis-development/skills/redis-search/SKILL.md · 221 lines

How it starts

The opening of the file, as written. The whole thing — 221 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Single source of guidance for Redis Search — the retrieval surface that spans lexical, numeric, geo, JSON-path, and vector queries. Vector fields are part of the same FT.CREATE machinery as TEXT/TAG/NUMERIC fields, and FT.HYBRID blends lexical and vector ranking in one command, so this skill covers them together.

When to apply

  • Creating, modifying, or reviewing a Redis Search index (FT.CREATE, FT.ALTER).
  • Writing or optimizing FT.SEARCH, FT.AGGREGATE, or FT.HYBRID queries.
  • Picking between TEXT, TAG, NUMERIC, GEO, GEOSHAPE, VECTOR, or JSON-path fields.
  • Defining a VECTOR field, choosing HNSW vs FLAT, tuning HNSW parameters.
  • Building a retrieval-augmented generation (RAG) pipeline.
  • Rolling out a new index schema without downtime.
  • Troubleshooting empty results, slow queries, or tokenization issues with FT.EXPLAIN, FT.PROFILE, FT.INFO.

1. Pick the right command

Three query commands. Reach for the narrowest one that fits.

Command When to use Mental model Minimum Redis
FT.SEARCH Document retrieval, ranked or sorted. Best default. Returns matching docs directly. 2.0 (module) / 8.0 (built-in)
FT.AGGREGATE Faceting, computed fields, custom output shape, analytics. Declarative pipeline: LOAD, APPLY, GROUPBY, REDUCE, SORTBY. 2.0 / 8.0
FT.HYBRID Blend lexical (BM25) with vector similarity, with configurable fusion. Pipeline with explicit SEARCH + VSIM legs and a COMBINE fusion stage. 8.4.0
# FT.SEARCH — most common
FT.SEARCH idx:products "@category:{electronics} @price:[100 500]" LIMIT 0 20 RETURN 3 name price category

# FT.AGGREGATE — top categories by avg price
FT.AGGREGATE idx:products "*" GROUPBY 1 @category REDUCE AVG 1 @price AS avg_price SORTBY 2 @avg_price DESC

# FT.HYBRID (Redis ≥ 8.4) — lexical + vector fusion
FT.HYBRID idx:docs
  SEARCH "@title:transformers" SCORER BM25 YIELD_SCORE_AS lexscore
  VSIM embedding $vec KNN count 1 K 50 YIELD_SCORE_AS vecscore
  COMBINE RRF 2 CONSTANT 60
  PARAMS 2 vec "..."
  DIALECT 2

Read the full file on GitHub · 221 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 221 lines · 152 tokens per session scan A 1df77121b528

Subscribe to this mod's changes

redis-search is a skill published in the GitHub repository redis/agent-skills (142 stars, last pushed yesterday), licensed MIT. It adds 152 tokens to every session and 3,044 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.