Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add fcsouza/agent-skills --skill stripe-game-paymentsgit clone --depth 1 https://github.com/fcsouza/agent-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/fcsouza/agent-skills/stripe-game-payments)<a href="https://agentmods.dev/skills/fcsouza/agent-skills/stripe-game-payments"><img src="https://agentmods.dev/badge/skills/fcsouza/agent-skills/stripe-game-payments/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/fcsouza/agent-skills/stripe-game-payments"><img src="https://agentmods.dev/badge/skills/fcsouza/agent-skills/stripe-game-payments.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00069 | $0.01622 |
| Opus 5.5 | $0.00028 | $0.00649 |
| Sonnet 5.5 | $0.00014 | $0.00324 |
| Haiku 4.5 | $0.00007 | $0.00162 |
Grade A, and why
stripe-game-payments scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 19d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 69 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Stripe Game Payments
For client setup, Checkout Sessions and the API itself, use the stripe-docs skill if it is installed, otherwise https://docs.stripe.com. This skill covers the game side: what to sell, when to grant, when to take back.
Decisions
- All payment logic runs on the server. The client never sends a price, a quantity or an entitlement.
- Sell premium currency, then let players spend it on items. Prices can change without new Stripe products.
- Grant only from webhooks. The player may never load the success page.
- Grant inside the same database transaction that records the Stripe event id. A crash then leaves neither, and Stripe retries.
- A subscription period is granted once per invoice. Stripe's guide provisions on
checkout.session.completedand again on eachinvoice.paid; both can name the first invoice, so the grant is unique on invoice id. - A full refund or a dispute revokes what a one-time purchase granted, down to a zero balance at most; a player who already spent the currency goes to a human with the shortfall. A partial refund, or a refund or dispute on a subscription payment, goes to a human: grants of subscription periods are keyed by invoice, not by payment intent.
Steps
bun add stripe. Do not passapiVersion: the SDK uses the version it was released with.- Define the catalog in
templates/product-catalog.ts. Each productidis what Checkout metadata carries. - Create Checkout Sessions on the server (vendor docs). Set
metadata: { playerId, productId }for one-time purchases andsubscription_data: { metadata: { playerId } }for subscriptions. Pass an idempotency key on the create call so a retried request does not create a second session. - Add the
processed_eventstable from thepostgres-game-schemaskill: event id as primary key, akind(stripe_event) andcreated_at. It is the idempotency table this skill andbullmq-game-queuesshare. Purchases need their own unique keys on your purchase and subscription-period tables: checkout session id for one-time grants, invoice id for subscription periods. That skill has no purchase tables; add them following its conventions. - Wire the webhook endpoint with
boilerplate/webhooks.ts. Implement itsPaymentStoreandPaymentTxagainst those tables, then callhandleStripeWebhook(rawBody, signatureHeader, { stripe, webhookSecret, store })from your route and return itsResponse. - Keep
grantCurrencyshort: write the purchase row and enqueue reward delivery with thebullmq-game-queuesskill. Stripe wants a 2xx response before slow work. - Design the payment audit log from
templates/webhook-events.ts. It holds the audit row type; log every handled event with player, product, amount and status. - Subscribe the endpoint to the events in
HANDLED_EVENT_TYPES(webhooks.ts):checkout.session.completed,checkout.session.async_payment_succeeded,checkout.session.async_payment_failed,invoice.paid,customer.subscription.updated,customer.subscription.deleted,charge.refunded,charge.dispute.created.
What ships with it
4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 19d ago Changed · -76 lines · +21 tokens per session 466b61652490
- 3mo ago First seen · 145 lines · 48 tokens per session scan A 015dc2d2874b
stripe-game-payments is a skill published in the GitHub repository fcsouza/agent-skills (29 stars, last pushed today), licensed MIT. It adds 69 tokens to every session and 1,622 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
stripe-game-payments compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| stripe-game-paymentsfcsouza/agent-skills | Skill | 29 | today | MIT | A | 69 | Claude Code |
| scenario-roblox-monetizationscenario-labs/skills | Skill | 4.7k | yesterday | MIT | A | 125 | Claude Code |
| roblox-monetizationTabooHarmony/roblox-brain | Skill | 239 | yesterday | MIT | A | 31 | Claude Code |
| hz-store-submitmeta-quest/agentic-tools | Skill | 308 | 2mo ago | Apache-2.0 | A | 73 | Claude Code |
| implement-in-app-purchasesUnity-Technologies/skills | Skill | 1.4k | today | none | A | 71 | Claude Code, Codex |
| roblox-gamepassesnonlooped/roblox-suite | Skill | 41 | 7d ago | MIT | A | 40 | Claude Code, Codex |
| shop-setupxsolla/xsolla-ai-kit | Skill | 10 | 2d ago | MIT | A | 99 | Claude Code, Cursor |