summarize-database
Skill by StackExchange
Profiles a live Redis, Valkey or RESP database by sampling keys. It groups key patterns, shows where data sits by count and size, and classifies stored values. Built for auditing production keyspaces.
Install summarize-database
Built from the published package, never by AI.
git clone --depth 1 https://github.com/StackExchange/StackExchange.Redis /tmp/StackExchange.Redis && mkdir -p ~/.claude/skills && cp -r /tmp/StackExchange.Redis/.claude/skills/summarize-database ~/.claude/skills/summarize-databaseRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/StackExchange/StackExchange.Redis /tmp/StackExchange.Redis && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/StackExchange.Redis/.claude/skills/summarize-database ~/.gemini/antigravity-cli/skills/summarize-databaseAntigravity 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
This skill profiles a live Redis, Valkey or RESP-compatible database by sampling a fraction of its keyspace. It answers three questions: which key patterns exist, where the data sits by count and by size, and what the values are, such as counters, JSON, XML, blobs or text.
It works read-only. It prefers resp-cli, falls back to redis-cli, avoids KEYS, and suggests a replica for analysis load when one is available. Value contents are only read with explicit user consent. Estimates carry the sample fraction alongside extrapolated numbers. It is aimed at people who need to audit or characterize a production Redis-style keyspace.
Written from the project's SKILL.md and checked against it.
What it can do
- Key pattern discoveryTokenizes keys such as users:1243:orders into patterns and reports them by volume.
- Data location by count and sizeReports which patterns and types hold the most keys and the most memory, separately.
- Value classificationIdentifies counters, JSON, XML, base64 or binary blobs, and plain text in sampled values.
- Read-only samplingUses RANDOMKEY or SCAN with bounded probes and never runs KEYS or write commands.
- Replica preferenceSuggests moving analysis load to a replica when the target is a primary with replicas.
- Server compatibility handlingDetects non-Redis RESP servers such as Garnet and degrades gracefully when commands are missing.
- Structured reportProduces a summary of connection scope, key patterns, data location, content, and caveats.
What you need
- resp-cli or redis-cli installed
- Authorization to query the target database
- Access to the Redis, Valkey or RESP server, with TLS if used
Try asking
- Summarize the keyspace of my Redis database on localhost.
- Profile my Valkey server and show where the most memory is used.
- Find the key patterns in this RESP database and classify their values.
Good to know
- Read-only analysis; no write, delete or config commands are run.
- Results are estimates from a sample, not exact counts, unless the keyspace is fully enumerated.
- Reading value contents requires explicit user consent.
- On clusters, results cover one node unless each master is sampled.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/summarize-database/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md12 KB
Alternatives to summarize-database
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
summarize-database: common questions
Does this skill change data in my Redis database?
No. The source says it is a read-only, sampling analysis and forbids write, delete, expire and config commands.
Why does it avoid the KEYS command?
The source says KEYS blocks the server for a full scan on a large keyspace, so the skill samples with RANDOMKEY or cursored SCAN instead.
Does it work with Garnet or Valkey?
The source says it supports RESP-compatible servers such as Garnet and Valkey, and falls back to SCAN when RANDOMKEY is missing.
How do I install summarize-database?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is summarize-database free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is summarize-database safe to use?
It scores 86 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 summarize-database?
Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.
