cashflow-writer

cashflow-writer is a skill for Claude Code, Codex from daijiaoshou-ds/Accounting-Entry-Test. It costs 106 tokens per session (3,192 once invoked), scanned A, original, MIT.

A local tool for creating a cash flow statement from a chronological transaction ledger and exporting the result to Excel. It classifies transactions by business category and maps them with the direction of cash or bank funds to cash-flow line items.

In plain words
What is it for?
Use it when preparing a cash flow statement, classifying vouchers by cash-flow item, or exporting categorized cash-flow data to Excel.
Why use it?
It organizes transaction records into cash-flow categories while keeping the data on the local computer.

Skill for Claude CodeCodex

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

Good fit Use it when preparing a cash flow statement, classifying vouchers by cash-flow item, or exporting categorized cash-flow data to Excel.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/daijiaoshou-ds/accounting-entry-test/legacy-cashflow
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 daijiaoshou-ds/Accounting-Entry-Test --skill legacy-cashflow
Clone the repo
git clone --depth 1 https://github.com/daijiaoshou-ds/Accounting-Entry-Test

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 cashflow-writer

README.md
[![agentmods](https://agentmods.dev/badge/skills/daijiaoshou-ds/accounting-entry-test/legacy-cashflow/github.svg)](https://agentmods.dev/skills/daijiaoshou-ds/accounting-entry-test/legacy-cashflow)
Your own site
<a href="https://agentmods.dev/skills/daijiaoshou-ds/accounting-entry-test/legacy-cashflow"><img src="https://agentmods.dev/badge/skills/daijiaoshou-ds/accounting-entry-test/legacy-cashflow/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 cashflow-writer

Your own site · 80×15
<a href="https://agentmods.dev/skills/daijiaoshou-ds/accounting-entry-test/legacy-cashflow"><img src="https://agentmods.dev/badge/skills/daijiaoshou-ds/accounting-entry-test/legacy-cashflow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 106 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,192 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.00106 $0.03192
Opus 5.5 $0.00042 $0.01277
Sonnet 5.5 $0.00021 $0.00638
Haiku 4.5 $0.00011 $0.00319

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

Security

Grade A, and why

cashflow-writer 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 10d 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.

_archive/legacy-cashflow/SKILL.md · 207 lines

How it starts

The opening of the file, as written. The whole thing — 207 lines — stays where its author put it; the contents beside it link to each section on GitHub.

现金流量表编写 — AI 操作手册

你是 AI 助手,这份手册是给你的。用户通常是会计/审计人员,不懂代码。 你要替 TA 把每一步做到位并验证通过;TA 只需要回答几个问题、看一眼结果。

这个 skill 在做什么

序时账 ──► 业务分类(模型,来自 summary_cleaner)──► 现金流量项目(程序查表)──► 一个 Excel
  • 输入:序时账 Excel/CSV,至少要有 凭证号、一级科目、借方金额、贷方金额 四列
  • 输出:一个 Excel(3 张 sheet),由程序落盘
  • 本 skill 不判业务桶——业务分类来自 summary_cleaner(序时账清洗)。这里只做 「桶 + 货币资金借贷方向 → 现金流量项目」这一段。

⚠️ 分工铁律(先读这条)

谁做 做什么 为什么
程序 读文件、认列名、调上游判桶、查表定项目、写回、导出 Excel 确定、可复现;落盘是"确定的活",你不写产出文件
你(AI) 看待复核清单、给结论、把结果讲成人话 要读自然语言、处理模糊情况,程序写不完

你只做最后一公里。 不要自己算数、不要自己拼 Excel、不要自己写脚本改产出文件。 有结论就用 run --cf "行号=项目" 交回程序,程序重出文件。

两种跑法:本文件的 cli.py 是单跑(一条命令跑到底,结论靠对话传递); 需要"程序 → AI 复核 → 再算下游"的穿插流程,用仓库根的 journal(编排层, 见 docs/design/architecture_v5.md)。两者算法相同,编排模式多两处复核停靠点。

操作流程

第 0 步 环境自检 ── status:依赖齐不齐、上游模型在不在、映射表自洽不自洽
第 1 步 字段确认 ── check:认不出列名时用 --set 手工指定(极少用)
第 2 步 跑账     ── run:业务分类 + 编现金流 + 导出,一次完成
第 3 步 看待复核 ── run 出参里的 cashflow_review(不落 Excel)
第 4 步 交结论   ── run --cf "行号=项目" 或 --cf-patch 补丁.json,重跑
第 5 步 讲人话   ── 把现金流量表读数讲给用户;指出仍需人工确认的条目

第 0 步 环境自检

%PY% -X utf8 cli.py status

看三块,任何一块不对就别往下走:

字段 期望 不对怎么办
missing_modules [] 按 reference/SETUP.md 装依赖(torch 单独装)
upstream.model_ready true 上游模型缺件 → 让用户按 summary_cleaner 的 reference/SETUP.md 下载
cf_maps.validate_problems 0 映射表被改坏了,看 validate 的 problems

upstream.buckets = 上游业务桶数(当前 33)。桶表变了要重看 bucket_to_cf.json 覆盖没覆盖, 没覆盖的桶会全部落到「待复核 · 桶不在映射表里」。

第 1 步 字段确认

%PY% -X utf8 cli.py check "序时账.xlsx"

出参里看 mapping(程序认到的列)和 cashflow.money_vouchers(多少张凭证涉及货币资金)。 认错了列才用 --set:

%PY% -X utf8 cli.py check "序时账.xlsx" --set 一级科目="科目" --set 借方金额="借方发生额"

字段名就是 mapping 里的键:voucher_no / subject / debit / credit / summary / date / subject_name。

第 2 步 跑账

%PY% -X utf8 cli.py run "序时账.xlsx" --out "输出目录"
  • 不加 --out 时输出到序时账同级的 现金流量表编写结果/
  • 产物:<文件名>_现金流量表.xlsx,3 张 sheet
    1. 原始序时账——用户给什么就是什么,列名也不改
    2. 业务分类结果——原始列 + 业务分类/置信度/判定来源 + 现金流量项目/方向/判定/复核
    3. 货币资金凭证——含货币资金的整张凭证(编现金流要看对方科目在干什么)

Read the full file on GitHub · 207 lines

Files

What ships with it

2 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. 10d ago First seen · 207 lines · 106 tokens per session scan A ec00bc3e37af

Subscribe to this mod's changes

cashflow-writer is a skill published in the GitHub repository daijiaoshou-ds/Accounting-Entry-Test (18 stars, last pushed 7d ago), licensed MIT. It adds 106 tokens to every session and 3,192 once invoked, about $0.0004 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-20.

Related

cashflow-writer compared with skills from other repositories

cashflow-writer next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cashflow-writerdaijiaoshou-ds/Accounting-Entry-TestSkill187d agoMITA106Claude Code, Codex
jangbu-importkimlawtech/korean-jangbu-forSkill893mo agoApache-2.0A97Claude Code, Codex
generate-workbookcynco-labs/ai-accounting-skillsSkill54mo agoMITA22Claude Code
csv-importermichielinksee/bantouSkill23mo agoMITA31Claude Code
prepare-primary-statementscynco-labs/ai-accounting-skillsSkill54mo agoMITA34Claude Code
investor-materialsgongyijie85/dsh-eccSkill1312d agoMITA61Claude Code, Codex
financial-analysisd-wwei/financial-analysisSkill89mo agononeA129Claude Code, Codex