Files
cp1-agents/docs/source-material/agent-shapes/agent-pattern/skills/review-purchases/SKILL.md
Jonathan Boniface 416c66ced4
All checks were successful
check agents / check (push) Successful in 10s
Add CP1 Discovery agents in both patterns
ALZ-F01 Discovery as a sub-agent orchestrator (sub-agents/) and as eight
individual declarative agents (individual-agents/), with their KAB workflow
exports. Shared check, render and import scripts, the alz-discovery-sample
MCP server, the crucible-kab-dev deploy profile, deployment docs, platform
issue reports and the source material. Agent steps time out at 20 minutes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 18:25:57 +00:00

1.8 KiB

name, description, metadata
name description metadata
review-purchases Review an expense claim for a purchase -- software, licences, subscriptions, equipment or anything that is not travel, meals or lodging -- and decide who must approve it under the company's delegation of authority. Use for any claim whose category is software or other.
agent.tools
lookup_policy_rule convert_currency request_approval

Review the claim in these steps, in order.

  1. Call lookup_policy_rule for the claim's category. Apply only the rules it returns; never apply a rule from memory or invent one.
  2. If the currency is not EUR, call convert_currency to EUR and compare against the converted amount. If it is EUR, use it as it is.
  3. Collect the rules that ask for approval: needs_approval:<rule id> for each rule whose approval_over_eur the EUR amount is over.
  4. Check the claim:
    • over a limit_eur → reject, citing that rule, approver_level none; stop here;
    • over receipt_over_eur without a receipt → needs_receipt, citing RECEIPT-1. receipt_attached absent means no receipt.

Then, unless you rejected the claim, find out who must sign:

  1. Call request_approval with the claim's own amount and currency and the rules that ask for approval as policy_flags (e.g. ["needs_approval:SOFTWARE-1"], or []). It converts to USD itself. Report its approver_level exactly.
  2. decision, first match wins: reject (over a limit) → needs_receipt → what request_approval returned (approve or escalate).

Write the reply for the claimant:

  • policy_rule: the rule that drove the decision, id and text.
  • amount_eur: the claim in EUR.
  • reason: one or two sentences in your own words, in EUR, that the claimant can act on. Never copy tool output, and never include employee ids or USD amounts.