Skip to main content
skill CX Codex

database-driver-design — Claude Code skill for Swift drivers

Guidance for designing Swift database clients, from protocol handling to connection pools and streamed results. Useful when building a driver or shaping its concurrency model.

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

What database-driver-design does

The skill covers typed commands with associated responses, parameter binding for queries, and explicit state transitions for protocol handling. It also discusses length-prefixed binary data, typed row decoding, and adapting result buffers to consumer demand.

Connection guidance includes pooling, keep-alive behavior, and graceful shutdown. For Swift Concurrency, it describes matching an actor’s executor to a SwiftNIO event loop. That alignment matters when the connection is built on NIO channels. The examples draw on valkey-swift and postgres-nio.

What it helps with

  • model driver commands with typed responses
  • bind query values instead of joining user input into SQL
  • map protocol messages to connection state transitions
  • align an actor’s executor with a SwiftNIO event loop
  • adapt result buffering to consumer demand

Example prompts for the agent

  • Help me design typed commands and responses for a Swift database client.
  • Review the connection state transitions needed to handle this wire protocol.
  • How should this driver apply backpressure while streaming rows through SwiftNIO?

How to install database-driver-design

1Skills CLI (Vercel)

npx skills add wendylabsinc/claude-skills --skill database-driver-design -a claude-code

2Manually: put the files in place

~/.claude/skills/database-driver-design/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/database-driver-design/

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

Questions about database-driver-design

How do I install database-driver-design in Claude Code?

Run npx skills add wendylabsinc/claude-skills --skill database-driver-design -a claude-code. The skill file is at ~/.claude/skills/database-driver-design/SKILL.md.

What does database-driver-design do?

It offers design guidance for Swift database clients, including typed commands, connection protocol states, pooling, and streamed results.

How does the skill address SQL injection?

It recommends binding query values rather than inserting user input into SQL text. Its interpolation approach turns values into bindings.

Similar skills

All skills for Data and databases →

From the same set14

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-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 postgres-nio A skill that gives the agent a working reference for talking to PostgreSQL from Swift with postgres-nio: connections, pooling, prepared statements and COPY FROM. CX Codex +1 ★ 62repo stars hummingbird Get coding guidance for Hummingbird 2 in Swift, from HTTP routing and request contexts to response handling. CX Codex +1 ★ 62repo stars github-actions A skill that steers the agent through GitHub Actions authoring: vendor actions over shell scripts, verified versions, minimal job permissions. 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