stripe-payments

stripe-payments is a skill for Claude Code, Codex from monkilabs/opencastle. It costs 53 tokens per session (649 once invoked), scanned A, original, MIT.

A set of implementation rules for adding Stripe payments, subscriptions, billing, and marketplace payouts to an application. Stripe is a payment service that provides hosted checkout and APIs for charging customers and managing money movement.

In plain words
What is it for?
Use it when building or reviewing one-time payments, subscriptions, saved payment methods, Stripe-hosted checkout, or platforms that pay out money to other sellers.
Why use it?
It helps developers choose the appropriate Stripe payment flow and avoid deprecated APIs, unsafe key handling, and incompatible marketplace charge models. It also specifies current integration choices and webhook-signature checks.

Skill for Claude CodeCodex

Install

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.

agentmods
npx agentmods add skills/monkilabs/opencastle/stripe
Any agent
npx skills add monkilabs/opencastle --skill stripe
Clone the repo
git clone --depth 1 https://github.com/monkilabs/opencastle

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for stripe-payments

README.md
[![agentmods](https://agentmods.dev/badge/skills/monkilabs/opencastle/stripe.svg)](https://agentmods.dev/skills/monkilabs/opencastle/stripe)
Your own site
<a href="https://agentmods.dev/skills/monkilabs/opencastle/stripe"><img src="https://agentmods.dev/badge/skills/monkilabs/opencastle/stripe.svg" alt="Measured on agentmods" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 649 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00053 $0.00649
Opus 5 $0.00026 $0.00324
Sonnet 5 $0.00011 $0.00130
Haiku 4.5 $0.00005 $0.00065

Measured 5d ago against content hash 477c67208b76, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

stripe-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 5d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (config.ts), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

src/orchestrator/plugins/stripe/SKILL.md · 33 lines

How it starts

The opening of the file, as written. The whole thing — 33 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Stripe Payments

Latest API version: 2026-03-25.dahlia. Pin it explicitly on the client unless told otherwise.

Never use

Charges API, Sources API, Tokens API, legacy Card Element, Payment Element in card-only mode, the deprecated plan object (use Prices), Connect legacy type: 'express' | 'custom' | 'standard', v1 Treasury for new integrations.

API selection

  • On-session payments and subscriptions: Checkout Sessions. Off-session, or when checkout state is modeled independently: PaymentIntents. Saving a payment method: SetupIntents.
  • Preference order: Payment Links → Checkout → Payment Element. Back Payment Element with Checkout Sessions ui_mode: 'custom' rather than raw PaymentIntents.
  • Enable dynamic payment methods in the Dashboard instead of passing payment_method_types.
  • New Connect platforms: POST /v2/core/accounts, configured via controller.losses.payments, controller.fees.payer, controller.stripe_dashboard.type, controller.requirement_collection. Destination charges; never mix charge types. Use Stripe-hosted onboarding.
  • Embedded financial accounts: POST /v2/core/vault/financial_accounts.

Gotchas

  • Verify webhook signatures against the raw request body (await request.text()) — a parsed JSON body fails verification.
  • Restricted keys (rk_) over secret keys (sk_); neither ever ships client-side (use ephemeral keys). Always pass state in Connect OAuth.
  • Stripe.js is evergreen, biannual, and hard-paired to its API version — no override: https://js.stripe.com/dahlia/stripe.js. Java/Go/.NET SDKs also fix the version to the release; bump the package instead of setting apiVersion.
  • Store Stripe object IDs in columns accommodating 255 chars with case-sensitive collation.
  • Breaking changes to grep for: paymentIntent.charges removed 2022-11-15 → stripe.charges.retrieve(pi.latest_charge); invoice.lines.datastripe.invoices.listLineItems() 2023-08-16.
  • Test locally with stripe listen --forward-to localhost:3000/api/webhooks and stripe trigger <event> --api-version 2026-03-25.dahlia; probe a new version with the Stripe-Version header before promoting it to default.
  • stripe plugin install projects then stripe projects init writes stripe-project.json and a .stripe/ directory of local skills — prefer those local skills afterwards.

Read the full file on GitHub · 33 lines

Files

What ships with it

1 file 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.

Changes

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.

  1. 5d ago First seen · 33 lines · 53 tokens per session scan A 477c67208b76

Subscribe to this mod's changes

stripe-payments is a skill published in the GitHub repository monkilabs/opencastle (61 stars, last pushed 7d ago), licensed MIT. It adds 53 tokens to every session and 649 once invoked, about $0.0003 per session on Opus 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.

Related

Other skills, from other repositories

floe-guard

Know what every AI call really costs — floe-guard meters STT + TTS + LLM + telephony per call (Pipecat, LiveKit — Python & TypeScript), keeps a live ledger of real spend, and hard-stops the next turn before it crosses a USD ceiling. Free Coverage Score + 7-day history on connect. Use when an agent's spend must be seen…

Floe-Labs/floe-guard · 107 tokens

product-architect

Complete product development system with 80 agents and 36 frameworks. Use when the user wants to build a product, write a PRD, plan an MVP or roadmap, design an app, research a market or check whether a feature already exists or is novel, do competitive analysis, run a security audit, build a financial model, plan…

ankitjha67/product-architect · 253 tokens

fixed-assets-advisor

Multi-jurisdiction fixed assets, depreciation, and impairment reference framework covering PP&E, intangibles, right-of-use assets, and goodwill under US GAAP and IFRS.

VincentChuWaiChow/vanguard-frontier-agentic · 41 tokens

procure-to-pay-advisor

Multi-jurisdiction procure-to-pay accounting reference covering PO matching, AP accruals, vendor management, and related compliance.

VincentChuWaiChow/vanguard-frontier-agentic · 32 tokens

business-combinations-advisor

Multi-jurisdiction business combinations reference framework covering acquisition accounting, purchase price allocation, goodwill, and post-combination integration under ASC 805 and IFRS 3.

VincentChuWaiChow/vanguard-frontier-agentic · 39 tokens

accounting-maestro

Route accounting questions to the narrowest specialist in the catalog. Use when you do not already know the specialist needed. Not for direct accounting answers; Maestro classifies, dispatches, and synthesizes only. Dispatches single agent for focused tasks, parallel team (max 3) for multi-domain tasks. Never…

VincentChuWaiChow/vanguard-frontier-agentic · 93 tokens