Chuyển đến nội dung
Skillpedia
API và máy chủ (backend)20k · #10463

Stripe

Skill này làm gì

Tra cứu và quản lý dữ liệu thanh toán Stripe, như đăng ký, doanh thu, khách hàng, hóa đơn và hoàn tiền. Dành cho người sáng lập và lập trình viên nhận thanh toán qua Stripe.

Khi nào nên dùng

  • ✓Khi bạn muốn biết số lượng người đăng ký hoặc doanh thu định kỳ hằng tháng.
  • ✓Khi bạn cần tạo mã giảm giá, liên kết thanh toán hoặc hoàn tiền.
  • ✓Khi bạn muốn tra cứu một khách hàng, hóa đơn hoặc khoản thanh toán.

Liên kết skill

https://github.com/danielmiessler/LifeOS/blob/main/LifeOS/install/skills/Stripe/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/danielmiessler/LifeOS/blob/main/LifeOS/install/skills/Stripe/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Hiện chúng ta có bao nhiêu người đăng ký đang hoạt động, và doanh thu định kỳ hằng tháng trong tháng này là bao nhiêu?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill gọi Stripe qua các khóa tài khoản bạn đã thiết lập và kiểm tra từng con số có đến từ đúng tài khoản bạn chỉ định. Nó đọc hết mọi trang của một danh sách trước khi đếm, và không thực hiện thay đổi nào nếu chưa có sự đồng ý của bạn.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Stripe Billing Operations

Contents: Ideal State · Intent Routing · Data & Config · Tool contract · Gotchas · Examples

Answers and acts on Stripe billing questions: promotion codes and coupons, products and prices, subscriptions and subscriber counts, MRR and revenue, customers, payments, invoices, refunds and payment links, across one main account and any number of additional ones. With more than one Stripe account, using the wrong key returns wrong numbers silently, so every call names the account's key.

Ideal State

  • Every figure comes from the account the user meant, through that account's env var, with keys loaded from ~/.claude/.env and never printed or hardcoded; a missing Config.md or STRIPE_SDK_DIR stops the run with a pointer to Setup.md instead of a guess.
  • Counts and revenue cover every page of the list they come from, and historical views keep canceled and churned subscriptions and attribute every row to a product.
  • No write reaches Stripe without the user's explicit approval, and every write reports the resulting object back.

Intent Routing

Intent Trigger File
ListProducts "products", "what products", "list products" Intents/ListProducts.md
Subscriptions "subscriptions", "subscribers", "how many subscribers" Intents/Subscriptions.md
Revenue "revenue", "MRR", "how much", "earnings", "income" Intents/Revenue.md
Customers "customers", "customer list", "who subscribes" Intents/Customers.md
Payments "payments", "recent payments", "charges" Intents/Payments.md
Manage "promotion codes", "promo code", "find a coupon", "create product", "create price", "change the price", "cancel", "refund", "coupon", "invoice", "payment link" Intents/Manage.md
File Read when
Setup.md first-time setup: Config.md, STRIPE_SDK_DIR, the per-account key env vars, and the check that it works

Data & Config

Account-specific values — the SDK working directory (STRIPE_SDK_DIR), account aliases and their env var names, product and price IDs, product domains, invoicing practice, and the optional admin-dashboard endpoints — live in LIFEOS/USER/CUSTOMIZATIONS/SKILLS/Stripe/Config.md. First-time setup is in Setup.md. Secrets are env-var names only, values in ~/.claude/.env. The skill body is generic.

When Config.md is missing, or it names no STRIPE_SDK_DIR, stop, say so, and point the user at Setup.md. Never guess an SDK directory, an account, or a product list.

Account Env var Format Notes
Main (default) STRIPE_SECRET_KEY sk_live_* Used when no alias is given
Additional STRIPE_SECRET_KEY_<ALIAS> sk_live_* or restricted rk_live_* Config.md's Accounts table maps each alias to its env var
  • Test mode: a test-mode key (sk_test_*) is its own row in the Accounts table, for example alias test with STRIPE_SECRET_KEY_TEST, used as --account test.
  • SDK: stripe npm package (v20+), called with the API version Config.md names (the preamble below passes it).
  • Admin dashboard (optional): if Config.md names an admin dashboard that serves cached Stripe endpoints (its base URL, the endpoint list and what each returns), prefer those for fast overview answers: customer and subscription totals, MRR, products with subscriber counts, monthly revenue, recent payments. Treat the cache as possibly minutes old and say so when freshness matters. With no dashboard configured, answer from the SDK; nothing else in this skill depends on it.

Tool contract

Reads go through the read-only CLI first: bun ~/.claude/LIFEOS/TOOLS/StripeRead.ts promos | coupons | products | prices | subs | customer <email> | balance | get <v1 path> [k=v…] (--account <alias> for an additional account). It is a single plain command with no write path, so it runs wherever a shell command can, including unattended sessions. The inline cd … && bun --env-file … -e script below is arbitrary code, and a harness that asks before running such code will stop on it when nobody is there to approve, so use it only for writes and anything the CLI can't express, such as the computed reports in each intent. Two limits of the CLI, from its code: products and prices return active objects only, and every list stops at 1,000 rows, so a count of exactly 1,000 is a floor and needs `f

Câu hỏi thường gặp

Nó có tự thay đổi thanh toán của tôi không?

Không. Mọi thao tác ghi cần bạn đồng ý rõ ràng, và skill báo lại đối tượng nó đã thay đổi.

Nếu tôi có nhiều tài khoản Stripe thì sao?

Mỗi lệnh gọi đều nêu khóa của tài khoản cụ thể, nên các con số lấy đúng từ tài khoản bạn muốn.

Các khóa được lưu ở đâu?

Chúng được tải từ tệp môi trường của bạn, không bao giờ được in ra hay ghi vào skill.

Chi tiết

Mô tả gốc của tác giả

Runs Stripe billing operations via the Stripe SDK and, when configured, an admin dashboard's cached endpoints: products, prices, subscriptions, MRR and revenue, customers, payments, refunds, coupons, disputes. USE WHEN Stripe, subscriptions, billing, MRR, revenue, customers, invoices, refund, coupon, payment link, charges, subscriber count, earnings. NOT FOR newsletter-platform subscribers billed outside Stripe.

repo: danielmiessler/LifeOS

Độ phổ biến

Sao GitHub
20k
Vị trí xếp hạng
#10463
Giấy phép
MIT
Cập nhật
28/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự