credit-system

Manage subscription and purchased credit pools with atomic transactions and audit trails.

Updated Nov 21, 2025
One-click install
npx skills add https://github.com/ColdstartLabs-ca/myimageupscaler.com --skill credit-system
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: credit-system
Source: https://github.com/ColdstartLabs-ca/myimageupscaler.com/tree/main/.claude/skills/credit-system
Command: npx skills add https://github.com/ColdstartLabs-ca/myimageupscaler.com --skill credit-system

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This system manages two separate credit pools: subscription credits with rollover and caps, and permanent purchased credits, enabling precise billing and fault-tolerant operations.

Core Features & Use Cases

  • Two-tier credit pools: Subscription credits with rollover caps and permanent purchased credits.
  • Atomic transactions: All credit movements are performed atomically to prevent race conditions.
  • Deductions, refunds, and audits: Supports subscription-first deductions, refunds back to original pools, and detailed audit trails.

Quick Start

Deploy the credit system in your billing workflow and begin processing deductions and renewals immediately.

Frequently Asked Questions about credit-system

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

FAQPage Schema
How do I manage subscription credits with rollover caps and permanent purchased credits in one system?

A two-tier credit system manages subscription credits with rollover caps and permanent purchased credits separately to ensure accurate, fault-tolerant billing across multi-step workflows. It isolates each pool to apply distinct expiration and rollover rules.

What is the best way to prevent race conditions during concurrent billing transactions?

Atomic transactions with row-level locking prevent race conditions during concurrent billing. This guarantees that all credit movements are processed safely without overselling or data corruption when multiple processes attempt deductions simultaneously.

How do I process refunds back to their original credit pools without breaking audit trails?

Refunds are automatically routed back to their original credit pools, whether subscription or purchased. Every deduction and refund movement is recorded in a detailed audit trail, ensuring full traceability and accurate balance reconciliation.

Does this credit system support subscription-first deductions for multi-step billing workflows?

Yes, the credit system supports subscription-first deductions across multi-step billing workflows. It prioritizes drawing from monthly subscription credits before tapping into permanent purchased credits to maximize user value.

When do I need atomic credit management with audit trails for my billing system?

You need atomic credit management with audit trails when your billing system requires precise tracking of subscription and purchased credits. It is essential for preventing double-spending and ensuring compliance during high-volume financial operations.