copilot-money
Skill9 starsChanged 18 days agoMITView on GitHub
Query and analyze personal finance data from the Copilot Money Mac app. Use when the user asks about their spending, transactions, account balances, budgets, recurring charges, net worth, investments, or financial trends from Copilot Money.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- charl3y15/skillstheir own version, first seen Nov 22, 2026
- delorenj/skillstheir own version, first seen Nov 7, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- delorenj/skills★ 17same name
- charl3y15/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Read the data that the Copilot Money Mac app keeps on disk, with real names and with the same rules the app uses for its totals.
- Distinctive: line 11
All commands go through one script in this skill's directory (the "Base directory" shown when the skill loads):
- Very specific: line 40
Every command takes -f json or -f csv before the command name, for example copilot.py -f json budgets.
- Very specific: line 144
Read-only. The script opens the app's SQLite file with mode=ro and copies the LevelDB folder (an APFS clone) before it reads, so it never …
- Very specific: line 148
Do not print raw .ldb content with strings.
- Distinctive: line 149
Treat output as private financial data.
- Very specific: line 159
If doctor reports mismatches, the app's rules may have changed.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Copilot Money
Read the data that the Copilot Money Mac app keeps on disk, with real names and with the same rules the app uses for its totals. Read-only: nothing here writes to Copilot.
All commands go through one script in this skill's directory (the "Base directory" shown when the skill loads):
python3 <skill-dir>/scripts/copilot.py <command> [options]It needs only the Python 3 standard library. The first command in a session builds an enriched
SQLite file at ~/.cache/copilot-money/copilot.db (about 6 seconds). Later commands reuse it,
and rebuild it when the app has newer data or the file is older than 15 minutes.
Start here
| Question | Command |
| Are the numbers right? | doctor (cross-checks every budget category and net worth against the app) |
| Spending this month, by category | spending --month 2026-11 |
| Spending by parent category / merchant / account / month / day | spending --by parent (or merchant, account, month, day) |
| Budget vs spent, exactly as the app shows it | budgets or budgets --month 2026-10 |
| Income, spending, and net per month | cashflow --months 12 |
| Find transactions | tx -s "whole foods" --start 2026-01-01, tx -c restaurants --month 2026-10, tx --min 500 |
| Accounts and balances | accounts (--all adds hidden, closed, deleted) |
| Net worth today and per day | networth --days 90 --every 7 |
| Recurring charges | recurrings; upcoming: recurrings --upcoming --days 30 |
| Investments | holdings |
| Category tree | categories |
| Anything else | sql "SELECT ..." (see the schema below; schema prints it) |
| Raw Firestore documents | docs --list, then docs <collection> (secrets redacted) |
Every command takes -f json or -f csv before the command name, for example
copilot.py -f json budgets. Period options: --month YYYY-MM, or --start / --end
(YYYY-MM-DD, default the last 30 days).
How the app counts money (verified against the app)
Each rule below was checked against numbers the app computed itself (its widget files). With all
of them, budgets matched the app to the cent for 42 of 42 categories. A plain
SUM(amount) over the raw table is wrong, so use the spend view or the commands.
- Sign. Positive
amountis money out. Income and refunds are negative. - Pending duplicates. A pending row stays after its posted row arrives. The posted row has
pending_transaction_id= the pending row'sid. Count only the posted row. A pending row with no posted row yet counts. - Splits. A split keeps the original row (it has
children_transaction_ids). Its children (withparent_transaction_id) carry the parts. Count only the children. - Types.
typeisregular(spending),income, orinternal_transfer(between your own accounts). Spending isregularonly. - Deleted. Drop rows with
user_deleted = 1orplaid_deleted = 1. - Excluded categories. A category with
excluded = 1(for example rent or business costs) still shows its spending, but the app leaves it out of totals and gives it a budget of 0.spendingandcashflowdrop excluded categories unless you pass--include-excluded. - Parent categories. A parent's spent and budget are the sums of its children.
- Budget "spent" includes upcoming recurrings. For the current month, the app adds each
active recurring still due before the month ends. It projects from the last payment by the
recurring's frequency (a charge on the 31st falls on the 30th in a short month). When the
recurring has no amount, it uses the newest linked transaction's amount. A recurring whose next
payment is already overdue (a missed payment) adds nothing.
budgetsshowsspent_actualandupcomingapart, plus their sum asspent. - Budget overrides. A budget's
amountsmap ({"YYYY-MM": amount}) replaces the amount for one month. - Dates.
dateholds local midnight as a UTC timestamp (2026-11-02 05:00:00.000). Its first 10 characters are the local day. The views expose this asdayandmonth. - Net worth. Count every account that is not deleted. Hidden and closed accounts count (their balance is 0 now, but their past balances are part of the history). In a merged account group, count only the leader. Credit and loan balances are positive numbers that subtract. Investment accounts with holdings are worth quantity x live price. Today's value matches the app within live price drift. The daily history is approximate (see Limits).
Enriched database
~/.cache/copilot-money/copilot.db (owner-only file; override with COPILOT_MONEY_DB).
Views (use these first)
| View | What it holds |
tx | Every transaction with names: day, month, name (the user's rename if any), amount, type, pending, category, category_emoji, category_excluded, parent_category, account, account_mask, account_type, institution_name, recurring, user_note, user_reviewed, is_amazon, live (1 = counts, after rules 2, 3, 5) |
spend | tx rows that are spending: live = 1 AND type = 'regular' |
income | tx rows that are income |
balances | Balance snapshots per account and day, from SQLite and Firestore merged. A row exists only on days the balance changed |
networth_accounts | The accounts that count toward net worth (rule 11) |
Tables
| Table | Source | Columns |
transactions | SQLite | Every column of the app's table; JSON blobs (tag_ids, children_transaction_ids, amazon, venmo_extra_data, plaid_category_strings, ...) cast to text |
daily_balances | SQLite | date, account_id, current_balance, available_balance, limit, source |
categories | Firestore | id, name, emoji, color, excluded, parent_id, is_other, sort_order |
accounts | Firestore | id, item_id, name, nickname, official_name, mask, type (depository, credit, loan, investment, real-estate), subtype, institution_name, current_balance, available_balance, credit_limit, user_hidden, user_closed, user_deleted, group_id, group_leader, latest_balance_update |
items | Firestore | Bank connections: institution_name, login_required, disconnected, latest_fetch, error |
recurrings | Firestore | name, emoji, state (active, paused, archived), frequency (weekly, monthly, semi-annually, annually, ...), amount, min_amount, max_amount, match_string, category_id, latest_date |
budgets | Firestore | category_id, amount, amounts_json (per-month overrides) |
balance_history | Firestore | account_id, date, current_balance (fills accounts that SQLite lacks) |
holdings | Firestore | account_id, security_id, quantity, institution_price, institution_value, cost_basis |
securities | Firestore | ticker, name, type, close_price, current_price |
amazon_orders | Firestore | date, total, match_state, items_json (item names, prices, links) |
meta | Script | synced_at, source_db, firestore_documents |
Example queries
S=<skill-dir>/scripts/copilot.py
# Top merchants this year, excluded categories left out
python3 $S sql "SELECT name, round(sum(amount),2) AS spent, count(*) n FROM spend
WHERE day >= '2026-01-01' AND category_excluded = 0 GROUP BY name ORDER BY spent DESC LIMIT 15"
# Month-over-month for one parent category
python3 $S sql "SELECT month, round(sum(amount),2) FROM spend WHERE parent_category = 'Going Out' GROUP BY month"
# Transactions the user has not reviewed
python3 $S sql "SELECT day, name, amount, category FROM tx WHERE live = 1 AND user_reviewed = 0 ORDER BY day DESC"
# Amazon items bought in a month
python3 $S sql "SELECT date, total, items_json FROM amazon_orders WHERE date LIKE '2026-10%'"
# Card utilization
python3 $S sql "SELECT name, mask, current_balance, credit_limit, round(100.0*current_balance/credit_limit,1) AS pct
FROM accounts WHERE type = 'credit' AND credit_limit > 0 AND COALESCE(user_closed,0) = 0"Where the data lives
| Data | Path |
| Transactions, daily balances | ~/Library/Group Containers/group.com.copilot.production/database/CopilotDB.sqlite (WAL mode) |
| Firestore offline cache (names, budgets, recurrings, accounts, holdings) | ~/Library/Containers/com.copilot.production/Data/Library/Application Support/firestore/__FIRAPP_DEFAULT/<project>/main/ (LevelDB). Newer app builds use copilot-production-22904.copilot-production-firestore, older ones copilot-production-22904. If both exist, the script uses the one with more data |
| Numbers the app computed for widgets | ~/Library/Group Containers/group.com.copilot.production/widget-data/*.json: per-category spent/left, accounts, recent transactions, net worth by day (widgets-account-netWorth). doctor uses these as the answer key |
scripts/firestore_cache.py decodes the cache: LevelDB tables and logs (with Snappy), newest
write wins, deletions hide older values, and each value is a Firestore MaybeDocument protobuf.
Collections in the cache include users/<uid>/categories, users/<uid>/budgets,
users/<uid>/recurring, items/<id>/accounts/<id> (with holdings), .../balance_history/<date>,
.../holdings_history, .../statements, securities, investment_prices,
investment_performance, investment_splits, and amazon/<id>/orders.
Safety
- Read-only. The script opens the app's SQLite file with
mode=roand copies the LevelDB folder (an APFS clone) before it reads, so it never touches the app's files. - The Firestore cache holds bank access tokens, OAuth tokens, and App Store receipts. The enriched
database copies only allow-listed fields, and
docsredacts any key that looks like a secret. Do not print raw.ldbcontent withstrings. - Treat output as private financial data. Do not send it to outside services unless the user asks.
Limits
- Not in the local data: tag names (only
tag_idsexist, and they are usually empty) and goals. - Net worth history comes from the local cache, which holds only part of the server's history.
It matches the app on many days and is usually within a few hundred dollars on the rest. Use
today's value (
networth --days 0) when an exact number matters. - Freshness: the local data is as new as the app's last sync. Open the app to refresh it, then
run
sync.doctorshows the age of the widget data. - If
doctorreports mismatches, the app's rules may have changed. Compare thespent_actualandupcomingcolumns ofbudgetswith the app's budget screen to find which rule moved.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

