Communitygithub.com

YepAPI/스킬

다중 판매자 아키텍처, Stripe Connect 온보딩, 수수료, 에스크로 결제, 판매자 대시보드 및 리뷰 기능을 제공합니다.

스킬란 무엇인가요?

이 스킬은 마켓플레이스 애플리케이션 구축에 필요한 완전한 백엔드 기능을 제공합니다. 다중 판매자 데이터 모델을 기반으로 하여, 각 판매자가 자신의 상품을 관리하고 주문을 처리할 수 있도록 설계되었습니다. Stripe Connect Express를 통해 판매자 온보딩, KYC, 세금 신고, 정산을 자동화하며, 플랫폼 수수료를 계산하고 에스크로 방식으로 결제를 보호합니다. 판매자 전용 대시보드에서는 매출 분석, 주문 관리, 상품 CRUD, 정산 내역을 제공하고, 구매자와 판매자 간 양방향 리뷰 시스템과 평점 집계를 지원합니다. Claude Code, Cursor 등 다양한 AI 에이전트와 함께 사용할 수 있으며, 마켓플레이스의 핵심 비즈니스 로직을 손쉽게 구현할 수 있도록 돕습니다.

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

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

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

문서

마켓플레이스

규칙

  • 다중 판매자 데이터 모델: User는 하나의 Seller 프로필을 가짐 — 상품은 판매자에 속하며, 주문은 구매자와 판매자를 연결함
  • Stripe Connect 정산: Connect Express로 판매자 온보딩 — KYC, 세금 양식, 은행 계좌를 처리함
  • 수수료: 플랫폼 수수료를 백분율로 계산 — PaymentIntent 또는 Checkout Session에 application_fee_amount 사용
  • 에스크로 흐름: 구매 시 결제 캡처, 자금 보관, 배송 확인 또는 분쟁 기간 종료 후 판매자에게 이체
  • 판매자 대시보드: 매출 분석, 주문 관리, 상품 CRUD, 정산 내역을 포함한 별도 레이아웃
  • 구매자/판매자 리뷰: 주문당 하나의 리뷰, 양방향 — 가중 평균으로 평점 집계
  • 판매자 필터링이 포함된 검색: 검색 패싯에 판매자 이름, 평점, 위치 포함
  • 판매자 온보딩: 다단계 흐름 — 사업 정보 → Stripe Connect → 상품 등록 → 라이브 전환

패턴

// Stripe Connect: 판매자 연결 계정 생성
const account = await stripe.accounts.create({
  type: "express",
  email: seller.email,
  metadata: { sellerId: seller.id },
});

// 온보딩 링크 생성
const accountLink = await stripe.accountLinks.create({
  account: account.id,
  refresh_url: `${baseUrl}/seller/onboarding?refresh=true`,
  return_url: `${baseUrl}/seller/onboarding/complete`,
  type: "account_onboarding",
});

// 플랫폼 수수료가 포함된 체크아웃
const session = await stripe.checkout.sessions.create({
  line_items: [{ price: priceId, quantity: 1 }],
  payment_intent_data: {
    application_fee_amount: Math.round(price * 0.10), // 10% 플랫폼 수수료
    transfer_data: { destination: seller.stripeAccountId },
  },
  mode: "payment",
  success_url: `${baseUrl}/orders/{CHECKOUT_SESSION_ID}`,
  cancel_url: `${baseUrl}/cart`,
});

// 데이터 모델 스케치
// sellers: id, userId, stripeAccountId, businessName, rating, status (pending|active|suspended)
// products: id, sellerId, title, price, inventory, status
// orders: id, buyerId, sellerId, status (pending|paid|shipped|delivered|disputed)
// reviews: id, orderId, reviewerId, rating, comment, type (buyer_to_seller|seller_to_buyer)

피해야 할 점

  • 에스크로 없이 직접 이체 — 배송 확인 또는 분쟁 기간이 지날 때까지 자금 보류
  • 모든 판매자에게 단일 Stripe 계정 사용 — 규정 준수를 위해 각 판매자는 자체 Connect 계정 필요
  • 판매자가 정산 일정을 설정하도록 허용 — 사기 방지를 위해 플랫폼이 정산을 제어
  • 판매자 확인 누락 — 라이브 전환 전에 Stripe Connect 온보딩 완료 필수
  • 플랫폼이 판매자를 대신해 세금 처리 — Stripe Connect Express가 판매자 세금 보고를 처리함

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

Experiment setup, variant splitting, statistical significance, and feature flag integration.

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

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

관련 스킬