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 monkilabs/opencastle --skill stripe-paymentsgit clone --depth 1 https://github.com/monkilabs/opencastleWrote 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/monkilabs/opencastle/stripe-payments)<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.
<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>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.00035 | $0.00653 |
| Opus 5.5 | $0.00014 | $0.00261 |
| Sonnet 5.5 | $0.00007 | $0.00131 |
| Haiku 4.5 | $0.00003 | $0.00065 |
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.
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 viacontroller.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 passstatein 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 settingapiVersion. - Store Stripe object IDs in columns accommodating 255 chars with case-sensitive collation.
- Breaking changes to grep for:
paymentIntent.chargesremoved 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/webhooksandstripe trigger <event> --api-version <version>; probe a new version with theStripe-Versionheader before promoting it to default. stripe plugin install projectsthenstripe projects initwritesstripe-project.jsonand a.stripe/directory of local skills — prefer those local skills afterwards.
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.
- 1mo ago Changed · -18 tokens per session 2a7c6ed212f5
- 1mo ago First seen · 33 lines · 53 tokens per session scan A 477c67208b76
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.
stripe-payments compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| stripe-paymentsmonkilabs/opencastle | Skill | 82 | 10d ago | MIT | A | 35 | Claude Code, Codex |
| floe-guardFloe-Labs/floe-guard | Skill | 266 | 7d ago | MIT | A | 107 | Claude Code, Codex |
| weixinpay-payrojim666/SztuCode | Skill | 110 | 19d ago | MIT | A | 151 | Claude Code, Codex |
| stock-research-report-expertrojim666/SztuCode | Skill | 110 | 19d ago | MIT | A | 101 | Claude Code, Codex |
| weixinpay-feedbackrojim666/SztuCode | Skill | 110 | 19d ago | MIT | A | 115 | Claude Code, Codex |
| fixed-assets-advisorVincentChuWaiChow/vanguard-frontier-agentic | Skill | 26 | yesterday | Apache-2.0 | A | 41 | Claude Code |
| procure-to-pay-advisorVincentChuWaiChow/vanguard-frontier-agentic | Skill | 26 | yesterday | Apache-2.0 | A | 32 | Claude Code |