skills/lovable-checkout/SKILL.md
Load when someone is adding SolvaPay to a Lovable app or Vite+Supabase project — especially when they want to install @solvapay/react-supabase @preview packages, paste checkout code into Lovable chat, wire Supabase edge function secrets, or use api-dev.solvapay.com. Also triggers for: keeping SOLVAPAY_SECRET_KEY out of VITE_ env vars, setting up SolvaPayProvider, or getting a paywall running on Lovable fast. This skill handles the full setup: @preview package install, edge function templates, provider wiring, and sandbox testing. Skip for Next.js projects, production solvapay.com deployments, MCP server setup, or general "which SolvaPay product" questions.
npx skillsauth add solvapay/skills lovable-checkoutInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Paste-in SolvaPay hosted checkout for Lovable (Vite + shadcn/ui + Supabase Edge). Designed to paste reference content into Lovable chat on turn zero.
SOLVAPAY_SECRET_KEY in .env, VITE_*, or browser-reachable files — Supabase edge secrets only.fetch to SolvaPay API — all backend calls through edge functions.@solvapay/react@preview and @solvapay/react-supabase@preview — never pin exact preview versions.SOLVAPAY_API_BASE_URL=https://api-dev.solvapay.com as edge secret.Full guardrails for paste-in: references/01-edge-and-secrets.md.
.env or VITE_* breaks security — edge secrets only (details: 01-edge-and-secrets.md).@preview tag only.02-provider-and-routes.md).@solvapay/react/styles.css must import after ./index.css (details: 03-troubleshooting-and-sandbox.md).requireProduct name must match Console product name exactly (details: 03-troubleshooting-and-sandbox.md).solvapay/sdk-integration or solvapay/create-mcp-app.Read in order before generating code:
Load references/REFERENCE.md when adding billing UI beyond CheckoutLayout or when Stripe/CSP issues persist.
Paste-in tip: concatenate all three reference files into Lovable chat for turn-zero bias.
@preview packages via Deno one-liners in 01-edge-and-secrets.md.SolvaPayProvider + routes per 02-provider-and-routes.md.01-edge-and-secrets.md.node scripts/check-import-map.mjs; confirm no secret in VITE_* / .env.03-troubleshooting-and-sandbox.md → fix → repeat until pass.## Lovable checkout handoff
- **Edge functions:** [names]
- **Secrets set:** [list names, no values]
- **Routes:** [checkout / portal / gate]
- **Sandbox:** [redirect + return URL outcome]
- **Preview pin:** @preview (not production)
| Script | Action | Purpose |
| --- | --- | --- |
| scripts/check-import-map.mjs | Run | Validate Deno import map for @preview packages |
tools
Use when building a checkout or upgrade flow on an existing website: user clicks subscribe or upgrade → server creates a SolvaPay session → browser redirects to SolvaPay's hosted payment page → returns to your site with access unlocked. Also use for adding a customer portal so subscribers can manage, upgrade, or cancel their plan after checkout. Covers Next.js fully; React without a server framework is partial. Skip for: embedding plan cards or billing dashboards, webhook processing, usage metering, Lovable or Vite+Supabase setups, or MCP tool paywalls.
tools
Load when SolvaPay functionality needs to be coded into an app. Handles: billing UI (buttons, plan status, React components) in React dashboards, web apps, or MCP server UIs; paywalls, access gates, or usage limits on routes or handlers; SolvaPay fetch handler or webhook setup; SDK integration across Next.js, React, Express, Supabase edge functions, and MCP servers. Skip for greenfield MCP scaffolding, Lovable checkout, or redirect-only checkout with no SDK code.
tools
Use when the user is building a brand-new paid MCP server from zero — no existing server in play. The two entry points: (1) the user has an OpenAPI or Swagger spec they want converted into monetized MCP tools, or (2) they want to write the tools by hand on a fresh SolvaPay-wired scaffold. Also use for the `npm create solvapay` CLI command with `--type mcp`. This skill covers the full greenfield journey: spec parsing, tool authoring, Cloudflare Workers deployment, and SolvaPay paywall setup on a new codebase. Skip when the user already has a running MCP server and wants to add a paywall without rebuilding — use the existing-server skill. Skip for web checkout pages, Lovable flows, and SDK-only integrations.
tools
Use when work should span one or more detached tasks but still behave like one job with a single owner context. TaskFlow is the durable flow substrate under authoring layers like Lobster, ACPX, plugins, or plain code. Keep conditional logic in the caller; use TaskFlow for flow identity, child-task linkage, waiting state, revision-checked mutations, and user-facing emergence.