stripe-best-practices
Skill by bex-co
Guides an AI assistant through Stripe integration decisions, from payments and Connect setup to subscriptions, tax and key security. Built for developers who build or review Stripe integrations.
Install stripe-best-practices
Built from the published package, never by AI.
git clone --depth 1 https://github.com/bex-co/bex /tmp/bex && mkdir -p ~/.claude/skills && cp -r /tmp/bex/.claude/skills/stripe-best-practices ~/.claude/skills/stripe-best-practicesRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/bex-co/bex /tmp/bex && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/bex/.claude/skills/stripe-best-practices ~/.gemini/antigravity-cli/skills/stripe-best-practicesAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install stripe-best-practices in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
Stripe Best Practices is an agent skill that guides an AI assistant through Stripe integration decisions. It covers API selection, such as Checkout Sessions versus PaymentIntents, and Connect platform setup using Accounts v2. It also covers billing and subscriptions, sales tax, VAT and GST with Stripe Tax and the Registrations API, Treasury financial accounts, and migrating from deprecated Stripe APIs. The skill points the assistant to a reference file for each area before it answers or writes code.
Security guidance is included too, covering API key management, restricted keys, webhooks and OAuth. The skill recommends restricted API keys with the rk_ prefix over secret keys. It sets the latest API version, 2026-06-24.dahlia, as the default unless a user specifies otherwise. It is aimed at developers building, modifying or reviewing any Stripe integration, including marketplaces, subscriptions and connected accounts. Users without a Stripe account can create sandbox keys with the Stripe CLI.
Written from the project's SKILL.md and checked against it.
What it can do
- API selectionGuides the choice between Checkout Sessions, PaymentIntents and Setup Intents.
- Connect platform setupCovers Accounts v2 and controller properties for platforms and marketplaces.
- Billing and subscriptionsPoints to Billing APIs and Checkout Sessions for recurring billing.
- Tax complianceCovers Stripe Tax, automatic_tax, product tax codes and the Registrations API.
- Treasury financial accountsCovers v2 Financial Accounts for embedded financial accounts and banking.
- Deprecated API migrationHelps move an integration away from deprecated Stripe APIs.
- Security reviewCovers API key management, restricted keys, webhooks and OAuth.
- Payment method setupExplains dynamic payment methods and payment_method_configurations.
What you need
- A Stripe account, or the Stripe CLI to create sandbox API keys
- Stripe CLI installed with npm (npm i -g @stripe/cli)
Try asking
- Should I use Checkout Sessions or PaymentIntents for my checkout?
- Set up Accounts v2 for a marketplace with connected sellers
- Review my Stripe webhook and API key handling for security issues
Good to know
- Enabling automatic_tax requires an active tax registration, or no tax is collected.
- payment_method_types must not be passed, except for Terminal card_present payments.
- The integration_identifier parameter applies to API version 2026-03-25.dahlia or later.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/stripe-best-practices/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md4 KB -
references/billing.md5 KB -
references/connect.md11 KB -
references/payments.md6 KB -
references/security.md8 KB
Show all 7 files
-
references/tax.md13 KB -
references/treasury.md793 B
Alternatives to stripe-best-practices
All alternatives →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
Compare with function_health, windows-privilege-escalation or github-actions-advanced
stripe-best-practices: common questions
Which Stripe API should I use for one-time payments?
The skill recommends Checkout Sessions for one-time payments. A custom payment form with embedded UI uses Checkout Sessions with the Payment Element.
Do I need a tax registration before using Stripe Tax?
Yes. The skill says to confirm an active registration before enabling automatic_tax, because without one Stripe collects no tax.
Which type of API key does the skill recommend?
It recommends a restricted API key (rk_ prefix) over a secret key (sk_ prefix).
How do I install stripe-best-practices?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is stripe-best-practices free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is stripe-best-practices safe to use?
It scores 77 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to stripe-best-practices?
Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.
