Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/peerjakobsen/smartspender/advicegit clone --depth 1 https://github.com/peerjakobsen/smartspenderWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/peerjakobsen/smartspender/advice)<a href="https://agentmods.dev/commands/peerjakobsen/smartspender/advice"><img src="https://agentmods.dev/badge/commands/peerjakobsen/smartspender/advice.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00015 | $0.03273 |
| Opus 5 | $0.00008 | $0.01636 |
| Sonnet 5 | $0.00003 | $0.00655 |
| Haiku 4.5 | $0.00002 | $0.00327 |
Grade A, and why
advice scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 297 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/smartspender:advice
Trigger
/smartspender:advice- "Hvad bør jeg fokusere på?"
- "Giv mig finansiel rådgivning"
- "Hvor er jeg i min privatøkonomi?"
- "What should I prioritize?"
Arguments
None.
Prerequisites
- Transactions synced and analyzed (categorized.csv has data)
- At least 1 month of transaction history for meaningful advice
Workflow
-
Load user memory skill and read stored learnings:
- Load
skills/user-memory/SKILL.mdfor learning detection - Read
learnings/preferences.mdfor previously stored user information - Note which questions can be skipped (emergency_fund, pension, debt, employer, etc.)
- Load
-
Read data from CSV files:
- categorized.csv: Spending by category
- subscriptions.csv: Active subscriptions
- monthly-summary.csv: Monthly totals and trends
- action-log.csv: Previous actions taken
- payslips.csv: Payslip data (if exists) for accurate income and pension info
1b. If payslips.csv exists and has data:
- Load most recent payslip for the current/previous month
- Extract: gross_salary, net_salary, pension_total, pension_pct
- Set
has_payslip_data = true - Use gross_salary for income-based calculations instead of transaction-derived income
-
Calculate key metrics:
- Monthly income:
- If has_payslip_data: Use gross_salary from payslip
- Otherwise: Sum of Indkomst category (net deposits)
- Monthly expenses: Sum of all spending categories
- Net cash flow: Income minus expenses
- Savings rate:
- If has_payslip_data: (gross_salary - expenses) / gross_salary (true savings rate)
- Otherwise: Net cash flow / Income (approximate)
- Subscription burden: Total subscriptions / Income (as percentage)
- Essential vs discretionary split: (Bolig + Dagligvarer + Transport) vs rest
- Monthly income:
-
Assess position in the 5-step framework using
skills/danish-finance-guide/SKILL.md:Step 0: Budget — Always ✅ (user is tracking spending via SmartSpender)
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago First seen · 297 lines · 15 tokens per session scan A fd1e13eabef3
advice is a command published in the GitHub repository peerjakobsen/smartspender (5 stars, last pushed 7mo ago), licensed MIT. It adds 15 tokens to every session and 3,273 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other commands, from other repositories
research
Professional equity research analysis with institutional-grade formatting.
better-auth:add-plugin
Add a better-auth plugin to an existing project. Configures server and client plugins with proper imports.
better-auth:setup
Interactive setup wizard for better-auth authentication. Guides through database, framework, OAuth providers, and plugin configuration.
bun:migrate
Migrate existing Node.js/npm projects to Bun.
swarm
Fan out a parallel review across the workspace using Kimi's AgentSwarm tool, bounded by a hard wall-clock budget. Read-only by default (enforced by the same PreToolUse hook as review, applied to every subagent); --write fans out edits in a throwaway worktree and returns a patch.
content
Content quality analysis (readability, keyword density, GEO scoring).