stripe-import — скилл для Claude Code: импорт CSV из Stripe
Переносит выгрузки Stripe в учёт: платежи, комиссии и возвраты отдельными строками. Пригодится, когда надо свести выручку с банковской выпиской.
npx skills add openaccountant/skills --skill stripe-import -a claude-codeЧто делает stripe-import
Скилл читает CSV-экспорт из Stripe и раскладывает его на проводки. Каждый успешный платёж даёт две строки: выручку с суммой из колонки Amount и комиссию Stripe со знаком минус из колонки Fee. Возвраты идут отдельной строкой с отрицательной суммой. Выплаты и переводы пропускаются — они и так попадут в учёт через банковскую выписку, а повторный импорт дал бы двойной счёт.
Перед вставкой скилл сверяет ID платежа (ch_xxx) с уже загруженными, чтобы не задвоить данные, и показывает сводку: сколько платежей, комиссий и возвратов, какой чистый доход. Категории проставляются автоматически: Revenue:Stripe, Fees:Payment Processing, Revenue:Refunds. Мультивалютные платежи переносятся в исходной валюте, конвертации скилл не делает.
Суммы в CSV уже в обычных единицах, а не в центах — пересчитывать вручную не нужно. Если Stripe Connect используется, комиссии приложения приходят отдельными строками, их можно отнести на Fees:Platform. Запускать импорт стоит после того, как вы убедились, что банковские выплаты не загружены дважды: расхождение по выплатам — первый признак, что где-то дубль.
Какие задачи решает
- разложить выгрузку Stripe на выручку и комиссии
- убрать выплаты из импорта, чтобы не задвоить деньги
- сверить возвраты с банковской выпиской
- проверить, не загружены ли те же платежи повторно
- посчитать чистый доход и эффективную ставку комиссии
Примеры запросов агенту
- Импортируй CSV из Stripe по пути
~/Downloads/stripe.csv - Покажи сводку по импорту: платежи, комиссии, возвраты
- Проверь, нет ли дублей по charge ID перед вставкой
Как установить stripe-import
1Через Skills CLI (Vercel)
npx skills add openaccountant/skills --skill stripe-import -a claude-code2Вручную: положить файлы
~/.claude/skills/stripe-import/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/stripe-import/
1Через Skills CLI (Vercel)
npx skills add openaccountant/skills --skill stripe-import -a codex2Вручную: положить файлы
.agents/skills/stripe-import/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add openaccountant/skills --skill stripe-import -a cursor2Вручную: положить файлы
.cursor/skills/stripe-import/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install openaccountant/skills stripe-import2Вручную: положить файлы
.github/skills/stripe-import/SKILL.md1Через Skills CLI (Vercel)
npx skills add openaccountant/skills --skill stripe-import -a gemini-cli2Командой платформы
gemini skills install https://github.com/openaccountant/skills --path business/stripe-importВручную: положить файлы
.devin/skills/stripe-import/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add openaccountant/skills --skill stripe-import -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о stripe-import
Как установить stripe-import в Claude?
Выполните npx skills add openaccountant/skills --skill stripe-import -a claude-code. Скилл окажется в ~/.claude/skills/stripe-import/SKILL.md.
Что делает stripe-import?
Импортирует CSV-экспорт Stripe: создаёт отдельные строки для выручки, комиссий и возвратов, пропускает выплаты и проверяет дубли по ID платежа.
Почему выплаты не импортируются?
Выплата — это перевод из Stripe на банковский счёт, и она уже есть в банковской выписке. Импорт из Stripe привёл бы к двойному учёту.
Исходный текст
SKILL.md · MIT
--- name: stripe-import description: > Import Stripe payment CSV exports with charges, fees, and refund handling. --- # Stripe Import ## Overview Import transaction data from Stripe CSV exports into Open Accountant. Handles charges (revenue), Stripe processing fees, and refunds as separate line items. Payouts are skipped since they appear in your bank import and would cause double-counting. ## Wilson Tools Used - `transaction_search` — check for existing Stripe transactions to prevent duplicates - `categorize` — assign categories to imported Stripe transactions - `export_transactions` — export reconciled Stripe data ## Column Mapping | Stripe CSV Column | Open Accountant Field | Notes | |---|---|---| | `id` | `reference_id` | Stripe charge ID (ch_xxx) | | `Created (UTC)` | `date` | Transaction date | | `Description` | `description` | Customer-facing description | | `Amount` | `amount` | Gross charge amount (positive = income) | | `Fee` | `amount` (separate row) | Stripe processing fee (negative = expense) | | `Net` | — | Calculated field, not stored directly | | `Currency` | `currency` | 3-letter ISO code | | `Status` | — | Only import `succeeded` charges | | `Customer Email` | `notes` | Optional, stored in notes | ## Workflow 1. Ask the user for the Stripe CSV file path. 2. Parse the CSV and validate expected Stripe column headers. 3. Filter rows: - **Import**: rows where `Type` is `charge` and `Status` is `succeeded` - **Import**: rows where `Type` is `refund` - **Skip**: rows where `Type` is `payout` or `transfer` (these appear in bank imports) - **Skip**: rows where `Status` is `failed` or `pending` 4. For each charge, create two transactions: - **Revenue**: positive amount from the `Amount` column, category "Revenue:Stripe" - **Fee**: negative amount from the `Fee` column, category "Fees:Payment Processing" 5. For refunds, create a negative revenue transaction with category "Revenue:Refunds" 6. Deduplicate using the Stripe charge ID (`id` column) as the reference. 7. Preview the import summary: total charges, total fees, total refunds, net revenue. 8. Insert transactions and confirm. ## Without Wilson To work with Stripe exports manually: ### Downloading from Stripe 1. Log in to **dashboard.stripe.com** 2. Go to **Payments** (left sidebar) 3. Click **Export** (top right of the payments list) 4. Select date range and columns: - Recommended: `id`, `Created (UTC)`, `Description`, `Amount`, `Fee`, `Net`, `Currency`, `Status`, `Type`, `Customer Email` 5. Choose **CSV** format and download ### Manual Processing in a Spreadsheet 1. Open the CSV in Google Sheets or Excel. 2. **Filter out non-succeeded**: Data > Filter > Status column > select only "succeeded" 3. **Remove payouts**: Filter Type column > deselect "payout" and "transfer" 4. **Create revenue rows**: - Column for category: set to "Revenue:Stripe" for all charge rows - Amount column already has the gross charge amount 5. **Create fee rows**: Add rows for each charge with: - Same date - Description: "Stripe fee — [original description]" - Amount: negative value from the Fee column (e.g., if Fee = 2.90, enter -2.90) - Category: "Fees:Payment Processing" 6. **Handle refunds**: Refund rows should have negative amounts in the Amount column. Set category to "Revenue:Refunds" 7. **Summary formulas**: ``` Gross Revenue: =SUMIFS(Amount, Type, "charge", Status, "succeeded") Total Fees: =SUMIFS(Fee, Type, "charge", Status, "succeeded") Total Refunds: =ABS(SUMIFS(Amount, Type, "refund")) Net Revenue: =GrossRevenue - TotalFees - TotalRefunds Effective Rate: =TotalFees / GrossRevenue * 100 ``` 8. **Reconcile with bank**: Your bank payout amounts should equal the sum of `Net` column values between payout dates. ## Important Notes - Stripe amounts are in the smallest currency unit in the API but in standard units in CSV exports (e.g., $10.00, not 1000). - Multi-currency: if you accept payments in multiple currencies, each currency is imported with its original amount. Wilson does not perform currency conversion. - Stripe fee percentage is typically 2.9% + $0.30 per transaction but varies by plan. The actual fee is in the CSV. - **Do not import payouts.** Payouts are the transfer from Stripe to your bank account. These appear in your bank statement import and importing them from Stripe would double-count the money. - Connect/platform charges: if you use Stripe Connect, application fees appear as separate line items. Import these under "Fees:Platform" if applicable.
© openaccountant · MIT · openaccountant/skills