Vercel Composition Patterns
supabase/supabase
React composition patterns that scale. An agent skill from supabase/supabase.
SDK/API 클라이언트 설계 패턴: 빌더 패턴, 인터셉터 체인, 재시도 전략, 타입 안전 설계, 에러 핸들링, 페이지네이션 래퍼 가이드.
$ npx skills add revfactory/harness-100 --skill sdk-design-patterns -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install revfactory/harness-100 sdk-design-patterns --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/revfactory/harness-100.git skills-src && mkdir -p .claude/skills && cp -r skills-src/ko/35-api-client-generator/.claude/skills/sdk-design-patterns .claude/skills/sdk-design-patterns && 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 "sdk-design-patterns" agent skill from https://github.com/revfactory/harness-100/tree/main/ko/35-api-client-generator/.claude/skills/sdk-design-patterns into .claude/skills/sdk-design-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sdk-design-patterns", 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/revfactory/harness-100/tree/main/ko/35-api-client-generator/.claude/skills/sdk-design-patternsType 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 revfactory/harness-100 --skill sdk-design-patterns -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install revfactory/harness-100 sdk-design-patterns --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/revfactory/harness-100.git skills-src && mkdir -p .agents/skills && cp -r skills-src/ko/35-api-client-generator/.claude/skills/sdk-design-patterns .agents/skills/sdk-design-patterns && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "sdk-design-patterns" agent skill from https://github.com/revfactory/harness-100/tree/main/ko/35-api-client-generator/.claude/skills/sdk-design-patterns into .agents/skills/sdk-design-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sdk-design-patterns", 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 revfactory/harness-100 --skill sdk-design-patterns -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install revfactory/harness-100 sdk-design-patterns --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/revfactory/harness-100.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/ko/35-api-client-generator/.claude/skills/sdk-design-patterns .cursor/skills/sdk-design-patterns && 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 "sdk-design-patterns" agent skill from https://github.com/revfactory/harness-100/tree/main/ko/35-api-client-generator/.claude/skills/sdk-design-patterns into .cursor/skills/sdk-design-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sdk-design-patterns", 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/revfactory/harness-100.git --path ko/35-api-client-generator/.claude/skills/sdk-design-patterns--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 revfactory/harness-100 --skill sdk-design-patterns -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install revfactory/harness-100 sdk-design-patterns --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/revfactory/harness-100.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/ko/35-api-client-generator/.claude/skills/sdk-design-patterns .gemini/skills/sdk-design-patterns && 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 "sdk-design-patterns" agent skill from https://github.com/revfactory/harness-100/tree/main/ko/35-api-client-generator/.claude/skills/sdk-design-patterns into .gemini/skills/sdk-design-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sdk-design-patterns", 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 revfactory/harness-100 sdk-design-patternsInstalls 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 revfactory/harness-100 --skill sdk-design-patterns -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/revfactory/harness-100.git skills-src && mkdir -p .github/skills && cp -r skills-src/ko/35-api-client-generator/.claude/skills/sdk-design-patterns .github/skills/sdk-design-patterns && 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 "sdk-design-patterns" agent skill from https://github.com/revfactory/harness-100/tree/main/ko/35-api-client-generator/.claude/skills/sdk-design-patterns into .github/skills/sdk-design-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sdk-design-patterns", 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 revfactory/harness-100 --skill sdk-design-patterns -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install revfactory/harness-100 sdk-design-patterns --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/revfactory/harness-100.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/ko/35-api-client-generator/.claude/skills/sdk-design-patterns .opencode/skills/sdk-design-patterns && 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 "sdk-design-patterns" agent skill from https://github.com/revfactory/harness-100/tree/main/ko/35-api-client-generator/.claude/skills/sdk-design-patterns into .opencode/skills/sdk-design-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sdk-design-patterns", 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.
sdk-design-patternsSDK/API 클라이언트 설계 패턴: 빌더 패턴, 인터셉터 체인, 재시도 전략, 타입 안전 설계, 에러 핸들링, 페이지네이션 래퍼 가이드.
SDK Design Patterns is an agent skill from revfactory/harness-100. SDK/API 클라이언트 설계 패턴: 빌더 패턴, 인터셉터 체인, 재시도 전략, 타입 안전 설계, 에러 핸들링, 페이지네이션 래퍼 가이드. 'SDK 설계', '클라이언트 패턴', '재시도 전략', '인터셉터', '빌더 패턴', 'SDK 에러 처리', '타입 안전', 'SDK 아키텍처' 등 SDK 구조 설계 시 이 스킬을 사용한다. sdk-developer의 SDK 설계 역량을 강화한다. 단, API 스펙 파싱이나 테스트/문서 작성은 이 스킬의 범위가 아니다.
Its SKILL.md is about 1.5k 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. The licence is Apache-2.0.
Read from SKILL.md and the folder at commit 8e8d35c. 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, python and markdown).
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:
API_KEYFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
SDK Design Patterns loads about 1.5k tokens when it runs. Until then it costs about 70 tokens; SKILL.md has 45 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 revfactory/harness-100 at commit 8e8d35c, republished under its Apache-2.0 licence (© revfactory). 45 words, ~1,547 tokens.
.claude/skills/sdk-design-patterns/SKILL.md (or your agent's skills folder).타입 안전하고 사용하기 쉬운 API 클라이언트 SDK를 설계하는 패턴 카탈로그.
┌─────────────────────────────────────────┐
│ SDK Public API │
│ client.users.list() │
│ client.orders.create({...}) │
├─────────────────────────────────────────┤
│ Resource Clients │
│ UsersClient, OrdersClient, ... │
├─────────────────────────────────────────┤
│ Middleware Chain │
│ Auth → Retry → RateLimit → Logger │
├─────────────────────────────────────────┤
│ HTTP Transport │
│ fetch / axios / httpx │
└─────────────────────────────────────────┘const client = new ApiClient({
baseUrl: 'https://api.example.com',
apiKey: process.env.API_KEY,
timeout: 30000,
retries: 3,
// 선택적 커스텀
fetch: customFetch,
headers: { 'X-Custom': 'value' },
});
// 리소스 접근
const users = await client.users.list({ page: 1, perPage: 20 });
const user = await client.users.get('user_123');
const newUser = await client.users.create({ name: '홍길동', email: 'hong@test.com' });client = ApiClient(
base_url="https://api.example.com",
api_key=os.environ["API_KEY"],
timeout=30.0,
max_retries=3,
)
# Context Manager 지원
async with ApiClient(api_key="...") as client:
users = await client.users.list(page=1, per_page=20)// 인터셉터 인터페이스
interface Interceptor {
beforeRequest(config: RequestConfig): Promise<RequestConfig>;
afterResponse(response: Response): Promise<Response>;
onError(error: Error): Promise<never>;
}
// 인증 인터셉터
class AuthInterceptor implements Interceptor {
async beforeRequest(config) {
config.headers['Authorization'] = `Bearer ${this.token}`;
return config;
}
async onError(error) {
if (error.status === 401 && this.refreshToken) {
await this.refresh();
return this.retry(error.config);
}
throw error;
}
}
// 재시도 인터셉터
class RetryInterceptor implements Interceptor {
async onError(error) {
if (this.shouldRetry(error) && this.attempt < this.maxRetries) {
await this.backoff(this.attempt);
return this.retry(error.config);
}
throw error;
}
}class RetryStrategy {
private maxRetries = 3;
private baseDelay = 1000; // ms
shouldRetry(error: ApiError): boolean {
// 재시도 가능한 에러만
return [408, 429, 500, 502, 503, 504].includes(error.status);
}
getDelay(attempt: number, error: ApiError): number {
// 429: Retry-After 헤더 우선
if (error.status === 429 && error.headers['retry-after']) {
return parseInt(error.headers['retry-after']) * 1000;
}
// 지수 백오프 + 지터
const exponential = this.baseDelay * Math.pow(2, attempt);
const jitter = Math.random() * this.baseDelay;
return Math.min(exponential + jitter, 60000); // 최대 60초
}
}// 리소스 타입 정의
interface User {
id: string;
name: string;
email: string;
createdAt: Date;
}
interface CreateUserRequest {
name: string;
email: string;
}
interface ListUsersParams {
page?: number;
perPage?: number;
sort?: 'name' | 'createdAt';
order?: 'asc' | 'desc';
}
// 제네릭 리소스 클라이언트
class ResourceClient<T, CreateT, UpdateT, ListParams> {
async list(params?: ListParams): Promise<PaginatedResponse<T>> { ... }
async get(id: string): Promise<T> { ... }
async create(data: CreateT): Promise<T> { ... }
async update(id: string, data: UpdateT): Promise<T> { ... }
async delete(id: string): Promise<void> { ... }
}
// 구체적 클라이언트
class UsersClient extends ResourceClient<User, CreateUserRequest, UpdateUserRequest, ListUsersParams> {
// 추가 메서드
async listOrders(userId: string): Promise<Order[]> { ... }
}from pydantic import BaseModel, Field
from datetime import datetime
class User(BaseModel):
id: str
name: str
email: str
created_at: datetime = Field(alias="createdAt")
class Config:
populate_by_name = True
class CreateUserRequest(BaseModel):
name: str
email: str// 자동 페이지 순회
class PaginatedResponse<T> {
data: T[];
hasMore: boolean;
nextCursor?: string;
// 이터레이터 지원
async *[Symbol.asyncIterator](): AsyncIterator<T> {
let response: PaginatedResponse<T> = this;
while (true) {
for (const item of response.data) {
yield item;
}
if (!response.hasMore) break;
response = await this.fetchNext(response.nextCursor);
}
}
}
// 사용법
for await (const user of client.users.list()) {
console.log(user.name); // 모든 페이지를 자동 순회
}
// 특정 페이지만
const page1 = await client.users.list({ perPage: 20 });// 에러 계층 구조
class ApiError extends Error {
status: number;
code: string;
details?: any;
}
class BadRequestError extends ApiError { status = 400; }
class AuthenticationError extends ApiError { status = 401; }
class NotFoundError extends ApiError { status = 404; }
class RateLimitError extends ApiError {
status = 429;
retryAfter: number;
}
class InternalError extends ApiError { status = 500; }
// 사용
try {
const user = await client.users.get('invalid_id');
} catch (e) {
if (e instanceof NotFoundError) {
console.log('사용자를 찾을 수 없습니다');
} else if (e instanceof RateLimitError) {
console.log(`${e.retryAfter}초 후 재시도하세요`);
}
}### 사용성
- [ ] 3줄 이내로 시작 가능 (Quick Start)
- [ ] IDE 자동완성 100% 지원 (타입 완전)
- [ ] 에러 메시지가 해결 방법을 안내
- [ ] 동기/비동기 모두 지원
### 견고성
- [ ] 재시도 + 지수 백오프
- [ ] 토큰 자동 갱신
- [ ] Rate Limit 자동 대기
- [ ] 타임아웃 설정 가능
- [ ] 커스텀 HTTP 클라이언트 주입 가능
### 테스트
- [ ] 모든 공개 API 단위 테스트
- [ ] Mock 서버 통합 테스트
- [ ] 에러 시나리오 테스트
- [ ] 페이지네이션 테스트© revfactory, Apache-2.0. 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 ko/35-api-client-generator/.claude/skills/sdk-design-patterns of revfactory/harness-100.
Open the folder on GitHubat commit 8e8d35c
SDK Design Patterns 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 |
|---|---|---|---|---|---|---|
| SDK Design Patterns this skillrevfactory/harness-100 | 1.3k | — | ~1.5k | Automated safety check: Pass | Apache-2.0 | |
| Vercel Composition Patternssupabase/supabase | 111k | 58 repos | ~726 | Automated safety check: Pass | MIT | |
| Swiftui View RefactorDimillian/Skills | 4k | 5 repos | ~2k | Automated safety check: Pass | MIT | |
| RTK Rust Design Patternsrtk-ai/rtk | 83k | — | ~1.9k | Automated safety check: Pass | Apache-2.0 | |
| Effect Client WrapperUsefulSoftwareCo/executor | 4.1k | 1 repos | ~1.4k | Automated safety check: Pass | MIT | |
| Architecture PatternsKartikLabhshetwar/better-shot | 2.4k | 2 repos | ~1.4k | Automated safety check: Pass | Custom licence |
supabase/supabase
React composition patterns that scale. An agent skill from supabase/supabase.
Dimillian/Skills
Refactor and review SwiftUI view files with strong defaults for small dedicated subviews, MV-over-MVVM data flow, stable view trees, explicit dependency injection, and correct Observation usage.
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.
UsefulSoftwareCo/executor
Pattern for wrapping third-party SDK clients (Stripe, Resend, AWS, etc.) with Effect.
KartikLabhshetwar/better-shot
Deep dive into software architecture for macOS. An agent skill from KartikLabhshetwar/better-shot.
GitTools/GitVersion
Gives repository-specific .NET guidance for GitVersion: build and test commands, central package management, project layout and coding conventions.
revfactory/harness-100
A skill for analyzing website anti-bot defense mechanisms and developing legitimate evasion strategies.
revfactory/harness-100
Reference for designing how an API reports failures: structured error codes, response shapes, client-friendly messages, an error catalog and retry or fallback advice.
revfactory/harness-100
Walks a backend-dev agent through OWASP API Top 10 checks, authentication and authorization patterns, and defense code during API design.
revfactory/harness-100
Methodology for systematically designing and generating CLI tool argument parser structures.
revfactory/harness-100
Audience segmentation skill used by the analyst and curator agents.
revfactory/harness-100
Audio storytelling skill used by the podcast scriptwriter and show note editor.
Categories
SDK/API 클라이언트 설계 패턴: 빌더 패턴, 인터셉터 체인, 재시도 전략, 타입 안전 설계, 에러 핸들링, 페이지네이션 래퍼 가이드. SDK Design Patterns is an agent skill from revfactory/harness-100. SDK/API 클라이언트 설계 패턴: 빌더 패턴, 인터셉터 체인, 재시도 전략, 타입 안전 설계, 에러 핸들링, 페이지네이션 래퍼 가이드.
SDK Design Patterns fits situations like: tasks that involve Design patterns.
Run `npx skills add revfactory/harness-100 --skill sdk-design-patterns -a claude-code`. Or copy the skill folder (ko/35-api-client-generator/.claude/skills/sdk-design-patterns in revfactory/harness-100) into .claude/skills/sdk-design-patterns in your project. Claude Code loads it when a task matches its description.
Run `npx skills add revfactory/harness-100 --skill sdk-design-patterns -a codex`. Or copy the skill folder (ko/35-api-client-generator/.claude/skills/sdk-design-patterns in revfactory/harness-100) into .agents/skills/sdk-design-patterns 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 revfactory/harness-100 --skill sdk-design-patterns -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/sdk-design-patterns, .gemini/skills/sdk-design-patterns, .github/skills/sdk-design-patterns and .opencode/skills/sdk-design-patterns in your project.
Going by SKILL.md and its folder, SDK Design Patterns needs credentials named API_KEY. Our summary lists: Python 3; A credential in API_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.
SDK Design Patterns is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.5k tokens (SKILL.md is roughly 6.2k 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 SDK Design Patterns: Vercel Composition Patterns (supabase/supabase, 111k stars), Swiftui View Refactor (Dimillian/Skills, 4k stars), RTK Rust Design Patterns (rtk-ai/rtk, 83k stars) and Effect Client Wrapper (UsefulSoftwareCo/executor, 4.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
revfactory (a GitHub user) maintains it in revfactory/harness-100, which has 1,295 GitHub stars. The repository holds 464 skills in this directory. The repository was last updated on March 22, 2026.
Source: revfactory/harness-100 on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.