stripe-cli
# Stripe CLI Skill ๐งพ
What this skill does
# Stripe CLI Skill ๐งพ
A universal ThinkFleet skill wrapping Stripe CLI for payment processing, webhook testing, and API operations. Includes optional ShapeScale-specific extensions for clinic management.
## What It Does
- Process payments, refunds, and subscriptions
- Manage customers and invoices
- Test webhooks locally
- Execute generic API calls to Stripe
- **ShapeScale extensions** (optional): Clinic presets, subscription plans, order integration
## Installation
### 1. Install Stripe CLI
**macOS:**
```bash
brew install stripe/stripe-cli/stripe
```
**Linux:**
```bash
# Download from https://github.com/stripe/stripe-cli/releases
wget https://github.com/stripe/stripe-cli/releases/download/v1.34.0/stripe_1.34.0_linux_amd64.deb
sudo dpkg -i stripe_1.34.0_linux_amd64.deb
```
**Authenticate:**
```bash
stripe login
```
### 2. Set Environment Variable
```bash
export STRIPE_SECRET_KEY=sk_test_your_key_here
```
Or use 1Password:
```bash
op read "op://Stripe/Secret Key" --vault Personal
```
### 3. Clone to Skills
```bash
cd ~/.thinkfleetbot/skills/
git clone https://github.com/mkessler/stripe-cli-thinkfleet-skill.git stripe
```
## Usage
### Universal Commands
| Invocation | Description |
|------------|-------------|
| `Create a test customer for $50` | Creates customer + $50 payment intent |
| `List my recent payments` | Lists last 10 payment intents |
| `Check payment status for pi_xxx` | Retrieves payment intent details |
| `Refund payment pi_xxx` | Refunds the full amount |
| `Trigger payment_intent.succeeded webhook` | Simulates webhook event |
| `Listen for webhooks for 30s` | Forwards webhooks to localhost |
| `Get customer details for cus_xxx` | Retrieves customer record |
### ShapeScale Extensions (Optional)
Requires `config/shapescale-presets.json`:
| Invocation | Description |
|------------|-------------|
| `Create clinic deposit for PracticeXYZ` | Creates customer + deposit template |
| `Create monthly subscription for clinic` | Creates recurring payment from presets |
| `Generate invoice for order #1234` | Creates invoice from template |
| `Check order status 1234` | Cross-references with shapescale-db |
## Configuration
### Universal
No config required. Uses `STRIPE_SECRET_KEY` environment variable.
### ShapeScale Presets (Optional)
Create `config/shapescale-presets.json`:
```json
{
"clinic_templates": {
"standard": { "deposit": 5000, "terms": "net30" },
"premium": { "deposit": 10000, "terms": "net30" }
},
"subscription_plans": {
"monthly": { "amount": 39900, "interval": "month" },
"annual": { "amount": 399000, "interval": "year" }
},
"tax_rate": 0.0875,
"default_currency": "usd"
}
```
### Environment Variables
| Variable | Required | Description |
|----------|----------|-------------|
| `STRIPE_SECRET_KEY` | Yes | Stripe secret key (test or live) |
| `STRIPE_WEBHOOK_ENDPOINT` | No | Webhook forwarding URL (default: http://localhost:4242) |
| `SHAPESCALE_PRESETS_PATH` | No | Path to shapescale-presets.json |
## File Structure
```
stripe/
โโโ SKILL.md # This file
โโโ scripts/
โ โโโ stripe.sh # Universal CLI wrapper
โ โโโ shapescale-ext.sh # ShapeScale extensions (optional)
โโโ config/
โ โโโ shapescale-presets.json # Clinic/subscription templates
โโโ patterns/
โ โโโ examples.md # Usage examples
โโโ README.md # Installation guide (auto-generated)
```
## State
**Stateless** โ Pure function of inputs. All state lives in Stripe.
## Integration with Other Skills
| Skill | Integration |
|-------|-------------|
| `shapescale-crm` | Link Stripe customer ID to CRM records |
| `shapescale-sales` | Orders โ Payment intent creation |
| `campaign-orchestrator` | Failed payment โ Follow-up campaign |
| `shapescale-db` | Match payments to database orders |
## Publishing
This skill is published to ThinkFleet Hub and available at:
https://github.com/mkessler/stripe-cli-thinkfleet-skill
## License
MIT License - see LICENSE file for details.
Related in Sales & CRM
process-mapper
IncludedUse when a BizOps lead, COO, or process-improvement owner needs to document an end-to-end business process (procurement, employee onboarding, incident handoff, customer-onboarding, claims adjudication) in BPMN-style notation, measure cycle times by stage, surface where work spends most of its time waiting vs. being worked, and quantify the gap between processing time and total elapsed time. Pairs Lean / Six Sigma / Theory-of-Constraints canon with deterministic stdlib-only Python tools to produce a process map, a ranked bottleneck list (with severity + root-cause hypothesis), and a cycle-time analysis (P50, P90, value-add ratio, Little's-Law throughput). Distinct from sales-pipeline, system-reliability (SLO), and strategic-OKR work โ this is tactical process documentation for internal operations.
payment-integration
IncludedIntegrate payments with SePay (VietQR), Polar, Stripe, Paddle (MoR subscriptions), Creem.io (licensing). Checkout, webhooks, subscriptions, QR codes, multi-provider orders.
customer-success-manager
IncludedMonitors customer health, predicts churn risk, and identifies expansion opportunities using weighted scoring models for SaaS customer success
sales-engineer
IncludedAnalyzes RFP/RFI responses for coverage gaps, builds competitive feature comparison matrices, and plans proof-of-concept (POC) engagements for pre-sales engineering. Use when responding to RFPs, bids, or proposal requests; comparing product features against competitors; planning or scoring a customer POC or sales demo; preparing a technical proposal; or performing win/loss competitor analysis. Handles tasks described as 'RFP response', 'bid response', 'proposal response', 'competitor comparison', 'feature matrix', 'POC planning', 'sales demo prep', or 'pre-sales engineering'.
customer-success-manager
IncludedMonitors customer health, predicts churn risk, and identifies expansion opportunities using weighted scoring models for SaaS customer success
sales-engineer
IncludedAnalyzes RFP/RFI responses for coverage gaps, builds competitive feature comparison matrices, and plans proof-of-concept (POC) engagements for pre-sales engineering. Use when responding to RFPs, bids, or proposal requests; comparing product features against competitors; planning or scoring a customer POC or sales demo; preparing a technical proposal; or performing win/loss competitor analysis. Handles tasks described as 'RFP response', 'bid response', 'proposal response', 'competitor comparison', 'feature matrix', 'POC planning', 'sales demo prep', or 'pre-sales engineering'.