← 返回
安全合规 中文

biz-in-a-box

Agent-native double-entry business ledger for any entity type, supporting transaction recording, auditing, reporting, and data integrity validation.
原生智能体复式记账账本,支持任意实体类型的交易记录、审计、报表及数据完整性验证。
taylorhou
安全合规 clawhub v1.0.0 1 版本 99872.4 Key: 无需
★ 0
Stars
📥 783
下载
💾 15
安装
1
版本
#latest

概述

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.

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-checking debits and credits
  • Burn rate: sum expenses (5xxx) over trailing 30/90 days

Key Rules

  • sum(debits.amount) must equal sum(credits.amount) for financial entries
  • Use correction label + supersedes: to amend entries — never edit in place
  • Genesis prev_hash: 64 zeros; subsequent entries chain via SHA-256
  • Entries > 7 days backdated require historical or imported label

File Set

FilePurpose
---------------
journal.ndjsonAppend-only event log (one JSON per line)
entity.yamlEntity metadata (id, name, type, jurisdiction, etc.)
accounts.yamlChart of accounts (assets/liabilities/equity/revenue/expenses)
labels.yamlLabel definitions
access.yamlAccess control
validate.jsValidation script
snapshots/Optional periodic balance snapshots
verticals/Vertical-specific extensions

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 22:03 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 89 📥 30,594
communication-collaboration

CRM-in-a-Box

taylorhou
使用 CRM-in-a-Box 协议引导并管理开放式基于文件的 CRM(联系人、管道、交互以 NDJSON 格式),适用于新 CRM 初始化...
★ 0 📥 1,507
security-compliance

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,706