stripe
Skill109 starsChanged 4 months agoMITView on GitHub
Read Stripe account state from a terminal or agent: balance, payment intents, and subscriptions — and perform guarded mutations like canceling a subscription — backed by a bundled stripe-cli script that is read-only first and gates every state-changing command behind a --dry-run/--yes confirmation. Use when an agent needs to answer questions about account balance, recent payments, active subscriptions, or apply a confirmed subscription cancellation. Do not use for building Stripe payments into an application (that is Stripe integration development), managing Stripe dashboard settings, or other payment processors (that is their own tooling).
- Reads credentials
15 other projects use a version of this.
Adopted by
Most recently taken up by
- obra/muse-skillstheir own version, first seen Sep 26, 2026
- SnowBeatRain/skillstheir own version, first seen Sep 15, 2026
- schroneko/skillstheir own version, first seen Sep 3, 2026
- conjure-3301/skillstheir own version, first seen Aug 17, 2026
- Rikinshah787/agent-skills-production-skillstheir own version, first seen Aug 10, 2026
- Shanksg/clawskillstheir own version, first seen Aug 2, 2026
Used with
Projects with it also use hubspot.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
refly-aiSkillhubspot
Integrate with HubSpot for CRM management. Use when you need to: (1) manage contacts and deals, (2) track sales pipelines, or (3) automate marketing and CRM workflows.
Also in 3 projects that use this
Other versions15 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 15
- vercel-labs/emulate★ 1.9ksame name
- Mindrally/skills★ 266same name
- refly-ai/refly-skills★ 203same name
- HybridAIOne/hybridclaw★ 157same name
- algoderiv/agent-skills★ 59same name
- alanalvestech/hitank★ 38same name
- kumaran-is/claude-code-onboarding★ 36same name
- obra/muse-skills★ 14same name
- YepAPI/skills★ 8same name
- Roentek/Claude_Code_Boilerplate_Framework★ 4same name
5 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository180 other files it gives its agents.
- agent-production-operations/AGENTS.mdAGENTS.md
- AGENTS.mdAGENTS.md
- forward-deployed-engineering/AGENTS.mdAGENTS.md
- production-excellence/AGENTS.mdAGENTS.md
- product-lifecycle/AGENTS.mdAGENTS.md
- tailscale/AGENTS.mdAGENTS.md
- workflow-architect/AGENTS.mdAGENTS.md
- llms.txtllms.txt
- actuarial-risk-modelingSkill
- adr-authoringSkill
- agent-councilSkill
- agent-evals-and-observabilitySkill
- agent-production-operationsSkill
- agent-skillsSkill
- ai-governanceSkill
- ai-operating-economicsSkill
- analog-occultismSkill
- anydocSkill
- api-design-and-evolutionSkill
- artifact-pyramidsSkill
- ascii-city-engineSkill
- autogenSkill
- backend-engineeringSkill
- binary-analysisSkill
- bmadSkill
- brand-designerSkill
- c4-diagrammingSkill
- capacity-and-cost-engineeringSkill
- chief-of-staff-methodologySkill
- cli-builderSkill
- cncf-landscapeSkill
- color-managementSkill
- community-guidesSkill
- conditional-customer-successSkill
- confluence-cliSkill
- constrained-optimizationSkill
- crewaiSkill
- crmSkill
- crowdsecSkill
- cryptpadSkill
- cyberpunkSkill
- daily-life-discoverySkill
- data-architectSkill
- data-cleaningSkill
- data-engineeringSkill
- data-scientistSkill
- de-spinSkill
- digital-twinSkill
- docker-composeSkill
- documentsSkill
- dsm5Skill
- dspySkill
- electronicsSkill
- emailSkill
- enterprise-architectureSkill
- epubSkill
- esp32-developmentSkill
- ffmpegSkill
- financial-modelingSkill
- firefliesSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 0 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 13 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 59
Act with confirmation: only a human directive to change, previewed with --dry-run and confirmed with --yes.
- Very specific: line 106
Never cancel a subscription without a human directive, --dry-run preview, and --yes confirmation — cancellations have billing consequences.
- Very specific: line 108
Never page reads past --limit.
“Common” is measured: kept by at least 6 in 10 of the 13 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Stripe Operations
Use this skill to read Stripe account state and, with explicit confirmation, perform guarded mutations: account balance, payment intents, subscriptions, and subscription cancellation. This is a tool skill for the Stripe platform. Building Stripe payments into an application is integration development; this skill owns the everyday agent workflow: answering "what is our balance?", "which payments succeeded?", "what subscriptions are active?", and applying a confirmed cancellation.
Operating contract
- Read-only first. Balance, payment, and subscription queries run freely and never change anything. The bundled
stripe-cliscript's primary surface is these reads. - Guard every mutation. State-changing operations — canceling a subscription — require an explicit human directive plus
--dry-runpreview and--yesconfirmation throughstripe-cli. Cancellations are financial actions with billing consequences: confirm the subscription, the timing, and the impact before acting. - Respect bounded reads. Stripe paginates with
limitandhas_more; never page past what the task needs.stripe-cli --limitcaps every listing. - Keep evidence bounded. Quote short IDs, amounts, and statuses; never dump full API keys, customer data, or raw payloads into chat.
- Treat money data as sensitive. Balances, payments, and subscription details are financial records; quote only what the question needs and never expose full card or customer data.
The stripe-cli script
scripts/stripe-cli is an agent-first, stdlib-only CLI over the Stripe API. It is read-only-first: balance, payments, and subscriptions are the primary surface; the only mutation is guarded.
stripe/scripts/stripe-cli --help # no key or network needed
stripe/scripts/stripe-cli --json balance show
stripe/scripts/stripe-cli --json --limit 20 payments list
stripe/scripts/stripe-cli --json --limit 20 subscriptions list
stripe/scripts/stripe-cli --json subscriptions get --id sub_123
stripe/scripts/stripe-cli subscriptions cancel --id sub_123 --dry-run # preview
stripe/scripts/stripe-cli subscriptions cancel --id sub_123 --yes # confirmedExit codes: 0 success, 1 API error or failed check, 2 usage error. Cancellations are guarded: without --dry-run or --yes the script refuses with exit 1 and never calls the API. Reads are bounded by --limit (default 20, max 100).
Operating loop
- Scope the question: is this a read (balance, payments, subscriptions) or a mutation (cancel)? Locate the object with the read surface first.
- Read with bounds:
balance showfor available and pending funds;payments listfor recent payment intents;subscriptions list/subscriptions getfor active subscriptions and their items. - Triage the answer: map the question to evidence (amounts, statuses, customers, period end dates).
- Act with confirmation: only a human directive to change, previewed with
--dry-runand confirmed with--yes. - Verify: re-read the subscription and confirm
cancel_at_period_endis set (cancellation at period end) — and state that the customer keeps service until that date.
Read surface: balance, payments, subscriptions
- Balance (
GET /balance): available and pending balances per currency. A read-only snapshot of account funds. - Payments (
GET /payment_intents): recent payment intents with amount, currency, status (succeeded,requires_action, etc.), and customer. Bounded by--limit;has_moretells you whether the cap hid further records. - Subscriptions (
GET /subscriptions,GET /subscriptions/{id}): active subscriptions with status, customer, period end, and items (price, amount, interval). A read before any cancellation.
Guarded mutation: subscription cancellation
subscriptions cancel --id sub_... --dry-runpreviews the cancellation;--yesconfirms and postscancel_at_period_end=true— the safe default that schedules cancellation at the period end (customer keeps service until then) rather than canceling immediately.- The script verifies Stripe confirmed the change (response
cancel_at_period_end: true) before reporting success; a mismatch raises an error and no state change is assumed. - Cancellation scheduled at period end is reversible by setting
cancel_at_period_end=falsebefore the period ends. Immediate cancellation and refunds are deliberately NOT in this skill's mutation surface — they need a human at the Stripe dashboard or a dedicated integration.
Access model and credentials
- Stripe authenticates with secret keys (
sk_...) or restricted keys (rk_...). Use a restricted key scoped to read-only (balance:read,payment_intents:read,subscriptions:read) for the read surface; addsubscriptions:writeonly where cancellations are genuinely needed. - Keys are live or test (
sk_live_/sk_test_). Never point live keys at test data or vice versa; verify the key type before running anything that could touch real charges. - Store keys in
STRIPE_API_KEY, never in code, chat, or commits. Rotate a leaked key immediately in the Stripe dashboard.
Reference routing
| Load when | Reference |
| Sources, refresh procedure | references/00-source-index.md |
| Endpoints, pagination, cancellation semantics, errors | references/01-stripe-read-operations.md |
Included artifacts
scripts/stripe-cli: bounded, stdlib-only CLI (balance, payments list, subscriptions list/get, guarded cancel;--json;--limit; mutation gated by--dry-run/--yes).tests/test_stripe_cli.py: 12 deterministic tests against a stub Stripe API, including the read-only-first contract and the mutation gate.references/: dated source index + Stripe read-operations reference.evals/evals.json: six output-quality evaluation cases for agent runs.
Verification boundary
| Claim | Minimum evidence |
| Balance is current | stripe-cli balance show --json returns available and pending per currency |
| A payment succeeded | stripe-cli payments list --json shows the intent with status succeeded |
| A subscription is active | stripe-cli subscriptions get --json returns status active and period end |
| A cancellation was accepted | stripe-cli subscriptions cancel --yes exits 0 and the response has cancel_at_period_end: true |
| A mutation is safe to run | stripe-cli subscriptions cancel --dry-run prints the exact subscription ID |
Hard boundaries
- Never cancel a subscription without a human directive,
--dry-runpreview, and--yesconfirmation — cancellations have billing consequences. - The mutation surface is limited to scheduling cancellation at period end. Refunds, immediate cancellations, and charge operations are out of scope.
- Never page reads past
--limit; never dump full API keys, customer data, or raw payloads into chat. - This skill operates the Stripe API. It does not build payments into applications or cover other payment processors.
When not to use
- Building Stripe payments into an application (Checkout, Payment Intents in code, webhooks for your app, billing logic) — that is integration development; see backend-engineering.
- Stripe dashboard administration (account settings, bank accounts, disputes, tax registration) — that is the Stripe Dashboard.
- Refunds, immediate cancellations, or charge operations — deliberately out of this skill's guarded-mutation surface; those are human decisions in the dashboard or a dedicated integration.
- Other payment processors (Braintree, Adyen, PayPal) — each has its own API and tooling; this skill covers Stripe.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

