/install biz-in-a-box
biz-in-a-box Skill
Agent-native operating system for any business entity. An append-only, hash-chained journal (journal.ndjson) + a chart of accounts (accounts.yaml) + entity metadata (entity.yaml). Agents can derive any financial report from it in one context window.
- Protocol spec: See references/spec.md
- Chart of accounts: See references/accounts.md
- Vertical examples: See references/verticals.md
Quickstart
1. Fork or clone the repo
GitHub: https://github.com/taylorhou/biz-in-a-box Website: https://biz-in-a-box.org
git clone https://github.com/taylorhou/biz-in-a-box my-entity
cd my-entity
Edit entity.yaml with the entity's id, name, and type. Edit accounts.yaml to match the entity's chart of accounts.
2. Record a transaction
Append a JSON line to journal.ndjson. Every entry needs id (ULID recommended) and time (ISO-8601 UTC). Financial entries also need balanced debits/credits.
Example — record a $1,200 rent payment:
{"id":"01HXYZ...","time":"2026-02-26T14:00:00Z","labels":["financial"],"description":"February rent","debits":[{"account":"5200-rent","amount":1200}],"credits":[{"account":"1010-bank-checking","amount":1200}]}
3. Validate
node validate.js
Checks: required fields, double-entry balance, hash chain continuity, correction has supersedes, transfer has from/to.
4. Query / report
Read journal.ndjson line by line. Filter by labels, time range, or accounts to derive:
- P&L: sum revenue (4xxx) vs expenses (5xxx) over a period
- Balance sheet: sum assets (1xxx), liabilities (2xxx), equity (3xxx) at a point in time
- Cash flow: filter
1010-bank-checkingdebits and credits - Burn rate: sum expenses (5xxx) over trailing 30/90 days
Key Rules
sum(debits.amount)must equalsum(credits.amount)for financial entries- Use
correctionlabel +supersedes: \x3Cid>to amend entries — never edit in place - Genesis
prev_hash: 64 zeros; subsequent entries chain via SHA-256 - Entries > 7 days backdated require
historicalorimportedlabel
File Set
| File | Purpose |
|---|---|
journal.ndjson |
Append-only event log (one JSON per line) |
entity.yaml |
Entity metadata (id, name, type, jurisdiction, etc.) |
accounts.yaml |
Chart of accounts (assets/liabilities/equity/revenue/expenses) |
labels.yaml |
Label definitions |
access.yaml |
Access control |
validate.js |
Validation script |
snapshots/ |
Optional periodic balance snapshots |
verticals/ |
Vertical-specific extensions |
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install biz-in-a-box - 安装完成后,直接呼叫该 Skill 的名称或使用
/biz-in-a-box触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
biz-in-a-box 是什么?
Agent-native double-entry business ledger for any entity type, supporting transaction recording, auditing, reporting, and data integrity validation. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 464 次。
如何安装 biz-in-a-box?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install biz-in-a-box」即可一键安装,无需额外配置。
biz-in-a-box 是免费的吗?
是的,biz-in-a-box 完全免费(开源免费),可自由下载、安装和使用。
biz-in-a-box 支持哪些平台?
biz-in-a-box 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 biz-in-a-box?
由 taylorhou(@taylorhou)开发并维护,当前版本 v1.0.0。