agentleFS
hi-donwihi-donwi/Donwi-Skills/skills/erp-accounting/SKILL.md

erp-accounting

Skill0 starsChanged 13 days agoMITView on GitHub

Implement double-entry journals, general ledger posting, fiscal locks, reversals, receivables/payables, and reconciliation. Use for ERP financial invariants, not subscription pricing or jurisdiction-specific accounting advice.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use exact decimal or integer amounts with explicit currency scale.

    line 31
  2. Distinctive:

    Use a scoped stable source key.

    line 36
  3. Distinctive:

    Every posted journal balances and each source effect posts once.

    line 52

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

ERP Accounting

Overview

Preserve balanced, attributable, immutable posted financial facts. Accounting, tax, recognition, and currency policy must come from the approved domain contract.

When to use

  • Posting journals, closing periods, settling open items, or reconciling subledgers.
  • Correcting posted financial documents and preventing duplicate financial effects.

Hand off when

NeedSkill
Recurring subscription economicssaas-billing
Supplier purchasing and invoice matchingerp-procurement
Customer fulfillment and invoicingerp-sales
Business event attribution and retentionaudit-logging

Process

  1. Define company books, chart of accounts, functional/reporting currencies, fiscal periods, tax inputs, rounding, recognition, and source posting rules with domain owners.
  2. Use exact decimal or integer amounts with explicit currency scale. Separate source currency, functional amount, exchange-rate source/date, and rounding differences.
  3. Validate account scope/state, dates, dimensions, and line polarity. Balance debits and credits in functional currency using the approved multi-currency policy.
  4. Post header, lines, source uniqueness, open-item effects, and required audit atomically. Use a scoped stable source key; retries must not create another journal.
  5. Serialize open-period validation with period closing. A prior check outside the posting transaction cannot prevent a posting from racing a lock or close.
  6. Make posted facts immutable. Corrections create linked reversal/adjustment entries in an allowed period; do not delete lines or reopen closed books silently.
  7. Separate invoices, settlements, credit notes, refunds, and allocation records. Prevent over-allocation and duplicate settlement while preserving partial-payment history.
  8. Reconcile trial balance, control accounts, open items, cash/provider statements, and inventory valuation where relevant. Test rounding, concurrency, duplicates, and reversals.

Red flags

  • Floating-point money, editable posted balances, or treating invoice status as the ledger.
  • Unbalanced multi-currency journals or source keys not scoped to company and operation.
  • Inventing tax rates, revenue recognition, or legal retention from a generic example.

Verification

  • Every posted journal balances and each source effect posts once.
  • Period-close races and correction paths preserve fiscal policy and immutable history.
  • Subledger totals, allocations, and statements reconcile with traceable differences.

References

  • references/posting-invariants.md - posting and fiscal-lock failure exercises.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.