purchase-approval

purchase-approval is a skill for Claude Code, Codex from runxhq/runx. It costs 35 tokens per session (391 once invoked), scanned A, original, Apache-2.0.

A rule-based checkpoint that decides whether a proposed purchase follows a procurement policy before spending begins.

In plain words
What is it for?
It checks vendor approval, currency, budget, purchase caps, and approval thresholds, then returns an approval, refusal, or human-review decision for a later payment flow.
Why use it?
It prevents budget overruns, unapproved vendors, currency mismatches, and purchases made under incomplete policy authority. It also sends threshold-level purchases to a human reviewer.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It checks vendor approval, currency, budget, purchase caps, and approval thresholds, then returns an approval, refusal, or human-review decision for a later payment flow.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/runxhq/runx/purchase-approval
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add runxhq/runx --skill purchase-approval
Clone the repo
git clone --depth 1 https://github.com/runxhq/runx

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for purchase-approval

README.md
[![agentmods](https://agentmods.dev/badge/skills/runxhq/runx/purchase-approval/github.svg)](https://agentmods.dev/skills/runxhq/runx/purchase-approval)
Your own site
<a href="https://agentmods.dev/skills/runxhq/runx/purchase-approval"><img src="https://agentmods.dev/badge/skills/runxhq/runx/purchase-approval/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for purchase-approval

Your own site · 80×15
<a href="https://agentmods.dev/skills/runxhq/runx/purchase-approval"><img src="https://agentmods.dev/badge/skills/runxhq/runx/purchase-approval.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 391 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00035 $0.00391
Opus 5 $0.00017 $0.00196
Sonnet 5 $0.00007 $0.00078
Haiku 4.5 $0.00003 $0.00039

Measured 5d ago against content hash 98364a1309bb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

purchase-approval scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (purchase-approval.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/purchase-approval/SKILL.md · 39 lines

What it actually says

Purchase Approval

Purchase Approval is the pre-spend decision gate. It answers one question, is this purchase allowed under the supplied procurement policy, and it answers it deterministically. It never moves money; spend and the payment rails own execution, and this skill's sealed decision is what a caller carries into that flow.

Procedure

  1. Native data.digest binds the exact purchase request and procurement policy before any judgment.
  2. Deterministic rules apply in order: the vendor must be in approved_vendors, the request currency must match the policy currency, and the amount must fit both remaining_budget and single_purchase_cap. The first failed rule refuses with a named refused_reason.
  3. An in-policy amount that reaches approval_threshold returns needs_human with the policy's human_lane (default procurement-review); approval below the threshold is approved.
  4. A policy missing any required authority field refuses with missing_policy_authority and findings; nothing is inferred or invented.

spend_executed is always false. The decision packet carries both input digests so a downstream spend can prove which request and policy were decided.

Output

purchase_approval (runx.purchase_approval.v1) carries decision (approved, refused, needs_human), reason, vendor, amount, currency, ceiling_amount, human_lane, refused_reason, policy_refs, validation, and the two digests.

Inputs are purchase_request and procurement_policy.

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 39 lines · 35 tokens per session scan A 98364a1309bb

Subscribe to this mod's changes

purchase-approval is a skill published in the GitHub repository runxhq/runx (84 stars, last pushed today), licensed Apache-2.0. It adds 35 tokens to every session and 391 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.