diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index 6cd14c5..0d8280d 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -6,16 +6,16 @@ }, "metadata": { "description": "Official Redis plugins for Claude Code", - "version": "1.5.0" + "version": "1.7.0" }, "plugins": [ { "name": "redis-development", "source": "./plugins/redis-development", - "description": "Redis development best practices — data structures, Redis Search (lexical + vector + hybrid retrieval), caching, and performance optimization, plus Redis Iris (Agent Memory, Agent Playbooks, Context Gateway, Intent Router, Lens).", - "version": "1.5.0", + "description": "Redis development best practices — data structures, Redis Search (lexical + vector + hybrid retrieval), caching, and performance optimization, plus Redis Iris (Agent Memory, Agent Playbooks, Context Gateway, Intent Router, Lens), and live lookup of the official redis.io documentation.", + "version": "1.7.0", "category": "database", - "tags": ["redis", "database", "caching", "vector-search", "performance"] + "tags": ["redis", "database", "caching", "vector-search", "performance", "documentation"] } ] } diff --git a/.cursor-plugin/marketplace.json b/.cursor-plugin/marketplace.json index 034ab0c..73f4fda 100644 --- a/.cursor-plugin/marketplace.json +++ b/.cursor-plugin/marketplace.json @@ -6,16 +6,16 @@ }, "metadata": { "description": "Official Redis plugins for Cursor", - "version": "1.5.0" + "version": "1.7.0" }, "plugins": [ { "name": "redis-development", "source": "./plugins/redis-development", - "description": "Redis development best practices — data structures, Redis Search (lexical + vector + hybrid retrieval), caching, and performance optimization, plus Redis Iris (Agent Memory, Agent Playbooks, Context Gateway, Intent Router, Lens).", - "version": "1.5.0", + "description": "Redis development best practices — data structures, Redis Search (lexical + vector + hybrid retrieval), caching, and performance optimization, plus Redis Iris (Agent Memory, Agent Playbooks, Context Gateway, Intent Router, Lens), and live lookup of the official redis.io documentation.", + "version": "1.7.0", "category": "database", - "tags": ["redis", "database", "caching", "vector-search", "performance"] + "tags": ["redis", "database", "caching", "vector-search", "performance", "documentation"] } ] } diff --git a/README.md b/README.md index a1c9062..11e5aa4 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ Skills follow the [Agent Skills](https://agentskills.io/) format. | [redis-clustering](skills/redis-clustering/) | Hash tags for multi-key operations, avoiding CROSSSLOT, reading from replicas. | | [redis-security](skills/redis-security/) | Authentication and TLS, ACL-based least privilege, network bind, firewall, command renaming. | | [redis-observability](skills/redis-observability/) | Key metrics (INFO), debugging commands (SLOWLOG, MEMORY DOCTOR, FT.PROFILE), Redis Insight. | +| [redis-docs-mcp](skills/redis-docs-mcp/) | Reading what the bundled redis.io docs MCP server returns: section-scoped ids, `metadata.version`, corpus coverage, `ask` rate limits. | | [add-redis-iris](skills/add-redis-iris/) | Redis Iris: detect the agent's framework and route to the right Iris product skill. Start here. | | [add-agent-memory](skills/add-agent-memory/) | Redis Iris Agent Memory: provision with the `iris` CLI, wire recall and write-back so the agent remembers users across sessions. | | [add-agent-playbooks](skills/add-agent-playbooks/) | Redis Iris Agent Playbooks: publish procedures (Skills) and approved answers (FAQs), answer from published content only. | @@ -43,8 +44,9 @@ You can also install the skills as a Claude Code plugin: The distributable plugin package for ChatGPT and Codex lives at [`plugins/redis-development/`](plugins/redis-development/). It includes the required `.codex-plugin/plugin.json` manifest and real copies of every skill. -Archive that directory—not the repository root—when preparing a skills-only -submission to the OpenAI plugin submission portal. +Archive that directory—not the repository root—when preparing a submission to +the OpenAI plugin submission portal. The archive includes the shared `.mcp.json`, +so it carries the Redis Docs MCP server as well as the skills. ### Cursor Plugin @@ -56,6 +58,33 @@ This repository also includes Cursor plugin packaging. Run this command in chat: The top-level `skills/` directory remains the source of truth. `plugins/redis-development/skills/` holds generated real copies used by the ChatGPT, Codex, and Claude Code plugin package (not symlinks, which plugin installation flows may drop); `npm run sync:plugins` regenerates them and the pre-commit hook keeps them current. See [AGENTS.md](AGENTS.md#where-skills-live). +### Redis Docs MCP server + +The Claude Code, ChatGPT and Codex, and Cursor plugins bundle the official Redis documentation MCP +server at `https://redis.io/mcp`, so an agent can look up authoritative docs instead of relying on +stale training data. It needs **no credentials, no local Redis, and no configuration** — a public, +read-only, hosted endpoint that connects automatically once the plugin is enabled. + +Three read-only tools: `search` (query the docs index), `fetch` (retrieve a page or a section by its id), and +`ask` (a grounded answer with citations). + +Each tool call sends the agent's query text to redis.io. If that conflicts with your data +policy, disable the `redis-docs` server in your client's MCP settings (in Claude Code, `/mcp`). + +| Channel | Carries the MCP server? | +|---------|-------------------------| +| Claude Code plugin | Yes | +| ChatGPT / Codex plugin | Yes | +| Cursor plugin | Yes | +| Agent Skills CLI (`npx skills add`) | No — the Agent Skills format has no MCP component | + +All three manifests point at one shared [`plugins/redis-development/.mcp.json`](plugins/redis-development/.mcp.json). +To add the server to Claude Code without the plugin: + +```bash +claude mcp add --transport http redis-docs https://redis.io/mcp +``` + ## Usage Skills are automatically available once installed. The agent will use them when relevant tasks are detected. diff --git a/evals/redis-docs-mcp/docs-mcp/baselines/README.md b/evals/redis-docs-mcp/docs-mcp/baselines/README.md new file mode 100644 index 0000000..2685f9b --- /dev/null +++ b/evals/redis-docs-mcp/docs-mcp/baselines/README.md @@ -0,0 +1,28 @@ +# docs-mcp Baseline + +Updated: 2026-11-04T15:38:24.340Z + +Skill: `redis-docs-mcp` + +Suite: `docs-mcp` + +Source iteration: `iteration-1` + +Source output: `eval-workspaces/redis-docs-mcp/docs-mcp/iteration-1` + +This is a curated aggregate benchmark snapshot. Use it as the shared reference +when comparing future skill changes against the current accepted behavior. + +## Included Files + +- `aggregate-benchmark.json` +- `aggregate-benchmark.md` +- `model-matrix.json` +- `baseline.json` +- `README.md` + +## Update Command + +```bash +npm run eval:baseline -- --skill redis-docs-mcp --suite docs-mcp +``` diff --git a/evals/redis-docs-mcp/docs-mcp/baselines/aggregate-benchmark.json b/evals/redis-docs-mcp/docs-mcp/baselines/aggregate-benchmark.json new file mode 100644 index 0000000..f081404 --- /dev/null +++ b/evals/redis-docs-mcp/docs-mcp/baselines/aggregate-benchmark.json @@ -0,0 +1,683 @@ +{ + "generated_at": "2026-11-04T15:38:24.292Z", + "input_root": "eval-workspaces/redis-docs-mcp/docs-mcp/iteration-1", + "context": { + "skill_name": "redis-docs-mcp", + "suite_name": "docs-mcp" + }, + "models": [ + { + "model_dir": "anthropic__claude-haiku-4-5-20251001", + "model": "claude-haiku-4-5-20251001", + "provider": "anthropic", + "analyzer_model": "", + "runs_per_configuration": 3, + "evals_run": [ + 1, + 2, + 3, + 4, + 5 + ], + "without_skill": { + "count": 10, + "pass_rate": 0.5166666666666666, + "time_seconds": 16.909299999999995, + "tokens": 1419.9 + }, + "with_skill": { + "count": 10, + "pass_rate": 0.7333333333333333, + "time_seconds": 20.1735, + "tokens": 1285 + }, + "delta": { + "pass_rate": 0.21666666666666667, + "time_seconds": 3.264200000000006, + "tokens": -134.9000000000001 + }, + "cost": { + "generation_usd": 0.933218, + "grading_usd": 1.45756, + "total_usd": 2.390778, + "with_skill_usd": 1.306451, + "without_skill_usd": 1.084327, + "delta_usd": 0.022212, + "runs_with_cost": 20 + }, + "verdict": "improves" + }, + { + "model_dir": "anthropic__claude-opus-5-5", + "model": "claude-opus-5-5", + "provider": "anthropic", + "analyzer_model": "", + "runs_per_configuration": 3, + "evals_run": [ + 1, + 2, + 3, + 4, + 5 + ], + "without_skill": { + "count": 10, + "pass_rate": 0.7333333333333332, + "time_seconds": 18.2749, + "tokens": 2311.8 + }, + "with_skill": { + "count": 10, + "pass_rate": 0.95, + "time_seconds": 19.124700000000004, + "tokens": 2275.5 + }, + "delta": { + "pass_rate": 0.21666666666666679, + "time_seconds": 0.8498000000000054, + "tokens": -36.30000000000018 + }, + "cost": { + "generation_usd": 4.349502, + "grading_usd": 1.76922, + "total_usd": 6.118721, + "with_skill_usd": 3.52995, + "without_skill_usd": 2.588771, + "delta_usd": 0.094118, + "runs_with_cost": 20 + }, + "verdict": "improves" + }, + { + "model_dir": "anthropic__claude-sonnet-5-5", + "model": "claude-sonnet-5-5", + "provider": "anthropic", + "analyzer_model": "", + "runs_per_configuration": 3, + "evals_run": [ + 1, + 2, + 3, + 4, + 5 + ], + "without_skill": { + "count": 10, + "pass_rate": 0.6000000000000001, + "time_seconds": 13.068200000000001, + "tokens": 2000.8 + }, + "with_skill": { + "count": 10, + "pass_rate": 0.9833333333333334, + "time_seconds": 13.073500000000001, + "tokens": 1865.3 + }, + "delta": { + "pass_rate": 0.3833333333333333, + "time_seconds": 0.005300000000000082, + "tokens": -135.5 + }, + "cost": { + "generation_usd": 1.671728, + "grading_usd": 1.39866, + "total_usd": 3.070388, + "with_skill_usd": 1.732323, + "without_skill_usd": 1.338064, + "delta_usd": 0.039426, + "runs_with_cost": 20 + }, + "verdict": "improves" + } + ], + "evals": [ + { + "eval_id": 1, + "eval_name": "sections-not-pages", + "without_skill": { + "count": 6, + "pass_rate": 0.5, + "time_seconds": 16.32283333333333, + "tokens": 1812.6666666666667 + }, + "with_skill": { + "count": 6, + "pass_rate": 0.8333333333333334, + "time_seconds": 19.92316666666667, + "tokens": 1709.6666666666667 + }, + "delta": { + "pass_rate": 0.33333333333333337, + "time_seconds": 3.6003333333333387, + "tokens": -103 + }, + "mean_delta_pass_rate": 0.33333333333333337, + "models": [ + { + "model": "claude-haiku-4-5-20251001", + "eval_name": "sections-not-pages", + "with_skill": { + "count": 2, + "pass_rate": 0.75, + "time_seconds": 30.122500000000002, + "tokens": 1461 + }, + "without_skill": { + "count": 2, + "pass_rate": 0.25, + "time_seconds": 22.982, + "tokens": 1646.5 + }, + "delta": { + "pass_rate": 0.5, + "time_seconds": 7.140500000000003, + "tokens": -185.5 + } + }, + { + "model": "claude-opus-5-5", + "eval_name": "sections-not-pages", + "with_skill": { + "count": 2, + "pass_rate": 0.8333333333333334, + "time_seconds": 17.5315, + "tokens": 1977.5 + }, + "without_skill": { + "count": 2, + "pass_rate": 0.75, + "time_seconds": 15.582, + "tokens": 1893.5 + }, + "delta": { + "pass_rate": 0.08333333333333337, + "time_seconds": 1.9495000000000005, + "tokens": 84 + } + }, + { + "model": "claude-sonnet-5-5", + "eval_name": "sections-not-pages", + "with_skill": { + "count": 2, + "pass_rate": 0.9166666666666667, + "time_seconds": 12.1155, + "tokens": 1690.5 + }, + "without_skill": { + "count": 2, + "pass_rate": 0.5, + "time_seconds": 10.404499999999999, + "tokens": 1898 + }, + "delta": { + "pass_rate": 0.41666666666666674, + "time_seconds": 1.711000000000002, + "tokens": -207.5 + } + } + ] + }, + { + "eval_id": 2, + "eval_name": "never-construct-ids", + "without_skill": { + "count": 6, + "pass_rate": 0.49999999999999994, + "time_seconds": 15.241, + "tokens": 1498.8333333333333 + }, + "with_skill": { + "count": 6, + "pass_rate": 0.9722222222222223, + "time_seconds": 15.889833333333334, + "tokens": 1455.8333333333333 + }, + "delta": { + "pass_rate": 0.4722222222222224, + "time_seconds": 0.648833333333334, + "tokens": -43 + }, + "mean_delta_pass_rate": 0.4722222222222224, + "models": [ + { + "model": "claude-haiku-4-5-20251001", + "eval_name": "never-construct-ids", + "with_skill": { + "count": 2, + "pass_rate": 1, + "time_seconds": 17.519, + "tokens": 773.5 + }, + "without_skill": { + "count": 2, + "pass_rate": 0.5833333333333333, + "time_seconds": 15.4145, + "tokens": 1280 + }, + "delta": { + "pass_rate": 0.41666666666666674, + "time_seconds": 2.104499999999998, + "tokens": -506.5 + } + }, + { + "model": "claude-opus-5-5", + "eval_name": "never-construct-ids", + "with_skill": { + "count": 2, + "pass_rate": 0.9166666666666667, + "time_seconds": 18.058500000000002, + "tokens": 1891.5 + }, + "without_skill": { + "count": 2, + "pass_rate": 0.5833333333333333, + "time_seconds": 16.114, + "tokens": 1726.5 + }, + "delta": { + "pass_rate": 0.3333333333333335, + "time_seconds": 1.9445000000000014, + "tokens": 165 + } + }, + { + "model": "claude-sonnet-5-5", + "eval_name": "never-construct-ids", + "with_skill": { + "count": 2, + "pass_rate": 1, + "time_seconds": 12.091999999999999, + "tokens": 1702.5 + }, + "without_skill": { + "count": 2, + "pass_rate": 0.3333333333333333, + "time_seconds": 14.194500000000001, + "tokens": 1490 + }, + "delta": { + "pass_rate": 0.6666666666666667, + "time_seconds": -2.1025000000000027, + "tokens": 212.5 + } + } + ] + }, + { + "eval_id": 3, + "eval_name": "version-metadata-trap", + "without_skill": { + "count": 6, + "pass_rate": 0.7222222222222222, + "time_seconds": 14.994500000000002, + "tokens": 1732.6666666666667 + }, + "with_skill": { + "count": 6, + "pass_rate": 0.9444444444444443, + "time_seconds": 16.677333333333333, + "tokens": 1482.1666666666667 + }, + "delta": { + "pass_rate": 0.2222222222222221, + "time_seconds": 1.6828333333333312, + "tokens": -250.5 + }, + "mean_delta_pass_rate": 0.2222222222222221, + "models": [ + { + "model": "claude-haiku-4-5-20251001", + "eval_name": "version-metadata-trap", + "with_skill": { + "count": 2, + "pass_rate": 0.8333333333333333, + "time_seconds": 19.271, + "tokens": 1266.5 + }, + "without_skill": { + "count": 2, + "pass_rate": 0.6666666666666666, + "time_seconds": 15.5275, + "tokens": 1286.5 + }, + "delta": { + "pass_rate": 0.16666666666666663, + "time_seconds": 3.743500000000001, + "tokens": -20 + } + }, + { + "model": "claude-opus-5-5", + "eval_name": "version-metadata-trap", + "with_skill": { + "count": 2, + "pass_rate": 1, + "time_seconds": 19.368499999999997, + "tokens": 2033.5 + }, + "without_skill": { + "count": 2, + "pass_rate": 0.8333333333333334, + "time_seconds": 18.0805, + "tokens": 2105 + }, + "delta": { + "pass_rate": 0.16666666666666663, + "time_seconds": 1.2879999999999967, + "tokens": -71.5 + } + }, + { + "model": "claude-sonnet-5-5", + "eval_name": "version-metadata-trap", + "with_skill": { + "count": 2, + "pass_rate": 1, + "time_seconds": 11.3925, + "tokens": 1146.5 + }, + "without_skill": { + "count": 2, + "pass_rate": 0.6666666666666666, + "time_seconds": 11.3755, + "tokens": 1806.5 + }, + "delta": { + "pass_rate": 0.33333333333333337, + "time_seconds": 0.01699999999999946, + "tokens": -660 + } + } + ] + }, + { + "eval_id": 4, + "eval_name": "corpus-boundary-miss", + "without_skill": { + "count": 6, + "pass_rate": 0.75, + "time_seconds": 14.2145, + "tokens": 1680 + }, + "with_skill": { + "count": 6, + "pass_rate": 0.8333333333333334, + "time_seconds": 15.735166666666665, + "tokens": 1657 + }, + "delta": { + "pass_rate": 0.08333333333333337, + "time_seconds": 1.5206666666666653, + "tokens": -23 + }, + "mean_delta_pass_rate": 0.08333333333333337, + "models": [ + { + "model": "claude-haiku-4-5-20251001", + "eval_name": "corpus-boundary-miss", + "with_skill": { + "count": 2, + "pass_rate": 0.5, + "time_seconds": 16.5355, + "tokens": 1271.5 + }, + "without_skill": { + "count": 2, + "pass_rate": 0.5833333333333333, + "time_seconds": 14.175, + "tokens": 1112 + }, + "delta": { + "pass_rate": -0.08333333333333326, + "time_seconds": 2.3604999999999983, + "tokens": 159.5 + } + }, + { + "model": "claude-opus-5-5", + "eval_name": "corpus-boundary-miss", + "with_skill": { + "count": 2, + "pass_rate": 1, + "time_seconds": 17.636, + "tokens": 2077.5 + }, + "without_skill": { + "count": 2, + "pass_rate": 0.8333333333333334, + "time_seconds": 17.9135, + "tokens": 2215.5 + }, + "delta": { + "pass_rate": 0.16666666666666663, + "time_seconds": -0.27749999999999986, + "tokens": -138 + } + }, + { + "model": "claude-sonnet-5-5", + "eval_name": "corpus-boundary-miss", + "with_skill": { + "count": 2, + "pass_rate": 1, + "time_seconds": 13.034, + "tokens": 1622 + }, + "without_skill": { + "count": 2, + "pass_rate": 0.8333333333333333, + "time_seconds": 10.555, + "tokens": 1712.5 + }, + "delta": { + "pass_rate": 0.16666666666666674, + "time_seconds": 2.479000000000001, + "tokens": -90.5 + } + } + ] + }, + { + "eval_id": 5, + "eval_name": "ask-economics", + "without_skill": { + "count": 6, + "pass_rate": 0.6111111111111112, + "time_seconds": 19.647833333333335, + "tokens": 2830 + }, + "with_skill": { + "count": 6, + "pass_rate": 0.8611111111111112, + "time_seconds": 19.060666666666666, + "tokens": 2738.3333333333335 + }, + "delta": { + "pass_rate": 0.25, + "time_seconds": -0.5871666666666684, + "tokens": -91.66666666666652 + }, + "mean_delta_pass_rate": 0.25, + "models": [ + { + "model": "claude-haiku-4-5-20251001", + "eval_name": "ask-economics", + "with_skill": { + "count": 2, + "pass_rate": 0.5833333333333334, + "time_seconds": 17.4195, + "tokens": 1652.5 + }, + "without_skill": { + "count": 2, + "pass_rate": 0.5, + "time_seconds": 16.447499999999998, + "tokens": 1774.5 + }, + "delta": { + "pass_rate": 0.08333333333333337, + "time_seconds": 0.9720000000000013, + "tokens": -122 + } + }, + { + "model": "claude-opus-5-5", + "eval_name": "ask-economics", + "with_skill": { + "count": 2, + "pass_rate": 1, + "time_seconds": 23.029, + "tokens": 3397.5 + }, + "without_skill": { + "count": 2, + "pass_rate": 0.6666666666666667, + "time_seconds": 23.6845, + "tokens": 3618.5 + }, + "delta": { + "pass_rate": 0.33333333333333326, + "time_seconds": -0.6555, + "tokens": -221 + } + }, + { + "model": "claude-sonnet-5-5", + "eval_name": "ask-economics", + "with_skill": { + "count": 2, + "pass_rate": 1, + "time_seconds": 16.7335, + "tokens": 3165 + }, + "without_skill": { + "count": 2, + "pass_rate": 0.6666666666666666, + "time_seconds": 18.811500000000002, + "tokens": 3097 + }, + "delta": { + "pass_rate": 0.33333333333333337, + "time_seconds": -2.078000000000003, + "tokens": 68 + } + } + ] + } + ], + "overall": { + "models": 3, + "total_cost_usd": 11.579887, + "generation_cost_usd": 6.954448, + "grading_cost_usd": 4.62544, + "mean_delta_pass_rate": 0.27222222222222225, + "mean_delta_tokens": -102.23333333333342, + "mean_delta_time_seconds": 1.3731000000000038, + "mean_delta_cost_usd": 0.05191866666666667, + "models_improved": 3, + "models_neutral": 0, + "models_degraded": 0 + }, + "baseline_comparison": { + "path": "evals/redis-docs-mcp/docs-mcp/baselines/aggregate-benchmark.json", + "generated_at": "2026-11-04T14:23:36.791Z", + "input_root": "eval-workspaces/redis-docs-mcp/docs-mcp/iteration-1", + "overall": { + "baseline": { + "mean_pass_delta": 0.29444444444444456, + "mean_token_delta": -75.40000000000002, + "mean_time_delta_seconds": 14.693266666666666, + "mean_cost_delta_usd": 0.049334333333333334 + }, + "current": { + "mean_pass_delta": 0.27222222222222225, + "mean_token_delta": -102.23333333333342, + "mean_time_delta_seconds": 1.3731000000000038, + "mean_cost_delta_usd": 0.05191866666666667 + }, + "change": { + "mean_pass_delta": -0.02222222222222231, + "mean_token_delta": -26.8333333333334, + "mean_time_delta_seconds": -13.320166666666662, + "mean_cost_delta_usd": 0.0025843333333333343 + } + }, + "models": [ + { + "model": "claude-haiku-4-5-20251001", + "status": "compared", + "baseline": { + "pass_delta": 0.3500000000000001, + "token_delta": -64.79999999999995, + "time_delta_seconds": 44.8772, + "cost_delta_usd": 0.041215 + }, + "current": { + "pass_delta": 0.21666666666666667, + "token_delta": -134.9000000000001, + "time_delta_seconds": 3.264200000000006, + "cost_delta_usd": 0.022212 + }, + "change": { + "pass_delta": -0.13333333333333341, + "token_delta": -70.10000000000014, + "time_delta_seconds": -41.613, + "cost_delta_usd": -0.019003000000000003 + }, + "baseline_verdict": "improves", + "current_verdict": "improves" + }, + { + "model": "claude-opus-5-5", + "status": "compared", + "baseline": { + "pass_delta": 0.2333333333333334, + "token_delta": -78, + "time_delta_seconds": 0.7859000000000016, + "cost_delta_usd": 0.071462 + }, + "current": { + "pass_delta": 0.21666666666666679, + "token_delta": -36.30000000000018, + "time_delta_seconds": 0.8498000000000054, + "cost_delta_usd": 0.094118 + }, + "change": { + "pass_delta": -0.016666666666666607, + "token_delta": 41.69999999999982, + "time_delta_seconds": 0.06390000000000384, + "cost_delta_usd": 0.022655999999999996 + }, + "baseline_verdict": "improves", + "current_verdict": "improves" + }, + { + "model": "claude-sonnet-5-5", + "status": "compared", + "baseline": { + "pass_delta": 0.30000000000000016, + "token_delta": -83.40000000000009, + "time_delta_seconds": -1.5832999999999995, + "cost_delta_usd": 0.035326 + }, + "current": { + "pass_delta": 0.3833333333333333, + "token_delta": -135.5, + "time_delta_seconds": 0.005300000000000082, + "cost_delta_usd": 0.039426 + }, + "change": { + "pass_delta": 0.08333333333333315, + "token_delta": -52.09999999999991, + "time_delta_seconds": 1.5885999999999996, + "cost_delta_usd": 0.0040999999999999995 + }, + "baseline_verdict": "improves", + "current_verdict": "improves" + } + ], + "missing_models": [] + } +} diff --git a/evals/redis-docs-mcp/docs-mcp/baselines/aggregate-benchmark.md b/evals/redis-docs-mcp/docs-mcp/baselines/aggregate-benchmark.md new file mode 100644 index 0000000..1322ba4 --- /dev/null +++ b/evals/redis-docs-mcp/docs-mcp/baselines/aggregate-benchmark.md @@ -0,0 +1,58 @@ +# Skill Benchmark + +Generated: 2026-11-04T15:38:24.292Z + +Skill: redis-docs-mcp + +Suite: docs-mcp + +Input: `eval-workspaces/redis-docs-mcp/docs-mcp/iteration-1` + +## Overall + +- Models: 3 +- Mean pass-rate delta: +27 points +- Mean token delta: -102 +- Mean time delta: +1.4s +- Total eval cost: $11.5799 +- Mean cost delta: +$0.0519 +- Verdict counts: 3 improves, 0 neutral, 0 degrades + +## Against Baseline + +Baseline: `evals/redis-docs-mcp/docs-mcp/baselines/aggregate-benchmark.json` + +Baseline generated: 2026-11-04T14:23:36.791Z + +| Metric | Baseline | Current | Change | +|--------|----------|---------|--------| +| Mean pass delta | +29 points | +27 points | -2 points | +| Mean token delta | -75 | -102 | -27 | +| Mean time delta | +14.7s | +1.4s | -13.3s | +| Mean cost delta | +$0.0493 | +$0.0519 | +$0.0026 | + +### By Model Against Baseline + +| Model | Pass Delta Change | Token Delta Change | Time Delta Change | Cost Delta Change | Verdict | +|-------|-------------------|--------------------|-------------------|-------------------|---------| +| claude-haiku-4-5-20251001 | -13 points | -70 | -41.6s | -$0.0190 | improves -> improves | +| claude-opus-5-5 | -2 points | +42 | +0.1s | +$0.0227 | improves -> improves | +| claude-sonnet-5-5 | +8 points | -52 | +1.6s | +$0.0041 | improves -> improves | + +## By Model + +| Model | Without Skill | With Skill | Pass Delta | Token Delta | Time Delta | Total Cost | Cost Delta | Verdict | +|-------|---------------|------------|------------|-------------|------------|------------|------------|---------| +| claude-haiku-4-5-20251001 | 52% | 73% | +22 points | -135 | +3.3s | $2.3908 | +$0.0222 | improves | +| claude-opus-5-5 | 73% | 95% | +22 points | -36 | +0.8s | $6.1187 | +$0.0941 | improves | +| claude-sonnet-5-5 | 60% | 98% | +38 points | -136 | +0.0s | $3.0704 | +$0.0394 | improves | + +## By Eval + +| Eval | Without Skill | With Skill | Pass Delta | Token Delta | Time Delta | Model Pass Deltas | +|------|---------------|------------|------------|-------------|------------|-------------------| +| sections-not-pages | 50% | 83% | +33 points | -103 | +3.6s | claude-haiku-4-5-20251001: +50 points
claude-opus-5-5: +8 points
claude-sonnet-5-5: +42 points | +| never-construct-ids | 50% | 97% | +47 points | -43 | +0.6s | claude-haiku-4-5-20251001: +42 points
claude-opus-5-5: +33 points
claude-sonnet-5-5: +67 points | +| version-metadata-trap | 72% | 94% | +22 points | -251 | +1.7s | claude-haiku-4-5-20251001: +17 points
claude-opus-5-5: +17 points
claude-sonnet-5-5: +33 points | +| corpus-boundary-miss | 75% | 83% | +8 points | -23 | +1.5s | claude-haiku-4-5-20251001: -8 points
claude-opus-5-5: +17 points
claude-sonnet-5-5: +17 points | +| ask-economics | 61% | 86% | +25 points | -92 | -0.6s | claude-haiku-4-5-20251001: +8 points
claude-opus-5-5: +33 points
claude-sonnet-5-5: +33 points | diff --git a/evals/redis-docs-mcp/docs-mcp/baselines/baseline.json b/evals/redis-docs-mcp/docs-mcp/baselines/baseline.json new file mode 100644 index 0000000..c6a1022 --- /dev/null +++ b/evals/redis-docs-mcp/docs-mcp/baselines/baseline.json @@ -0,0 +1,15 @@ +{ + "baseline_name": "current", + "updated_at": "2026-11-04T15:38:24.340Z", + "skill_name": "redis-docs-mcp", + "eval_suite": "docs-mcp", + "iteration": "iteration-1", + "input_root": "eval-workspaces/redis-docs-mcp/docs-mcp/iteration-1", + "included_files": [ + "aggregate-benchmark.json", + "aggregate-benchmark.md", + "model-matrix.json", + "baseline.json", + "README.md" + ] +} diff --git a/evals/redis-docs-mcp/docs-mcp/baselines/model-matrix.json b/evals/redis-docs-mcp/docs-mcp/baselines/model-matrix.json new file mode 100644 index 0000000..cea9b75 --- /dev/null +++ b/evals/redis-docs-mcp/docs-mcp/baselines/model-matrix.json @@ -0,0 +1,16 @@ +{ + "eval_suite": "docs-mcp", + "description": "Cross-model run plan for the redis-docs-mcp eval suite (section-scoped ids, id construction, metadata.version, corpus boundaries, ask economics). Anthropic skill-creator tooling owns generation, grading, per-model benchmark.json, and benchmark.md; this file records the model matrix we run before combining per-model benchmark files. Note the harness gives runs no MCP access, so the suite grades stated approach rather than tool calls.", + "models": [ + "claude-opus-5-5", + "claude-sonnet-5-5", + "claude-haiku-4-5-20251001" + ], + "configurations": [ + "with_skill", + "without_skill" + ], + "repetitions": 2, + "judge_model": "claude-sonnet-5-5", + "default_iteration": "iteration-1" +} diff --git a/evals/redis-docs-mcp/docs-mcp/evals.json b/evals/redis-docs-mcp/docs-mcp/evals.json new file mode 100644 index 0000000..e12ca62 --- /dev/null +++ b/evals/redis-docs-mcp/docs-mcp/evals.json @@ -0,0 +1,93 @@ +{ + "skill_name": "redis-docs-mcp", + "eval_suite": "docs-mcp", + "description": "Evals for the redis-docs-mcp skill: reading what the redis.io docs MCP server actually returns. Each prompt embeds the server's own instructions and tool descriptions in both arms, because in production the agent always has them - so the measured delta is the skill's guidance alone, not credit for what the tool descriptions already say. It covers five rules: section-scoped ids, never constructing an id, what metadata.version means, fetching before reporting a miss, and ask economics. Ask economics and id construction discriminate most; the metadata.version eval barely does, because models mostly avoid that trap unaided.", + "evals": [ + { + "id": 1, + "name": "sections-not-pages", + "prompt": "My agent has the redis-docs MCP server connected. Its tool inventory reads:\n\nServer instructions: \"Authoritative, up-to-date Redis documentation. Consult these tools for any question about Redis - commands, configuration, data types, clients, deployment, RediSearch/JSON, version-specific behavior - rather than answering from prior knowledge, which may be stale (Redis 8 changed several defaults and behaviors). Cite the pages you read. Start with `search`, then `fetch` the pages you need. Reserve `ask` for a question spanning several areas of the documentation at once; it takes several seconds, so prefer `search` when one page would answer.\"\n\n- `search(query)`: \"Search the Redis documentation by free-text query. Returns up to 8 matching pages, each with a text snippet and that page's stable `id`. This is the default tool for a Redis question. Search first, then `fetch` any `id` whose full text you need - one search plus a fetch or two answers most questions.\"\n- `fetch(id)`: \"Return the full text and metadata for one Redis documentation page: title, canonical URL, body text, and topic/version/section metadata. Takes an `id` from a `search` result or from an `ask` result's `sources`. Use it when a snippet is not enough to answer confidently, or to quote the documentation exactly.\"\n- `ask(question)`: \"Ask a natural-language question about Redis. Returns a prose answer plus the source documents behind it - any `sources[].id` can be passed to `fetch`. If the documentation does not cover the question, the answer says so. Reserve `ask` for a question spanning several areas of the documentation, where no single page answers and the parts interact - or when a `search` has come back empty or off-target. `ask` takes several seconds, so use `search` and `fetch` for anything narrower.\"\n\nDebugging our integration and I think the index is broken. A search for 'hash field expiration' came back with what look like three duplicate results - same url three times. I fetched the first of those ids and got about a kilobyte of text, nowhere near the page. But when I fetched `commands/hexpire` I got the whole page, several kilobytes, examples and all. Same tool, two completely different behaviours. What is going on and do I need to work around it?", + "expected_output": "Explains the index is per-section rather than per-page: the three hits share a page url but carry distinct section ids, so they are different sections of that page rather than duplicates, and the size difference follows the id shape - a section id returns that one section while a bare page id returns the whole page. Nothing is broken; to cover the topic, fetch the other section ids the search already returned.", + "covered_rules": [ + "docs-section-ids" + ], + "expectations": [ + "The output identifies that the documentation index is section-scoped rather than page-scoped.", + "The output explains that results sharing one url are different sections of the same page, not duplicate hits.", + "The output ties the size difference to the shape of the id, explaining that a section id returns one section while a bare page id such as commands/hexpire returns the whole page.", + "The output states that neither response is a bug, a truncation, or a misconfiguration to work around.", + "The output advises fetching the other section ids already present in the search results rather than re-running the search.", + "The output does not attribute the short response to a client-side response-size limit or a broken index." + ] + }, + { + "id": 2, + "name": "never-construct-ids", + "prompt": "My agent has the redis-docs MCP server connected. Its tool inventory reads:\n\nServer instructions: \"Authoritative, up-to-date Redis documentation. Consult these tools for any question about Redis - commands, configuration, data types, clients, deployment, RediSearch/JSON, version-specific behavior - rather than answering from prior knowledge, which may be stale (Redis 8 changed several defaults and behaviors). Cite the pages you read. Start with `search`, then `fetch` the pages you need. Reserve `ask` for a question spanning several areas of the documentation at once; it takes several seconds, so prefer `search` when one page would answer.\"\n\n- `search(query)`: \"Search the Redis documentation by free-text query. Returns up to 8 matching pages, each with a text snippet and that page's stable `id`. This is the default tool for a Redis question. Search first, then `fetch` any `id` whose full text you need - one search plus a fetch or two answers most questions.\"\n- `fetch(id)`: \"Return the full text and metadata for one Redis documentation page: title, canonical URL, body text, and topic/version/section metadata. Takes an `id` from a `search` result or from an `ask` result's `sources`. Use it when a snippet is not enough to answer confidently, or to quote the documentation exactly.\"\n- `ask(question)`: \"Ask a natural-language question about Redis. Returns a prose answer plus the source documents behind it - any `sources[].id` can be passed to `fetch`. If the documentation does not cover the question, the answer says so. Reserve `ask` for a question spanning several areas of the documentation, where no single page answers and the parts interact - or when a `search` has come back empty or off-target. `ask` takes several seconds, so use `search` and `fetch` for anything narrower.\"\n\nWriting a small wrapper around these tools. To save a round trip I want to skip search entirely when I already know the page I want, and build the fetch id from the url - so `commands/setex` for https://redis.io/docs/latest/commands/setex/, and by the same rule `develop/data-types/hashes` for the hashes page. I spot-checked the first one and it worked. Is this sane to build on?", + "expected_output": "Says no: ids must come from a search result or an ask result's sources rather than being constructed. Acknowledges the url-derived form happens to work for simple command pages, but explains that longer pages are addressed by section ids carrying a #sec: suffix that cannot be derived from a url, so the rule breaks exactly where the pages are big enough for the saving to matter.", + "covered_rules": [ + "docs-id-construction", + "docs-section-ids" + ], + "expectations": [ + "The output advises against constructing fetch ids and states that valid ids come from a search result or from an ask result's sources.", + "The output acknowledges that the url-derived form does work for simple command pages such as commands/setex.", + "The output explains that longer pages are addressed by section-scoped ids carrying a #sec: suffix that cannot be derived from the url.", + "The output gives at least one concrete example of a section id shape the url-derived rule cannot produce, such as a named anchor or an ordinal window suffix.", + "The output does not endorse url-to-id construction as a general way to save a round trip.", + "The output offers a legitimate alternative, such as reusing ids already returned by an earlier search or by ask sources." + ] + }, + { + "id": 3, + "name": "version-metadata-trap", + "prompt": "My agent has the redis-docs MCP server connected. Its tool inventory reads:\n\nServer instructions: \"Authoritative, up-to-date Redis documentation. Consult these tools for any question about Redis - commands, configuration, data types, clients, deployment, RediSearch/JSON, version-specific behavior - rather than answering from prior knowledge, which may be stale (Redis 8 changed several defaults and behaviors). Cite the pages you read. Start with `search`, then `fetch` the pages you need. Reserve `ask` for a question spanning several areas of the documentation at once; it takes several seconds, so prefer `search` when one page would answer.\"\n\n- `search(query)`: \"Search the Redis documentation by free-text query. Returns up to 8 matching pages, each with a text snippet and that page's stable `id`. This is the default tool for a Redis question. Search first, then `fetch` any `id` whose full text you need - one search plus a fetch or two answers most questions.\"\n- `fetch(id)`: \"Return the full text and metadata for one Redis documentation page: title, canonical URL, body text, and topic/version/section metadata. Takes an `id` from a `search` result or from an `ask` result's `sources`. Use it when a snippet is not enough to answer confidently, or to quote the documentation exactly.\"\n- `ask(question)`: \"Ask a natural-language question about Redis. Returns a prose answer plus the source documents behind it - any `sources[].id` can be passed to `fetch`. If the documentation does not cover the question, the answer says so. Reserve `ask` for a question spanning several areas of the documentation, where no single page answers and the parts interact - or when a `search` has come back empty or off-target. `ask` takes several seconds, so use `search` and `fetch` for anything narrower.\"\n\nReviewing a transcript. A user asked whether EXPIRE's behaviour changed in Redis 8. Our agent fetched `commands/expire`, saw `version: \"1.0.0\"` in the returned metadata, and answered that EXPIRE has been stable since Redis 1.0.0 with nothing new in Redis 8. Earlier in the same session it had fetched a Redis Search page whose metadata read `version: \"stack\"` and quietly ignored it. Was that answer sound, and what should the agent key off instead?", + "expected_output": "States the answer was unsound: on a command page metadata.version is the release the command was introduced in, not an assertion that nothing changed afterwards - and EXPIRE's own page body documents a change prior to 2.1.3 and a Redis 8 interaction with Redis Search. The 'stack' value shows the field is not even a release outside commands pages. Version questions should be answered from the page body prose and cited from there.", + "covered_rules": [ + "docs-version-metadata" + ], + "expectations": [ + "The output identifies metadata.version on a command page as the release the command was introduced in.", + "The output states that the field says nothing about behaviour changes after that release, so the agent's 'stable since 1.0.0' conclusion was unsupported.", + "The output notes that the EXPIRE page's own body text documents later changes, such as the pre-2.1.3 behaviour or the Redis 8 interaction with Redis Search.", + "The output explains that the 'stack' value is a product channel rather than a release, so the field is not uniformly a version number across the corpus.", + "The output directs that version-specific questions be answered from the page body prose and cited from there.", + "The output does not treat 1.0.0 as evidence that the command is unchanged since that release." + ] + }, + { + "id": 4, + "name": "corpus-boundary-miss", + "prompt": "My agent has the redis-docs MCP server connected. Its tool inventory reads:\n\nServer instructions: \"Authoritative, up-to-date Redis documentation. Consult these tools for any question about Redis - commands, configuration, data types, clients, deployment, RediSearch/JSON, version-specific behavior - rather than answering from prior knowledge, which may be stale (Redis 8 changed several defaults and behaviors). Cite the pages you read. Start with `search`, then `fetch` the pages you need. Reserve `ask` for a question spanning several areas of the documentation at once; it takes several seconds, so prefer `search` when one page would answer.\"\n\n- `search(query)`: \"Search the Redis documentation by free-text query. Returns up to 8 matching pages, each with a text snippet and that page's stable `id`. This is the default tool for a Redis question. Search first, then `fetch` any `id` whose full text you need - one search plus a fetch or two answers most questions.\"\n- `fetch(id)`: \"Return the full text and metadata for one Redis documentation page: title, canonical URL, body text, and topic/version/section metadata. Takes an `id` from a `search` result or from an `ask` result's `sources`. Use it when a snippet is not enough to answer confidently, or to quote the documentation exactly.\"\n- `ask(question)`: \"Ask a natural-language question about Redis. Returns a prose answer plus the source documents behind it - any `sources[].id` can be passed to `fetch`. If the documentation does not cover the question, the answer says so. Reserve `ask` for a question spanning several areas of the documentation, where no single page answers and the parts interact - or when a `search` has come back empty or off-target. `ask` takes several seconds, so use `search` and `fetch` for anything narrower.\"\n\nPost-mortem on a bad answer. A user asked our agent whether redis-py's connection pool takes a `max_connections` argument. The agent searched, got back `develop/clients/redis-py/async#sec:connection-pools`, `develop/clients/redis-py/connect#sec:connect-with-a-connection-pool` and `integrate/redis-py`, read the snippets - none of which mention `max_connections` - and told the user it is not a real parameter. Where did it go wrong, and what should it have done?", + "expected_output": "Identifies the error as concluding the parameter is absent from search snippets alone. Snippets are truncated prefixes of each section, so the agent should have fetched the returned connection-pool sections before concluding anything; the detail is often past the snippet. Even after fetching, a miss should be reported as not found in the results retrieved - not as absent from redis.io or non-existent - with the library's own API reference or source as the authority on its full signature.", + "covered_rules": [ + "docs-corpus-boundaries" + ], + "expectations": [ + "The output identifies the core error as concluding that the parameter is absent from the search snippets alone.", + "The output explains that a snippet is a truncated prefix of its section, so it can stop before the detail being looked for.", + "The output says the agent should have fetched the returned connection-pool sections before drawing a conclusion, rather than stopping at the snippets or re-searching.", + "The output says that if fetching still does not show the parameter, the agent should report it as not found in the results it retrieved, not as absent from redis.io or as non-existent.", + "The output points to the client library's own API reference or source as the authority on the full signature.", + "The output does not endorse telling the user that the parameter is undocumented on redis.io on the strength of the search results." + ] + }, + { + "id": 5, + "name": "ask-economics", + "prompt": "My agent has the redis-docs MCP server connected. Its tool inventory reads:\n\nServer instructions: \"Authoritative, up-to-date Redis documentation. Consult these tools for any question about Redis - commands, configuration, data types, clients, deployment, RediSearch/JSON, version-specific behavior - rather than answering from prior knowledge, which may be stale (Redis 8 changed several defaults and behaviors). Cite the pages you read. Start with `search`, then `fetch` the pages you need. Reserve `ask` for a question spanning several areas of the documentation at once; it takes several seconds, so prefer `search` when one page would answer.\"\n\n- `search(query)`: \"Search the Redis documentation by free-text query. Returns up to 8 matching pages, each with a text snippet and that page's stable `id`. This is the default tool for a Redis question. Search first, then `fetch` any `id` whose full text you need - one search plus a fetch or two answers most questions.\"\n- `fetch(id)`: \"Return the full text and metadata for one Redis documentation page: title, canonical URL, body text, and topic/version/section metadata. Takes an `id` from a `search` result or from an `ask` result's `sources`. Use it when a snippet is not enough to answer confidently, or to quote the documentation exactly.\"\n- `ask(question)`: \"Ask a natural-language question about Redis. Returns a prose answer plus the source documents behind it - any `sources[].id` can be passed to `fetch`. If the documentation does not cover the question, the answer says so. Reserve `ask` for a question spanning several areas of the documentation, where no single page answers and the parts interact - or when a `search` has come back empty or off-target. `ask` takes several seconds, so use `search` and `fetch` for anything narrower.\"\n\nOur CI agent calls `ask` once per failing test to work out whether the failure is a Redis behaviour change. Two problems. It hits rate-limit errors after a handful of calls, which makes no sense to me because it is a single process running one question at a time. And when `ask` replies that the documentation does not cover the question, the agent rephrases and retries up to three times, which mostly seems to make the first problem worse. How should this loop be built instead?", + "expected_output": "Explains the limit is per IP and shared by everything behind that address, so a single process is not the unit and other traffic from the same runner or NAT counts against it. A 'documentation does not cover this' answer is a grounded result, so rephrase-and-retry cannot help and burns the budget; fall back to search plus fetch, back off rather than retry immediately on a rate-limit error, and pass ask's sources ids to fetch for the primary source.", + "covered_rules": [ + "docs-ask-economics" + ], + "expectations": [ + "The output identifies the rate limit as applying per IP address rather than per process.", + "The output explains that the budget is shared by other traffic behind the same address, such as a CI runner or NAT, which is why a single sequential process still hits it.", + "The output states that a 'documentation does not cover this' answer is a grounded result, so rephrasing and retrying it cannot succeed.", + "The output recommends falling back to search plus fetch after a refusal, rather than calling ask again.", + "The output recommends backing off rather than retrying immediately after a rate-limit error.", + "The output does not recommend rephrase-and-retry as the remedy for a refusal." + ] + } + ] +} diff --git a/evals/redis-docs-mcp/docs-mcp/model-matrix.json b/evals/redis-docs-mcp/docs-mcp/model-matrix.json new file mode 100644 index 0000000..cea9b75 --- /dev/null +++ b/evals/redis-docs-mcp/docs-mcp/model-matrix.json @@ -0,0 +1,16 @@ +{ + "eval_suite": "docs-mcp", + "description": "Cross-model run plan for the redis-docs-mcp eval suite (section-scoped ids, id construction, metadata.version, corpus boundaries, ask economics). Anthropic skill-creator tooling owns generation, grading, per-model benchmark.json, and benchmark.md; this file records the model matrix we run before combining per-model benchmark files. Note the harness gives runs no MCP access, so the suite grades stated approach rather than tool calls.", + "models": [ + "claude-opus-5-5", + "claude-sonnet-5-5", + "claude-haiku-4-5-20251001" + ], + "configurations": [ + "with_skill", + "without_skill" + ], + "repetitions": 2, + "judge_model": "claude-sonnet-5-5", + "default_iteration": "iteration-1" +} diff --git a/plugins/redis-development/.claude-plugin/plugin.json b/plugins/redis-development/.claude-plugin/plugin.json index 229c7cf..e7e5a17 100644 --- a/plugins/redis-development/.claude-plugin/plugin.json +++ b/plugins/redis-development/.claude-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "redis-development", - "version": "1.5.0", - "description": "Redis development best practices — data structures, query engine, vector search, caching, and performance optimization", + "version": "1.7.0", + "description": "Redis development best practices — data structures, query engine, vector search, caching, and performance optimization, plus live lookup of the official redis.io documentation", "author": { "name": "Redis", "url": "https://redis.io" @@ -9,6 +9,7 @@ "homepage": "https://redis.io", "repository": "https://github.com/redis/agent-skills", "license": "MIT", - "keywords": ["redis", "database", "caching", "vector-search", "performance", "best-practices"], - "skills": "./skills/" + "keywords": ["redis", "database", "caching", "vector-search", "performance", "best-practices", "documentation"], + "skills": "./skills/", + "mcpServers": "./.mcp.json" } diff --git a/plugins/redis-development/.codex-plugin/plugin.json b/plugins/redis-development/.codex-plugin/plugin.json index 9df629a..1ef0e11 100644 --- a/plugins/redis-development/.codex-plugin/plugin.json +++ b/plugins/redis-development/.codex-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "redis-development", - "version": "1.5.0", - "description": "Redis development best practices for data modeling, search, caching, connections, clustering, security, observability, and agent memory", + "version": "1.7.0", + "description": "Redis development best practices for data modeling, search, caching, connections, clustering, security, observability, and agent memory, plus live lookup of the official redis.io documentation", "author": { "name": "Redis", "email": "support@redis.com", @@ -16,13 +16,15 @@ "caching", "vector-search", "performance", - "best-practices" + "best-practices", + "documentation" ], "skills": "./skills/", + "mcpServers": "./.mcp.json", "interface": { "displayName": "Redis Development", "shortDescription": "Build reliable, production-ready Redis applications", - "longDescription": "Design, implement, review, and troubleshoot Redis applications with focused guidance for data structures, connections, Redis Search, semantic caching, clustering, security, observability, and Redis Iris (Agent Memory, Agent Playbooks, Context Gateway, Intent Router, Lens).", + "longDescription": "Design, implement, review, and troubleshoot Redis applications with focused guidance for data structures, connections, Redis Search, semantic caching, clustering, security, observability, and Redis Iris (Agent Memory, Agent Playbooks, Context Gateway, Intent Router, Lens), plus live lookup of the official redis.io documentation.", "developerName": "Redis", "category": "Developer Tools", "capabilities": [ diff --git a/plugins/redis-development/.cursor-plugin/plugin.json b/plugins/redis-development/.cursor-plugin/plugin.json index 229c7cf..e7e5a17 100644 --- a/plugins/redis-development/.cursor-plugin/plugin.json +++ b/plugins/redis-development/.cursor-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "redis-development", - "version": "1.5.0", - "description": "Redis development best practices — data structures, query engine, vector search, caching, and performance optimization", + "version": "1.7.0", + "description": "Redis development best practices — data structures, query engine, vector search, caching, and performance optimization, plus live lookup of the official redis.io documentation", "author": { "name": "Redis", "url": "https://redis.io" @@ -9,6 +9,7 @@ "homepage": "https://redis.io", "repository": "https://github.com/redis/agent-skills", "license": "MIT", - "keywords": ["redis", "database", "caching", "vector-search", "performance", "best-practices"], - "skills": "./skills/" + "keywords": ["redis", "database", "caching", "vector-search", "performance", "best-practices", "documentation"], + "skills": "./skills/", + "mcpServers": "./.mcp.json" } diff --git a/plugins/redis-development/.mcp.json b/plugins/redis-development/.mcp.json new file mode 100644 index 0000000..95e89f7 --- /dev/null +++ b/plugins/redis-development/.mcp.json @@ -0,0 +1,8 @@ +{ + "mcpServers": { + "redis-docs": { + "type": "http", + "url": "https://redis.io/mcp" + } + } +} diff --git a/plugins/redis-development/skills/redis-docs-mcp/SKILL.md b/plugins/redis-development/skills/redis-docs-mcp/SKILL.md new file mode 100644 index 0000000..035dca7 --- /dev/null +++ b/plugins/redis-development/skills/redis-docs-mcp/SKILL.md @@ -0,0 +1,71 @@ +--- +name: redis-docs-mcp +description: >- + Working with the redis-docs MCP server (search / fetch / ask at redis.io/mcp) — how its index is + shaped and how to read what it returns. Use when those tools are available and you are about to + look something up in the Redis documentation, or when a result is confusing — fetch returned one + short section instead of a page, several hits share one url, ids look like #sec:w1, + metadata.version reads 1.0.0, a search came back empty, or ask was rate-limited or said the docs + do not cover it. Also covers what redis.io does and does not index. +license: MIT +metadata: + author: Redis, Inc. + version: "0.1.0" +--- + +# Redis Docs MCP + +The `redis-docs` server exposes the redis.io documentation over MCP as `search`, `fetch`, and `ask`. Those tools carry their own descriptions, and on *when* to call each one they are accurate — start with `search`, `fetch` what you need, keep `ask` for questions that span several areas. This skill covers what they get wrong or leave out. + +## When to apply + +- You are about to look something up through these tools. +- A result did not look like what the tool description promised. +- A `search` came back empty, or `ask` was rate-limited or declined to answer. + +Reach for the sibling Redis skills first where they cover the topic — they carry curated guidance that raw docs pages do not. Use these tools to verify specifics and fill gaps. + +## 1. Ids address sections, not pages + +The tool descriptions say `search` returns "pages" and `fetch` returns "one Redis documentation page". The index is per **section**, and ids come in four shapes: + +| Shape | Example | What `fetch` returns | +|---|---|---| +| Bare page | `commands/expire` | The whole page — ~8.5 KB for EXPIRE, examples and appendices included | +| Named anchor | `develop/using-commands/keyspace#sec:key-expiration` | That section | +| Ordinal window | `develop/ai/search-and-query/advanced-concepts/expiration#sec:w0` | That window, ~1–2 KB | +| Anchor + window | `develop/clients/jedis/connect#sec:configure-a-connection-pool-w0` | That window of that section | + +What follows from this: + +- **Repeated urls in one result set are not duplicates.** Several hits often share a page url while carrying distinct ids — they are different sections of the same page. Tell them apart by their snippets, not their urls. +- **`#sec:wN` ordinals are index windows.** They come back in relevance order, not `w0, w1, w2`. Don't try to reassemble a page out of snippets; `fetch` the section you actually need. +- **Never construct an id.** Valid ids come from a `search` result or an `ask` result's `sources[].id`. Guessing happens to work for `commands/` and fails on everything with sections. +- **Snippets are truncated prefixes of the body, not summaries.** When one cuts off mid-word right at the interesting part, `fetch` on that id is guaranteed to contain the continuation — no need to re-search with different words. +- **Cite the page `url` and name the section in prose.** `#sec:w1` is an index address, not a web anchor. Ids with a named anchor (`#sec:`, or `#sec:-wN`) return a url with a usable fragment; bare `#sec:wN` ids don't. + +Links in returned text point at source files — `` [`DEL`](/content/commands/del.md) `` — which are neither web URLs nor `fetch` ids. Don't cite them or turn them into ids; `search` for the term instead. + +## 2. `metadata.version` means "added in", not "current as of" + +`fetch` returns `metadata` with `topic`, `version`, and `section`. On a `commands/*` page that `version` is the release the command was **introduced** in — `commands/setex` reports `2.0.0`, `commands/hexpire` reports `7.4.0`. Useful for "when did this land", and nothing more: `commands/expire` reports `1.0.0` while its own body documents a behavior change in 2.1.3 and a Redis 8 interaction with Redis Search. Outside `commands/*` the field is often not a release at all — a Redis Search page reports `stack`, a product channel. + +So never answer "did this change in Redis N?" from `metadata.version`. Read it from the body text, which states it explicitly ("Before Redis 8…", "since Redis 7.4"), and cite that. + +## 3. What the corpus covers + +The index is redis.io only — but that is broader than it sounds. Per-language client **usage guides** are indexed and returned (`develop/clients/redis-py/connect#sec:…`, `develop/clients/jedis/connect#sec:…`), along with the `integrate/…` pages, the Redis Software and Redis Cloud operational docs under `operate/…`, and the Kubernetes operator's generated CRD reference. So search first, including for client-library and Enterprise questions. + +Details often sit past the snippet. A search for redis-py's `max_connections` returns `develop/clients/redis-py/async#sec:connection-pools` with a snippet that never mentions it, yet the fetched section documents it. For a library's complete signatures, its own API reference or source is the authority. + +Genuinely outside the index: GitHub issues and discussions, package-manager pages (PyPI, npm, Maven), and third-party posts. + +So `fetch` the relevant hits before concluding anything is missing, and even then report it as "not found in the results I retrieved" — never as "not on redis.io" or "does not exist". + +## 4. `ask` costs more than it looks + +- **Rate-limited per IP at a low per-minute budget**, shared by everyone behind the same NAT, so an office or a CI runner can exhaust it collectively. On a rate-limit error, back off before retrying rather than retrying straight away, and ask one narrow question at a time. +- **On a refusal, do not retry it reworded.** "The documentation does not cover this" is a grounded result, not a parsing failure. Fall back to `search` + `fetch` instead. +- **`ask` → `sources[].id` → `fetch`** when you want the primary source behind a synthesized answer. + +Query text from every tool reaches Redis, and from `ask` the model provider behind the gateway too, so prefer a generic question about the Redis command or behavior over pasting in proprietary code. diff --git a/scripts/validate-claude-plugins.mjs b/scripts/validate-claude-plugins.mjs index 824cc4d..e6f7f16 100644 --- a/scripts/validate-claude-plugins.mjs +++ b/scripts/validate-claude-plugins.mjs @@ -107,6 +107,96 @@ async function validateReferencedPath( } } +// Transports Claude Code accepts for a remote MCP server. "streamable-http" is +// an alias for "http" so configs copied from server docs work unchanged. +const remoteMcpTransports = new Set(["http", "streamable-http", "sse", "ws"]); + +// Resolve every inline mcpServers map a manifest contributes, following string +// values (and arrays of them) to the config files they point at. +async function collectMcpServerMaps(pluginDir, value, pluginName) { + if (typeof value === "string") { + const resolved = path.resolve(pluginDir, value); + const config = await readJsonFile( + resolved, + `${pluginName} mcp config "${value}"`, + ); + // readJsonFile has already reported a missing or unparseable file. + if (config === null) { + return []; + } + // A file that parses but carries no server map would otherwise skip every + // check below. A likely way to get there: copying the snake_case + // "mcp_servers" key from Codex's config.toml, where plugin .mcp.json files + // (Codex's included) use camelCase "mcpServers". + const servers = config?.mcpServers; + if (!servers || typeof servers !== "object" || Array.isArray(servers)) { + addError( + `${pluginName}: mcp config "${value}" must contain an "mcpServers" object.`, + ); + return []; + } + return [servers]; + } + if (Array.isArray(value)) { + const maps = []; + for (const entry of value) { + maps.push(...(await collectMcpServerMaps(pluginDir, entry, pluginName))); + } + return maps; + } + if (value && typeof value === "object") { + return [value]; + } + if (value !== undefined) { + addError( + `${pluginName}: "mcpServers" must be a path, an array of paths, or an object.`, + ); + } + return []; +} + +async function validateMcpServers(pluginDir, pluginManifest, pluginName) { + const maps = await collectMcpServerMaps( + pluginDir, + pluginManifest.mcpServers, + pluginName, + ); + + for (const map of maps) { + for (const [serverName, server] of Object.entries(map)) { + const label = `${pluginName}: mcpServers."${serverName}"`; + if (!server || typeof server !== "object" || Array.isArray(server)) { + addError(`${label} must be an object.`); + continue; + } + + const hasUrl = typeof server.url === "string" && server.url.length > 0; + const hasCommand = + typeof server.command === "string" && server.command.length > 0; + + if (!hasUrl && !hasCommand) { + addError(`${label} must define either "url" or "command".`); + continue; + } + + // Claude Code reads an entry with no "type" as a stdio server, so a + // remote server missing it is skipped at runtime rather than connected. + if (hasUrl && typeof server.type !== "string") { + addError( + `${label} has a "url" but no "type"; add "type": "http" (or "sse" / "ws").`, + ); + continue; + } + + if (hasUrl && !remoteMcpTransports.has(server.type)) { + addError( + `${label} has unsupported transport "${server.type}"; expected one of ${[...remoteMcpTransports].join(", ")}.`, + ); + } + } + } +} + async function main() { const marketplacePath = path.join( repoRoot, @@ -201,6 +291,8 @@ async function main() { await validateReferencedPath(pluginDir, field, value, entry.name); } } + + await validateMcpServers(pluginDir, pluginManifest, entry.name); } summarizeAndExit(); diff --git a/scripts/validate-codex-plugins.mjs b/scripts/validate-codex-plugins.mjs index 4c89ff9..cc0a0e7 100644 --- a/scripts/validate-codex-plugins.mjs +++ b/scripts/validate-codex-plugins.mjs @@ -118,7 +118,7 @@ async function main() { } } - for (const field of ["name", "version", "repository", "license"]) { + for (const field of ["name", "version", "repository", "license", "mcpServers"]) { if (manifest[field] !== claudeManifest[field]) { addError(`Codex and Claude plugin manifests must agree on ${field}.`); } diff --git a/skills/redis-docs-mcp/SKILL.md b/skills/redis-docs-mcp/SKILL.md new file mode 100644 index 0000000..035dca7 --- /dev/null +++ b/skills/redis-docs-mcp/SKILL.md @@ -0,0 +1,71 @@ +--- +name: redis-docs-mcp +description: >- + Working with the redis-docs MCP server (search / fetch / ask at redis.io/mcp) — how its index is + shaped and how to read what it returns. Use when those tools are available and you are about to + look something up in the Redis documentation, or when a result is confusing — fetch returned one + short section instead of a page, several hits share one url, ids look like #sec:w1, + metadata.version reads 1.0.0, a search came back empty, or ask was rate-limited or said the docs + do not cover it. Also covers what redis.io does and does not index. +license: MIT +metadata: + author: Redis, Inc. + version: "0.1.0" +--- + +# Redis Docs MCP + +The `redis-docs` server exposes the redis.io documentation over MCP as `search`, `fetch`, and `ask`. Those tools carry their own descriptions, and on *when* to call each one they are accurate — start with `search`, `fetch` what you need, keep `ask` for questions that span several areas. This skill covers what they get wrong or leave out. + +## When to apply + +- You are about to look something up through these tools. +- A result did not look like what the tool description promised. +- A `search` came back empty, or `ask` was rate-limited or declined to answer. + +Reach for the sibling Redis skills first where they cover the topic — they carry curated guidance that raw docs pages do not. Use these tools to verify specifics and fill gaps. + +## 1. Ids address sections, not pages + +The tool descriptions say `search` returns "pages" and `fetch` returns "one Redis documentation page". The index is per **section**, and ids come in four shapes: + +| Shape | Example | What `fetch` returns | +|---|---|---| +| Bare page | `commands/expire` | The whole page — ~8.5 KB for EXPIRE, examples and appendices included | +| Named anchor | `develop/using-commands/keyspace#sec:key-expiration` | That section | +| Ordinal window | `develop/ai/search-and-query/advanced-concepts/expiration#sec:w0` | That window, ~1–2 KB | +| Anchor + window | `develop/clients/jedis/connect#sec:configure-a-connection-pool-w0` | That window of that section | + +What follows from this: + +- **Repeated urls in one result set are not duplicates.** Several hits often share a page url while carrying distinct ids — they are different sections of the same page. Tell them apart by their snippets, not their urls. +- **`#sec:wN` ordinals are index windows.** They come back in relevance order, not `w0, w1, w2`. Don't try to reassemble a page out of snippets; `fetch` the section you actually need. +- **Never construct an id.** Valid ids come from a `search` result or an `ask` result's `sources[].id`. Guessing happens to work for `commands/` and fails on everything with sections. +- **Snippets are truncated prefixes of the body, not summaries.** When one cuts off mid-word right at the interesting part, `fetch` on that id is guaranteed to contain the continuation — no need to re-search with different words. +- **Cite the page `url` and name the section in prose.** `#sec:w1` is an index address, not a web anchor. Ids with a named anchor (`#sec:`, or `#sec:-wN`) return a url with a usable fragment; bare `#sec:wN` ids don't. + +Links in returned text point at source files — `` [`DEL`](/content/commands/del.md) `` — which are neither web URLs nor `fetch` ids. Don't cite them or turn them into ids; `search` for the term instead. + +## 2. `metadata.version` means "added in", not "current as of" + +`fetch` returns `metadata` with `topic`, `version`, and `section`. On a `commands/*` page that `version` is the release the command was **introduced** in — `commands/setex` reports `2.0.0`, `commands/hexpire` reports `7.4.0`. Useful for "when did this land", and nothing more: `commands/expire` reports `1.0.0` while its own body documents a behavior change in 2.1.3 and a Redis 8 interaction with Redis Search. Outside `commands/*` the field is often not a release at all — a Redis Search page reports `stack`, a product channel. + +So never answer "did this change in Redis N?" from `metadata.version`. Read it from the body text, which states it explicitly ("Before Redis 8…", "since Redis 7.4"), and cite that. + +## 3. What the corpus covers + +The index is redis.io only — but that is broader than it sounds. Per-language client **usage guides** are indexed and returned (`develop/clients/redis-py/connect#sec:…`, `develop/clients/jedis/connect#sec:…`), along with the `integrate/…` pages, the Redis Software and Redis Cloud operational docs under `operate/…`, and the Kubernetes operator's generated CRD reference. So search first, including for client-library and Enterprise questions. + +Details often sit past the snippet. A search for redis-py's `max_connections` returns `develop/clients/redis-py/async#sec:connection-pools` with a snippet that never mentions it, yet the fetched section documents it. For a library's complete signatures, its own API reference or source is the authority. + +Genuinely outside the index: GitHub issues and discussions, package-manager pages (PyPI, npm, Maven), and third-party posts. + +So `fetch` the relevant hits before concluding anything is missing, and even then report it as "not found in the results I retrieved" — never as "not on redis.io" or "does not exist". + +## 4. `ask` costs more than it looks + +- **Rate-limited per IP at a low per-minute budget**, shared by everyone behind the same NAT, so an office or a CI runner can exhaust it collectively. On a rate-limit error, back off before retrying rather than retrying straight away, and ask one narrow question at a time. +- **On a refusal, do not retry it reworded.** "The documentation does not cover this" is a grounded result, not a parsing failure. Fall back to `search` + `fetch` instead. +- **`ask` → `sources[].id` → `fetch`** when you want the primary source behind a synthesized answer. + +Query text from every tool reaches Redis, and from `ask` the model provider behind the gateway too, so prefer a generic question about the Redis command or behavior over pasting in proprietary code.