Expense Categorizer
Skill0 starsChanged 29 days agoApache-2.0View on GitHub
Categorize a transactions CSV into spending categories using an editable keyword ruleset (incl. Indonesian merchants), produce a monthly rollup per category, and list uncategorized rows for the user.
In this repository61 other files it gives its agents.
- AGENTS.mdAGENTS.md
- Contact DeduperSkill
- Csv CleanerSkill
- Invoice ProcessorSkill
- Json WranglerSkill
- Log AnalyzerSkill
- Pdf ExtractorSkill
- Report Chart BuilderSkill
- Spreadsheet AnalyzerSkill
- Survey SummarizerSkill
- delegate-agentSkill
- Approval Request TriageSkill
- Backup RunnerSkill
- Channel BroadcastSkill
- Dependency AuditorSkill
- Memory KeeperSkill
- Repo OnboarderSkill
- Scheduled Job DoctorSkill
- Web Form FillerSkill
- Web ScraperSkill
- Website MonitorSkill
- Brain Dump To TasksSkill
- Calendar Day PlannerSkill
- Daily BriefingSkill
- Email TriageSkill
- Follow Up TrackerSkill
- Meeting MinutesSkill
- Recurring Digest SetupSkill
- Standup ReporterSkill
- Task Board GroomerSkill
- Weekly ReviewSkill
- Arxiv Paper ScannerSkill
- Comparison MatrixSkill
- Competitor WatchSkill
- Deep Research BriefSkill
- Fact CheckerSkill
- News DigestSkill
- People Company BriefSkill
- Product Price ScoutSkill
- Stock Price CheckerSkill
- Trending Topic DigestSkill
- Senior Software EngineerSkill
- Skill CreatorSkill
- Social CommentsSkill
- Social CoreSkill
- Social DMSkill
- Social EngageSkill
- Social HealthSkill
- Social InsightSkill
- Social ProspectSkill
- Social WatchSkill
- Blog Post WriterSkill
- Documentation WriterSkill
- Email DrafterSkill
- Executive SummarySkill
- Press Release WriterSkill
- Proposal WriterSkill
- Release Notes WriterSkill
- Social Media RepurposerSkill
- Tone RewriterSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 29
Check stored user rules: memory_search("expense category rule") — apply any saved personal rules ON TOP of the reference ruleset (user …
- Very specific: line 31
Read the CSV with document_read(path).
- Distinctive: line 68
Never invent a category for an unknown merchant — uncategorized is the honest answer, and the user's classification becomes a saved rule …
- Very specific: line 70
Only write memory when the user agrees.
≈ “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
Expense Categorizer
You classify each transaction row by keyword rules, roll spending up per category per month, and hand uncategorized rows back to the user instead of guessing.
Inputs
- Path to a transactions
.csvin the working folder (if unnamed,globfor*.csvand confirm). Identify the date, description/merchant, and amount columns from the header; ask if ambiguous. - Optional: a period to focus on; whether to save the report
(
write_fileasexpense-report.md) or keep it chat-only (default).
Steps
- Load the ruleset:
load_skill_resource({"slug": "expense-categorizer", "path": "references/category-rules.md"})— categories with keyword lists (incl. Indonesian merchants: indomaret, gojek, grab, tokopedia, ...), ordering rules (specific before generic, e.g. grabfood before grab), and the transfers/income notes. - Check stored user rules:
memory_search("expense category rule")— apply any saved personal rules ON TOP of the reference ruleset (user rules win). - Read the CSV with
document_read(path). Normalize dates enough to bucket by month (YYYY-MM); normalize amounts (decimal commas, negative = spend if the export uses signed amounts). - Categorize each row: lowercase the description, first matching keyword wins,
respecting the ruleset's ordering and the transfers/income exclusions. No
keyword match →
uncategorized. Never assign a category by vibes. - Build the rollup: per month x category totals, category share of total spend, and the biggest single transaction per category as an anchor example.
- List every uncategorized row (date, description, amount) and ask the user to
classify them. When they answer, restate each as a rule
("kopi kenangan → dining") and offer to persist it with
memory_write("expense category rule: <keyword> → <category>")so future runs pick it up in step 2. - Recompute totals after the user classifies, if they do.
Output format
## Spend by category — <file>
| Month | groceries | transport | dining | ... | uncategorized | Total |
|---|---|---|---|---|---|---|
Top categories: 1. dining 32% (Rp X) ...
Largest transactions: dining — Rp 450.000 "GRABFOOD*..." (2026-05-03)
## Uncategorized (N rows) — please classify
- 2026-05-11 · "KOPI KENANGAN JKT" · 28.000
Offer: save your answers as personal rules (memory_write)?Rules
- Totals must add up: sum of category totals + uncategorized = file total per month; state both so the user can verify.
- Transfers between own accounts / e-wallet top-ups are shown separately, never inside spending categories (ruleset note) — double counting is the classic bug.
incomerows only from credit-direction amounts, never keyword-only.- Never invent a category for an unknown merchant — uncategorized is the honest answer, and the user's classification becomes a saved rule only with their OK.
- Only write memory when the user agrees; keep rules short and keyword-based so
they audit well in
memory_search. - Financial data stays local: no delivery off-machine unless explicitly requested.
- Reply in the user's language; keep merchant strings verbatim in listings.
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.

