pattern-adapter

Community

Bridge incompatible interfaces instantly.

Authorjohnnystefan
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Creates a wrapper to let clients with strict domain interfaces collaborate with third-party or legacy services whose methods differ, eliminating the repeated translation logic scattered across application layers.

Core Features & Use Cases

  • Adapter Definition: Guides you to codify the client protocol, the adaptee service, and their bridging adapter so each part honors SRP and stays testable.
  • Mapping Strategies: Explains how to convert Prisma records, SDK responses, or third-party payloads through toDomain/fromPrisma methods to satisfy NestJS repositories or services.
  • Real Use Case: When a legacy billing SDK uses a different method signature than your IRepository, wrap it with an adapter that translates calls and keeps your domain API intact.

Quick Start

Ask the skill to implement an adapter that wraps the legacy billing client so it matches your current IRepository interface.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: pattern-adapter
Download link: https://github.com/johnnystefan/test-saas-business/archive/main.zip#pattern-adapter

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.