Skip to main content
skill CX Codex

swift-valkey — Claude Code skill: what it does, how to install

Guides coding agents on using Valkey and Redis in Swift with the valkey-swift package, cluster routing, and pub/sub.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add wendylabsinc/claude-skills --skill swift-valkey -a claude-code
Open on GitHub

What swift-valkey does

The skill provides idiomatic code patterns for interacting with Valkey and Redis using Swift concurrency. It focuses on the valkey-swift package, demonstrating connection setup and command execution with native async/await.

Guidance covers key-value operations with conditional writes, hashes, queues using lists, sets, and leaderboards via sorted sets. It also covers pipelining multiple operations in one round-trip, executing MULTI/EXEC transactions, consuming pub/sub streams, and matching errors with ValkeyClientError.

In clustered environments, the guidance explains routing shards via hash tags like {user:123}. Custom setups require configuring ValkeyClient.Configuration to define explicit TLS options, passwords, and timeout values.

What it helps with

  • connect Swift applications to Valkey or Redis clusters
  • implement pub/sub listeners and publishers with async streams
  • batch operations using Redis transactions or pipelining
  • configure hash tags to pin related keys to a single shard
  • handle connection drops and timeouts via ValkeyClientError

Example prompts for the agent

  • Write a Swift function to cache session tokens in Valkey with a one-hour expiration.
  • Show how to subscribe to Valkey pub/sub channels using valkey-swift.
  • Set up a Valkey cluster connection in Swift with hash tags for user profiles.

How to install swift-valkey

1Skills CLI (Vercel)

npx skills add wendylabsinc/claude-skills --skill swift-valkey -a claude-code

2Manually: put the files in place

~/.claude/skills/swift-valkey/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/swift-valkey/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about swift-valkey

How do I install swift-valkey in Claude Code?

Run npx skills add wendylabsinc/claude-skills --skill swift-valkey -a claude-code in your terminal.

What does swift-valkey do?

It gives your coding agent reference patterns for the valkey-swift driver, covering async/await commands, cluster routing, data types, and transactions.

Which Swift package is required?

The patterns require adding valkey-io/valkey-swift.git from version 1.0.0 or higher to your Package.swift dependencies.

Similar skills

All skills for Backend and APIs →

From the same set25

wendy-cloud-testing This skill guides cloud-monorepo testing, local stack checks, Swift broker tests, and diagnosis of certificate or device reachability failures. CX Codex +1 ★ 62repo stars wendy-cloud-iterate Runs the Wendy Cloud dev stack end to end: brings up Docker and the Swift broker, runs integration tests, reads the failures and edits code. CX Codex +1 ★ 62repo stars wendy-certificates Guides certificate issuance, renewal, and revocation through pki-core across the Wendy platform. Helps configure operator credentials, service accounts, and offline USB device entitlements. CX Codex +1 ★ 62repo stars wendy-aaa-interop This skill explains how Wendy services divide identity, authorization, and credential issuance. Use it when changing integrations between the SaaS and self-hosted stacks. CX Codex +1 ★ 62repo stars swift-nio Get SwiftNIO guidance for TCP/UDP services, binary protocols, and event-loop issues. Useful when building network code or moving from futures to async/await. CX Codex +1 ★ 62repo stars swift-library-design Guides public API design for Swift libraries and frameworks: protocols, result builders, inlining, noncopyable types. CX Codex +1 ★ 62repo stars swift-concurrency Guides your coding assistant through async/await, actor boundaries, and Swift 6 strict concurrency checks without careless @MainActor escapes. CX Codex +1 ★ 62repo stars pull-request This skill keeps pull requests clear and reviewable, from issue links and scope splits to CI, feedback, and merge readiness. CX Codex +1 ★ 62repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor