swift-http-client-sendable-fixes

Fix Sendable conformance errors in BaseHTTPClient-based Swift modules.

Updated May 9, 2026
One-click install
npx skills add https://github.com/LuminaVault/LuminaVaultServer --skill swift-http-client-sendable-fixes
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: swift-http-client-sendable-fixes
Source: https://github.com/LuminaVault/LuminaVaultServer/tree/main/Sources/App/Resources/Skills/swift-development/references/swift-http-client-sendable-fixes
Command: npx skills add https://github.com/LuminaVault/LuminaVaultServer --skill swift-http-client-sendable-fixes

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the process of fixing Sendable conformance and protocol errors in modules using BaseHTTPClient, streamlining the migration to Swift's concurrency model.

Core Features & Use Cases

  • Fix Sendable Conformance: Automatically identifies and corrects errors related to Sendable conformance in HTTP client modules.
  • Move Error Enums: Moves nested Error enums to top-level scope and annotates them with @preconcurrency for Sendable checking.
  • Update Client Classes: Changes inheritance to use the concrete top-level error type and updates override methods.
  • Fix Implicit Self: Corrects implicit self captures in BaseHTTPClient for strict concurrency.
  • Verify and Test: Provides a step-by-step guide to verify and test the fixed modules.

Quick Start

Run the swift-http-client-sendable-fixes skill on your module to automatically apply fixes for Sendable conformance issues.

Frequently Asked Questions about swift-http-client-sendable-fixes

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix Sendable conformance errors in Swift HTTP client modules?▼

Fixing Sendable conformance errors in Swift HTTP client modules requires moving nested Error enums to a top-level scope, annotating them with @preconcurrency, updating BaseHTTPClient class inheritance, and correcting implicit self captures for strict concurrency compliance.

Why does my BaseHTTPClient fail Swift strict concurrency checks?▼

BaseHTTPClient fails Swift strict concurrency checks due to non-Sendable conforming types, nested Error enums, and implicit self captures. Resolving this requires moving Error enums to top-level scope and updating override methods to use concrete error types.

How do I move nested Error enums for Sendable conformance in Swift?▼

Moving nested Error enums for Sendable conformance involves relocating them to a top-level scope and annotating them with @preconcurrency. This allows proper Sendable checking for BaseHTTPClient-based modules during Swift concurrency migration.

Does this Sendable fix work for iOS and macOS codebases using Swift concurrency?▼

Yes, the Sendable fix applies directly to iOS and macOS codebases using Swift's concurrency model. It specifically targets BaseHTTPClient-based modules to automate protocol conformance updates and strict concurrency checking.

What is the best way to automate BaseHTTPClient Sendable conformance migration?▼

The best way to automate BaseHTTPClient Sendable conformance migration is to run an automated script that identifies protocol errors, moves Error enums, updates class inheritance, and fixes implicit self captures. This streamlines the transition to Swift's strict concurrency model.

How do I verify and test BaseHTTPClient modules after fixing Sendable errors?▼

To verify and test BaseHTTPClient modules after fixing Sendable errors, follow a provided step-by-step guide to ensure the updated client class inheritance, top-level Error enums, and corrected implicit self captures function correctly under Swift's strict concurrency model.