agentleFS
chardigiochardigio/copilot-money-skill/skills/copilot-money/SKILL.md

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

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. delorenj/skills★ 17same name
    2. 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
  1. Distinctive:

    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.

    line 8
  2. Distinctive:

    All commands go through one script in this skill's directory (the "Base directory" shown when the skill loads):

    line 11
  3. Very specific:

    Every command takes -f json or -f csv before the command name, for example copilot.py -f json budgets.

    line 40
  4. Very specific:

    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 …

    line 144
  5. Very specific:

    Do not print raw .ldb content with strings.

    line 148
  6. Distinctive:

    Treat output as private financial data.

    line 149
  7. Very specific:

    If doctor reports mismatches, the app's rules may have changed.

    line 159

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

QuestionCommand
Are the numbers right?doctor (cross-checks every budget category and net worth against the app)
Spending this month, by categoryspending --month 2026-11
Spending by parent category / merchant / account / month / dayspending --by parent (or merchant, account, month, day)
Budget vs spent, exactly as the app shows itbudgets or budgets --month 2026-10
Income, spending, and net per monthcashflow --months 12
Find transactionstx -s "whole foods" --start 2026-01-01, tx -c restaurants --month 2026-10, tx --min 500
Accounts and balancesaccounts (--all adds hidden, closed, deleted)
Net worth today and per daynetworth --days 90 --every 7
Recurring chargesrecurrings; upcoming: recurrings --upcoming --days 30
Investmentsholdings
Category treecategories
Anything elsesql "SELECT ..." (see the schema below; schema prints it)
Raw Firestore documentsdocs --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.

  1. Sign. Positive amount is money out. Income and refunds are negative.
  2. Pending duplicates. A pending row stays after its posted row arrives. The posted row has pending_transaction_id = the pending row's id. Count only the posted row. A pending row with no posted row yet counts.
  3. Splits. A split keeps the original row (it has children_transaction_ids). Its children (with parent_transaction_id) carry the parts. Count only the children.
  4. Types. type is regular (spending), income, or internal_transfer (between your own accounts). Spending is regular only.
  5. Deleted. Drop rows with user_deleted = 1 or plaid_deleted = 1.
  6. 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. spending and cashflow drop excluded categories unless you pass --include-excluded.
  7. Parent categories. A parent's spent and budget are the sums of its children.
  8. 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. budgets shows spent_actual and upcoming apart, plus their sum as spent.
  9. Budget overrides. A budget's amounts map ({"YYYY-MM": amount}) replaces the amount for one month.
  10. Dates. date holds 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 as day and month.
  11. 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)

ViewWhat it holds
txEvery 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)
spendtx rows that are spending: live = 1 AND type = 'regular'
incometx rows that are income
balancesBalance snapshots per account and day, from SQLite and Firestore merged. A row exists only on days the balance changed
networth_accountsThe accounts that count toward net worth (rule 11)

Tables

TableSourceColumns
transactionsSQLiteEvery column of the app's table; JSON blobs (tag_ids, children_transaction_ids, amazon, venmo_extra_data, plaid_category_strings, ...) cast to text
daily_balancesSQLitedate, account_id, current_balance, available_balance, limit, source
categoriesFirestoreid, name, emoji, color, excluded, parent_id, is_other, sort_order
accountsFirestoreid, 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
itemsFirestoreBank connections: institution_name, login_required, disconnected, latest_fetch, error
recurringsFirestorename, emoji, state (active, paused, archived), frequency (weekly, monthly, semi-annually, annually, ...), amount, min_amount, max_amount, match_string, category_id, latest_date
budgetsFirestorecategory_id, amount, amounts_json (per-month overrides)
balance_historyFirestoreaccount_id, date, current_balance (fills accounts that SQLite lacks)
holdingsFirestoreaccount_id, security_id, quantity, institution_price, institution_value, cost_basis
securitiesFirestoreticker, name, type, close_price, current_price
amazon_ordersFirestoredate, total, match_state, items_json (item names, prices, links)
metaScriptsynced_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

DataPath
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=ro and 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 docs redacts any key that looks like a secret. Do not print raw .ldb content with strings.
  • 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_ids exist, 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. doctor shows the age of the widget data.
  • If doctor reports mismatches, the app's rules may have changed. Compare the spent_actual and upcoming columns of budgets with the app's budget screen to find which rule moved.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.