Skip to content
Back to skills

Patterns

ASecurity

When you want to bring an existing service (a third-party API, a library, an in-house microservice) into an iii system without rewriting it, wrap it in a thin worker that exposes the service's capabilities as iii functions. The worker translates between the existing service's interface and the iii function-call shape.

  • 18,821 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added June 3, 2026
developmentapi

Works with

  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned June 3, 2026

npx -y skills add iii-hq/iii --skill patterns --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Patterns?

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

Security grade badge for Patterns
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/iii-hq-patterns/badge)](https://www.skillsdirectory.com/skills/iii-hq-patterns)

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
<!-- generated by iii-skill-render. DO NOT EDIT (changes here are overwritten on the next render). Edit docs/0-12-0/patterns/adapter-pattern.mdx. -->

# Adapter Pattern


When you want to bring an existing service (a third-party API, a library, an in-house microservice)
into an iii system without rewriting it, wrap it in a thin worker that exposes the service's
capabilities as iii functions. The worker translates between the existing service's interface and
the iii function-call shape.

## When to use this pattern

When you have an existing service you want to use from iii without rewriting it, and you want
callers to address it the way they address every other worker (by function ID, not by HTTP or
library-specific call shapes).

## Structure

A thin iii worker that:

1. Connects to the engine.
2. Registers one function per operation you want to expose.
3. Inside each handler, calls the existing service and returns the result as the function's
   response.

{/* TODO: full worked example wrapping a real third-party API (e.g. Stripe, OpenAI, internal REST service) as an iii worker. Include the function ID conventions, error mapping from the wrapped service to iii function errors, and how to handle authentication / secrets. */}

Files in this skill

  • adapter-pattern.mdx1.2 KB
  • adapter-pattern.mdx.skill.md1.2 KB
  • reactive-state-pattern.mdx1.4 KB
  • reactive-state-pattern.mdx.skill.md1.4 KB

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…