Aller au contenu
Skillpedia
API et serveurs (backend)20k · #10463

Stripe

Ce qu’il fait

Ce skill consulte et gère les données de facturation Stripe, comme les abonnements, le chiffre d'affaires, les clients, les factures et les remboursements. Il s'adresse aux fondateurs et aux développeurs qui encaissent des paiements via Stripe.

Quand l’utiliser

  • ✓Quand vous voulez connaître le nombre de vos abonnés ou votre revenu récurrent mensuel.
  • ✓Quand vous devez créer un coupon, un lien de paiement ou un remboursement.
  • ✓Quand vous voulez rechercher un client, une facture ou un paiement.

Lien du skill

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

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/danielmiessler/LifeOS/blob/main/LifeOS/install/skills/Stripe/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Combien avons-nous d'abonnés actifs, et quel est notre revenu récurrent mensuel ce mois-ci ?”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

Le skill appelle Stripe avec les clés de compte que vous avez configurées, et vérifie que chaque chiffre provient du compte que vous avez indiqué. Il parcourt toutes les pages d'une liste avant de compter, et n'effectue aucune modification sans votre approbation.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

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

Questions fréquentes

Peut-il modifier ma facturation tout seul ?

Non. Chaque écriture exige votre approbation explicite, et le skill indique l'objet qu'il a modifié.

Que se passe-t-il si j'ai plusieurs comptes Stripe ?

Chaque appel nomme sa clé de compte, pour que les chiffres proviennent du compte que vous vouliez.

Où sont conservées les clés ?

Elles sont chargées depuis votre fichier d'environnement et ne sont jamais affichées ni écrites dans le skill.

Détails

Description originale de l’auteur

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

Popularité

Étoiles GitHub
20k
Position au classement
#10463
Licence
MIT
Mis à jour
28/10/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires