← ClaudeAtlas

redis-searchlisted

Scaffold Redis search adapters for full-text search (RediSearch), vector search, and search caching patterns. Use when adding search infrastructure to ArchiPy apps. Prefer RedisAdapter.search_index() over raw client.ft().
SyntaxArc/archipy-plugin · ★ 2 · API & Backend · score 75
Install: claude install-skill SyntaxArc/archipy-plugin
# Redis Search Skills ## Overview Redis search via ArchiPy (`archipy[redis]`): - **RediSearch**: full-text via `RedisAdapter.search_index(name)` → `RedisSearchHandle` - **Vector search**: KNN / range via `SearchQueryDTO.from_knn` / `from_range` - **Search caching**: cache-aside around expensive search results Canonical layout and ArchiPy constraints: `../archipy-docs/reference.md` (Adapters + Redis Search). Templates: `reference/fulltext_adapter.py`, `reference/vector_adapter.py`, `reference/search_cache_adapter.py`. Resolve files under `reference/` relative to this `SKILL.md` in the plugin installation (`$CURSOR_PLUGIN_ROOT/skills/redis-search/` or `$CLAUDE_PLUGIN_ROOT/skills/redis-search/`). These are plugin templates, not app-relative paths. Copy and adapt them into the app; never edit the plugin copies. ## Before writing files 1. Inspect the domain, Redis config/adapters, DTOs, index naming, key prefixes, DI wiring, and tests. 2. Infer data structure, sync/async style, and existing search conventions. 3. Ask only for unresolved choices: search type, domain, query behavior, and vector dimension/metric when applicable. 4. Preserve existing indexes and adapters. Treat schema or prefix changes as migrations; do not silently replace them. ## Prefer ArchiPy ```bash uv add "archipy[redis]" ``` Thin domain wrapper around `RedisAdapter.search_index()` — **not** raw `client.ft()`. Key library symbols: - `RedisAdapter.search_index(name)` / `list_search_indexes()` - DTOs: