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

erp-procurement

Skill0 starsChanged 13 days agoMITView on GitHub

Implement purchase-to-pay requisitions, purchase orders, receiving, supplier invoices, and three-way matching. Use for purchasing quantity/value controls, not generic approvals, stock valuation, or ledger algorithms.

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:

    Test duplicate/partial receipt, invoice replay, overdelivery, mismatches, revised orders, cross-company references, and concurrent invoice …

    line 42
  2. Distinctive:

    Every receipt/invoice traces to authorized scoped source lines and revisions.

    line 51

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

Overview

Preserve authorization and traceability from request through receipt, invoice, and payable. Receipt, supplier liability, and payment are different facts.

When to use

  • Building purchase requisitions/orders, partial receiving, and supplier matching.
  • Enforcing spending limits, duplicate-invoice controls, returns, and purchasing commitments.

Hand off when

NeedSkill
Generic approval policy and segregation of dutiesworkflow-approvals
Physical stock and valuationerp-inventory
Payables, settlements, and journalserp-accounting

Process

  1. Define company/supplier scope, requisition and order states, approval thresholds, budget/commitment policy, tolerances, units, currency, and tax requirements.
  2. Freeze approved order revision and contractual line facts. Amendments that alter protected terms require a new revision and the applicable authorization.
  3. Record partial receipts and returns as idempotent operations linked to order lines. Validate cumulative quantity, unit conversion, quality acceptance, and receipt authority.
  4. Uniquely identify supplier invoices within company/supplier scope and the domain's numbering rules. Detect duplicates without assuming numbers are globally unique.
  5. Match invoice lines against authorized order and accepted receipt facts; compare cumulative quantities, prices, tax inputs, and tolerances. Hold exceptions explicitly.
  6. Separate matching, approval, payable posting, and payment. Dispatch physical and financial effects with stable source keys and durable recovery.
  7. Handle order closure, cancellation, supplier credits, and returned goods through linked correction flows. Reconcile outstanding quantities, commitments, and payables.
  8. Test duplicate/partial receipt, invoice replay, overdelivery, mismatches, revised orders, cross-company references, and concurrent invoice allocation.

Red flags

  • One paid status driving every stage or a requester approving their own exception.
  • Matching each invoice alone while ignoring previously received/invoiced quantities.
  • Editing approved orders after receipt to make an unauthorized invoice appear valid.

Verification

  • Every receipt/invoice traces to authorized scoped source lines and revisions.
  • Cumulative matching and duplicate controls survive retries and concurrency.
  • Returns, credits, commitments, stock effects, and payables reconcile independently.

References

  • references/purchase-to-pay.md - matching contract and exception 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.