Agent skill

Stripe Best Practices

by kanchengw in kanchengw/cnllm

Guides Stripe integration decisions — API selection (Checkout Sessions vs PaymentIntents), Connect platform setup (Accounts v2, controller properties), billing/subscriptions, Treasury financial…

Apache-2.0Auto-check passedBackend & APIs

Install Stripe Best Practices

skills CLI
$ npx skills add kanchengw/cnllm --skill stripe-best-practices -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install kanchengw/cnllm stripe-best-practices --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/kanchengw/cnllm.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/stripe-best-practices .claude/skills/stripe-best-practices && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
stripe-best-practices
GitHub stars
173
Used in
2 other repos
Token cost
~925 tokens
SKILL.md length
242 words
Files
7 (incl. references)
Skills in repo
2
Repo updated
First seen
Licence
Apache-2.0

At a glance

Guides Stripe integration decisions — API selection (Checkout Sessions vs PaymentIntents), Connect platform setup (Accounts v2, controller properties), billing/subscriptions, Treasury financial…

  • Reviewing any Stripe integration — including accepting payments
  • SKILL.md covers Integration routing, Critical rules and Key documentation
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Building marketplaces

What it does

Stripe Best Practices is an agent skill from kanchengw/cnllm. Guides Stripe integration decisions — API selection (Checkout Sessions vs PaymentIntents), Connect platform setup (Accounts v2, controller properties), billing/subscriptions, Treasury financial accounts, integration surfaces (Checkout, Payment Element), migrating from deprecated Stripe APIs, and security best practices (API key management, restricted keys, webhooks, OAuth). Use when building, modifying, or reviewing any Stripe integration — including accepting payments, building marketplaces, integrating Stripe…

Its SKILL.md is about 930 tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including reference files (for example `references/billing.md`, `references/connect.md` and `references/payments.md`).

It sits in Backend & APIs, covering Webhooks, Cryptography and Building AI agents. It works with Stripe, LangChain, LlamaIndex and MiniMax. The repository describes itself as: Python toolkit for Chinese LLMs, with flexible batch capacity, structured real-time visulization and automated accumulation for streaming, and explicit feedback on vendor-native… The licence is Apache-2.0.

When your agent uses it

  • Reviewing any Stripe integration — including accepting payments
  • Building marketplaces
  • Integrating Stripe
  • Processing payments

Example prompts

  • “Use the stripe-best-practices skill to guide Stripe integration decisions — API selection (Checkout Sessions vs PaymentIntents), Connect platform…”
  • “/stripe-best-practices”

What it can do on your machine

Read from SKILL.md and the folder at commit 7fadd83. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • docs.stripe.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Stripe Best Practices loads about 925 tokens when it runs, and up to ~6.8k if it reads all its reference files. Until then it costs about 163 tokens; SKILL.md has 242 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~163
When it runs · the whole SKILL.md, loaded when a task matches
~925
With references · SKILL.md plus every file in references/, read only if the agent opens them
~6.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from kanchengw/cnllm at commit 7fadd83, republished under its Apache-2.0 licence (© kanchengw). 242 words, ~925 tokens.

Download SKILL.mdSave it as .claude/skills/stripe-best-practices/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.
name
stripe-best-practices
description
Guides Stripe integration decisions — API selection (Checkout Sessions vs PaymentIntents), Connect platform setup (Accounts v2, controller properties), billing/subscriptions, Treasury financial accounts, integration surfaces (Checkout, Payment Element), migrating from deprecated Stripe APIs, and security best practices (API key management, restricted keys, webhooks, OAuth). Use when building, modifying, or reviewing any Stripe integration — including accepting payments, building marketplaces, integrating Stripe, processing payments, setting up subscriptions, creating connected accounts, or implementing secure key handling.

Latest Stripe API version: 2026-05-27.dahlia. Always use the latest API version and SDK unless the user specifies otherwise.

API key default: Always recommend a restricted API key (RAK) (rk_ prefix) over a secret key (sk_ prefix).

Integration routing

Building…Recommended APIDetails
One-time paymentsCheckout Sessions<references/payments.md>
Custom payment form with embedded UICheckout Sessions + Payment Element<references/payments.md>
Saving a payment method for laterSetup Intents<references/payments.md>
Connect platform or marketplaceAccounts v2 (/v2/core/accounts)<references/connect.md>
Subscriptions or recurring billingBilling APIs + Checkout Sessions<references/billing.md>
Sales tax, VAT, or GST complianceStripe Tax + Registrations API<references/tax.md>
Embedded financial accounts / bankingv2 Financial Accounts<references/treasury.md>
Security (key management, RAKs, webhooks, OAuth, 2FA, Connect liability)See security reference<references/security.md>

Read the relevant reference file before answering any integration question or writing code.

Critical rules

  • Never include payment_method_types in any Stripe API call, with one exception: Terminal (in-person payments) integrations must pass payment_method_types: ['card_present'] on the PaymentIntent. For all other integrations, omit this parameter entirely to enable dynamic payment methods, which enables you to configure payment method settings from the Dashboard and dynamically display the most relevant eligible payment methods to each customer to maximize conversion. To customize which payment methods you accept, use payment_method_configurations or excluded_payment_method_types instead of payment_method_types.

Key documentation

When the user’s request does not clearly fit a single domain above, consult:

© kanchengw, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 6 other files (references) in skills/stripe-best-practices of kanchengw/cnllm.

  • SKILL.md
  • references/billing.md
  • references/connect.md
  • references/payments.md
  • references/security.md
  • references/tax.md
  • references/treasury.md

Open the folder on GitHubat commit 7fadd83

Used in 2 other repositories

We found 5 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 2 other GitHub owners. This page covers the copy in kanchengw/cnllm, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Stripe Best Practices next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Stripe Best Practices compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Stripe Best Practices this skillkanchengw/cnllm1732 repos~925Automated safety check: PassApache-2.0
Routerbase API Integrationaiskillstore/marketplace433—~964Automated safety check: PassNone
Uipath FunctionsUiPath/skills167—~3.6kAutomated safety check: NotesMIT
Add Example AgentGetBindu/Bindu10k—~1.1kAutomated safety check: NotesCustom licence
Tool Designagentailor/fullstack-langgraph-nextjs-agent132—~3.2kAutomated safety check: PassMIT
Sentry Setup AI MonitoringLiorVainer/data-israel130—~1.8kAutomated safety check: PassApache-2.0

Similar skills

  • Routerbase API Integration

    aiskillstore/marketplace

    Integrate applications with RouterBase, the OpenAI-compatible model gateway at https://routerbase.com/v1.

    433 GitHub stars~964 tokensUpdated yesterday
    AI & LLM EngineeringAuto-check passed
  • Uipath Functions

    UiPath/skills

    UiPath Coded Functions — deterministic Python or TypeScript/JavaScript units built with the uip function CLI (new -l py|ts|js, init, serve, run, pack, publish); the functions map in uipath.json…

    167 GitHub stars~3.6k tokensUpdated today
    AI & LLM EngineeringAuto-check: notes
  • Add Example Agent

    GetBindu/Bindu

    Add a new self-contained example agent under examples/. An agent skill from GetBindu/Bindu.

    10k GitHub stars~1.1k tokensUpdated 1 mo ago
    AI & LLM EngineeringAuto-check: notes
  • Tool Design

    agentailor/fullstack-langgraph-nextjs-agent

    Design and verify tools that AI agents can actually use — for any framework or language (MCP servers, LangChain/LangGraph, function-calling, raw JSON schema; TypeScript, Python, or otherwise).

    132 GitHub stars~3.2k tokensUpdated 1 mo ago
    AI & LLM EngineeringAuto-check passed
  • Sentry Setup AI Monitoring

    LiorVainer/data-israel

    Setup Sentry AI Agent Monitoring in any project. An agent skill from LiorVainer/data-israel.

    130 GitHub stars~1.8k tokensUpdated 5 mo ago
    AI & LLM EngineeringAuto-check passed
  • Langfuse

    davila7/claude-code-templates

    Expert in Langfuse - the open-source LLM observability platform.

    33k GitHub starsUsed in 5 repos~1.4k tokens
    AI & LLM EngineeringAuto-check passed

More from kanchengw/cnllm

  • Upgrade Stripe

    kanchengw/cnllm

    Guide for upgrading Stripe API versions and SDKs. An agent skill from kanchengw/cnllm.

    173 GitHub starsUsed in 3 repos~1.4k tokens
    Auto-check passed

Categories

Questions about Stripe Best Practices

What does Stripe Best Practices do?

Guides Stripe integration decisions — API selection (Checkout Sessions vs PaymentIntents), Connect platform setup (Accounts v2, controller properties), billing/subscriptions, Treasury financial…. Stripe Best Practices is an agent skill from kanchengw/cnllm. Guides Stripe integration decisions — API selection (Checkout Sessions vs PaymentIntents), Connect platform setup (Accounts v2, controller properties), billing/subscriptions, Treasury financial accounts, integration surfaces (Checkout, Payment Element), migrating from deprecated Stripe APIs, and security best practices (API key management, restricted keys, webhooks, OAuth).

When should I use Stripe Best Practices?

Stripe Best Practices fits situations like: reviewing any Stripe integration — including accepting payments; building marketplaces; integrating Stripe; processing payments.

How do I install Stripe Best Practices in Claude Code?

Run `npx skills add kanchengw/cnllm --skill stripe-best-practices -a claude-code`. Or copy the skill folder (skills/stripe-best-practices in kanchengw/cnllm) into .claude/skills/stripe-best-practices in your project. Claude Code loads it when a task matches its description.

How do I install Stripe Best Practices in Codex?

Run `npx skills add kanchengw/cnllm --skill stripe-best-practices -a codex`. Or copy the skill folder (skills/stripe-best-practices in kanchengw/cnllm) into .agents/skills/stripe-best-practices in your project. Codex loads it when a task matches its description.

Can I use Stripe Best Practices in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add kanchengw/cnllm --skill stripe-best-practices -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/stripe-best-practices, .gemini/skills/stripe-best-practices, .github/skills/stripe-best-practices and .opencode/skills/stripe-best-practices in your project.

What does Stripe Best Practices need to run?

SKILL.md names no scripts, command-line tools or credentials: Stripe Best Practices is instructions for the agent only.

Does Stripe Best Practices access the network?

SKILL.md names 1 domain. As links in the text: docs.stripe.com. This is read from the text; nothing was executed.

Is Stripe Best Practices safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Stripe Best Practices use?

Stripe Best Practices is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Stripe Best Practices use?

About 925 tokens (SKILL.md is roughly 3.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 5.8k tokens, read only when the agent opens those files.

What are the alternatives to Stripe Best Practices?

Skills that share tags, products or a category with Stripe Best Practices: Routerbase API Integration (aiskillstore/marketplace, 433 stars), Uipath Functions (UiPath/skills, 167 stars), Add Example Agent (GetBindu/Bindu, 10k stars) and Tool Design (agentailor/fullstack-langgraph-nextjs-agent, 132 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Stripe Best Practices?

kanchengw (a GitHub user) maintains it in kanchengw/cnllm, which has 173 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on June 15, 2026.

Source: kanchengw/cnllm on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.