create-adapter

Generate typed data adapters mapping API responses and form data between layers.

Updated Feb 27, 2026
One-click install
npx skills add https://github.com/alejandro-technology/react-native-template --skill create-adapter-alejandro-technology
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-adapter
Source: https://github.com/alejandro-technology/react-native-template/tree/main/.claude/skills/generation/create-adapter
Command: npx skills add https://github.com/alejandro-technology/react-native-template --skill create-adapter-alejandro-technology

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Scaffolds domain-focused data adapters to transform and map data between layers, enabling clean separation of concerns between API responses, domain models, and UI payloads.

Core Features & Use Cases

  • Entity adapter: transforms API responses into domain entities with strict typing
  • Form-to-payload adapter: maps validated form data into API payloads
  • Domain-layer discipline: adapters live in the domain, are pure functions, and avoid framework dependencies
  • Single-feature organization: all adapters for a feature live in {feature}.adapter.ts

Quick Start

Implement the domain adapters for a new feature by creating {feature}EntityAdapter and {feature}FormToPayloadAdapter in the domain layer.

Frequently Asked Questions about create-adapter

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

FAQPage Schema
How do I map API responses to domain entities in TypeScript?

To map API responses to domain entities in TypeScript, generate a domain-centric data adapter using strict typing and pure functions. This isolates the transformation logic between your application and API layers.

What is the best way to separate API data from domain models?

The best way to separate API data from domain models is to scaffold clean data adapters. Placing these pure functions in the domain layer keeps framework dependencies out of your core business logic.

How do I create a form-to-payload adapter for API requests?

You create a form-to-payload adapter by mapping validated form data into API payloads using pure functions. This ensures strict typing and clean separation between your UI and application layers.

Do data adapters need to be placed in a specific architectural layer?

Yes, data adapters should be placed in the domain layer. This enforces domain-layer discipline by keeping the adapter logic free of framework dependencies and organized as pure functions.

Can I put multiple feature adapters in one file?

No, you should not put multiple feature adapters in one file. Adapters must follow single-feature organization, meaning all adapters for a specific feature live inside a single {feature}.adapter.ts file.

Why use pure functions for data mapping between architectural layers?

Using pure functions for data mapping ensures the transformation between architectural layers remains free of framework dependencies. This enforces strict typing and maintains a clean separation of concerns.