square-import — скилл для Claude Code: импорт CSV из Square
Переносит выгрузки продаж из Square в формат бухгалтерии: чаевые, возвраты и комиссии отдельными строками. Пригодится тем, кто сводит кассу с банком.
npx skills add openaccountant/skills --skill square-import -a claude-codeЧто делает square-import
Скилл читает CSV-выгрузку Square на уровне транзакций и раскладывает каждую строку на несколько записей: продажа, чаевые, комиссия за обработку и возврат. Чаевые идут отдельно, потому что в некоторых юрисдикциях у них другой налоговый режим. Комиссия записывается отрицательной суммой, возврат тоже. Наличные транзакции с нулевой комиссией всё равно импортируются.
Перед вставкой скилл ищет уже загруженные транзакции по Transaction ID из Square, чтобы не задвоить данные, а затем показывает сводку: продажи, чаевые, комиссии, возвраты и итог. Работает через инструменты transaction_search, categorize и export_transactions. Внутри есть таблица соответствия колонок Square полям Open Accountant: Date уходит в date, Gross Sales в amount, Payment Method в notes, а Time и Net Sales не сохраняются.
Ожидается выгрузка на уровне транзакций. Если взять выгрузку по позициям, там одна строка на товар в чеке, и её придётся сначала группировать по Transaction ID. Ещё момент: Square перечисляет деньги на счёт уже за вычетом комиссий, поэтому банковские строки о депозитах не стоит заводить как выручку — для разбивки по gross нужен этот скилл. В README описан и ручной путь: выгрузка через Transactions > Export в Square Dashboard, а дальше формулы в таблице для сумм и эффективного процента комиссии.
Какие задачи решает
- разложить выгрузку Square на продажи, чаевые, комиссии и возвраты
- не задвоить транзакции при повторном импорте
- сверить net-депозиты Square с банковской выпиской
- посчитать эффективный процент комиссии за период
- разнести чаевые отдельно от выручки из-за налогов
Примеры запросов агенту
- Импортируй выгрузку Square из
~/Downloads/transactions.csvв бухгалтерию - Проверь по
Transaction ID, не загружал ли я эти транзакции раньше, и покажи сводку - Разложи комиссии и возвраты из Square отдельными строками и выгрузи результат
Как установить square-import
1Через Skills CLI (Vercel)
npx skills add openaccountant/skills --skill square-import -a claude-code2Вручную: положить файлы
~/.claude/skills/square-import/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/square-import/
1Через Skills CLI (Vercel)
npx skills add openaccountant/skills --skill square-import -a codex2Вручную: положить файлы
.agents/skills/square-import/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add openaccountant/skills --skill square-import -a cursor2Вручную: положить файлы
.cursor/skills/square-import/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install openaccountant/skills square-import2Вручную: положить файлы
.github/skills/square-import/SKILL.md1Через Skills CLI (Vercel)
npx skills add openaccountant/skills --skill square-import -a gemini-cli2Командой платформы
gemini skills install https://github.com/openaccountant/skills --path business/square-importВручную: положить файлы
.devin/skills/square-import/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add openaccountant/skills --skill square-import -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Из того же набора28
Похожие
Рядом в теме «Финансы и бизнес»
Всё по теме «Финансы и бизнес» →Вопросы о square-import
Как установить square-import в Claude?
Выполните npx skills add openaccountant/skills --skill square-import -a claude-code. После этого файл скилла появится по пути ~/.claude/skills/square-import/SKILL.md.
Что делает square-import?
Импортирует CSV-выгрузки продаж Square и создаёт до четырёх записей на транзакцию: продажу, чаевые, комиссию и возврат. Дубли отсекает по Square Transaction ID.
Какую выгрузку Square брать — по транзакциям или по позициям?
Нужна выгрузка на уровне транзакций. В выгрузке по позициям одна строка на товар в чеке, и перед импортом её придётся группировать по Transaction ID.
Исходный текст
SKILL.md · MIT
--- name: square-import description: > Import Square sales CSV exports with tips, refunds, and fee handling. --- # Square Import ## Overview Import transaction data from Square POS CSV exports. Handles sales, tips, refunds, and Square processing fees. Maps Square's item-level detail into Open Accountant's transaction format. ## Wilson Tools Used - `transaction_search` — check for existing Square transactions to prevent duplicates - `categorize` — assign categories to imported Square transactions - `export_transactions` — export reconciled Square data ## Column Mapping | Square CSV Column | Open Accountant Field | Notes | |---|---|---| | `Date` | `date` | Transaction date | | `Time` | — | Not stored | | `Transaction ID` | `reference_id` | Square payment ID for dedup | | `Description` or `Item` | `description` | Item or payment description | | `Gross Sales` | `amount` | Total before fees (positive = income) | | `Tips` | `amount` (separate row) | Tip amount (positive = income) | | `Processing Fees` | `amount` (separate row) | Square fee (negative = expense) | | `Refunds` | `amount` (separate row) | Refund amount (negative) | | `Net Sales` | — | Calculated, not stored directly | | `Payment Method` | `notes` | Cash, card, etc. | ## Workflow 1. Ask the user for the Square CSV file path. 2. Parse the CSV and validate Square column headers. 3. For each transaction row, create up to four entries: - **Sale**: gross sales amount (positive), category "Revenue:Sales" - **Tips**: tip amount (positive), category "Revenue:Tips" (if > $0) - **Fee**: processing fee (negative), category "Fees:Payment Processing" (if > $0) - **Refund**: refund amount (negative), category "Revenue:Refunds" (if > $0) 4. Cash transactions have $0 processing fees — still import the sale. 5. Deduplicate using Square Transaction ID. 6. Preview the import summary: total sales, total tips, total fees, total refunds, net. 7. Insert transactions and confirm. ## Without Wilson To work with Square exports manually: ### Downloading from Square 1. Log in to **squareup.com** (Square Dashboard) 2. Go to **Transactions** (left sidebar) 3. Click **Export** (top right, or the download icon) 4. Select date range 5. Choose **Transactions CSV** (not Items CSV — that's inventory) 6. Download 7. Alternative: **Reporting** > **Sales** > **Export** for summary-level data ### Manual Processing in a Spreadsheet 1. Open the CSV in Google Sheets or Excel. 2. **Separate revenue streams**: - Column E: Gross Sales (your product/service revenue) - Column F: Tips (income, not taxed the same as sales in some jurisdictions) - Column G: Processing Fees (expense) - Column H: Refunds (negative revenue) 3. **Create separate category rows** (or use multiple category columns): - For each row with a tip > $0, create a new row for the tip amount - For each row with a fee > $0, create a new row with the negative fee 4. **Summary formulas**: ``` Gross Sales: =SUM(E:E) Total Tips: =SUM(F:F) Total Fees: =SUM(G:G) Total Refunds: =SUM(H:H) Net Revenue: =GrossSales + Tips - Fees - Refunds Effective Fee %: =TotalFees / (GrossSales + Tips) * 100 Avg Transaction: =GrossSales / COUNTA(D:D) ``` 5. **Reconcile with bank**: Square deposits funds daily or weekly. Sum Net Sales between deposit dates and match against your bank statement. ### Square Reports (No Export Needed) Square Dashboard has built-in reports at **Reporting** > **Sales Summary** that show gross sales, fees, and net by day, week, or month. Use these for quick reference without exporting. ## Important Notes - Square CSV exports can be either transaction-level or item-level. This skill expects transaction-level exports. Item-level exports have one row per item per sale, which requires grouping by Transaction ID first. - Tips are separated because they may have different tax treatment than sales revenue. - Cash transactions appear in Square if rung through the POS but have $0 processing fee. These are still imported. - Square deposits to your bank are net of fees. Do not import deposit rows from your bank as Square revenue — use this skill for the gross breakdown instead. - If you use Square for both in-person and online sales, both appear in the same export.
© openaccountant · MIT · openaccountant/skills