stripe-payments

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

Guidance for adding Stripe, a service that handles online payments, billing, subscriptions, and marketplace payouts. It covers Stripe checkout flows, connected accounts, webhooks, and safe API-key handling.

In plain words
What is it for?
Use it when accepting payments, creating subscriptions, saving payment methods, building a marketplace, or reviewing a Stripe integration.
Why use it?
It helps avoid outdated payment APIs and common mistakes in payment, subscription, and marketplace integrations. It also provides direction for handling payment events and sensitive credentials safely.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when accepting payments, creating subscriptions, saving payment methods, building a marketplace, or reviewing a Stripe integration.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/monkilabs/opencastle/stripe-payments
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.

Any agent
npx skills add monkilabs/opencastle --skill stripe-payments
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-payments/github.svg)](https://agentmods.dev/skills/monkilabs/opencastle/stripe-payments)
Your own site
<a href="https://agentmods.dev/skills/monkilabs/opencastle/stripe-payments"><img src="https://agentmods.dev/badge/skills/monkilabs/opencastle/stripe-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.

agentmods 80×15 button for stripe-payments

Your own site · 80×15
<a href="https://agentmods.dev/skills/monkilabs/opencastle/stripe-payments"><img src="https://agentmods.dev/badge/skills/monkilabs/opencastle/stripe-payments.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 653 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00035 $0.00653
Opus 5.5 $0.00014 $0.00261
Sonnet 5.5 $0.00007 $0.00131
Haiku 4.5 $0.00003 $0.00065

Measured 1mo ago against content hash 2a7c6ed212f5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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.

src/orchestrator/plugins/stripe/skills/stripe-payments/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

Read the API version before writing code: the account's pinned version (Workbench, or the Stripe-Version header on any response) and the Stripe changelog (below) for anything newer. Pin the chosen version 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 versioned by release name in its URL (https://js.stripe.com/<release>/stripe.js) and hard-paired to that release's API version — no override. 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.data → stripe.invoices.listLineItems() 2023-08-16.
  • Test locally with stripe listen --forward-to localhost:3000/api/webhooks and stripe trigger <event> --api-version <version>; 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

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. 1mo ago Changed · -18 tokens per session 2a7c6ed212f5
  2. 1mo 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 (82 stars, last pushed 10d ago), licensed MIT. It adds 35 tokens to every session and 653 once invoked, about $0.0001 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-10-04.

Related

stripe-payments compared with skills from other repositories

stripe-payments next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
stripe-paymentsmonkilabs/opencastleSkill8210d agoMITA35Claude Code, Codex
floe-guardFloe-Labs/floe-guardSkill2667d agoMITA107Claude Code, Codex
weixinpay-payrojim666/SztuCodeSkill11019d agoMITA151Claude Code, Codex
stock-research-report-expertrojim666/SztuCodeSkill11019d agoMITA101Claude Code, Codex
weixinpay-feedbackrojim666/SztuCodeSkill11019d agoMITA115Claude Code, Codex
fixed-assets-advisorVincentChuWaiChow/vanguard-frontier-agenticSkill26yesterdayApache-2.0A41Claude Code
procure-to-pay-advisorVincentChuWaiChow/vanguard-frontier-agenticSkill26yesterdayApache-2.0A32Claude Code