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

erp-inventory

Skill0 starsChanged 13 days agoMITView on GitHub

Implement stock ledgers, reservations, warehouse transfers, lot/serial tracking, counts, and valuation handoffs. Use for inventory conservation and availability, not generic database tuning or frontend state.

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:

    Keep physical movements, reservations, and financial valuation distinct but reconcilable.

    line 13
  2. Distinctive:

    Keep reservations separate from on-hand stock.

    line 32
  3. Distinctive:

    Test last-unit races, duplicate receipts, transfer failures, partial dispatch, returns, conversions, backdated movements, and count …

    line 42

≈ “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 Inventory

Overview

Keep physical movements, reservations, and financial valuation distinct but reconcilable. Availability must remain correct under concurrent fulfillment.

When to use

  • Receiving, dispatching, reserving, counting, or transferring stock.
  • Tracking units, warehouses, lot/serial ownership, expiry, and inventory valuation sources.

Hand off when

NeedSkill
Purchase receipt authorization and supplier matchingerp-procurement
Customer orders, fulfillment, and returnserp-sales
Financial journal posting and valuation reconciliationerp-accounting

Process

  1. Define item type, stock scope, warehouse/location, unit precision and conversions, lot/serial rules, negative-stock policy, availability, and valuation method explicitly.
  2. Record immutable movements with scoped source keys, quantity/unit, effective time, location, and correction links. Derived balances must reconcile to the movement ledger.
  3. Keep reservations separate from on-hand stock. Reserve/release atomically under concurrent demand; define which reservation states count against availability.
  4. Make receipts and dispatches idempotent and cumulative against authorized lines. Fulfillment consumes physical stock and resolves its reservation in a coordinated boundary.
  5. Model warehouse transfers through stated direct or in-transit stages. Pair source and destination facts; do not make shipped goods simultaneously available at both ends.
  6. Enforce lot/serial uniqueness, status, company scope, expiry, and exact unit conversion. Physical returns, quarantine, and financial credits are separate authorized transitions.
  7. Define stock-count cutoff and handling of concurrent movements. Post authorized adjustments, not overwritten balances; coordinate valuation corrections with accounting.
  8. Test last-unit races, duplicate receipts, transfer failures, partial dispatch, returns, conversions, backdated movements, and count reconciliation.

Red flags

  • One mutable stock field, read-then-reserve, or duplicate movements on retries.
  • Mixing reserved and on-hand totals or treating a credit note as physical receipt.
  • Silent negative stock or backdating that rewrites valuation without reconciliation.

Verification

  • Movement totals, reservations, availability, and transfer conservation reconcile.
  • Concurrent reservations and repeated source events cannot oversell or double stock.
  • Counts, lot/serial rules, corrections, and accounting handoffs preserve history.

References

  • references/stock-invariants.md - quantities, reservations, and transfer 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.