ledger

ledger is a skill for Claude Code, Codex from zhinjs/zhin. It costs 23 tokens per session (396 once invoked), scanned A, original, MIT.

A personal expense ledger for recording spending and viewing lists, totals, and category breakdowns. A ledger is a dated record of transactions.

In plain words
What is it for?
Use it to add or delete an expense, list recent entries, or see spending totals and category shares for today, this week, or this month.
Why use it?
It keeps spending records organized and provides day, week, and month summaries without manually adding receipts.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to add or delete an expense, list recent entries, or see spending totals and category shares for today, this week, or this month.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zhinjs/zhin/ledger
Install

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.

Any agent
npx skills add zhinjs/zhin --skill ledger
Clone the repo
git clone --depth 1 https://github.com/zhinjs/zhin

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for ledger

README.md
[![agentmods](https://agentmods.dev/badge/skills/zhinjs/zhin/ledger/github.svg)](https://agentmods.dev/skills/zhinjs/zhin/ledger)
Your own site
<a href="https://agentmods.dev/skills/zhinjs/zhin/ledger"><img src="https://agentmods.dev/badge/skills/zhinjs/zhin/ledger/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ledger

Your own site · 80×15
<a href="https://agentmods.dev/skills/zhinjs/zhin/ledger"><img src="https://agentmods.dev/badge/skills/zhinjs/zhin/ledger.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 396 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00023 $0.00396
Opus 5.5 $0.00009 $0.00158
Sonnet 5.5 $0.00005 $0.00079
Haiku 4.5 $0.00002 $0.00040

Measured 24d ago against content hash 7670b38c8bec, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ledger 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 24d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (tools/ledger_add/index.ts, tools/ledger_delete/index.ts, tools/ledger_list/index.ts, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugins/utils/ledger/skills/ledger/SKILL.md · 42 lines

What it actually says

个人记账本 (Personal Ledger)

何时使用本技能

  • 用户想记录一笔消费/支出(如「记一笔午饭 18.5 元」「打车花了 32」)
  • 用户想查看今日、本周或本月的消费汇总或分类占比
  • 用户想列出近期的账单明细或按编号删除某笔账目

工作流

  1. 记账 (ledger_add):提取类别(category)、金额(amount,正数元)与可选备注(note)。需要用户批准。
  2. 消费汇总与分类统计 (ledger_summary):按 period(today / week / month)查看总览(mode: "summary")或分类统计(mode: "categories")。
  3. 账单明细 (ledger_list):按 period 查看带 #编号 的账单列表。
  4. 删除账目 (ledger_delete):传入账目编号 seq 删除对应记录。需要用户批准。

注意

  • 账目按发送者隔离,用户只能操作自己的账本。
  • 群聊场景下会自动保护金额隐私(优先私信发送完整账单或在群内脱敏显示)。
Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

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.

  1. 24d ago First seen · 42 lines · 23 tokens per session scan A 7670b38c8bec

Subscribe to this mod's changes

ledger is a skill published in the GitHub repository zhinjs/zhin (136 stars, last pushed yesterday), licensed MIT. It adds 23 tokens to every session and 396 once invoked, about $0.0001 per session on Opus 5.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-11-06.

Related

ledger compared with skills from other repositories

ledger next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ledgerzhinjs/zhinSkill136yesterdayMITA23Claude Code, Codex
budget-allocationopen-octo/octo-agentSkill160yesterdayMITA104Claude Code, Codex
gushenDuanZGit/D-HubSkill0yesterdayMITA110Claude Code, Codex
gcp-cost-optimizerarmanzeroeight/fastagent-pluginsSkill304mo agoMITA39Claude Code
azure-cost-optimizerarmanzeroeight/fastagent-pluginsSkill304mo agoMITA34Claude Code
ledgerseaworld008/Commonly-used-high-value-skillsSkill75yesterdayMITA35Claude Code, Codex
discord-bot-architectfindscripter/everything-skillsSkill12yesterdaynoneA103Claude Code