Skill

add-usage-credits

Build prepaid usage credits for metered features such as AI generations, LLM calls, API calls or exports. Credits are granted from verified purchases and plan renewals, spent per unit of work at a server-side price, and reserved, committed and released for work whose cost is known only afterwards, with expiry and a balance the user can read. Covers AI credits priced from LLM token usage (input, cached, output and reasoning tokens) with a versioned price table, streamed responses from OpenAI, Anthropic and Google Gemini, and budgets for multi-step agent runs, with patterns for Next.js with Prisma, Express, Django, Laravel and Rails. Use when the user asks to add credits, tokens or a usage quota, sell AI credits, charge per generation, per LLM token or per API call, meter AI or agent usage, stop users from running work with an empty balance, or fix credits that are charged twice or not returned when a job or stream fails.

Bundled with Revenue Skills. Its trust score, security findings and other files are on the plugin page.

SKILL.md

Path
skills/add-usage-credits/SKILL.md
Size
15 KB
SHA-256
830449e649646e68592cca1ea0818e75c50d5d9270c56ff998e52b81b4ba5fc2

Install

Install the plugin's skills with the Skills CLI:

npx [email protected] add moonetix/revenue-skills