bootstrap-credits

Bootstrap a prepaid credit billing system in a Phoenix 1.8 app with Stripe and Oban.

1|Updated May 7, 2026
One-click install
npx skills add https://github.com/agoodway/GoodSkills --skill bootstrap-credits
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bootstrap-credits
Source: https://github.com/agoodway/GoodSkills/tree/main/skills/bootstrap-credits
Command: npx skills add https://github.com/agoodway/GoodSkills --skill bootstrap-credits

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Building a prepaid credit system with Stripe billing, webhooks, async fulfillment, and UI can be complex and error-prone, especially when parts may already exist in the app.

Core Features & Use Cases

  • Credit ledger + balances: Creates per-account balances with optimistic locking and an append-only credit transactions history.
  • Stripe Billing + webhook handling: Adds pack configuration, PaymentIntent creation, webhook signature verification, and idempotent fulfillment.
  • Phoenix UX end-to-end: Generates LiveView purchase and history pages plus a Stripe.js hook for Payment Element mounting.

Use it when you want to add a prepaid credit system (pack purchase, balance + transaction history, and optional usage tracking) to a Phoenix 1.8 multi-tenant app without duplicating existing components.

Quick Start

Tell the AI to run the bootstrap credits workflow for your Phoenix app by mounting the endpoint at /dashboard/credits and enabling Stripe pack purchases.

Frequently Asked Questions about bootstrap-credits

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

FAQPage Schema
How do I implement a prepaid credit billing system with Stripe in a Phoenix LiveView app?

To implement a prepaid credit billing system in Phoenix, this Skill bootstraps Stripe-backed pack purchases, webhook-driven fulfillment, and LiveView purchase/history pages. It generates per-account balances with optimistic locking and an append-only transaction history for multi-tenant apps.

How do I handle Stripe webhooks for credit fulfillment in Phoenix without duplicating existing components?

Handling Stripe webhooks for credit fulfillment requires signature verification and idempotent processing. This Skill discovers existing migrations and schemas, then generates missing components and configures Oban for secure, async webhook-driven fulfillment in your Phoenix app.

What's the best way to track account balances and transaction history for a multi-tenant Phoenix app?

Tracking account balances and transaction history in a multi-tenant Phoenix app is done via an append-only credit ledger with optimistic locking. This Skill generates immutable transaction records and optional usage event tracking to ensure data integrity across accounts.

Do I need Oban to process Stripe billing webhooks in a Phoenix 1.8 application?

Yes, Oban is required for async webhook processing and fulfillment in this Phoenix 1.8 setup. The Skill configures Oban alongside Stripe to handle background job processing for credit pack purchases and idempotent webhook event handling.

Can I use existing Phoenix migrations and schemas when adding a Stripe credit pack system?

Yes, you can use existing migrations and schemas when adding a Stripe credit pack system. The Skill requires discovery of existing modules and schemas, generating only the missing components to avoid duplication in your multi-tenant billing setup.

Does Stripe billing for Phoenix credits support usage tracking and LiveView purchase pages?

Stripe billing for Phoenix credits supports optional usage event tracking alongside user-facing LiveView purchase and history pages. The Skill generates a Stripe.js hook for Payment Element mounting to deliver a complete end-to-end Phoenix UX.