implement-f8e-client

Implement an F8e HTTP client for the Fromagerie API using Kotlin and Ktor.

219|41|Updated Feb 21, 2024
One-click install
npx skills add https://github.com/proto-at-block/bitkey --skill implement-f8e-client
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: implement-f8e-client
Source: https://github.com/proto-at-block/bitkey/tree/main/app/ai-rules/skills/implement-f8e-client
Command: npx skills add https://github.com/proto-at-block/bitkey --skill implement-f8e-client

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables mobile applications to communicate with the F8e API reliably by providing a clear interface, typed request/response bodies, and DI-friendly structure.

Core Features & Use Cases

  • Interface-first design: Define a clean public API in domain modules for the F8e client.
  • Serializable bodies: Implement RedactedRequestBody and RedactedResponseBody for safe data handling.
  • DI-friendly implementation and testing: Provide real and fake implementations with DI hooks for service tests.

Quick Start

Create the F8e client interface and wire it into the DI container to start making API calls.

Frequently Asked Questions about implement-f8e-client

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

FAQPage Schema
How do I implement an HTTP client for the Fromagerie API in Kotlin?

An F8e HTTP client for the Fromagerie API is implemented using an interface-first design in domain modules, providing typed request and response bodies with Kotlin and Ktor.

What is the best way to structure a Ktor API client for dependency injection?

Structuring a Ktor API client for dependency injection involves enforcing statelessness and clear separation of concerns across distinct domain, implementation, and fake testing modules.

How do I handle safe data handling in an F8e HTTP client?

Safe data handling in an F8e HTTP client is achieved by implementing serializable RedactedRequestBody and RedactedResponseBody classes to securely process request and response payloads.

Can I use fake implementations for service testing with a Ktor HTTP client?

Fake implementations are fully supported for service testing by using the provided fake layers with DI hooks, allowing you to validate domain logic without real network calls.

Does the F8e HTTP client implementation require specific architectural patterns?

The F8e HTTP client implementation requires an interface-first design pattern, enforcing statelessness and clear separation of concerns across domain, implementation, and fake testing modules.