billing-simulator

Simulate Stripe subscription lifecycle events against a local Supabase instance.

1|Updated Jun 10, 2025
One-click install
npx skills add https://github.com/Columbia-Cloudworks-LLC/EquipQR --skill billing-simulator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: billing-simulator
Source: https://github.com/Columbia-Cloudworks-LLC/EquipQR/tree/main/.cursor/skills/billing-simulator
Command: npx skills add https://github.com/Columbia-Cloudworks-LLC/EquipQR --skill billing-simulator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Simulates Stripe subscription lifecycle events against a local Supabase instance and validates the resulting database state, enabling reliable testing of billing webhooks and entitlement updates.

Core Features & Use Cases

  • Local Stripe webhook simulation: trigger events such as checkout.session.completed and customer.subscription.* to exercise Edge Functions and entitlement logic.
  • Database validation: verify user_license_subscriptions, organization_slots, and organization_members reflect changes after events.
  • Developer workflows: use the provided trigger-webhook.sh and validate-entitlements.ts to confirm end-to-end behavior.

Quick Start

Install Stripe and Supabase CLIs, then run the trigger script to simulate an event and validate entitlements.

Frequently Asked Questions about billing-simulator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test Stripe webhooks locally with Supabase?

Stripe subscription lifecycle events are triggered against a local Supabase instance to exercise Edge Functions and validate resulting database state. This confirms that checkout and subscription updates correctly modify user licenses and organization slots.

How do I simulate subscription cancel and pause events for entitlement testing?

To validate entitlement updates after a billing webhook, check the user_license_subscriptions, organization_slots, and organization_members tables in Supabase. The validation script confirms these database records correctly reflect the simulated subscription changes.

Do I need Stripe CLI and Deno to simulate billing webhooks?

Yes, you need Stripe CLI, Supabase CLI, and Deno installed to run the webhook trigger and entitlement validation scripts. These tools provide the local environment necessary to simulate events and verify the Supabase database state.

What's the best way to verify Supabase entitlements after a Stripe checkout?

The trigger-webhook.sh script simulates Stripe events like checkout.session.completed and customer.subscription.* updates. It sends these webhooks to your local Supabase instance to test how your Edge Functions handle subscription lifecycle changes.

Can I test subscription renewals locally without hitting the Stripe API?

The validate-entitlements.ts script checks the Supabase database to ensure user_license_subscriptions, organization_slots, and organization_members accurately reflect the simulated Stripe subscription events. It provides end-to-end verification of your billing webhook logic.