!bash "${CLAUDE_SKILL_DIR}/../../hooks/yaml-helper.sh" resolve_config --keys locale,review_mode,automation
Resolved above — use as-is; --review overrides review_mode for this run.
Team Billing & Subscriptions
Locale & User Profile: Match
locale(pt-BR→ natural Brazilian Portuguese questions/options, overriding English examples;en→ English) anduser_profile(founder→ plain business language with(Recomendado)first, zero tech jargon;developer→ technical). Keep code/tests in English.
Orchestrate the billing engineering team to implement pricing tiers, Stripe Checkout,
webhook listeners, usage-based metering, and self-serve customer billing portals.
Argument check: If no description is provided, output:
"Usage:
/saas-team-billing [billing feature description] [--review full|lean|solo]— Describe the billing feature to build (e.g. Monthly/Annual subscription toggle, Stripe Checkout integration, Webhook synchronization, Customer Portal redirect, Usage limit gates)."
When this skill is invoked with a valid argument, orchestrate the team:
- Pricing Model & Tier Spec:
pricing-economist: Define plan tiers (Starter, Pro, Enterprise), feature entitlement gates, and seat/usage thresholdsbackend-engineer: Database migration forSubscription,Plan,Customer, andInvoicerecords
- Stripe Integration & Webhooks:
backend-engineer:- Create Stripe Checkout sessions (
/api/billing/checkout) - Implement Customer Portal session creation (
/api/billing/portal) - Build idempotent webhook handler with raw signature verification (
customer.subscription.created,customer.subscription.updated,customer.subscription.deleted,invoice.payment_succeeded,invoice.payment_failed)
- Frontend Billing UI:
frontend-engineer:- Responsive pricing table with Monthly / Annual toggle and savings badge
- Current plan status badge in settings, payment method display, invoice history table
- Upgrade prompt modals when users hit plan limits
- Testing with Stripe Mock Webhooks:
qa-manual-tester: Verify successful checkout redirects, subscription state updates via Stripe CLI (stripe trigger invoice.payment_succeeded), expired card handling, and downgrade access revocation.
- Verdict:
- Output: COMPLETE — billing pipeline designed, implemented, and verified with Stripe tests.