SDK Design Patterns
revfactory/harness-100
SDK/API client design patterns: builder pattern, interceptor chain, retry strategy, type-safe design, error handling, and pagination wrapper guide.
Pattern for wrapping third-party SDK clients (Stripe, Resend, AWS, etc.) with Effect.
$ npx skills add UsefulSoftwareCo/executor --skill effect-client-wrapper -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install UsefulSoftwareCo/executor effect-client-wrapper --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/UsefulSoftwareCo/executor.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.skills/effect-use-pattern .claude/skills/effect-client-wrapper && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "effect-client-wrapper" agent skill from https://github.com/UsefulSoftwareCo/executor/tree/main/.skills/effect-use-pattern into .claude/skills/effect-client-wrapper/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "effect-client-wrapper", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/UsefulSoftwareCo/executor/tree/main/.skills/effect-use-patternType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add UsefulSoftwareCo/executor --skill effect-client-wrapper -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install UsefulSoftwareCo/executor effect-client-wrapper --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/UsefulSoftwareCo/executor.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.skills/effect-use-pattern .agents/skills/effect-client-wrapper && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "effect-client-wrapper" agent skill from https://github.com/UsefulSoftwareCo/executor/tree/main/.skills/effect-use-pattern into .agents/skills/effect-client-wrapper/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "effect-client-wrapper", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add UsefulSoftwareCo/executor --skill effect-client-wrapper -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install UsefulSoftwareCo/executor effect-client-wrapper --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/UsefulSoftwareCo/executor.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.skills/effect-use-pattern .cursor/skills/effect-client-wrapper && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "effect-client-wrapper" agent skill from https://github.com/UsefulSoftwareCo/executor/tree/main/.skills/effect-use-pattern into .cursor/skills/effect-client-wrapper/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "effect-client-wrapper", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/UsefulSoftwareCo/executor.git --path .skills/effect-use-pattern--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add UsefulSoftwareCo/executor --skill effect-client-wrapper -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install UsefulSoftwareCo/executor effect-client-wrapper --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/UsefulSoftwareCo/executor.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.skills/effect-use-pattern .gemini/skills/effect-client-wrapper && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "effect-client-wrapper" agent skill from https://github.com/UsefulSoftwareCo/executor/tree/main/.skills/effect-use-pattern into .gemini/skills/effect-client-wrapper/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "effect-client-wrapper", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install UsefulSoftwareCo/executor effect-client-wrapperInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add UsefulSoftwareCo/executor --skill effect-client-wrapper -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/UsefulSoftwareCo/executor.git skills-src && mkdir -p .github/skills && cp -r skills-src/.skills/effect-use-pattern .github/skills/effect-client-wrapper && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "effect-client-wrapper" agent skill from https://github.com/UsefulSoftwareCo/executor/tree/main/.skills/effect-use-pattern into .github/skills/effect-client-wrapper/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "effect-client-wrapper", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add UsefulSoftwareCo/executor --skill effect-client-wrapper -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install UsefulSoftwareCo/executor effect-client-wrapper --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/UsefulSoftwareCo/executor.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.skills/effect-use-pattern .opencode/skills/effect-client-wrapper && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "effect-client-wrapper" agent skill from https://github.com/UsefulSoftwareCo/executor/tree/main/.skills/effect-use-pattern into .opencode/skills/effect-client-wrapper/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "effect-client-wrapper", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
effect-client-wrapperPattern for wrapping third-party SDK clients (Stripe, Resend, AWS, etc.) with Effect.
Effect Client Wrapper is an agent skill from UsefulSoftwareCo/executor. Pattern for wrapping third-party SDK clients (Stripe, Resend, AWS, etc.) with Effect. Use when creating Effect services that wrap external libraries with Promise-based APIs. Provides type-safe error handling, automatic tracing, and clean dependency injection via the "use" pattern.
Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Development, covering Design patterns, Type safety and Error handling. It works with Stripe and Amazon Web Services. The repository describes itself as: The missing integration layer for AI agents. Let them call any OpenAPI / MCP / GraphQL / custom js functions in secure environment. The licence is MIT.
5 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 27dccb8. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
STRIPE_SECRET_KEYFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Effect Client Wrapper loads about 1.4k tokens when it runs. Until then it costs about 76 tokens; SKILL.md has 93 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from UsefulSoftwareCo/executor at commit 27dccb8, republished under its MIT licence (© UsefulSoftwareCo). 93 words, ~1,365 tokens.
.claude/skills/effect-client-wrapper/SKILL.md (or your agent's skills folder).Wrap third-party SDK clients with Effect using the "use" pattern for consistent error handling, tracing, and dependency injection.
import { Context, Data, Effect, Layer, Config, Redacted } from "effect";
// 1. Define tagged errors
export class MyClientError extends Data.TaggedError("MyClientError")<{
cause: unknown;
}> {}
export class MyClientInstantiationError extends Data.TaggedError("MyClientInstantiationError")<{
cause: unknown;
}> {}
// 2. Define service interface with `use` method
export type IMyClient = Readonly<{
client: ThirdPartyClient;
use: <A>(fn: (client: ThirdPartyClient) => Promise<A>) => Effect.Effect<A, MyClientError, never>;
}>;
// 3. Create the service implementation
const make = Effect.gen(function* () {
const apiKey = yield* Config.redacted("MY_CLIENT_API_KEY");
const client = yield* Effect.try({
try: () => new ThirdPartyClient(Redacted.value(apiKey)),
catch: (cause) => new MyClientInstantiationError({ cause }),
});
const use = <A>(fn: (client: ThirdPartyClient) => Promise<A>) =>
Effect.tryPromise({
try: () => fn(client),
catch: (cause) => new MyClientError({ cause }),
}).pipe(Effect.withSpan(`my_client.${fn.name ?? "use"}`));
return { client, use };
});
// 4. Export as Context.Tag with Default layer
export class MyClient extends Context.Tag("MyClient")<MyClient, IMyClient>() {
static Default = Layer.effect(this, make).pipe(Layer.annotateSpans({ module: "MyClient" }));
}const program = Effect.gen(function* () {
const myClient = yield* MyClient;
const result = yield* myClient.use((client) => client.someMethod({ param: "value" }));
return result;
});
// Run with layer
program.pipe(Effect.provide(MyClient.Default));MyClientErroruse call creates a span with function nameConfig.redactedyield* MyClientuse interfaceexport class MyClientNetworkError extends Data.TaggedError("MyClientNetworkError")<{
cause: unknown;
}> {}
export class MyClientValidationError extends Data.TaggedError("MyClientValidationError")<{
message: string;
}> {}
const use = <A>(fn: (client: ThirdPartyClient) => Promise<A>) =>
Effect.tryPromise({
try: () => fn(client),
catch: (cause) => {
if (cause instanceof NetworkError) {
return new MyClientNetworkError({ cause });
}
return new MyClientError({ cause });
},
}).pipe(Effect.withSpan(`my_client.${fn.name ?? "use"}`));Expose specific methods instead of generic use:
export type IEmailClient = Readonly<{
sendEmail: (params: SendEmailParams) => Effect.Effect<EmailResult, EmailError>;
getEmail: (id: string) => Effect.Effect<Email, EmailError>;
}>;
const make = Effect.gen(function* () {
const resend = yield* ResendClient;
return {
sendEmail: (params) =>
resend.use((client) => client.emails.send(params)).pipe(Effect.withSpan("email_client.send")),
getEmail: (id) =>
resend.use((client) => client.emails.get(id)).pipe(Effect.withSpan("email_client.get")),
};
});import { Schedule } from "effect";
const retryPolicy = Schedule.exponential(100).pipe(
Schedule.intersect(Schedule.recurs(3)),
Schedule.jittered,
);
const use = <A>(fn: (client: ThirdPartyClient) => Promise<A>) =>
Effect.tryPromise({
try: () => fn(client),
catch: (cause) => new MyClientError({ cause }),
}).pipe(Effect.retry(retryPolicy), Effect.withSpan(`my_client.${fn.name ?? "use"}`));import Stripe from "stripe";
import { Context, Data, Effect, Layer, Config, Redacted } from "effect";
export class StripeError extends Data.TaggedError("StripeError")<{
cause: unknown;
}> {}
export type IStripeClient = Readonly<{
use: <A>(fn: (stripe: Stripe) => Promise<A>) => Effect.Effect<A, StripeError>;
}>;
const make = Effect.gen(function* () {
const secretKey = yield* Config.redacted("STRIPE_SECRET_KEY");
const client = new Stripe(Redacted.value(secretKey));
const use = <A>(fn: (stripe: Stripe) => Promise<A>) =>
Effect.tryPromise({
try: () => fn(client),
catch: (cause) => new StripeError({ cause }),
}).pipe(Effect.withSpan(`stripe.${fn.name ?? "use"}`));
return { use };
});
export class StripeClient extends Context.Tag("StripeClient")<StripeClient, IStripeClient>() {
static Default = Layer.effect(this, make).pipe(Layer.annotateSpans({ module: "StripeClient" }));
}
// Usage
const createCustomer = Effect.gen(function* () {
const stripe = yield* StripeClient;
const customer = yield* stripe.use((client) =>
client.customers.create({ email: "user@example.com" }),
);
return customer;
});© UsefulSoftwareCo, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .skills/effect-use-pattern of UsefulSoftwareCo/executor.
Open the folder on GitHubat commit 27dccb8
We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in UsefulSoftwareCo/executor, which our catalogue first saw on October 7, 2026.
Effect Client Wrapper next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Effect Client Wrapper this skillUsefulSoftwareCo/executor | 4.1k | 1 repos | ~1.4k | Automated safety check: Pass | MIT | |
| SDK Design Patternsrevfactory/harness-100 | 1.3k | — | ~1.8k | Automated safety check: Pass | Apache-2.0 | |
| RTK Rust Design Patternsrtk-ai/rtk | 83k | — | ~1.9k | Automated safety check: Pass | Apache-2.0 | |
| Zodjasonjgardner/blockbench-mcp-plugin | 488 | 3 repos | ~1.4k | Automated safety check: Pass | GPL-3.0 | |
| GitVersion .NET DevelopmentGitTools/GitVersion | 3.1k | — | ~1.7k | Automated safety check: Pass | MIT | |
| AST Visitor Pattern for Unionsprisma/orm | 48k | — | ~830 | Automated safety check: Pass | Apache-2.0 |
revfactory/harness-100
SDK/API client design patterns: builder pattern, interceptor chain, retry strategy, type-safe design, error handling, and pagination wrapper guide.
rtk-ai/rtk
Describes seven Rust design patterns for the RTK CLI filter modules, with when to use each, RTK examples, and notes on when a pattern is overkill.
jasonjgardner/blockbench-mcp-plugin
Zod schema validation best practices for type safety, parsing, and error handling.
GitTools/GitVersion
Gives repository-specific .NET guidance for GitVersion: build and test commands, central package management, project layout and coding conventions.
prisma/orm
Replaces a plain TypeScript union plus switch statements with frozen subclasses and a visitor interface when several places dispatch on the same variants.
IBM/fp-go
Teaches an agent to write fp-go v2 services with the Effect type, carrying dependencies in its type parameter instead of in context.Context or parameters.
UsefulSoftwareCo/executor
Runbook for releasing the executor CLI package (stable and beta).
UsefulSoftwareCo/executor
Pattern for implementing optimistic UI updates with effect-atom in this codebase.
UsefulSoftwareCo/executor
Testing Effect HttpApi services end-to-end. An agent skill from UsefulSoftwareCo/executor.
UsefulSoftwareCo/executor
Use the @executor-js/emulate service emulators (GitHub, Google, Stripe, Resend, WorkOS, …) to test integrations for real — full OpenAPI specs, working OAuth flows, mintable credentials, and a…
UsefulSoftwareCo/executor
Query Executor's production telemetry — Axiom traces (executor-cloud dataset), prod Postgres via PlanetScale, PostHog product analytics — through the Executor MCP.
UsefulSoftwareCo/executor
Build modals/dialogs self-contained: form and in-flight state lives inside, closing unmounts it.
Works with
Categories
Pattern for wrapping third-party SDK clients (Stripe, Resend, AWS, etc.) with Effect. Effect Client Wrapper is an agent skill from UsefulSoftwareCo/executor.) with Effect.
Effect Client Wrapper fits situations like: creating Effect services that wrap external libraries with Promise-based APIs; tasks that involve Design patterns; tasks that involve Type safety.
Run `npx skills add UsefulSoftwareCo/executor --skill effect-client-wrapper -a claude-code`. Or copy the skill folder (.skills/effect-use-pattern in UsefulSoftwareCo/executor) into .claude/skills/effect-client-wrapper in your project. Claude Code loads it when a task matches its description.
Run `npx skills add UsefulSoftwareCo/executor --skill effect-client-wrapper -a codex`. Or copy the skill folder (.skills/effect-use-pattern in UsefulSoftwareCo/executor) into .agents/skills/effect-client-wrapper in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add UsefulSoftwareCo/executor --skill effect-client-wrapper -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/effect-client-wrapper, .gemini/skills/effect-client-wrapper, .github/skills/effect-client-wrapper and .opencode/skills/effect-client-wrapper in your project.
Going by SKILL.md and its folder, Effect Client Wrapper needs credentials named STRIPE_SECRET_KEY. Our summary lists: A credential in MY_CLIENT_API_KEY; A credential in STRIPE_SECRET_KEY.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Effect Client Wrapper is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.4k tokens (SKILL.md is roughly 5.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Effect Client Wrapper: SDK Design Patterns (revfactory/harness-100, 1.3k stars), RTK Rust Design Patterns (rtk-ai/rtk, 83k stars), Zod (jasonjgardner/blockbench-mcp-plugin, 488 stars) and GitVersion .NET Development (GitTools/GitVersion, 3.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
UsefulSoftwareCo (a GitHub organization) maintains it in UsefulSoftwareCo/executor, which has 4,085 GitHub stars. The repository holds 21 skills in this directory. The repository was last updated on October 7, 2026.
Source: UsefulSoftwareCo/executor on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.