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

erp-domain-design

Skill0 starsChanged 13 days agoMITView on GitHub

Define ERP bounded contexts, master-data ownership, legal-entity boundaries, and business document lifecycles. Use for enterprise resource planning architecture, not tenant infrastructure isolation or individual ledger and stock algorithms.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    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:

    Document commands, document states, quantities, money precision, business dates, effective versions, and invariants.

    line 34
  2. Distinctive:

    Every business fact has an owner, scope, lifecycle, and correction policy.

    line 53

≈ “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 Domain Design

Overview

Model business ownership, document transitions, and cross-module invariants before implementing screens. A modular monolith is sufficient unless evidence requires more.

When to use

  • Designing ERP modules, legal entities, branches, master data, or shared configuration.
  • Connecting purchasing, sales, stock, accounting, and approval responsibilities.

Hand off when

NeedSkill
Tenant persistence and infrastructure isolationsaas-multitenancy
Journal posting and fiscal period ruleserp-accounting
Stock movements and reservationserp-inventory
Purchase-to-pay documentserp-procurement
Quote-to-cash documentserp-sales

Process

  1. Map business capabilities and authoritative owners for customers, suppliers, items, accounts, currencies, tax policies, units, and document numbering.
  2. Distinguish tenant, legal entity/company, branch, warehouse, and business unit. Define scoped relationships and authorization; a tenant can contain multiple companies.
  3. Document commands, document states, quantities, money precision, business dates, effective versions, and invariants. Avoid one generic status covering every module.
  4. Separate editable drafts from approved/issued/posted facts. Snapshot contractual prices, descriptions, units, tax inputs, and addresses that must survive master-data edits.
  5. Define local transaction boundaries and idempotent source references. Cross-module effects need explicit ownership and durable dispatch; do not dual-write without recovery.
  6. Model authorized intercompany activity as linked documents and balances, not relaxed company filters. Define reconciliation and any consolidation rules from approved policy.
  7. Separate configurable rules from executable code. Version configuration, validate dependencies, audit changes, and apply them only to their declared effective scope.
  8. Deliver one end-to-end vertical slice with boundary and reversal tests. Obtain industry/jurisdiction requirements for accounting, tax, HR, or manufacturing before guessing.

Red flags

  • One shared CRUD model, global mutable master data, or company IDs trusted from forms.
  • Draft edits rewriting historical invoices or integrations posting the same source twice.
  • Building microservices or generalized rule engines without an operational need.

Verification

  • Every business fact has an owner, scope, lifecycle, and correction policy.
  • Cross-company references are rejected unless explicitly authorized intercompany flows.
  • Historical facts survive master-data edits; cross-module effects reconcile under retries.

References

  • references/domain-boundaries.md - document and module contracts.

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.