credits-handler
Build Credit Purchase and Balance Flows
Credit features can fail when pricing, balances, and UI flows become inconsistent. This skill guides credit types, purchase flows, balance displays, and allocation helpers.
Install with my Agent
Copy this request to your Agent. It includes the canonical Skill page and manifest.
Review the Skillstore skill "credits-handler" from https://skillstore.io/skills/aayushbaniya2006-credits-handler.md and its manifest at https://skillstore.io/api/skills/aayushbaniya2006-credits-handler/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.Your Agent should still show its plan and request any confirmation required by the security policy.
Agent-readable resources
Use these links when an AI agent, crawler, or script needs clean context instead of reading the full page.
Test it
Using "credits-handler". I need to add credits for video generation.
Expected outcome:
- Add the video credit type to the shared credit type list.
- Create pricing metadata with currency, minimum amount, and slabs.
- Add optional plan allocation rules if subscriptions should include credits.
- Update purchase and balance UI to display the new credit type.
Using "credits-handler". I need a page where users buy image credits.
Expected outcome:
The skill would point to the project purchase hook, explain package sizing, show price loading states, and route users into checkout.
Using "credits-handler". I want to deduct credits before a premium action.
Expected outcome:
- Check the user balance before starting the paid action.
- Stop the action when the balance is too low.
- Use shared backend helpers for any balance change.
Security Audit
SafeAll static findings are false positives caused by Markdown inline code, code fences, and TypeScript or TSX examples. The scanned files show documentation for credit-system integration, with no shell execution, prompt injection, or data exfiltration intent.
Risk Factors
โ๏ธ External commands (32)
Share & cite this report
Share the versioned assessment report, neutral badge, embed card, and citations. Skillstore reports evidence without deciding whether this Skill is safe.
Copy report link
https://skillstore.io/skills/aayushbaniya2006-credits-handler/audits/8?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown badge
[](https://skillstore.io/skills/aayushbaniya2006-credits-handler?utm_source=security_passport_badge)HTML badge
<a href="https://skillstore.io/skills/aayushbaniya2006-credits-handler?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/aayushbaniya2006-credits-handler/security.svg" alt="Skillstore security assessment" loading="lazy"></a>Embed card
<iframe src="https://skillstore.io/embed/skills/aayushbaniya2006-credits-handler.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>Academic citations (APA ยท BibTeX ยท CFF)
APA citation
AayushBaniya2006. (2026). credits-handler security audit report (audit version 8) [Author version unspecified]. Skillstore. https://skillstore.io/skills/aayushbaniya2006-credits-handler/audits/8BibTeX citation
@techreport{aayushbaniya2006-aayushbaniya2006-credits-handler-2026,
author = {AayushBaniya2006},
title = {credits-handler security audit report (audit version 8)},
institution = {Skillstore},
year = {2026},
number = {8},
url = {https://skillstore.io/skills/aayushbaniya2006-credits-handler/audits/8},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "credits-handler security audit report (audit version 8)"
version: "unspecified"
type: report
authors:
- name: "AayushBaniya2006"
date-released: "2026-07-06"
url: "https://skillstore.io/skills/aayushbaniya2006-credits-handler/audits/8"
identifiers:
- type: other
value: "skillstore:aayushbaniya2006-credits-handler:audit:8"
description: "Skillstore immutable audit report identifier"
Skillstore Score
Why this score Evidence Confidence: HighWhat You Can Build
Add a Paid Credit Type
Define a new credit type with pricing metadata and optional plan allocation rules.
Create Credit Purchase UI
Build a purchase card that displays calculated prices and starts the checkout flow.
Wire Backend Credit Checks
Use shared helpers to allocate credits, prevent duplicate additions, and check balances before paid actions.
Try These Prompts
Use the credits-handler skill to explain where credit types, pricing, and plan allocation settings live in this project.
Use the credits-handler skill to guide adding a new credit type for [feature] with pricing slabs and a minimum purchase amount.
Use the credits-handler skill to design a credit purchase card for [credit type] that calculates price and starts checkout.
Use the credits-handler skill to review my credit purchase, allocation, balance display, and deduction flow for missing integration steps.
Best Practices
- Keep credit types, pricing, and allocation settings in the shared configuration.
- Use idempotent payment or transaction identifiers when adding credits.
- Check balances before paid actions and refresh displayed balances after changes.
Avoid
- Do not edit cached user balances directly.
- Do not create purchase buttons that bypass the shared price calculation hook.
- Do not add credits without a unique payment or transaction reference.
Frequently Asked Questions
Can this skill create a full billing system?
Can it help add a new credit type?
Can it build a purchase interface?
Does it show user balances?
Does it handle authorization?
Can I use it with Codex and Claude Code?
Developer Details
Author
AayushBaniya2006License
MIT
Skillstore revision
r1
Version notice
The author did not declare a version.
Ref
c1fdca50ff516318f65fed0d7f9e82797c5171dc
Maintenance freshness
7/18/2026
Usage
8 downloads ยท 280 views
File structure
๐ reference.md
๐ SKILL.md