agentleFS
RoentekRoentek/Claude_Code_Boilerplate_Framework/.claude/skills/stripe/SKILL.md

stripe

Skill4 starsChanged 7 months agoMITView on GitHub

CLI-first access to Stripe for payments, webhooks, customers, subscriptions, and local dev testing. For MCP: add STRIPE_SECRET_KEY to .claude/settings.local.json env block. Use stripe-mcp when you need structured results chained into other MCP tool calls, or when processing responses programmatically. Tools available via stripe-mcp: - create_payment_intent, retrieve_payment_intent, list_payment_intents - create_customer, retrieve_customer, update_customer, list_customers - create_subscription, retrieve_subscription, cancel_subscription, list_subscriptions - create_product, list_products - create_price, list_prices - list_invoices, retrieve_invoice - list_events, retrieve_event - retrieve_balance The stripe listen command outputs a webhook signing secret…

  • Reads credentials

15 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use hubspot and notion.

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-aiSkill

    hubspot

    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

  • SentrySkill

    notion

    Search, fetch, create, update, and move Notion pages and data sources. Use when users ask to look up docs, specs, notes, meeting notes, project context, roadmaps, trackers, or internal references stored in Notion, or when they explicitly ask to create or edit Notion content.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is 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.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use stripe-mcp when you need structured results chained into other MCP tool calls, or when processing responses programmatically.

    line 77

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/stripe — Stripe CLI + MCP

CLI-first access to Stripe for payments, webhooks, customers, subscriptions, and local dev testing.

Priority

  1. stripe CLI (primary — zero token overhead, direct output)
  2. stripe-mcp MCP (fallback — structured in-session queries, chaining tool calls)

Auth (one-time)

stripe login          # browser OAuth — links CLI to your Stripe account
stripe whoami         # verify: shows account email + mode (test/live)

For MCP: add STRIPE_SECRET_KEY to .claude/settings.local.json env block.

CLI Commands

Webhooks (most common dev task)

stripe listen                                      # forward all events to localhost
stripe listen --forward-to localhost:3000/webhook  # forward to specific endpoint
stripe listen --events payment_intent.succeeded    # filter specific events
stripe trigger payment_intent.succeeded            # fire a test event
stripe trigger checkout.session.completed

Logs + events

stripe logs tail                    # live API request stream
stripe events list                  # recent events
stripe events retrieve evt_xxx      # inspect specific event

Resources (list/get/create)

stripe customers list
stripe customers retrieve cus_xxx
stripe charges list --limit 10
stripe payment_intents list
stripe payment_intents retrieve pi_xxx
stripe subscriptions list
stripe subscriptions retrieve sub_xxx
stripe products list
stripe prices list
stripe invoices list

Balance + payouts

stripe balance
stripe payouts list

Test mode vs live mode

stripe --api-key sk_test_xxx customers list   # explicit key override
# Default: uses key from `stripe login` or STRIPE_SECRET_KEY env var
# Test keys start with sk_test_; live keys with sk_live_

Fixtures (repeatable test data)

stripe fixtures path/to/fixture.json   # run a fixture file

MCP Fallback (stripe-mcp)

Use stripe-mcp when you need structured results chained into other MCP tool calls, or when processing responses programmatically.

Tools available via stripe-mcp:

  • create_payment_intent, retrieve_payment_intent, list_payment_intents
  • create_customer, retrieve_customer, update_customer, list_customers
  • create_subscription, retrieve_subscription, cancel_subscription, list_subscriptions
  • create_product, list_products
  • create_price, list_prices
  • list_invoices, retrieve_invoice
  • list_events, retrieve_event
  • retrieve_balance

Webhook Local Dev Pattern

# Terminal 1: start your app
npm run dev

# Terminal 2: forward Stripe events to local endpoint
stripe listen --forward-to localhost:3000/api/webhooks/stripe

# Terminal 3: trigger test events
stripe trigger payment_intent.succeeded
stripe trigger customer.subscription.created

The stripe listen command outputs a webhook signing secret (whsec_xxx) — use it as STRIPE_WEBHOOK_SECRET in your app.

Key Environment Variables

STRIPE_SECRET_KEY=sk_test_xxx      # test key; sk_live_xxx for production
STRIPE_PUBLISHABLE_KEY=pk_test_xxx # frontend (public, safe to expose)
STRIPE_WEBHOOK_SECRET=whsec_xxx    # from `stripe listen` output or dashboard

Decision: CLI vs MCP

TaskUse
Webhook dev loop (listen + trigger)CLI only
Quick resource lookupCLI
Chaining results into n8n/Trigger.devMCP
Creating test data programmaticallyMCP
Live API request streamCLI (stripe logs tail)

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.