redis-scaffold
Skill by imperugo
Generates C# code patterns for StackExchange.Redis.Extensions, covering caching, Streams, geo search, vector search, locks and more. Intended for .NET developers who want ready-made Redis code for their applications.
Install redis-scaffold
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/scaffold ~/.claude/skills/redis-scaffoldRun 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/scaffold ~/.gemini/antigravity-cli/skills/redis-scaffoldAntigravity 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-scaffold is an agent skill that generates code patterns for StackExchange.Redis.Extensions. It applies when a user asks to implement a Redis feature such as Streams consumer groups, GeoSpatial search, VectorSet similarity search, hash operations with per-field TTL, Pub/Sub, HyperLogLog, distributed locking, bitmaps, or Lua scripting. Each pattern is a C# class that uses the library's IRedisDatabase interface.
The skill also covers caching with cache-aside and IDistributedCache, atomic counters, set operations, key management and bulk operations. The source notes that values go through ISerializer, that KeyPrefix applies to keys and Pub/Sub channels, and that VectorSet needs Redis 8.0 or later. It is aimed at .NET developers who want Redis code to adapt.
Written from the project's SKILL.md and checked against it.
What it can do
- Cache-aside patternReads a product from Redis and falls back to the repository on a cache miss.
- Consumer group (Streams)Creates a Streams consumer group and reads, acknowledges and retries messages.
- GeoSpatial searchAdds store locations and finds places within a radius.
- VectorSet similarity searchIndexes embeddings and runs top-K similarity search for RAG-style lookups.
- Hash with per-field TTLStores hash fields with a permanent value and a field that expires.
- Pub/Sub with typed messagesPublishes and subscribes to channels with typed message payloads.
- HyperLogLog unique countingTracks unique visitors and merges daily counts into monthly totals.
- Distributed lockAcquires, extends and releases locks around critical sections.
- Bitmap analyticsTracks daily active users and feature flags using bit operations.
- Lua scriptingRuns atomic rate limiting and counter logic as Lua scripts.
What you need
- StackExchange.Redis.Extensions library
- Redis 8.0 or later for VectorSet
- Redis 7.4 or later for hash field expiry
- .NET with C#
Try asking
- Write a Redis consumer group that reads orders from a Stream in C#.
- Add a GeoSpatial store locator that finds stores within 20 km.
- Implement a distributed lock around order processing with StackExchange.Redis.
Good to know
- VectorSet requires Redis 8.0 or later.
- Hash field expiry requires Redis 7.4 or later.
- Lease<T> results from VectorSet search must be disposed after use.
- Bitmap operations do not use serialization and work with bit offsets.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: claude-plugin/skills/scaffold/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to redis-scaffold
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-scaffold: common questions
Which Redis versions does redis-scaffold need?
VectorSet needs Redis 8.0 or later and hash field expiry needs Redis 7.4 or later. The source does not list other version requirements.
How are values serialized?
All values go through ISerializer, so strings are JSON-encoded, for example "hello" becomes "\"hello\"". Compression wraps ISerializer transparently.
Does it cover distributed locking?
Yes. The source includes a distributed lock pattern using LockAcquireAsync with expiry and retries, plus an example that extends a lock.
How do I install redis-scaffold?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is redis-scaffold free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is redis-scaffold 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-scaffold?
Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.
