Review invoices and contracts against accounts-payable policy before human approval.
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-expense-review-policy-b76bb9b1ca20 ,按照其中的说明把「expense-review-policy」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Policy ID: AP-104.
Apply this policy to invoices, expense receipts, and service contracts.
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.Total amount due, and report the exact difference (stated total minus calculated total).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.