Skip to content
Back to skills

Adapter

ASecurity

Adapter (Wrapper) Pattern pattern for C development

  • 666 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 2, 2026
ai-agentstestingapi

Works with

  • api

Security analysis

A100/100

Scanned September 2, 2026

npx -y skills add majiayu000/claude-skill-registry --skill adapter --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Adapter?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Adapter
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-adapter-claude-skill-registry/badge)](https://www.skillsdirectory.com/skills/majiayu000-adapter-claude-skill-registry)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: patterns/adapter
description: Adapter (Wrapper) Pattern pattern for C development
---

# Adapter (Wrapper) Pattern

Convert interface of one module to interface expected by another. Enables integration of incompatible interfaces without modifying either.

## ikigai Application

**wrapper.h:** Adapts system calls to mockable interface:
- `posix_read_()` wraps `read()`
- `curl_easy_perform_()` wraps libcurl
- `yyjson_read_file_()` wraps yyjson

**Purpose:** Real implementations in production, mock implementations in tests via weak symbol linking.

**LLM providers:** Adapt different API formats (OpenAI, Anthropic) to unified internal message format.

**Benefit:** External dependencies isolated behind stable internal interface. Swap implementations without changing callers.

**Testing:** Inject failures, control responses, verify calls.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.