[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-90f82b52-982d-4ec9-a509-40f5e9a14021":3,"$fslfcJ0-46vNKgkvg5C_8umSL-tEmxgMIMOLr0mR7Bvc":43},{"id":4,"title":5,"description":6,"categoryId":7,"moduleId":8,"tags":9,"prompt":10,"icon":11,"source":12,"sourceUrl":13,"authorId":14,"authorName":15,"isPublic":16,"stars":17,"runs":18,"createdAt":19,"updatedAt":19,"module":20,"category":27,"packages":34},"90f82b52-982d-4ec9-a509-40f5e9a14021","stripe-automation","通过Rube MCP（Composio）自动化Stripe任务：客户、收费、订阅、发票、产品、退款。始终首先搜索当前架构的工具。","cat_prod_automation","mod_productivity","sickn33,productivity","---\nname: stripe-automation\ndescription: \"Automate Stripe tasks via Rube MCP (Composio): customers, charges, subscriptions, invoices, products, refunds. Always search tools first for current schemas.\"\nrisk: critical\nsource: community\ndate_added: \"2026-02-27\"\n---\n\n# Stripe Automation via Rube MCP\n\nAutomate Stripe payment operations through Composio's Stripe toolkit via Rube MCP.\n\n## Prerequisites\n\n- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)\n- Active Stripe connection via `RUBE_MANAGE_CONNECTIONS` with toolkit `stripe`\n- Always call `RUBE_SEARCH_TOOLS` first to get current tool schemas\n\n## Setup\n\n**Get Rube MCP**: Add `https:\u002F\u002Frube.app\u002Fmcp` as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.\n\n1. Verify Rube MCP is available by confirming `RUBE_SEARCH_TOOLS` responds\n2. Call `RUBE_MANAGE_CONNECTIONS` with toolkit `stripe`\n3. If connection is not ACTIVE, follow the returned auth link to complete Stripe connection\n4. Confirm connection status shows ACTIVE before running any workflows\n\n## Core Workflows\n\n### 1. Manage Customers\n\n**When to use**: User wants to create, update, search, or list Stripe customers\n\n**Tool sequence**:\n1. `STRIPE_SEARCH_CUSTOMERS` - Search customers by email\u002Fname [Optional]\n2. `STRIPE_LIST_CUSTOMERS` - List all customers [Optional]\n3. `STRIPE_CREATE_CUSTOMER` - Create a new customer [Optional]\n4. `STRIPE_POST_CUSTOMERS_CUSTOMER` - Update a customer [Optional]\n\n**Key parameters**:\n- `email`: Customer email\n- `name`: Customer name\n- `description`: Customer description\n- `metadata`: Key-value metadata pairs\n- `customer`: Customer ID for updates (e.g., 'cus_xxx')\n\n**Pitfalls**:\n- Stripe allows duplicate customers with the same email; search first to avoid duplicates\n- Customer IDs start with 'cus_'\n\n### 2. Manage Charges and Payments\n\n**When to use**: User wants to create charges, payment intents, or view charge history\n\n**Tool sequence**:\n1. `STRIPE_LIST_CHARGES` - List charges with filters [Optional]\n2. `STRIPE_CREATE_PAYMENT_INTENT` - Create a payment intent [Optional]\n3. `STRIPE_CONFIRM_PAYMENT_INTENT` - Confirm a payment intent [Optional]\n4. `STRIPE_POST_CHARGES` - Create a direct charge [Optional]\n5. `STRIPE_CAPTURE_CHARGE` - Capture an authorized charge [Optional]\n\n**Key parameters**:\n- `amount`: Amount in smallest currency unit (e.g., cents for USD)\n- `currency`: Three-letter ISO currency code (e.g., 'usd')\n- `customer`: Customer ID\n- `payment_method`: Payment method ID\n- `description`: Charge description\n\n**Pitfalls**:\n- Amounts are in smallest currency unit (100 = $1.00 for USD)\n- Currency codes must be lowercase (e.g., 'usd' not 'USD')\n- Payment intents are the recommended flow over direct charges\n\n### 3. Manage Subscriptions\n\n**When to use**: User wants to create, list, update, or cancel subscriptions\n\n**Tool sequence**:\n1. `STRIPE_LIST_SUBSCRIPTIONS` - List subscriptions [Optional]\n2. `STRIPE_POST_CUSTOMERS_CUSTOMER_SUBSCRIPTIONS` - Create subscription [Optional]\n3. `STRIPE_RETRIEVE_SUBSCRIPTION` - Get subscription details [Optional]\n4. `STRIPE_UPDATE_SUBSCRIPTION` - Modify subscription [Optional]\n\n**Key parameters**:\n- `customer`: Customer ID\n- `items`: Array of price items (price_id and quantity)\n- `subscription`: Subscription ID for retrieval\u002Fupdate (e.g., 'sub_xxx')\n\n**Pitfalls**:\n- Subscriptions require a valid customer with a payment method\n- Price IDs (not product IDs) are used for subscription items\n- Cancellation can be immediate or at period end\n\n### 4. Manage Invoices\n\n**When to use**: User wants to create, list, or search invoices\n\n**Tool sequence**:\n1. `STRIPE_LIST_INVOICES` - List invoices [Optional]\n2. `STRIPE_SEARCH_INVOICES` - Search invoices [Optional]\n3. `STRIPE_CREATE_INVOICE` - Create an invoice [Optional]\n\n**Key parameters**:\n- `customer`: Customer ID for invoice\n- `collection_method`: 'charge_automatically' or 'send_invoice'\n- `days_until_due`: Days until invoice is due\n\n**Pitfalls**:\n- Invoices auto-finalize by default; use `auto_advance: false` for draft invoices\n\n### 5. Manage Products and Prices\n\n**When to use**: User wants to list or search products and their pricing\n\n**Tool sequence**:\n1. `STRIPE_LIST_PRODUCTS` - List products [Optional]\n2. `STRIPE_SEARCH_PRODUCTS` - Search products [Optional]\n3. `STRIPE_LIST_PRICES` - List prices [Optional]\n4. `STRIPE_GET_PRICES_SEARCH` - Search prices [Optional]\n\n**Key parameters**:\n- `active`: Filter by active\u002Finactive status\n- `query`: Search query for search endpoints\n\n**Pitfalls**:\n- Products and prices are separate objects; a product can have multiple prices\n- Price IDs (e.g., 'price_xxx') are used for subscriptions and checkout\n\n### 6. Handle Refunds\n\n**When to use**: User wants to issue refunds on charges\n\n**Tool sequence**:\n1. `STRIPE_LIST_REFUNDS` - List refunds [Optional]\n2. `STRIPE_POST_CHARGES_CHARGE_REFUNDS` - Create a refund [Optional]\n3. `STRIPE_CREATE_REFUND` - Create refund via payment intent [Optional]\n\n**Key parameters**:\n- `charge`: Charge ID for refund\n- `amount`: Partial refund amount (omit for full refund)\n- `reason`: Refund reason ('duplicate', 'fraudulent', 'requested_by_customer')\n\n**Pitfalls**:\n- Refunds can take 5-10 business days to appear on customer statements\n- Amount is in smallest currency unit\n\n## Common Patterns\n\n### Amount Formatting\n\nStripe uses smallest currency unit:\n- USD: $10.50 = 1050 cents\n- EUR: 10.50 = 1050 cents\n- JPY: 1000 = 1000 (no decimals)\n\n### Pagination\n\n- Use `limit` parameter (max 100)\n- Check `has_more` in response\n- Pass `starting_after` with last object ID for next page\n- Continue until `has_more` is false\n\n## Known Pitfalls\n\n**Amount Units**:\n- Always use smallest currency unit (cents for USD\u002FEUR)\n- Zero-decimal currencies (JPY, KRW) use the amount directly\n\n**ID Prefixes**:\n- Customers: `cus_`, Charges: `ch_`, Subscriptions: `sub_`\n- Invoices: `in_`, Products: `prod_`, Prices: `price_`\n- Payment Intents: `pi_`, Refunds: `re_`\n\n## Quick Reference\n\n| Task | Tool Slug | Key Params |\n|------|-----------|------------|\n| Create customer | STRIPE_CREATE_CUSTOMER | email, name |\n| Search customers | STRIPE_SEARCH_CUSTOMERS | query |\n| Update customer | STRIPE_POST_CUSTOMERS_CUSTOMER | customer, fields |\n| List charges | STRIPE_LIST_CHARGES | customer, limit |\n| Create payment intent | STRIPE_CREATE_PAYMENT_INTENT | amount, currency |\n| Confirm payment | STRIPE_CONFIRM_PAYMENT_INTENT | payment_intent |\n| List subscriptions | STRIPE_LIST_SUBSCRIPTIONS | customer |\n| Create subscription | STRIPE_POST_CUSTOMERS_CUSTOMER_SUBSCRIPTIONS | customer, items |\n| Update subscription | STRIPE_UPDATE_SUBSCRIPTION | subscription, fields |\n| List invoices | STRIPE_LIST_INVOICES | customer |\n| Create invoice | STRIPE_CREATE_INVOICE | customer |\n| Search invoices | STRIPE_SEARCH_INVOICES | query |\n| List products | STRIPE_LIST_PRODUCTS | active |\n| Search products | STRIPE_SEARCH_PRODUCTS | query |\n| List prices | STRIPE_LIST_PRICES | product |\n| Search prices | STRIPE_GET_PRICES_SEARCH | query |\n| List refunds | STRIPE_LIST_REFUNDS | charge |\n| Create refund | STRIPE_CREATE_REFUND | charge, amount |\n| Payment methods | STRIPE_LIST_CUSTOMER_PAYMENT_METHODS | customer |\n| Checkout session | STRIPE_CREATE_CHECKOUT_SESSION | line_items |\n| List payment intents | STRIPE_LIST_PAYMENT_INTENTS | customer |\n\n## When to Use\nThis skill is applicable to execute the workflow or actions described in the overview.\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.\n","","imported","https:\u002F\u002Fgithub.com\u002Fsickn33\u002Fantigravity-awesome-skills","user_system_seed","SkillOPIC",true,166,1744,"2026-05-16 13:42:24",{"id":8,"name":21,"slug":22,"icon":23,"description":24,"sort":25,"createdAt":26},"效率工具","productivity","mdi-lightning-bolt-outline","文档处理、数据分析、自动化工作流",4,"2026-05-16 12:53:40",{"id":7,"name":28,"slug":29,"icon":30,"description":31,"moduleId":8,"sort":32,"skillCount":33,"createdAt":26},"自动化","automation","mdi-robot-outline","工作流自动化、批处理",3,101,[35],{"id":36,"skillId":4,"version":37,"fileName":38,"fileSize":39,"filePath":40,"fileHash":41,"manifest":42,"createdAt":19},"ce51b464-7782-41c5-9d91-9262234e9441","1.0.0","stripe-automation.zip",2899,"uploads\u002Fskills\u002F90f82b52-982d-4ec9-a509-40f5e9a14021\u002Fstripe-automation.zip","145c4c86bc27073d908daa4bb66a819977a690a01a6bfa2b4a8f835c8fa1f842","[{\"path\":\"SKILL.md\",\"isDirectory\":false,\"size\":7754}]",{"code":44,"message":45,"data":46},200,"success",{"items":47,"stats":48,"page":51},[],{"averageRating":49,"totalRatings":49,"ratingCounts":50},0,[49,49,49,49,49],{"limit":52,"offset":49,"hasMore":53,"nextOffset":52,"ratedOnly":16},15,false]