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.
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.
npx skills add redis/agent-skills --skill add-context-gatewaygit clone --depth 1 https://github.com/redis/agent-skillsWrote 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.
[](https://agentmods.dev/skills/redis/agent-skills/add-context-gateway)<a href="https://agentmods.dev/skills/redis/agent-skills/add-context-gateway"><img src="https://agentmods.dev/badge/skills/redis/agent-skills/add-context-gateway/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.
<a href="https://agentmods.dev/skills/redis/agent-skills/add-context-gateway"><img src="https://agentmods.dev/badge/skills/redis/agent-skills/add-context-gateway.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00209 | $0.07764 |
| Opus 5.5 | $0.00084 | $0.03106 |
| Sonnet 5.5 | $0.00042 | $0.01553 |
| Haiku 4.5 | $0.00021 | $0.00776 |
Grade B, and why
add-context-gateway scanned grade B with 1 finding 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 29d 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.
Reads MCP configurationmediumAgent snooping
mcp.json carries server URLs and auth tokens; reading it lets a mod discover and abuse other integrations.
- Find every MCP server the agent configures: `.mcp.json`, `.cursor/mcp.json`, `McpToolset`, `MCPServerStreamableHttp`, `MultiServerMCPClient`, `stdio_client`, or a hand-written MCP client. Note each endpoint and where i How it starts
The opening of the file, as written. The whole thing — 307 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Add Context Gateway
One MCP endpoint and one agent key in place of every MCP server the agent configures today. The Gateway holds each Upstream's secret, namespaces tool names so they never collide, can expose a large catalog as search_tools and run_tool instead of every schema, caches read-only tools you opt in, and can hand a large result back as a handle. The agent keeps its tools; only where it reaches them changes. Ask first, provision, then repoint.
1. Discover
Read the project:
- Find every MCP server the agent configures:
.mcp.json,.cursor/mcp.json,McpToolset,MCPServerStreamableHttp,MultiServerMCPClient,stdio_client, or a hand-written MCP client. Note each endpoint and where its secret comes from. - Find where tools are handed to the model and where the turn runs.
- Identify the framework from imports, and whether it has its own MCP client.
- Note stdio-only servers: an Upstream is an HTTP MCP endpoint (
streamable-http). A stdio server has to be served over HTTP first, or stays outside the Gateway.
First ask where the Gateway runs:
- Redis Cloud (console). The developer creates the Gateway and its Upstreams in the console, and the CLI only talks to the Gateway's MCP endpoint (step 3, "In Redis Cloud"). Cloud keeps the Gateway's cache and compression off, so skip questions 3 and 4.
- Self-managed (on-prem, or the local Compose stack). The CLI provisions everything (step 3).
Then ask the developer these five questions, nothing more. A shrug takes the default.
| Ask | If the answer is | Configure |
|---|---|---|
| Which MCP servers does the agent use, and where do their secrets live? | A list of HTTP endpoints | One Upstream each: upstream add --name NAME --endpoint URL with --bearer-secret env:VAR or --header NAME --header-secret env:VAR |
| A Redis database the agent should query | A Context Surface Upstream: --kind context-surface --surface-database-id ID --data-model FILE (self-managed, the ID can be left out and defaults from the deployment config. In Redis Cloud the console's Create Context Surface asks for the database). Write the data model first: see "Write the data model" |
|
| How many tools does the agent see in total? | Tens (default) | --tool-exposure-mode full: every tool, namespaced |
| Hundreds, or schemas crowd the prompt | --tool-exposure-mode search: the model sees search_tools and run_tool |
|
| Which read-only tools return the same answer for the same arguments? | Lookups, searches, reference data | A Gateway with a database and cache enabled (see "Gateway switches and database"), then policy set UPSTREAM TOOL --cache-ttl DURATION per tool |
| None, or not sure | No cache policies | |
| Which tools return results too large to read whole? | Exports, list endpoints, logs | A Gateway with a noeviction database and compression enabled (see "Gateway switches and database"). Then the deployment's handle defaults, or --compression-ttl DURATION per tool, and --compression-capture never for a tool that must always return whole |
| Does the framework connect to MCP servers itself? | Yes: Claude Code, Cursor, ADK, OpenAI Agents SDK, LangChain MCP adapters | Point its MCP client at the Gateway URL and key |
| No, or the agent wants plain function tools | The SDK: gateway.model_tools() or gateway.hooks() |
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.
- 29d ago First seen · 307 lines · 209 tokens per session scan B 9781784bb3c2
add-context-gateway is a skill published in the GitHub repository redis/agent-skills (178 stars, last pushed 28d ago), licensed MIT. It adds 209 tokens to every session and 7,764 once invoked, about $0.0008 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads mcp configuration). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-04.
add-context-gateway compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| add-context-gatewayredis/agent-skills | Skill | 178 | 28d ago | MIT | B | 209 | Claude Code |
| implementing-api-rate-limiting-and-throttlingxalgorix/xalgorix | Skill | 1.6k | yesterday | Apache-2.0 | A | 114 | Claude Code, Codex |
| redis-jsupstash/redis-js | Skill | 989 | 5d ago | MIT | A | 93 | Claude Code, Codex |
| redisericrisco/rsc-harness | Skill | 701 | yesterday | MIT | A | 111 | Claude Code, Codex |
| frontmcp-configagentfront/frontmcp | Skill | 154 | today | Apache-2.0 | A | 187 | Claude Code |
| Docker TestcontainersPramodDutta/qaskills | Skill | 253 | 1mo ago | MIT | A | 42 | Claude Code, Codex |
| huawei-cloud-mrs-redis-meta-checkhuaweicloud/huaweicloud-skills | Skill | 59 | today | MIT | A | 167 | Claude Code, Codex |