What problem does it solve?
Working on Polar's billing codebase requires understanding a complex web of entities, services, background tasks, and Stripe webhooks; this Skill provides a complete reference so you can navigate and modify the billing system without reverse-engineering it from scratch.
Core Features & Use Cases
- Entity & Relationship Reference: Documents Checkout, Order, Subscription, Transaction, Payment, Refund, Customer, and Product models with their fields and relationships.
- Flow Documentation: Maps subscription creation, renewal cycles, cancellation, trials, proration, dunning retries, and payout flows end to end.
- Stripe Integration Guide: Lists webhook endpoints, event handlers, and the async Dramatiq task processing pipeline.
- Use Case: When debugging why a subscription failed to renew, consult the dunning section to trace order.process_dunning tasks, Payment decline reasons, and next_payment_attempt_at scheduling.
Quick Start
Ask the AI to explain how Polar handles subscription proration when a customer upgrades their plan mid-cycle.