redis-om
You are an expert in Redis OM (Object Mapping), the high-level client for working with Redis as a primary database. You help developers define schemas, store JSON documents, perform full-text search, vector similarity search, and build real-time applications — using Redis Stack's JSON, Search, and Vector capabilities through an ORM-like interface instead of raw commands.
What this skill does
# Redis OM — Object Mapping for Redis
You are an expert in Redis OM (Object Mapping), the high-level client for working with Redis as a primary database. You help developers define schemas, store JSON documents, perform full-text search, vector similarity search, and build real-time applications — using Redis Stack's JSON, Search, and Vector capabilities through an ORM-like interface instead of raw commands.
## Core Capabilities
### Schema and Repository
```typescript
import { Client, Schema, Repository, EntityId } from "redis-om";
const client = await new Client().open(process.env.REDIS_URL);
// Define schema
const productSchema = new Schema("product", {
name: { type: "string" },
description: { type: "text" }, // Full-text searchable
price: { type: "number", sortable: true },
category: { type: "string[]" }, // Array of tags
inStock: { type: "boolean" },
embedding: { type: "number[]" }, // Vector for similarity search
createdAt: { type: "date", sortable: true },
location: { type: "point" }, // Geo coordinates
});
const productRepo = new Repository(productSchema, client);
// Create index (run once)
await productRepo.createIndex();
// CRUD operations
const product = await productRepo.save({
name: "Wireless Keyboard",
description: "Ergonomic bluetooth keyboard with backlight and long battery life",
price: 79.99,
category: ["electronics", "peripherals"],
inStock: true,
embedding: await getEmbedding("wireless keyboard ergonomic"), // 1536-dim vector
createdAt: new Date(),
location: { longitude: -122.4194, latitude: 37.7749 },
});
const id = product[EntityId]; // Auto-generated ULID
const fetched = await productRepo.fetch(id);
```
### Search and Queries
```typescript
// Full-text search
const results = await productRepo.search()
.where("description").matches("ergonomic bluetooth")
.and("inStock").is.true()
.and("price").is.between(50, 150)
.sortBy("price", "ASC")
.page(0, 20)
.return.all();
// Tag filtering
const electronics = await productRepo.search()
.where("category").contains("electronics")
.return.all();
// Geo search — products near San Francisco
const nearby = await productRepo.search()
.where("location").inRadius(
(circle) => circle.origin(-122.4194, 37.7749).radius(10).miles
)
.return.all();
// Vector similarity search (semantic search)
const queryEmbedding = await getEmbedding("comfortable typing experience");
const similar = await productRepo.search()
.where("embedding").nearest(queryEmbedding, 10) // Top 10 nearest
.return.all();
// Count
const count = await productRepo.search()
.where("inStock").is.true()
.return.count();
```
### Python
```python
from redis_om import HashModel, Field, Migrator
from redis_om import get_redis_connection
redis = get_redis_connection(url="redis://localhost:6379")
class Product(HashModel):
name: str = Field(index=True)
description: str = Field(index=True, full_text_search=True)
price: float = Field(index=True, sortable=True)
category: str = Field(index=True)
in_stock: bool = Field(index=True, default=True)
class Meta:
database = redis
Migrator().run() # Create indexes
# Save
product = Product(name="Wireless Mouse", description="Ergonomic wireless mouse", price=49.99, category="electronics")
product.save()
# Query
results = Product.find(
(Product.category == "electronics") &
(Product.price < 100) &
(Product.in_stock == True)
).sort_by("price").all()
```
## Installation
```bash
# TypeScript
npm install redis-om
# Python
pip install redis-om
# Redis Stack (includes JSON + Search + Vector)
docker run -p 6379:6379 redis/redis-stack:latest
```
## Best Practices
1. **Redis Stack required** — Redis OM needs Redis Stack (JSON + Search modules); regular Redis won't work
2. **Create index once** — Call `createIndex()` on startup or migration; indexes enable all search features
3. **Full-text vs exact** — Use `text` type for full-text search, `string` for exact match/filtering
4. **Vector search** — Store embeddings as `number[]`; query with `.nearest()` for semantic similarity
5. **Sortable fields** — Mark fields as `sortable: true` to enable `.sortBy()`; adds index overhead
6. **Pagination** — Use `.page(offset, count)` for large result sets; don't fetch all at once
7. **Geo queries** — Use `point` type for location-based search; radius queries built-in
8. **Performance** — Sub-millisecond reads/writes; Redis OM adds minimal overhead over raw commands
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.