agentleFS
OpenAIKnown publisheropenai/openai-cookbook/examples/agents_api/apps/document_review/skills/expense-review-policy/SKILL.md

expense-review-policy

Skill76k starsChanged 5 months agoMITView on GitHub

Review invoices and contracts against accounts-payable policy before human approval.

Trending

Quiet since July.about the whole repository

Jan 2026: 0 mentionsFeb 2026: 1 mentionMar 2026: 4 mentionsApr 2026: 0 mentionsMay 2026: 2 mentionsJun 2026: 0 mentionsJul 2026: 1 mentionAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentionsDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the openai/openai-cookbook repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about openai/openai-cookbook

The biggest 5 of 61 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 61

Talked about on GitHub, Hacker News and Bluesky (61 times).

On GitHub · 27

22 more on GitHub

On Hacker News · 21

16 more on Hacker News

On Bluesky · 13

8 more on Bluesky

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 3 are distinctive, and 5 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.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the entire invoice, including the vendor and every line item.

    line 14
  2. Very specific:

    Use Python's decimal.Decimal to multiply quantities by unit prices and sum the line totals.

    line 16
  3. Distinctive:

    Read every clause and report all matching risks, even when one already requires escalation.

    line 24
  4. Very specific:

    Write /workspace/output/<document-stem>.json with the following fields:

    line 36
  5. Very specific:

    Every issues entry must be a plain-English string, not a nested object.

    line 57
  6. Very specific:

    Use the actual document values, not the illustrative numbers above.

    line 58
  7. Very specific:

    Only the coordinator writes summary.json.

    line 62
  8. Distinctive:

    Never approve payments, sign contracts, or take external actions.

    line 64

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

Expense review policy

Policy ID: AP-104.

Apply this policy to invoices, expense receipts, and service contracts.

Invoices and expenses

  • Read the entire invoice, including the vendor and every line item.
  • Extract every line item's quantity and unit price before calculating. Check the extracted list against every source line; an empty list is an error, not a zero subtotal.
  • Use Python's decimal.Decimal to multiply quantities by unit prices and sum the line totals. Compare this subtotal with the printed subtotal, then add shipping to calculate the total.
  • Strip currency separators, compare the result with Total amount due, and report the exact difference (stated total minus calculated total).
  • Require a purchase order or another documented approval.
  • Flag missing receipts, unsupported charges, and changed payment instructions.
  • Escalate incorrect totals and unverified changes to bank details.

Contracts

  • Read every clause and report all matching risks, even when one already requires escalation.
  • Flag automatic renewals and restrictive cancellation windows.
  • Flag unilateral price increases and missing liability limits.
  • Escalate customer-data sharing or subcontractor access without approval.
  • Identify missing confidentiality, security, or termination terms.

Review decision

  • needs_info: Required documentation or supporting information is missing.
  • escalated: Fraud indicators, financial discrepancies, or risky terms need review.
  • ready_for_approval: No policy violations remain, but a human must still approve.

Write /workspace/output/<document-stem>.json with the following fields:

{
  "document": "invoice.txt",
  "document_type": "invoice",
  "policy_id": "AP-104",
  "decision": "escalated",
  "vendor": "Cedar Office Supply",
  "amount": 6420,
  "issues": ["The claimed total exceeds the calculated total."],
  "recommendation": "Escalate for human review.",
  "calculation": {
    "line_items": [{"quantity": 2, "unit_price": 100}],
    "shipping": 20,
    "calculated_total": 220,
    "difference": 6200
  }
}

Every issues entry must be a plain-English string, not a nested object. Use the actual document values, not the illustrative numbers above. Include every invoice line item in calculation; amount is the stated total. For contracts, set document_type to contract and calculation to null.

Only the coordinator writes summary.json. A specialist writes its assigned report.

Never approve payments, sign contracts, or take external actions.

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.