spending-review — скилл для Claude Code: разбор трат по категориям
Скилл собирает траты по категориям за месяц, сравнивает с прошлым месяцем и показывает, где расходы выросли. Пригодится, если ведёте бюджет в Wilson или в банковских CSV.
npx skills add openaccountant/skills --skill spending-review -a claude-codeЧто делает spending-review
Скилл берёт период и выдаёт таблицу: категория, траты за этот месяц, за прошлый, изменение в долларах и процентах, стрелка тренда. Ниже — топ-3 категории по абсолютной сумме и топ-3 по росту в процентах, плюс абзац текстом о том, что изменилось.
Внутри два инструмента Wilson: spending_summary даёт суммы по категориям за диапазон дат, transaction_search вытаскивает отдельные операции. Скилл прогоняет spending_summary за текущий и прошлый месяц, считает разницу и помечает категории, где рост больше 20% или больше $100. По каждой такой категории запрашивает операции через transaction_search с category: "<flagged_category>" и months: 1.
Точность категорий зависит от авторазметки банка или правил Wilson, поэтому при куче неразобранных операций сначала стоит прогнать categorize. Разовые крупные покупки — техника, поездка, лечение — ломают сравнение месяц к месяцу: скачок может быть выбросом, а не трендом. Для ровной картины скилл советует сравнивать со скользящим средним за 3 месяца.
Какие задачи решает
- разложить траты за месяц по категориям
- сравнить расходы этого и прошлого месяца
- найти категории с резким ростом расходов
- докопаться до конкретных операций внутри подорожавшей категории
- собрать сводку по бюджету без ручных таблиц
Примеры запросов агенту
- Разбери мои траты за этот месяц по категориям и сравни с прошлым
- Где я потратил заметно больше, чем в прошлом месяце?
- Покажи операции, из-за которых выросла категория «Продукты»
Как установить spending-review
1Через Skills CLI (Vercel)
npx skills add openaccountant/skills --skill spending-review -a claude-code2Вручную: положить файлы
~/.claude/skills/spending-review/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/spending-review/
1Через Skills CLI (Vercel)
npx skills add openaccountant/skills --skill spending-review -a codex2Вручную: положить файлы
.agents/skills/spending-review/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add openaccountant/skills --skill spending-review -a cursor2Вручную: положить файлы
.cursor/skills/spending-review/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install openaccountant/skills spending-review2Вручную: положить файлы
.github/skills/spending-review/SKILL.md1Через Skills CLI (Vercel)
npx skills add openaccountant/skills --skill spending-review -a gemini-cli2Командой платформы
gemini skills install https://github.com/openaccountant/skills --path personal/spending-reviewВручную: положить файлы
.devin/skills/spending-review/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add openaccountant/skills --skill spending-review -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о spending-review
Как установить spending-review в Claude?
Выполните npx skills add openaccountant/skills --skill spending-review -a claude-code. Скилл встанет в ~/.claude/skills/spending-review/SKILL.md.
Что делает spending-review?
Строит разбивку трат по категориям за период, сравнивает её с прошлым месяцем и помечает категории, где расходы выросли больше чем на 20% или на $100.
Нужен ли Wilson для работы скилла?
Нет. Без Wilson скилл описывает ручной путь: выгрузить два месяца операций в CSV, свести их в Google Sheets и построить сводную таблицу с расчётом изменений.
Исходный текст
SKILL.md · MIT
--- name: spending-review description: > Generate a categorized spending breakdown with month-over-month trends. --- # Spending Review ## Overview Produces a categorized breakdown of your spending for a given period, compares it against prior months to show trends, and highlights categories where spending increased or decreased significantly. ## Wilson Tools Used - `spending_summary` — get total spending grouped by category for any date range - `transaction_search` — drill into specific categories for transaction-level detail ## Workflow 1. Run `spending_summary` for the current month to get category-level totals. 2. Run `spending_summary` for the previous month to establish a comparison baseline. 3. Calculate the dollar change and percentage change for each category between the two months. 4. Flag any category where spending increased by more than 20% or more than $100. 5. For each flagged category, run `transaction_search` with `category: "<flagged_category>"` and `months: 1` to pull the individual transactions driving the increase. 6. Present results as a summary table with columns: Category, This Month, Last Month, Change ($), Change (%), Trend Arrow. 7. Below the table, list the top 3 categories by absolute spending and the top 3 by percentage increase. 8. Provide a one-paragraph narrative summary describing the overall spending pattern and notable changes. ## Without Wilson 1. Export your last two months of transactions as CSV files from your bank (most banks: Account > Statements > Download > CSV format). 2. Open both CSVs in Google Sheets. Combine them into one sheet with a "Month" column added. 3. If your bank doesn't categorize transactions, manually add a "Category" column. Common categories: Groceries, Dining, Transportation, Utilities, Entertainment, Shopping, Health, Subscriptions. 4. Create a pivot table: Rows = Category, Columns = Month, Values = SUM of Amount. 5. Add a calculated column for change: `=B2-C2` (this month minus last month). 6. Add a percentage change column: `=IF(C2<>0, (B2-C2)/ABS(C2)*100, "New")`. 7. Conditional format the change column: red for increases, green for decreases (since spending is negative, reverse the logic or use absolute values). 8. Sort by absolute change descending to see your biggest movers. 9. For a quick visual, insert a bar chart from the pivot table showing this month vs. last month by category. ## Important Notes - Category accuracy depends on your bank's auto-categorization or Wilson's categorization rules. Run the `categorize` tool first if many transactions are uncategorized. - One-time large purchases (appliances, travel, medical) can skew month-over-month comparisons. Consider whether a spike is a true trend or an outlier. - For a more meaningful view, compare against a 3-month rolling average rather than just the prior month.
© openaccountant · MIT · openaccountant/skills