redis-diagnose
Skill by imperugo
Troubleshoots common StackExchange.Redis.Extensions issues, including timeouts, connection failures, serialization problems, pool exhaustion, distributed locks and Lua scripting. Aimed at developers using the library in C#.
Install redis-diagnose
Built from the published package, never by AI.
git clone --depth 1 https://github.com/imperugo/StackExchange.Redis.Extensions /tmp/StackExchange.Redis.Extensions && mkdir -p ~/.claude/skills && cp -r /tmp/StackExchange.Redis.Extensions/claude-plugin/skills/diagnose ~/.claude/skills/redis-diagnoseRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/imperugo/StackExchange.Redis.Extensions /tmp/StackExchange.Redis.Extensions && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/StackExchange.Redis.Extensions/claude-plugin/skills/diagnose ~/.gemini/antigravity-cli/skills/redis-diagnoseAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Redis Diagnose is an agent skill that helps an assistant troubleshoot common issues with StackExchange.Redis.Extensions. It is triggered when a user reports timeout exceptions, connection failures, serialization errors, pool exhaustion, Pub/Sub messages not received, distributed lock failures, Lua scripting errors or performance issues. The skill walks through a diagnostic tree for each symptom, listing checks in order and showing C# configuration samples.
The source also includes a logging reference that maps EventIds 1001 to 4001 to their levels and meanings, and shows how to enable Information or Debug logging for the library. Each section lists symptoms, checks and fixes. The examples use C# and the library's own configuration types.
Written from the project's SKILL.md and checked against it.
What it can do
- Timeout diagnosisChecks SyncTimeout, PoolSize, connection strategy, compression and ThreadPool starvation.
- Connection failure checksCovers server reachability, firewall rules, TLS, Sentinel naming and Azure Cache for Redis identity.
- Serialization troubleshootingCovers type mismatches, JSON-encoded strings, compression migration and default value quirks.
- Pub/Sub troubleshootingCovers KeyPrefix, serializer mismatch, handler exceptions and shared database instances.
- Pool exhaustion checksCovers pool health, the health check registration, server load and network partitions.
- IDistributedCache issuesCovers registration order, key prefixes, migration from Microsoft's provider and sliding expiration.
- Keyed DI diagnosisCovers config naming, eager overloads and case-sensitive keyed service names.
- Distributed lock fixesCovers null lock acquisition, lock expiry, release on error and single-instance limits.
- Lua script errorsCovers NOSCRIPT, return types, CROSSSLOT errors in Cluster and script blocking.
- Performance tipsCovers debug logging, outstanding commands, compression trade-offs and bulk read and write methods.
Try asking
- My app throws RedisTimeoutException. What should I check first?
- Why does GetAsync<int> return 0 for a missing key?
- My distributed lock is not acquired. How do I debug it?
Good to know
- Enabling compression makes previously stored uncompressed data unreadable.
- The distributed lock is single-instance. For Redis Cluster the source suggests the Redlock algorithm.
- Lua runs atomically and blocks Redis, so the source advises keeping scripts short.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: claude-plugin/skills/diagnose/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to redis-diagnose
All alternatives →Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.
Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.
Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.
Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.
Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.
Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.
Compare with hugging-face-datasets, db-repair or alloydb-basics
redis-diagnose: common questions
Why does GetAsync<int> return 0 instead of null?
The source says default(int) is 0, so missing keys return 0. Use GetAsync<int?> to tell missing keys apart from real zero values.
Why are my Pub/Sub messages not received?
Check that publisher and subscriber use the same serializer and the same IRedisDatabase instance. The source says EventId 4001 errors show handler exceptions, and the message is lost.
Why does a keyed service resolve to null?
The source says the config needs a non-empty Name, and keyed services register only with overloads that take RedisConfiguration directly. The name must match exactly, including case.
How do I install redis-diagnose?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is redis-diagnose free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is redis-diagnose safe to use?
It scores 77 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to redis-diagnose?
Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.
