templates/analytics/.builder/skills/stripe/SKILL.md
How to connect to and query the Stripe API for analytics data.
npx skillsauth add BuilderIO/agent-native stripeInstall 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.
https://api.stripe.comSTRIPE_SECRET_KEY env varserver/lib/stripe.tsserver/routes/stripe.tsapp/pages/adhoc/stripe/ (tool page, not metrics dashboard)STRIPE_SECRET_KEY — set via DevServerControl set_env_variable, never in .env| Route | Method | Params | Description |
| ---------------------------- | ------ | ----------------------------- | ------------------------------------- |
| /api/stripe/billing | GET | email, months (default 6) | Invoices for a customer in timeframe |
| /api/stripe/payment-status | GET | email | Recent charges + payment intents |
| /api/stripe/refunds | GET | email | Refunds associated with customer |
| /api/stripe/subscriptions | GET | email | All subscriptions (active + inactive) |
All routes resolve email → Stripe customer ID(s) internally.
getCustomersByEmail(email) — lookup customers by emailgetInvoices(customerId, months?) — invoices, optionally filtered by timeframegetCharges(customerId, limit?) — recent chargesgetPaymentIntents(customerId, limit?) — recent payment intentsgetSubscriptions(customerId) — all subscriptions (status=all)getRefunds(customerId) — refunds via charge lookup/v1/refunds does NOT support customer filter. The lib works around this by fetching customer charges first, then fetching refunds for refunded charges.expand parameter is used for invoices (line items) and subscriptions (price details).useStripeBilling(email, months, enabled)useStripePaymentStatus(email, enabled)useStripeRefunds(email, enabled)useStripeSubscriptions(email, enabled)All hooks use enabled flag — data is only fetched when a button is clicked.
The Stripe page is a tool (not a dashboard). It has:
tools
Public booking flow — the state machine, animations, and URL/app-state sync.
tools
Trigger-based automations — reminders, follow-ups, webhooks — across the booking lifecycle.
tools
Team event types, round-robin assignment, collective bookings, host weights, and no-show calibration.
development
The pure `computeAvailableSlots` function — inputs, outputs, invariants, and debugging guide.