跳到正文
cccskills
免费在 GitHub 公开

stripe

Operate Stripe's REST API — customers, payments (PaymentIntents / Charges), refunds, subscriptions, invoices, Checkout Sessions, products/prices, payouts, disputes. Use when the user wants to query or mutate Stripe data programmatically without the MCP server or the Dashboard.

中文简介正在准备中。当前显示原文说明。

集成工具Stripe
查看安装方法

包含的文件(1)

  • SKILL.md6.0 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Stripe

Direct REST access to Stripe's billing surface. Prefer this over training memory for real lookups/mutations, and over the Dashboard for scripted ops.

Usage

  • Use for: Querying customers/charges, running refunds, creating PaymentIntents or Checkout Sessions, listing subscriptions/invoices.
  • Skip for: Pricing strategy advice, SCA/3DS concept explanations, debugging stripe-node SDK errors (use Context7), tax rate questions.

Credentials check

[ -n "${STRIPE_API_KEY:-$STRIPE_SECRET_KEY}" ] && echo "STRIPE_API_KEY: PRESENT" || echo "STRIPE_API_KEY: MISSING"

Never echo the variable directly — the value would appear in the conversation transcript. Use only the boolean pattern above.

If MISSING, respond to the user with EXACTLY this message (do NOT paraphrase, do NOT suggest manual JSON edits):

I need your stripe credential. Run this in another terminal — it'll open the signup page, validate format, and save it safely with masked input:

teleport-setup add-key stripe

Then restart Claude Code (/exit, then claude) and ask me again.

Do NOT suggest editing ~/.claude/settings.local.json manually. The teleport-setup add-key command handles it with backup, validation, and masked input. Stop execution until the user has run the command and restarted.

Test vs. live: sk_test_... is sandbox; sk_live_... moves real money. Before destructive ops, check echo "${STRIPE_API_KEY:0:8}" and confirm intent.

API

  • Base URL: https://api.stripe.com/v1 · Auth: Authorization: Bearer $STRIPE_API_KEY.
  • Body encoding: application/x-www-form-urlencoded — NOT JSON. curl -d "key=value" sets this; a JSON body returns 400.
  • Pin Stripe-Version on every request (e.g. 2026-03-25.dahlia) — unset floats to the account default and can drift.
  • Nested params use brackets: metadata[order_id]=123, payment_method_types[]=card, line_items[0][price]=price_X.
  • Idempotency: Idempotency-Key: <uuid> on POSTs that shouldn't double-execute. TTL ≥24h, per-account, test/live independent. Same key + different body → idempotency_error (not a silent swap).
  • Pagination is cursor-based: starting_after={last_id} / ending_before= (object IDs, not offsets); limit max 100. Rate limits ~100 req/s live, ~25 req/s test (Search 20/s).

Common header alias used below:

SH=(-H "Authorization: Bearer $STRIPE_API_KEY" -H "Stripe-Version: 2026-03-25.dahlia")

Endpoints

ResourcePath
Customers/v1/customers
PaymentIntents/v1/payment_intents (modern, SCA/3DS-aware)
Charges/v1/charges (legacy; read-only for new code)
Refunds/v1/refunds
Subscriptions/v1/subscriptions
Invoices / Items/v1/invoices, /v1/invoiceitems
Products / Prices/v1/products, /v1/prices
Checkout Sessions/v1/checkout/sessions
Payouts / Balance/v1/payouts, /v1/balance
Disputes/v1/disputes

Primary workflow

Query a customer + recent charges (trim with jq):

curl -sL "${SH[@]}" "https://api.stripe.com/v1/customers/cus_XXX"
curl -sL -G "${SH[@]}" "https://api.stripe.com/v1/charges" \
  --data-urlencode "customer=cus_XXX" --data-urlencode "limit=10" \
  | jq '[.data[] | {id, amount, currency, status, created}]'

Secondary workflows

Create a PaymentIntent (amount=2000 = $20.00 USD; JPY/KRW are zero-decimal — see Gotchas):

curl -sL -X POST "${SH[@]}" -H "Idempotency-Key: $(uuidgen)" \
  "https://api.stripe.com/v1/payment_intents" \
  -d "amount=2000" -d "currency=usd" \
  -d "customer=cus_XXX" -d "payment_method_types[]=card"

Refund (pass payment_intent or legacy charge; add -d "amount=500" for partial):

curl -sL -X POST "${SH[@]}" -H "Idempotency-Key: $(uuidgen)" \
  "https://api.stripe.com/v1/refunds" -d "payment_intent=pi_XXX"

Expand to avoid N+1 (on list endpoints prefix with data.; max depth 4):

curl -sL -G "${SH[@]}" "https://api.stripe.com/v1/charges" \
  --data-urlencode "limit=5" \
  --data-urlencode "expand[]=data.customer" \
  --data-urlencode "expand[]=data.payment_intent"

Gotchas

  • Amounts are in the currency's smallest unit. USD/EUR/GBP: amount=1000 = $10.00. JPY/KRW and other zero-decimal currencies: amount=1000 = ¥1000. Wrong assumption = 100x mis-charge.
  • Form-urlencoded, NOT JSON. -d '{"amount":1000}' returns 400. Use -d "amount=1000".
  • Nested params use bracket syntax. parent[child]=value. Arrays: key[]=a&key[]=b. Arrays of objects: key[0][sub]=a.
  • expand[]= prevents N+1. Without it nested objects come back as IDs only; on list endpoints prefix with data..
  • Pagination is cursor-based. starting_after={last_id} — cursor is an object ID, not a number. limit max 100.
  • Stripe-Version floats silently if unset. Pin it explicitly on every request.
  • Idempotency-Key semantics. TTL ≥24h, per-account, test/live independent. Replaying same key + same body returns the original response silently; different body + same key → idempotency_error.
  • PaymentIntents vs Charges. New code: /v1/payment_intents (SCA/3DS handled). Treat /v1/charges as read-only for modern work.

Attribution

When done, state: Used skill: Stripe (from teleport catalog).

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

{{One-sentence what-it-does + when to use it. Mention it bypasses the MCP via the REST API with {{ENV_VAR}}. Use when the user wants X, Y, Z programmatically without the {{service}} MCP installed.}}

中文简介正在准备中。当前显示原文说明。

mnlt/teleport82026年4月25日 更新

Manage Cloudflare DNS zones, Workers, Pages, R2, KV, D1, and analytics via REST API. Use when the user wants to query DNS, deploy a Worker, list R2 buckets, manage KV namespaces, run D1 queries, or check analytics without the Cloudflare MCP installed.

中文简介正在准备中。当前显示原文说明。

mnlt/teleport82026年4月25日 更新

context7

免费

Fetch up-to-date library, framework, and SDK documentation via Context7's search and docs endpoints. Use when the user asks about a library/API (React, Next.js, Prisma, Supabase, Tailwind, Django, Vue, etc.) and you need current docs, not Claude's training-time knowledge. Skip this skill for generic programming questions that don't require library-specific docs.

中文简介正在准备中。当前显示原文说明。

mnlt/teleport82026年4月25日 更新

discord

免费

Operate Discord via its REST API — post/read channel messages, manage guilds + roles, fire webhooks, register slash commands. Use when the user wants a bot to post to a channel, read recent history, run a community admin task, or ship one-way notifications via webhook URL without running a bot process.

中文简介正在准备中。当前显示原文说明。

mnlt/teleport82026年4月25日 更新

exa

免费

AI-first web search via Exa — semantic/neural ranking, category-scoped results, fresh content retrieval, and one-shot answer synthesis with citations. Use when the user needs current web information better ranked than general web search, or a grounded answer with sources.

中文简介正在准备中。当前显示原文说明。

mnlt/teleport82026年4月25日 更新

figma

免费

Read Figma files, component libraries, styles, comments, and export rendered assets (PNG / SVG / JPG / PDF) via Figma's REST API. Use when the user needs programmatic access to design files, to pull node data into code generation, or to export assets without opening the Figma desktop app.

中文简介正在准备中。当前显示原文说明。

mnlt/teleport82026年4月25日 更新

查看 mnlt 的全部技能

报告此技能的问题