Communitygithub.com

YepAPI/skills

Multi-vendor architecture, Stripe Connect onboarding, commission fees, escrow payments, seller dashboards, and reviews.

What is skills?

skills is a Claude Code agent skill that multi-vendor architecture, Stripe Connect onboarding, commission fees, escrow payments, seller dashboards, and reviews.

Works with~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/YepAPI/skills/tree/HEAD/skills/marketplace

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

Marketplace

Rules

  • Multi-vendor data model: User has one Seller profile — products belong to sellers, orders link buyer + seller
  • Stripe Connect for payouts: onboard sellers with Connect Express — handles KYC, tax forms, bank accounts
  • Commission: calculate platform fee as percentage — use application_fee_amount on PaymentIntents or Checkout Sessions
  • Escrow flow: capture payment on purchase, hold funds, transfer to seller on delivery confirmation or after dispute window
  • Seller dashboard: separate layout with sales analytics, order management, product CRUD, payout history
  • Buyer/seller reviews: one review per order, both directions — aggregate ratings with weighted average
  • Search with seller filtering: include seller name, rating, location in search facets
  • Seller onboarding: multi-step flow — business info → Stripe Connect → product listing → go live

Patterns

// Stripe Connect: create connected account for seller
const account = await stripe.accounts.create({
  type: "express",
  email: seller.email,
  metadata: { sellerId: seller.id },
});

// Create onboarding link
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",
});

// Checkout with platform fee
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% platform fee
    transfer_data: { destination: seller.stripeAccountId },
  },
  mode: "payment",
  success_url: `${baseUrl}/orders/{CHECKOUT_SESSION_ID}`,
  cancel_url: `${baseUrl}/cart`,
});

// Data model sketch
// 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)

Avoid

  • Direct transfers without escrow — hold funds until delivery confirmed or dispute window passes
  • Single Stripe account for all sellers — each seller needs their own Connect account for compliance
  • Letting sellers set payout schedules — use platform-controlled payouts for fraud protection
  • Missing seller verification — require Stripe Connect onboarding completion before going live
  • Platform handling tax for sellers — Stripe Connect Express handles seller tax reporting

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.

Related Skills