Stripe

From civitai/civitai · View interactive version

Stripe is an AI agent skill from the GitHub repository civitai/civitai. Look up Stripe customers, subscriptions, charges, and payment methods. Cancel subscriptions and issue refunds. Use when investigating billing issues, subscription cancellations, or payment disputes.

How to use this skill

Skill file

Stripe

Look up and manage Stripe customers, subscriptions, charges, and refunds for support investigations.

Setup

Required

Quick Reference

SKILL_DIR=".claude/skills/stripe"

# Look up a customer by email (shows subscriptions, charges, invoices)
node "$SKILL_DIR/query.mjs" customer user@example.com

# Search customers using Stripe Search syntax
node "$SKILL_DIR/query.mjs" search "email:'user@example.com'"

# Get subscription details
node "$SKILL_DIR/query.mjs" subscription sub_1ABC123

# List charges for a customer
node "$SKILL_DIR/query.mjs" charges user@example.com

# List payment methods
node "$SKILL_DIR/query.mjs" payment-methods user@example.com

# Cancel a subscription IMMEDIATELY
node "$SKILL_DIR/query.mjs" cancel sub_1ABC123

# Cancel at end of billing period
node "$SKILL_DIR/query.mjs" cancel sub_1ABC123 --at-period-end

# Refund a specific charge (full)
node "$SKILL_DIR/query.mjs" refund ch_1ABC123

# Partial refund (amount in cents)
node "$SKILL_DIR/query.mjs" refund ch_1ABC123 --amount 500

# Refund with reason
node "$SKILL_DIR/query.mjs" refund ch_1ABC123 --reason requested_by_customer

# Preview all refundable charges (dry run)
node "$SKILL_DIR/query.mjs" refund-all user@example.com --dry-run

# Refund ALL charges for a customer
node "$SKILL_DIR/query.mjs" refund-all user@example.com --reason requested_by_customer

Commands

| Command | Description |

|---------|-------------|

| customer <email> | Full customer lookup — details, subscriptions, charges, invoices |

| search <query> | Search customers using Stripe Search syntax |

| subscription <sub_xxx> | Get detailed subscription info |

| charges <cus_xxx\|email> | List charges for a customer |

| payment-methods <cus_xxx\|email> | List saved payment methods |

| cancel <sub_xxx> | Cancel subscription immediately |

| cancel <sub_xxx> --at-period-end | Cancel at end of current billing period |

| refund <ch_xxx> | Full refund of a charge |

| refund <ch_xxx> --amount <cents> | Partial refund |

| refund-all <cus_xxx\|email> | Refund all charges for a customer |

| refund-all <cus_xxx\|email> --dry-run | Preview refundable charges without refunding |

Refund Reasons

Valid --reason values:

Global Flags

| Flag | Description |

|------|-------------|

| --json | Output raw JSON (useful for piping/processing) |

Safety Notes

When to Use This Skill

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.