ioscleannetwork
/ioscleannetwork
Create or update Swift endpoint integrations using iOSCleanNetwork, including domain contracts, Setup and Provider types, request DTOs, response mapping, JSON fixtures and tests. Use when an app or SDK consumes iOSCleanNetwork or the user asks to generate an integration with it; not for unrelated networking libraries or general SDK maintenance.
- Author
- alegelos ↗
- Repository
- CleanNetworkPlugin ↗
- Licence
- MIT
- Last repository change
- 10.11.2026
Assessment and security
- Files in this package
- 19
- Scripts
- 14
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 10.11.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 14 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: assets/UserExample/Package.swift, assets/UserExample/Sources/UserExample/Data/APIs/UserAPI/DTOs/CreateUserDTO.swift, assets/UserExample/Sources/UserExample/Data/APIs/UserAPI/Responses/UserResponse.swift, assets/UserExample/Sources/UserExample/Data/APIs/UserAPI/UserAPIProvider.swift, assets/UserExample/Sources/UserExample/Data/APIs/UserAPI/UserAPISetup.swift, assets/UserExample/Sources/UserExample/
What it does and when to use it
Create or update Swift endpoint integrations using iOSCleanNetwork, including domain contracts, Setup and Provider types, request DTOs, response mapping, JSON fixtures and tests. Use when an app or SDK consumes iOSCleanNetwork or the user asks to generate an integration with it; not for unrelated networking libraries or general SDK maintenance.
Original author description
Create or update Swift endpoint integrations using iOSCleanNetwork, including domain contracts, Setup and Provider types, request DTOs, response mapping, JSON fixtures and tests. Use when an app or SDK consumes iOSCleanNetwork or the user asks to generate an integration with it; not for unrelated networking libraries or general SDK maintenance.
How it works
- Establish the integration
- Apply the pattern
- Verify the integration
- Deliver in the requested context
SKILL.md preview
--- name: ioscleannetwork description: Create or update Swift endpoint integrations using iOSCleanNetwork, including domain contracts, Setup and Provider types, request DTOs, response mapping, JSON fixtures and tests. Use when an app or SDK consumes iOSCleanNetwork or the user asks to generate an integration with it; not for unrelated networking libraries or general SDK maintenance. metadata: api-baseline: "1.0.4" --- # iOSCleanNetwork integration Implement the consumer's feature using the installed SDK's actual contracts. Keep the project's established module layout and honor the requested scope. The SDK supplies transport and testing building blocks; feature-specific Setup, Provider, Domain types and spies belong to the consumer. ## Establish the integration 1. Check the consumer's resolved SDK version and existing providers. This skill describes the API available in 1.0.4. Compare newer or older APIs with the installed source before using a signature that may differ. If the SDK is already integrated, reuse that dependency. 2. Read [the integration guide](references/integration.md). Inspect the relevant files in the [User example](assets/UserExample/) for code, resources and tests. Read only the parts needed by the feature; the example is a small reference, not an instruction to add a second networking architecture. 3. Establish the HTTP method/path, base URL, authentication and request/response contract from the user's API documentation. Ask for missing information that would change behavior. Do not invent endpoints, credentials, required fields or a token-refresh flow from a successful JSON sample. ## Apply the pattern - Domain protocols take and return Domain values. Keep transport request DTOs, Decodable responses and their mappings in Data. Do not make Domain depend on Data or on the networking SDK merely to accept a request DTO. - Use `*Setup: ApiSetupProtocol` for endpoint configuration and `*Provider` for the feature's implementation. Use request `*DTO`, response `*Response` and a response `.domain` mapper in new code. Preserve deliberate existing project conventions instead of renaming unrelated code. - Group related endpoints in one Setup enum/provider when it fits the feature. A bodyless GET does not require a request DTO. Generate only relevant files. - Inject `any NetworkSessionProtocol`. Call `session.data(for: setup)` so the SDK's URLSession implementation validates HTTP responses and the same provider can use the fixture session. Avoid bypassing it with `URLSession.shared` inside a provider method. - Propagate encoding/decoding/mapping errors. `body` is nonthrowing in the SDK; the User example encodes with `try` before constructing a Setup with `Data`. Do not silently turn a failed encoding into an empty body with `try?`. - Use the SDK's refresh helper only when the API and app supply an appropriate `ApisGatewayProtocol`. Keep credentials and token acquisition in the app's existing authentication design. - `ApiProvider` is an optional configuration protocol, not a concrete client or a required superclass. Check unsupported methods or other SDK limitations in the guide rather than inventing members. ## Verify the integration - Test the production provider with `MockedURLSession`, response JSON fixtures and a test-only `URLSessionSetupProtocol` conformance. Supply the bundle that actually contains the fixtures; SwiftPM test resources use `.module`. For a conformance added from a separate test module with `@testable import`, declare `jsonFileName` and `jsonBundle` as `public`, as the example does. - Test request construction separately. The fixture session does not evaluate `setup.request` or simulate an HTTP status code; a green mapping test alone does not verify the outgoing URL, headers or payload. - Add a handwritten `ProviderSpyProtocol` wrapper only when call observation or injected failures are useful. It increments, validates queued failures, then forwards. Keep mutable test doubles isolated to their test; do not add unchecked concurrency promises to silence a compiler error. - Domain stubs can test Presenter/ViewModel behavior independently. A service spy aggregator is optional when several providers make tests noisy. - Run the host's appropriate build and affected tests. Report actual results and any unverified parts. Never claim that reading a JSON fixture proves real network behavior, authentication or server-side effects. ## Deliver in the requested context In an existing checkout, implement the requested files there and keep the integration consistent with that project. For a standalone deliverable, provide complete usable files and a ZIP when requested. Do not impose ZIP delivery on in-place work or turn a request for explanation into file generation. Use fictional data and `example.com` for examples. Keep the workflow scoped to the integration; changing the SDK's public API is a separate task unless the user has requested it.
Files in this package (19)
- SKILL.md 5 KB
- agents/openai.yaml 1 KB
- assets/UserExample/Package.swift 1 KB
- assets/UserExample/Sources/UserExample/Data/APIs/UserAPI/UserAPIProvider.swift 1 KB
- assets/UserExample/Sources/UserExample/Data/APIs/UserAPI/UserAPISetup.swift 2 KB
- assets/UserExample/Sources/UserExample/Data/APIs/UserAPI/DTOs/CreateUserDTO.swift 1 KB
- assets/UserExample/Sources/UserExample/Data/APIs/UserAPI/Responses/UserResponse.swift 1 KB
- assets/UserExample/Sources/UserExample/Domain/Models/NewUser.swift 1 KB
- assets/UserExample/Sources/UserExample/Domain/Models/User.swift 1 KB
- assets/UserExample/Sources/UserExample/Domain/Providers/UserProviderProtocol.swift 1 KB
- assets/UserExample/Tests/UserExampleTests/UserAPIProviderTests.swift 4 KB
- assets/UserExample/Tests/UserExampleTests/UserAPISetupTests.swift 2 KB
- assets/UserExample/Tests/UserExampleTests/UserProviderSpyTests.swift 3 KB
- assets/UserExample/Tests/UserExampleTests/Resources/CreateUser.json 1 KB
- assets/UserExample/Tests/UserExampleTests/Resources/GetUser.json 1 KB
- assets/UserExample/Tests/UserExampleTests/Support/StubNetworkSession.swift 1 KB
- assets/UserExample/Tests/UserExampleTests/Support/UserAPISetup+Fixtures.swift 1 KB
- assets/UserExample/Tests/UserExampleTests/Support/UserProviderSpy.swift 1 KB
- references/integration.md 19 KB
Versions
The database has no other skills named ioscleannetwork.
Database snapshot: 13.11.2026 · package version b89b12c4f192 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100androidcleannetwork
Create or update Kotlin endpoint integrations using AndroidCleanNetwork, including domain contracts, Setup and Provider types, request DTOs, response mapping, JSON fixtures and tests. Use when an Android app or SDK consumes AndroidCleanNetwork or the user requests an integration… - 96cleannetwork
Choose the iOSCleanNetwork or AndroidCleanNetwork integration workflow for a consuming app or SDK. Use when setting up the CleanNetwork plugin, when the platform is unclear, or when a task spans both SDKs. Platform-specific endpoint work should use its matching bundled skill. - 100build-licenseseat-swift
Use if integrating the LicenseSeat Swift SDK into a macOS/Swift app — activation, validation, seats. - 100aws-sdk-swift-usage
AWS SDK for Swift development patterns. Use when writing Swift code that uses AWS services via aws-sdk-swift package. - 100dto-and-validation
Use when creating request/response DTOs, applying Symfony Validator constraints, mapping payloads with #[MapRequestPayload]/#[MapQueryString], or mapping DTOs to/from entities. Use when the task mentions DTO, request validation, form input, or the Validator component. - 100rest-api-conventions
Use when generating REST controllers, DTOs, success response contracts, pagination, HTTP status mapping, or API versioning. For RFC 9457 exception and error response formatting, use problem-details-rfc9457 unless the project explicitly requires a legacy error envelope.