Communitygithub.com

YepAPI/skills

실험 설정, 변형 분할, 통계적 유의성 및 기능 플래그 통합을 위한 스킬입니다.

skills란 무엇인가요?

이 스킬은 A/B 테스트 실험을 설정하고 관리하기 위한 포괄적인 규칙과 지침을 제공합니다. 개발자와 AI 에이전트 사용자가 실험의 무결성을 유지하며 신뢰할 수 있는 결과를 얻을 수 있도록 돕습니다. 해시 기반 할당, 서버 측 트래픽 분할, 통계적 유의성 검증(z-test), 최소 표본 크기 계산 등의 핵심 원칙을 다룹니다. Claude Code, Cursor, Codex 등 다양한 AI 에이전트 플랫폼에서 활용할 수 있으며, 실험 중간에 매개변수를 변경하거나 결과를 조기 확인하는 등의 일반적인 실수를 방지하는 '주의사항'도 포함하고 있습니다. 기능 플래그와 로깅을 강조하여 실험 데이터를 체계적으로 관리하고, 이후 기능 플래그를 정리하는 방법까지 안내합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/YepAPI/skills/tree/HEAD/skills/ab-testing

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

A/B 테스트

규칙

  • 해시 기반 할당: hash(userId + experimentId) % 100을 사용한 결정적 변형 선택 — 세션 간 무작위성 변동 없음
  • 변형 구성: 실험을 { id, name, variants: [{ id, weight }], status } 형태의 구성 객체에 저장 — 변형을 하드코딩하지 않음
  • 서버 측 트래픽 분할: 미들웨어나 API 경로에서 할당하고, 일관성을 위해 쿠키 설정 — 클라이언트 측 분할은 깜빡임 유발
  • 통계적 유의성: 승자를 선언하기 전에 95% 신뢰도(p < 0.05) 필요 — 비율에는 z-검정 사용
  • 표본 크기: 시작 전에 최소 표본 크기 계산 — n = (Z^2 * p * (1-p)) / E^2 (E는 최소 감지 효과)
  • 실험당 하나의 지표: 사전에 주요 지표(전환율, 클릭률, 수익) 정의 — 보조 지표는 탐색적 용도로만 사용
  • 상호 배제: 한 실험의 사용자가 충돌하는 실험과 겹치지 않도록 함 — 실험 레이어 사용
  • 기능 플래그: 실험 코드를 기능 플래그 검사로 감싸기 — 실험 종료 후 실패한 변형 정리
  • 기간: 최소 1-2 전체 비즈니스 주기(7-14일) 동안 실행하여 요일 효과 고려
  • 로깅: 모든 노출 및 전환 이벤트에 대해 experiment_id, variant_id, user_id, timestamp 추적

주의사항

  • 표본 크기에 도달하기 전에 결과를 엿보지 않음 — 거짓 양성 비율 증가
  • 실험 중간에 매개변수를 변경하지 않음 — 통계 분석 무효화
  • 한 번에 너무 많은 변형을 테스트하지 않음 — 필요한 표본 크기가 기하급수적으로 증가
  • 쿠키 없이 클라이언트 측 변형 할당을 하지 않음 — 깜빡임과 불일치 경험 유발

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

YepAPI/skills

WCAG 2.1 AA — semantic HTML, keyboard navigation, screen readers.

YepAPI/skills

CRUD generators, data tables, user management, role-based access, and bulk operations.

YepAPI/skills

Monitor what ChatGPT and Gemini say about your brand using YepAPI.

YepAPI/skills

Queue workers with BullMQ/Inngest/Trigger.dev, job retries, dead letter queues, concurrency.

YepAPI/skills

Commander.js, interactive prompts with Clack, spinners, colors, config files, exit codes, and npm publishing.

YepAPI/skills

cmdk integration, Cmd+K trigger, fuzzy search, grouped actions, keyboard navigation, and dynamic action registration.

YepAPI/skills

Content planning with trend and sentiment data from YepAPI.

YepAPI/skills

Content calendar, keyword-driven planning, and content briefs.

YepAPI/skills

Theme switching with CSS variables, system preference detection, next-themes, and persistence.

YepAPI/skills

Threaded comments, @mentions, reactions, moderation queue, optimistic UI, and cursor pagination.

YepAPI/skills

Competitive analysis between domains using YepAPI.

YepAPI/skills

Layout grids, KPI cards, data tables with sorting/filtering, sidebar navigation, and responsive breakpoints.

YepAPI/skills

Data encryption — TLS everywhere, AES-256-GCM for PII, bcrypt passwords, encrypted backups.

YepAPI/skills

Chart patterns with Recharts/Nivo/D3, responsive containers, color scales, and accessibility.

YepAPI/skills

Drizzle schema definition, push vs migrate, type-safe queries, relations, transactions, and prepared statements.

YepAPI/skills

Upload handling, resize/compress, CDN delivery, blur placeholders, and next/image patterns.

YepAPI/skills

Local business and Google Maps research using YepAPI.

YepAPI/skills

Cursor-based pagination, IntersectionObserver, virtualized lists with @tanstack/react-virtual, and scroll position restoration.

YepAPI/skills

Tenant isolation (row-level vs schema), subdomain routing, per-tenant config, and data partitioning.

YepAPI/skills

Chat UI components, streaming responses with AI SDK, context window management, and RAG patterns.

관련 스킬