ffsshhttiikk/opencode-agents-skills/adapter-pattern

Claude Code and agent skill by ffsshhttiikk/opencode-agents-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Install

npx vskill@latest install ffsshhttiikk/opencode-agents-skills/adapter-pattern

SKILL.md

The same SKILL.md was published earlier as ffsshhttiikk/opencode-agents-skills/adapter-pattern.

Adapter Pattern

Category: Software Architecture Skill Level: Intermediate Domain: programming, architecture

Overview

The Adapter pattern allows incompatible interfaces to work together by wrapping an interface around an existing class.

Description

The Adapter pattern acts as a bridge between two incompatible interfaces, enabling classes with different interfaces to collaborate. It converts the interface of a class into another interface that clients expect.

Prerequisites

  • Object-oriented programming fundamentals
  • Interface design principles
  • Understanding of SOLID principles

Core Competencies

  • Identifying when to use adapter pattern
  • Implementing class and object adapters
  • Working with existing library interfaces
  • Maintaining single responsibility principle

Implementation

python
class Target:
def request(self) -> str:
return "Target: The default target's behavior."
class Adaptee:
def specific_request(self) -> str:
return ".eetpadmae eht fo roivaheb laicepS"
class Adapter(Target):
def __init__(self, adaptee: Adaptee):
self.adaptee = adaptee
def request(self) -> str:
return f"Adapter: (TRANSLATED) {self.adaptee.specific_request()[::-1]}"

Use Cases

  • Integrating third-party libraries
  • Legacy system integration
  • Data format conversions
  • API wrapper development

Artifacts

  • Adapter implementations for common interfaces
  • Interface compatibility layers
  • Legacy system wrappers

Related Skills

  • Bridge Pattern
  • Decorator Pattern
  • Facade Pattern

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
2
Repository forks
2
7-day trend score
10

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Grok Build (Cursor)
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ffsshhttiikk/opencode-agents-skills/adapter-pattern/badge)](https://verified-skill.com/skills/ffsshhttiikk/opencode-agents-skills/adapter-pattern)

Something wrong with this skill or its page? Tell us.