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

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

YepAPI/skills

Tool-use patterns, multi-step reasoning, agent orchestration, and structured outputs.

YepAPI/skills

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

YepAPI/skills

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

YepAPI/skills

Web analytics integration — event tracking, custom dashboards, privacy-first.

YepAPI/skills

Framer Motion — transitions, scroll animations, layout animations.

YepAPI/skills

OpenAPI 3.1 from Zod schemas, interactive docs with Swagger/Scalar, versioning, and example requests for every endpoint.

YepAPI/skills

Authentication security — bcrypt/argon2 hashing, brute force protection, secure password resets.

YepAPI/skills

Session auth, social providers, CSRF protection, and secure cookie patterns.

YepAPI/skills

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

YepAPI/skills

Link building research and backlink audit using YepAPI.

YepAPI/skills

MDX blog setup, RSS feed generation, sitemap.xml, structured data/JSON-LD, and related posts.

YepAPI/skills

Redis caching, CDN cache headers, stale-while-revalidate, cache invalidation, React Query.

YepAPI/skills

Recharts/Chart.js data visualization — bar, line, area, pie charts.

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

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

YepAPI/skills

Competitive analysis between domains using YepAPI.

YepAPI/skills

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

Related Skills