CodeQL, Semgrep and SARIF static-analysis toolkit from Trail of Bits: taint tracking, fast pattern scans and merged, deduplicated security findings for coding agents.
Stripe Best PracticesSkill
Summary
Stripe's official agent skill for choosing the right payments primitive — Checkout vs PaymentIntents, Connect, Billing, Tax — and for handling API keys and webhooks safely.
Features
- Guidance on Checkout Sessions vs PaymentIntents and the Payment Element
- Connect platform setup on Accounts v2 including controller properties
- Billing, subscription and proration patterns
- Stripe Tax, automatic_tax, product tax codes and registrations
- Defaults to restricted API keys over secret keys
- Webhook signature verification and OAuth guidance
- Pins the current Stripe API version and SDK releases
Install This Skill
Add this skill to your favorite AI agent in a few steps.
Skill Content
Usage Instructions
Learn how to use this skill with different AI agents.
Example Usage
Add a subscription checkout flow with Stripe Tax enabled for EU VAT, and review my webhook handler for signature verification.
Description
Most Stripe mistakes are not syntax errors; they are architectural choices made early and discovered late. This official skill from Stripe front-loads those decisions so an agent proposes the right primitive before writing any code.
It covers the choices that matter most:
- Integration surface — Checkout Sessions versus PaymentIntents with the Payment Element, and when a hosted page beats an embedded form.
- Connect — platform and marketplace setup on Accounts v2, including controller properties, which determine who owns fees, losses and the dispute relationship.
- Billing — subscriptions, plan changes and proration.
- Tax — Stripe Tax,
automatic_tax, product tax codes and registrations for sales tax, VAT and GST. - Treasury — financial accounts for embedded finance.
- Migrations — moving off deprecated Stripe APIs onto current equivalents.
The security guidance is unusually concrete for a vendor skill. It tells the agent to recommend a restricted API key (rk_ prefix) over a full secret key (sk_) by default, and covers webhook signature verification and OAuth for platform integrations — the failure modes that turn into incidents rather than bugs.
The skill also pins the current API version and SDK releases (as published, 2026-08-26.dahlia) and instructs the agent to use the latest unless you say otherwise, which stops a model from generating a shape of request that was current in its training data but has since moved on. Stripe regenerates the file from its own documentation, so the pinned versions track releases.
Install: npx skills add https://github.com/stripe/ai --skill stripe-best-practices. It lives in Stripe's stripe/ai repository alongside their other AI tooling, under the MIT licence, and activates whenever an agent is building, changing or reviewing a Stripe integration.
Covered in the Weekly
- Onei AI Weekly #2 — August 10, 2026
Related Skills
Microsoft's official Playwright skill — drives a real browser from the command line using accessibility snapshots and element refs, and plans, generates and heals Playwright tests.
Google's official agent skill for writing production Maps Platform code — grounded in freshly fetched docs, with a demo key path that needs no billing account.
Railway's official agent skill: create projects, provision databases and buckets, deploy, manage variables and domains, and read build failures back — from the CLI, API or MCP server.